:root {
  --bg: #050505;
  --ink: #f4f4f0;
  --muted: #9d9d96;
  --line: #f4f4f0;
  --panel: #101010;
  --soft: #1a1a1a;
  --danger: #d9d9d0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto;
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: clamp(58px, 6vw, 86px);
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 100%;
  display: block;
  filter: grayscale(1) contrast(1.28);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

nav a,
.site-footer a {
  text-decoration: none;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  text-transform: uppercase;
  font-weight: 700;
}

.cart-link span {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.72fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 72px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(4.1rem, 10.6vw, 9.6rem);
  line-height: 0.88;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: normal;
}

.hero-copy p {
  max-width: 420px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  text-transform: uppercase;
}

.primary-action,
.checkout-button {
  width: fit-content;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-action:hover,
.checkout-button:hover {
  transform: translate(-3px, -3px);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-art {
  position: relative;
  min-height: 520px;
  border-left: 1px solid var(--line);
  overflow: hidden;
  background: #111;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 60%, rgba(5, 5, 5, 0.88)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.38);
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ticker div {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
  will-change: transform;
}

.ticker p {
  flex: 0 0 auto;
  padding: 13px 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ticker p + p {
  padding-left: 46px;
}

.shop-section {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 52px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

h2 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.8rem, 8vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 620px));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  display: grid;
  grid-template-rows: auto auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  aspect-ratio: 1.18;
  overflow: hidden;
  background: var(--line);
}

.product-visual::before {
  content: attr(data-code);
  position: absolute;
  left: 12px;
  top: 10px;
  color: rgba(244, 244, 240, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--soft);
}

.product-photo::after {
  content: "VIEW";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(244, 244, 240, 0.78);
  background: rgba(5, 5, 5, 0.76);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 160ms ease;
}

.product-photo:hover::after,
.product-photo:focus-visible::after {
  opacity: 1;
}

.product-photo-1 {
  grid-row: 1 / span 2;
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  transition: transform 220ms ease, filter 220ms ease;
}

.product-photo:hover .product-image,
.product-photo:focus-visible .product-image {
  transform: scale(1.025);
  filter: grayscale(1) contrast(1.24);
}

.product-info {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
}

.product-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  text-transform: uppercase;
}

.product-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1.1;
  font-family: "Archivo Black", Impact, sans-serif;
}

.product-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.size-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-select button,
.add-button,
.icon-button,
.qty-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.size-select button {
  width: 36px;
  height: 32px;
}

.size-select button.is-selected,
.add-button:hover,
.icon-button:hover,
.qty-button:hover {
  background: var(--ink);
  color: var(--bg);
}

.add-button {
  width: 100%;
  min-height: 42px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  background: rgba(5, 5, 5, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  background: rgba(5, 5, 5, 0.62);
}

.cart-panel {
  width: min(100vw, 420px);
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 220ms ease;
  overflow: hidden;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.has-modal {
  overflow: hidden;
}

.cart-head,
.cart-foot,
.cart-line {
  padding: 18px;
}

.cart-head {
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 2rem;
}

.icon-button {
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
}

.cart-items {
  grid-row: 2;
  overflow: auto;
  min-height: 0;
}

.cart-line {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-line-title,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-transform: uppercase;
}

.cart-line-title strong,
.total-row strong {
  white-space: nowrap;
}

.cart-summary-line {
  color: var(--muted);
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.qty-button {
  width: 28px;
  height: 28px;
}

.cart-empty {
  grid-row: 2;
  align-self: start;
  padding: 18px;
  color: var(--muted);
  text-transform: uppercase;
}

.cart-foot {
  grid-row: 3;
  border-top: 1px solid var(--line);
}

.checkout-button {
  width: 100%;
}

.cart-foot p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.cart-foot .checkout-error {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

.site-footer button:hover,
.site-footer a:hover {
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.9);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  padding: 18px;
  background: rgba(0, 0, 0, 0.86);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.legal-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.legal-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--bg);
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-head h2 {
  font-size: clamp(2rem, 7vw, 4rem);
}

.legal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.legal-body h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.legal-body p {
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.5;
}

.legal-body a {
  color: var(--ink);
}

.lightbox figure {
  width: min(980px, calc(100vw - 164px));
  height: min(84vh, 920px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #000;
  filter: grayscale(1) contrast(1.08);
}

.lightbox figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.lightbox button {
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.8);
  color: var(--ink);
  font-family: "Archivo Black", Impact, sans-serif;
}

.lightbox button:hover {
  background: var(--ink);
  color: var(--bg);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  width: 48px;
  height: 72px;
  font-size: 3rem;
  line-height: 1;
}

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

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

  .hero-art {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    height: 58px;
  }

  nav {
    gap: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    min-height: 62vh;
    padding: 40px 16px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.55rem);
    line-height: 0.9;
  }

  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .cart-panel {
    width: 100vw;
    border-left: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
  }

  .product-photo-1 {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .product-photo {
    aspect-ratio: 1;
  }

  .lightbox {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .lightbox figure {
    width: min(100vw - 112px, 760px);
    height: 76vh;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 38px;
    height: 58px;
    font-size: 2.2rem;
  }
}
