/* Stay Cool and Stay Cool — shared label frame.
   Deliberately minimal, monochrome, and deadpan so each product page
   underneath can carry its own visual identity without being fought
   for attention. Loaded BEFORE the product-specific stylesheet on
   every page so product styles can layer over the resets.
*/

:root {
  --sc-bg:    #0a0a0a;
  --sc-fg:    #e8e4df;
  --sc-dim:   #888;
  --sc-faint: #2a2a2a;
  --sc-line:  #1f1f1f;
  --sc-mono:  "JetBrains Mono", "Menlo", ui-monospace, monospace;
  --sc-sans:  -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --sc-accent:      #7fa6b5;  /* desaturated steel-ice — cold, restrained */
  --sc-cartridge:   #d43040;  /* Cartridge's hot red (hover only) */
  --sc-freaks:      #d8821e;  /* Little Freaks' carnival orange (hover only) */
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;      /* no rubber-band bounce / scroll chaining */
  background: var(--sc-bg);        /* dark gutter instead of a white flash */
}
body { margin: 0; background: var(--sc-bg); color: var(--sc-fg); font-family: var(--sc-sans); overscroll-behavior: none; }

/* ───── label bar (sits above any product page) ───── */
.label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  background: var(--sc-bg);
  border-bottom: 1px solid var(--sc-line);
  font-family: var(--sc-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  position: sticky;
  top: 0;
  z-index: 100;
}

.label-bar .wordmark {
  color: var(--sc-fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.label-bar .wordmark .ampersand {
  color: var(--sc-dim);
  font-weight: 400;
  margin: 0 0.25em;
}

.label-bar nav {
  display: flex;
  gap: 1.4rem;
}

.label-bar nav a {
  color: var(--sc-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.label-bar nav a:hover { color: var(--sc-fg); }

/* ───── label footer ───── */
.label-footer {
  border-top: 1px solid var(--sc-line);
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sc-mono);
  font-size: 0.72rem;
  color: var(--sc-dim);
  letter-spacing: 0.08em;
  background: var(--sc-bg);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.label-footer a { color: var(--sc-dim); text-decoration: none; }
.label-footer a:hover { color: var(--sc-fg); }

/* ───── label home page ───── */
.label-home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.label-home .hero {
  position: relative;
  padding: 3rem 0 5rem;
  margin-bottom: 0;
  overflow: hidden;
}

/* Oversized ghost wordmark drifting behind the hero copy */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
  font-family: var(--sc-mono);
  font-weight: 700;
  font-size: clamp(7rem, 24vw, 22rem);
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--sc-line);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-50%) translateX(-3%); }
  to   { transform: translateY(-50%) translateX(3%); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--sc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sc-accent);
  margin-bottom: 1.6rem;
  padding-left: 2px;
}

.label-home h1 {
  font-family: var(--sc-mono);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
  font-weight: 700;
}

.hero-accent {
  position: relative;
  color: var(--sc-fg);
}
.hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.02em;
  width: 100%;
  height: 2px;
  background: var(--sc-accent);
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-sweep 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

@keyframes underline-sweep {
  to { transform: scaleX(1); }
}

.label-home .tagline {
  font-size: 1.05rem;
  color: var(--sc-dim);
  max-width: 38em;
  line-height: 1.6;
  margin: 0;
}

/* ───── colour aurora (home only) — cold label, hot products ───── */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 55% at 22% 18%, rgba(90, 130, 150, 0.13), transparent 72%),
    radial-gradient(45% 50% at 85% 75%, rgba(70, 95, 120, 0.10), transparent 74%);
  filter: blur(50px);
  animation: aurora-drift 34s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

/* keep page content above the aurora */
.label-bar, .label-home, .label-footer { position: relative; z-index: 1; }

/* ───── film grain overlay (home only) ───── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.5s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-2%, 1%); }
}

/* ───── marquee ticker ───── */
.marquee {
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  overflow: hidden;
  padding: 0.9rem 0;
  margin-bottom: 5rem;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--sc-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--sc-dim);
  will-change: transform;
  animation: marquee 40s linear infinite;
}

.marquee-track .dot { color: var(--sc-accent); font-weight: 400; opacity: 0.7; }

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

/* Editorial section numbers */
.sec-num {
  color: var(--sc-accent);
  margin-right: 0.5em;
  font-weight: 400;
}

/* Per-product accent glow on the cards */
.product-card[data-accent="cartridge"]:hover {
  border-color: var(--sc-cartridge);
  box-shadow: 0 0 0 1px var(--sc-cartridge), 0 18px 40px -22px var(--sc-cartridge);
}
.product-card[data-accent="cartridge"]:hover .product-thumb { color: var(--sc-cartridge); }

.product-card[data-accent="freaks"] .product-thumb { color: var(--sc-freaks); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-watermark, .marquee-track, .grain, .hero-accent,
  .hero-accent::after, .aurora { animation: none; }
  .hero-accent::after { transform: scaleX(1); }
}

.label-home h2 {
  font-family: var(--sc-mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sc-dim);
  margin: 0 0 1.8rem;
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-bottom: 5rem;
}

.product-card {
  display: block;
  background: var(--sc-faint);
  border: 1px solid var(--sc-line);
  border-radius: 4px;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--sc-dim);
  background: #131313;
  transform: translateY(-2px);
}

.product-card.coming-soon { cursor: default; opacity: 0.55; }
.product-card.coming-soon:hover { transform: none; border-color: var(--sc-line); background: var(--sc-faint); }

.product-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sc-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--sc-bg);
  color: var(--sc-fg);
  border-bottom: 1px solid var(--sc-line);
}

.product-card h3 {
  font-family: var(--sc-mono);
  font-size: 1.1rem;
  margin: 1.4rem 1.4rem 0.6rem;
  font-weight: 700;
}

.product-card p {
  margin: 0 1.4rem 1rem;
  color: var(--sc-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  min-height: 3em;
}

.product-status {
  display: block;
  font-family: var(--sc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-fg);
  padding: 0.6rem 1.4rem 1.2rem;
}

.product-card.coming-soon .product-status { color: var(--sc-dim); }

.about p {
  color: var(--sc-dim);
  line-height: 1.7;
  max-width: 40em;
  font-size: 0.98rem;
}

@media (max-width: 700px) {
  .label-bar { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.6rem; font-size: 0.7rem; }
  .label-bar nav { gap: 1rem; }
  .label-home { padding: 3rem 1.5rem 2rem; }
  .label-home .hero { padding-bottom: 3rem; margin-bottom: 3rem; }
  .label-footer { padding: 1rem 1.5rem; }
}

/* Footer legal links (shared) */
.legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.legal-links a { font-size: 0.85rem; opacity: 0.75; }
