:root {
  color-scheme: dark;
  --black: #050507;
  --ink: #090a0d;
  --panel: rgba(12, 13, 17, .78);
  --glass: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .38);
  --white: #f8f8f5;
  --platinum: #d7dce4;
  --muted: #9098a5;
  --cyan: #78f6ff;
  --pink: #ff4ee8;
  --acid: #e9ff65;
  --silver: #c9d0d7;
  --max: 1160px;
  --radius: 8px;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -12%, rgba(255,255,255,.18), transparent 28rem),
    radial-gradient(circle at 0% 18%, rgba(120,246,255,.1), transparent 24rem),
    radial-gradient(circle at 100% 8%, rgba(255,78,232,.09), transparent 22rem),
    linear-gradient(140deg, #050507, #0d0e12 46%, #050507);
}

body::selection {
  color: #050507;
  background: var(--acid);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#liquid-metal,
.glass-field,
.grain,
.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#liquid-metal {
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .42;
}

.glass-field {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 50% 18%, #000 0%, transparent 72%);
}

.grain {
  z-index: 2;
  opacity: .16;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
}

.cursor-light {
  z-index: 3;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 18%), rgba(120,246,255,.15), transparent 14rem),
    radial-gradient(circle at calc(var(--mx, 50%) + 10%) calc(var(--my, 18%) + 6%), rgba(255,78,232,.11), transparent 13rem);
  mix-blend-mode: screen;
}

.spark {
  position: fixed;
  z-index: 8;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  background: hsl(var(--hue) 100% 72%);
  box-shadow: 0 0 18px hsl(var(--hue) 100% 62%);
  animation: sparkDie .5s ease-out forwards;
}

.site-header,
main,
.bag,
.footer {
  position: relative;
  z-index: 5;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .6rem .7rem .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,10,13,.8), rgba(5,5,7,.56));
  box-shadow: 0 22px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(22px);
}

.brand-lockup {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  color: var(--white);
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(.82rem, 1.5vw, 1.05rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav {
  grid-column: 2 / 4;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

.site-header nav a,
.bag-button,
.button,
.bag-head button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 36px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-header nav a,
.bag-button {
  padding: .55rem .82rem;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bag-button b {
  min-width: 20px;
  height: 20px;
  margin-left: .44rem;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: #050507;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  font-size: .68rem;
}

.site-header nav a:hover,
.bag-button:hover,
.button:hover,
.bag-head button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 52px rgba(0,0,0,.34), 0 0 34px rgba(120,246,255,.08);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 64px;
  display: grid;
  place-items: center;
  gap: clamp(1.3rem, 3vw, 2.4rem);
  text-align: center;
}

.hero-inner {
  width: min(100%, 1000px);
  display: grid;
  justify-items: center;
  gap: 1.3rem;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.glitch-title,
.glitch-heading,
.glitch-mini {
  position: relative;
  display: inline-block;
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: 0;
  color: transparent;
  background:
    linear-gradient(102deg, #fff 0%, #cbd2db 18%, #616a75 31%, #fff 44%, var(--cyan) 55%, #fff 67%, var(--pink) 78%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: metalText 6.5s linear infinite;
  filter: drop-shadow(0 0 28px rgba(120,246,255,.13)) drop-shadow(0 22px 50px rgba(0,0,0,.72));
}

.glitch-title::before,
.glitch-title::after,
.glitch-heading::before,
.glitch-heading::after,
.glitch-mini::before,
.glitch-mini::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .72;
  mix-blend-mode: screen;
}

.glitch-title::before,
.glitch-heading::before,
.glitch-mini::before {
  transform: translate3d(-.045em, -.018em, 0);
  background-image: linear-gradient(90deg, var(--cyan), transparent 65%);
  animation: glitchA 2.7s steps(2, end) infinite;
}

.glitch-title::after,
.glitch-heading::after,
.glitch-mini::after {
  transform: translate3d(.05em, .018em, 0);
  background-image: linear-gradient(90deg, transparent 10%, var(--pink), var(--acid));
  animation: glitchB 3.1s steps(2, end) infinite;
}

.glitch-title {
  max-width: 11ch;
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(4.2rem, 11.5vw, 10.8rem);
  font-weight: 700;
}

.glitch-heading {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

.button {
  padding: .83rem 1rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary {
  color: #050507;
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(116deg, #fff, #c7d0d8 30%, var(--cyan) 54%, #fff 78%);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.button-ghost {
  color: var(--white);
}

.hero-product {
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 1 / .72;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: 7% 9%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.17), transparent 54%),
    conic-gradient(from 0deg, transparent, rgba(120,246,255,.25), transparent, rgba(255,78,232,.18), transparent);
  filter: blur(.2px);
  animation: slowRotate 18s linear infinite;
}

.product-orbit {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 60px rgba(120,246,255,.08);
}

.hero-product img {
  position: relative;
  z-index: 2;
  max-width: 86%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 34px 42px rgba(0,0,0,.74)) drop-shadow(0 0 24px rgba(120,246,255,.12));
}

.hero-product-meta {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  transform: translateX(-50%);
  min-width: min(320px, 90vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .66rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5,5,7,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.42);
}

.hero-product-meta b,
.hero-product-meta em {
  font-size: .82rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-product-meta em {
  color: var(--platinum);
}

.shop,
.contact {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: .6rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.product-card {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.026)),
    rgba(5,5,7,.62);
  box-shadow: 0 28px 88px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), rgba(120,246,255,.055) 22%, transparent 48%),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: auto, 72px 72px;
  pointer-events: none;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 34px 96px rgba(0,0,0,.46), 0 0 48px rgba(120,246,255,.07);
}

.product-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-image-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.16), transparent 55%),
    conic-gradient(from 0deg, transparent, rgba(120,246,255,.18), transparent, rgba(255,78,232,.13), transparent);
  animation: slowRotate 20s linear infinite;
}

.product-image-wrap img {
  position: relative;
  z-index: 2;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 38px 46px rgba(0,0,0,.78));
  transition: transform .3s ease, filter .3s ease;
}

.product-card:hover .product-image-wrap img {
  transform: translateY(-5px) scale(1.035);
  filter: drop-shadow(0 44px 52px rgba(0,0,0,.82)) drop-shadow(0 0 22px rgba(120,246,255,.13));
}

.product-info {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5,5,7,.35), rgba(5,5,7,.78));
}

.product-index {
  color: var(--muted);
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

.product-info h3 {
  margin: 0;
  color: var(--white);
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  line-height: .95;
  text-transform: uppercase;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.buy-row strong {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--platinum);
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 1.22rem;
}

.buy-row s {
  color: var(--muted);
  font-size: .82em;
}

.contact {
  padding-top: clamp(2rem, 6vw, 4.5rem);
}

.contact-panel {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  padding: clamp(1.4rem, 5vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.026)),
    rgba(5,5,7,.62);
  box-shadow: 0 28px 88px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
}

.subscribe-form {
  width: min(620px, 100%);
  display: grid;
  gap: .62rem;
}

.subscribe-form label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subscribe-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  padding: .42rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5,5,7,.58);
}

.subscribe-form input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 .75rem;
}

.form-note,
.direct-email {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.direct-email {
  color: var(--platinum);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.bag {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(420px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(12,13,17,.96), rgba(5,5,7,.94));
  box-shadow: 0 34px 90px rgba(0,0,0,.74), 0 0 46px rgba(120,246,255,.09);
  backdrop-filter: blur(22px);
  transform: translateY(calc(100% + 2rem));
  transition: transform .3s ease;
}

.bag.is-open {
  transform: translateY(0);
}

.bag-head,
.bag-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bag-head h2 {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.bag-head button {
  min-height: 38px;
  padding: .45rem .72rem;
}

.bag-lines {
  display: grid;
  gap: .65rem;
  max-height: 270px;
  overflow: auto;
}

.bag-line {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: .68rem;
  align-items: center;
  padding: .52rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.052);
}

.bag-line img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.bag-line b,
.bag-line span {
  display: block;
}

.bag-line span,
.empty {
  color: var(--muted);
}

.checkout-button {
  width: 100%;
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.success-page {
  display: grid;
  place-items: center;
}

.success-shell {
  width: min(760px, calc(100% - 32px));
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

@keyframes metalText {
  to { background-position: 300% 0; }
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

@keyframes glitchA {
  0%, 82%, 100% { clip-path: inset(0 0 0 0); transform: translate3d(-.045em, -.018em, 0); }
  86% { clip-path: inset(12% 0 61% 0); transform: translate3d(-.09em, 0, 0); }
  90% { clip-path: inset(64% 0 11% 0); transform: translate3d(.035em, -.01em, 0); }
}

@keyframes glitchB {
  0%, 76%, 100% { clip-path: inset(0 0 0 0); transform: translate3d(.05em, .018em, 0); }
  80% { clip-path: inset(48% 0 24% 0); transform: translate3d(.1em, .02em, 0); }
  84% { clip-path: inset(8% 0 72% 0); transform: translate3d(-.04em, .04em, 0); }
}

@keyframes sparkDie {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(.18); }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: .72rem;
  }

  .brand-lockup {
    justify-self: center;
    white-space: normal;
    text-align: center;
  }

  .site-header nav {
    grid-column: auto;
    justify-self: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .site-header nav a,
  .bag-button {
    flex: 1 1 96px;
  }

  .hero {
    padding-top: 162px;
  }

  .hero-actions,
  .buy-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .product-card {
    min-height: 0;
    grid-template-rows: 300px auto;
  }

  .subscribe-form div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hero,
  .shop,
  .contact,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .glitch-title {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  .hero-product-meta {
    flex-direction: column;
    gap: .25rem;
  }

  .bag-line {
    grid-template-columns: 52px 1fr;
  }

  .bag-line strong {
    grid-column: 2;
  }
}

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