/* colonelpanic.tech cyber theme layer.
   Linked after the inline styles in index.php, so equal-specificity rules here win.
   The host cache ignores query strings, so this file and ascii-wordmark are versioned
   in their FILENAMES: rename both the file and its reference in index.php on every change.
   blog-styles.css loads again at the end of <body>; rules that compete with it are
   prefixed with #blog. */

:root {
  --cp-cyan: #00e5ff;
  --cp-pink: #ff2bd6;
  --cp-amber: #ffab00;
  --cp-line: rgba(255, 255, 255, 0.17);
  --cp-display: 'Zen Dots', 'Chakra Petch', sans-serif;   /* one weight only: never ask it for bold */
  --cp-head: 'Chakra Petch', 'Segoe UI', sans-serif;
  --cp-mono: 'Menlo', 'Monaco', 'Consolas', 'DejaVu Sans Mono', monospace;

  --bg-primary: #000;
  --bg-secondary: #000;
  --bg-accent: #0b0b0d;
  --text-primary: #f4f4f7;
  --text-secondary: #c6c9d4;
  --accent-blue: var(--cp-cyan);
  --accent-purple: var(--cp-pink);
  --accent-pink: var(--cp-pink);
  --accent-cyan: var(--cp-cyan);
  --accent-green: var(--cp-cyan);
  --border-color: var(--cp-line);
}

::selection { background: var(--cp-pink); color: #000; }

/* ---------- page ground: pure black, with the ASCII art drifting across it ----------
   The art is white ink on black; a pink > purple > blue gradient slides over it in
   multiply, so the ink takes the colour and the black stays black. Both motions are
   transforms, so nothing repaints per frame. */
body {
  background: #000;
  animation: none;
}
body::before { content: none; }
.ascii-ground,
.hero-art {
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.ascii-ground { will-change: transform; }
.ascii-ground i,
.hero-art i {
  position: absolute;
  top: 0;
  left: 0;
  width: 175%;
  height: 100%;
  /* Repeating pink > purple > blue > purple > pink bands, each 75% of the art wide;
     sliding by exactly one band loops. Kept to 175% so the layer stays small. */
  background: repeating-linear-gradient(90deg, #ff2bd6 0, #b05cff 10.714%, #3d82ff 21.429%, #b05cff 32.143%, #ff2bd6 42.857%);
  mix-blend-mode: multiply;
  animation: cpHueSlide 22s linear infinite;
  will-change: transform;
}
@keyframes cpHueSlide { to { transform: translate3d(-42.857%, 0, 0); } }
/* Same size and the same slow four-corner tour the original background made
   (150% wide, 10% > 90% positions, 180s). */
.ascii-ground {
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 146.7vw;
  margin: -73.35vw 0 0 -75vw;
  background: #000 url('ascii-bg.png?v=20261011') center / 100% 100% no-repeat;
  opacity: 0.75;
  animation: cpDrift 180s linear infinite;
}
@keyframes cpDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(20vw, calc(58.7vw - 40vh), 0); }
  50% { transform: translate3d(-20vw, calc(40vh - 58.7vw), 0); }
  75% { transform: translate3d(20vw, calc(40vh - 58.7vw), 0); }
}

/* ---------- grime: scanlines and a vignette, then film grain that shivers ---------- */
body::after,
html::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 9990;   /* over the page, under the cart drawer */
}
body::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 62%, rgba(0, 0, 0, 0.36) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
}
html::after {
  inset: -80px;
  /* Sparse light specks only, so black stays black between them. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.5 0 0 0 -.74'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.3;
  animation: cpGrain 0.7s steps(1) infinite;
}
@keyframes cpGrain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-37px, 23px, 0); }
  40%  { transform: translate3d(29px, -41px, 0); }
  60%  { transform: translate3d(-53px, -17px, 0); }
  80%  { transform: translate3d(43px, 51px, 0); }
}

/* ---------- top bar ---------- */
header {
  background: #000;
  border-bottom: 1px solid var(--cp-line);
  padding: 0.6rem 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-content { padding: 0 clamp(0.9rem, 2.6vw, 2.2rem); }
.brand {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(0.92rem, 1.3vw, 1.15rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  text-shadow: -1px 0 0 var(--cp-cyan), 1px 0 0 var(--cp-pink);
}
.brand-tld { color: var(--cp-pink); text-shadow: 0 0 12px rgba(255, 43, 214, 0.7); }
nav ul { gap: 0.15rem; align-items: center; }
nav a {
  color: #fff;
  font-family: var(--cp-head);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0;
}
nav a::before { display: none; }
nav a::after { bottom: 0; background: var(--cp-pink); }
nav a:hover {
  color: var(--cp-cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.75);
  transform: none;
  box-shadow: none;
}
.cart-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  color: #fff;
}
.cart-nav-btn:hover {
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}
.cart-count {
  background: var(--cp-pink);
  color: #000;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.7);
}

/* ---------- hero: a compact plate, not a poster ---------- */
.hero {
  padding: 0;
  text-align: left;
  background: #000;
  border-bottom: 1px solid var(--cp-line);
}
.hero::before,
.hero::after { content: none; }
.hero-stage {
  --frame-inset: clamp(6px, 0.8vw, 12px);
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 1.5vw, 1.4rem) clamp(1.1rem, 1.7vw, 1.6rem) clamp(0.9rem, 1.3vw, 1.2rem);
}
/* Inside the frame only: neon through smog (magenta from one corner, sodium amber along
   the floor) with the ASCII art over it. Outside the frame the page is plain black. */
.hero-clip {
  position: absolute;
  inset: var(--frame-inset);
  z-index: 1;
  overflow: hidden;   /* the art pans and zooms; nothing of it may show outside the frame */
  pointer-events: none;
  background:
    radial-gradient(55% 120% at 6% 115%, rgba(255, 43, 214, 0.22), transparent 70%),
    linear-gradient(0deg, rgba(255, 140, 0, 0.13), transparent 55%);
}
.hero-art {
  position: absolute;
  inset: 0;
  background: #000 url('ascii-hero.png?v=20261011') center / cover no-repeat;
  mix-blend-mode: screen;   /* its black must not hide the haze behind it */
  opacity: 0.8;
  animation: cpHeroArt 240s ease-in-out infinite;
}
/* The pan-and-zoom the hero art has always had. */
@keyframes cpHeroArt {
  0%, 100% { transform: scale(1) translate(0, 0); }
  20% { transform: scale(1.8) translate(10%, 8%); }
  40% { transform: scale(1.3) translate(-12%, 10%); }
  60% { transform: scale(2.2) translate(-8%, -10%); }
  80% { transform: scale(1.5) translate(9%, -8%); }
}
.hero-frame {
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 2;
}
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
}
.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cp-cyan);
  border-left: 2px solid var(--cp-cyan);
}
.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cp-pink);
  border-bottom: 2px solid var(--cp-pink);
}
.hero-inner {
  position: relative;
  z-index: 3;
}
.hero-hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(0.7rem, 1.2vw, 1.1rem);
  font-family: var(--cp-mono);
  text-transform: uppercase;
}
.hero .hud-lede {
  max-width: 27rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.7rem;
  line-height: 2;
  letter-spacing: 0.22em;
  text-shadow: none;
  color: #fff;
}
.hud-chip {
  display: inline-block;
  margin-right: 0.7em;
  padding: 0.05em 0.6em;
  background: var(--cp-cyan);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hud-lede b { color: var(--cp-pink); font-weight: 400; }
.hud-side {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  width: min(520px, 54%);
}
.hud-plate { flex: 1; min-width: 0; }
.hud-plate-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #fff;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}
.hud-bars {
  font-family: var(--cp-mono);
  font-size: 0.85rem;
  letter-spacing: -0.06em;
  color: var(--cp-cyan);
  white-space: nowrap;
}
.hud-plate dl {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}
.hud-plate dt,
.hud-plate dd {
  margin: 0;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.hud-plate dt { color: var(--cp-cyan); }
.hud-plate dd { color: #fff; }
/* Wide screens: the plate lies flat, two readings to a row, so the corner block is short. */
@media (min-width: 1180px) {
  .hud-side { width: auto; }
  .hud-plate dl { grid-template-columns: auto auto auto auto; column-gap: 1.1rem; }
  .hud-plate dd { padding-right: 0.9rem; white-space: nowrap; }
  .hud-plate dd:nth-of-type(even) { padding-right: 0; }
}
.hud-arrow {
  flex: none;
  width: clamp(40px, 4vw, 58px);
  height: auto;
  fill: #fff;
  filter: drop-shadow(3px 0 0 var(--cp-pink)) drop-shadow(-3px 0 0 var(--cp-cyan));
}

/* The real heading stays in the DOM for readers and search; it only shows if the canvas never starts. */
.hero-mark { position: relative; }
.hero h1 {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  filter: none;
  text-shadow: -2px 0 0 var(--cp-cyan), 2px 0 0 var(--cp-pink);
  opacity: 0;
  animation: cpFallbackTitle 0.01s linear 5s forwards;
}
@keyframes cpFallbackTitle { to { opacity: 1; } }
.hero.wm-ready h1 {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  animation: none;
}
.ascii-wordmark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 19 / 1;
  filter: drop-shadow(0 0 12px rgba(176, 92, 255, 0.5));
}
/* Phones: the logo stacks into a two-line block and gets a harder glow so it carries the header. */
@media (max-width: 559px) {
  .ascii-wordmark {
    aspect-ratio: 9 / 2;
    filter: drop-shadow(0 0 3px rgba(61, 130, 255, 0.7)) drop-shadow(0 0 12px rgba(255, 43, 214, 0.6));
  }
}

.hero-ticker {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  background: var(--cp-cyan);
  color: #000;
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
/* Two identical runs side by side; sliding one run's width loops seamlessly. */
.hero-ticker-track {
  display: inline-flex;
  will-change: transform;
  animation: cpTicker 64s linear infinite;
}
.hero-ticker:hover .hero-ticker-track,
.hero-ticker:focus-within .hero-ticker-track { animation-play-state: paused; }
.hero-ticker-run { display: inline-flex; align-items: center; }
.hero-ticker a {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.55rem 0.6em 0.5rem;
  color: #000;
  text-decoration: none;
  font-size: inherit;
  letter-spacing: inherit;
  border: 0;
  border-radius: 0;
}
.hero-ticker a::after { content: none; }
.hero-ticker a b {
  padding: 0.28em 0.55em 0.2em;
  background: #000;
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
.hero-ticker a:hover,
.hero-ticker a:focus-visible {
  background: #000;
  color: var(--cp-cyan);
  text-shadow: none;
  outline: none;
}
.hero-ticker a:hover b,
.hero-ticker a:focus-visible b { background: var(--cp-cyan); color: #000; }
.hero-ticker a.tick-alt {
  padding: 0.3em 0.7em 0.22em;
  border: 1px solid #000;
  font-family: var(--cp-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.hero-ticker i { padding: 0 0.9em; font-style: normal; opacity: 0.45; }
@keyframes cpTicker { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- section headings ---------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--cp-line);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: left;
  color: #fff;
  text-shadow: -2px 0 0 var(--cp-cyan), 2px 0 0 var(--cp-pink);
}
.section-title::before { content: none; }
.section-title::after {
  content: '';
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.1));
  text-shadow: none;
}
#partners .section-title { opacity: 1; font-size: 1.3rem; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: #000;
  border: 1px solid var(--cp-line);
  border-radius: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 4;
}
.card::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--cp-pink);
  border-left: 2px solid var(--cp-pink);
}
.card::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--cp-cyan);
  border-bottom: 2px solid var(--cp-cyan);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cp-cyan);
  box-shadow: 0 0 0 1px var(--cp-cyan), 0 0 36px rgba(0, 229, 255, 0.24);
}
.card h3 {
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.product-image,
.image-overlay,
.gallery-item { border-radius: 0; }
.product-image { border: 1px solid var(--cp-line); }
/* Photo frames. The photo sits in a wrapper with no height, so it renders at its natural height
   and a fixed-height frame left an empty band under it whenever the card was narrow (phones,
   tablets, and the mesh-detect board at every width). The frame now hugs the photo and only
   caps it: same crop as before on wide cards, no band on narrow ones. */
.product-image { height: auto; max-height: 280px; }
.product-image-link { line-height: 0; }
.product-img { display: block; }
.mesh-detect-slot { height: auto; max-height: none; }
.feature strong,
.card p strong { color: var(--cp-cyan); }
.card p code,
.feature code {
  padding: 0.05em 0.35em;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.88em;
}
.price {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cp-amber);
  text-shadow: 0 0 20px rgba(255, 171, 0, 0.45);
}

/* ---------- web flasher button: flat graphic, poster-style ----------
   A slanted block of solid colour carrying the label in the logo face, a sparkle on its
   leading edge, then two lines of small technical caption on black. No glow, no gradient,
   no motion; hover just swaps the block's colour. */
.btn-flash {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin: 0.35rem 0 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  overflow: hidden;   /* trims the slanted block flush with the left edge */
  transition: border-color 0.15s ease;
}
.btn-flash-label {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: -0.7rem;
  padding: 0 1.3rem 0 1.65rem;
  background: var(--cp-pink);
  color: #000;
  font-family: var(--cp-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(-14deg);
  transition: background-color 0.15s ease;
}
.btn-flash-label::after {   /* four-point sparkle, stood back upright */
  content: '';
  position: absolute;
  top: 4px;
  right: -8px;
  width: 15px;
  height: 15px;
  background: #fff;
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
  transform: skewX(14deg);
}
.btn-flash-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.34rem;
  min-width: 0;
  padding: 0.66rem 0.4rem 0.6rem 1.05rem;
  font-family: var(--cp-mono);
  text-transform: uppercase;
}
.btn-flash-note { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; color: #fff; }
.btn-flash-meta { font-size: 0.56rem; letter-spacing: 0.17em; color: #8f8c9e; }
.btn-flash-go {
  flex: none;
  align-self: center;
  width: 0.72rem;
  height: 0.72rem;
  margin: 0 0.9rem 0 0.7rem;
  color: #fff;
  transition: transform 0.15s ease, color 0.15s ease;
}
.btn-flash:hover,
.btn-flash:focus-visible { border-color: var(--cp-cyan); }
.btn-flash:hover .btn-flash-label,
.btn-flash:focus-visible .btn-flash-label { background: var(--cp-cyan); }
.btn-flash:hover .btn-flash-go,
.btn-flash:focus-visible .btn-flash-go { transform: translate(2px, -2px); color: var(--cp-cyan); }
.btn-flash:focus-visible { outline: 2px solid var(--cp-pink); outline-offset: 3px; }
/* The plate spans its card (capped) and is a size container, so the caption drops under the
   label whenever the CARD is narrow (two-up cards on a tablet), not only when the screen is. */
.btn-flash { display: flex; flex-wrap: wrap; max-width: 500px; container-type: inline-size; }
.btn-flash-text { flex: 1 1 0; }
@container (max-width: 440px) {
  .btn-flash-label { padding-top: 0.6rem; padding-bottom: 0.55rem; font-size: 0.88rem; }
  .btn-flash-text { flex: 1 1 60%; padding-left: 0.85rem; }
}
@media (max-width: 480px) {   /* same stack for browsers without container queries */
  .btn-flash-label { padding-top: 0.6rem; padding-bottom: 0.55rem; font-size: 0.88rem; }
  .btn-flash-text { flex: 1 1 60%; padding-left: 0.85rem; }
}

/* Links inside a feature line (firmware repos, flashers). */
.feature a {
  color: var(--cp-pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 43, 214, 0.45);
}
.feature a:hover,
.feature a:focus-visible { color: var(--cp-cyan); border-bottom-color: currentColor; }

/* ---------- buttons ---------- */
/* Product actions, in the same flat slanted language as the flasher button.
   Add to Cart is the loud one: a solid cyan slab with the logo face, a black "+" cell and
   a hard pink offset shadow it presses into on hover. The repo link is the quiet one: a
   hairline outline. Both stay plain text inside, because the cart script rewrites the
   button's text ("Added"), so every extra part is drawn with pseudo-elements. */
.links { align-items: center; gap: 1.5rem 1.6rem; padding: 0 0.5rem 0.45rem 0.35rem; }
.btn-link {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  color: #cfccdd;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 0.82rem 1.15rem;
  cursor: pointer;
  transform: skewX(-12deg);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
a.btn-link::after { content: ' \2197'; }
.btn-link:hover,
.btn-link:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: #fff;
  color: #fff;
  transform: skewX(-12deg);
  box-shadow: none;
}
.btn-buy {
  padding: 1rem 4.1rem 0.94rem 1.5rem;
  background: var(--cp-cyan);
  color: #000 !important;
  border: 0;
  font-family: var(--cp-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  box-shadow: 5px 5px 0 var(--cp-pink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-buy::after {
  content: '+';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.9rem;
  display: grid;
  place-items: center;
  background: #000;
  box-shadow: inset 0 0 0 2px var(--cp-cyan);
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 1.35rem;
  font-weight: 700;
  transition: color 0.12s ease, box-shadow 0.12s ease;
}
.btn-buy:hover,
.btn-buy:focus-visible {
  background: #fff;
  color: #000 !important;
  transform: skewX(-12deg) translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--cp-pink);
}
.btn-buy:hover::after,
.btn-buy:focus-visible::after { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-buy:focus-visible,
.btn-link:focus-visible { outline: 2px solid var(--cp-pink); outline-offset: 4px; }
/* The moment after a click: the slab goes pink and the cell shows a tick. */
.btn-add-to-cart.added { background: var(--cp-pink) !important; color: #000 !important; box-shadow: 5px 5px 0 var(--cp-cyan); }
.btn-add-to-cart.added::after { content: '\2713'; color: var(--cp-pink); box-shadow: inset 0 0 0 2px var(--cp-pink); }
.btn-sold-out { border-radius: 0; }
.product-card.sold-out .sold-out-overlay .sold-out-tag {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 20px;
  border-radius: 0;
  background: #000;
}

/* ---------- specs / about / connect ---------- */
.spec-list li {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  column-gap: 1rem;
  align-items: baseline;
}
.spec-list strong {
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skills li {
  background: #000;
  border: 1px solid var(--cp-line);
  border-left: 3px solid var(--cp-cyan);
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skills li:nth-child(even) { border-left-color: var(--cp-pink); }
.social-link {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  color: #fff;
  font-family: var(--cp-head);
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.9rem 1.4rem;
}
.social-link:hover {
  background: var(--cp-pink);
  border-color: var(--cp-pink);
  color: #000;
  box-shadow: 0 0 26px rgba(255, 43, 214, 0.5);
}
footer {
  background: #000;
  border-top: 1px solid var(--cp-line);
  font-family: var(--cp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- videos ---------- */
.video-stage {
  border: 1px solid var(--cp-cyan);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 70px rgba(255, 43, 214, 0.2);
}
.video-arrow {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
}
.video-arrow:hover {
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}
.video-dot {
  width: 22px;
  height: 5px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.35);
}
.video-dot.active {
  background: var(--cp-cyan);
  border-color: var(--cp-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

/* ---------- articles (rendered by blog-manager.js) ---------- */
#blog .featured-post {
  background: #000;
  border: 1px solid var(--cp-line);
  border-radius: 0;
}
#blog .featured-post::before { display: none; }
#blog .featured-post:hover {
  transform: translateY(-4px);
  border-color: var(--cp-pink);
  box-shadow: 0 0 0 1px var(--cp-pink), 0 0 36px rgba(255, 43, 214, 0.26);
}
#blog .featured-image {
  border-radius: 0;
  border-bottom: 1px solid var(--cp-line);
}
#blog .featured-post-content { padding: 1.5rem; }
#blog .featured-meta { gap: 0.7rem; margin-bottom: 1.1rem; }
#blog .featured-category {
  background: var(--cp-pink);
  color: #000;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
}
#blog .featured-date {
  font-family: var(--cp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#blog .featured-author {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#blog .featured-author.author-colonelpanic {
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
}
#blog .featured-post-title {
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#blog .featured-post-title a,
#blog .featured-post-title a:hover {
  background: none;
  -webkit-text-fill-color: currentColor;
}
#blog .featured-post-title a { color: #fff; }
#blog .featured-post-title a:hover {
  color: var(--cp-cyan);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}
#blog .featured-excerpt { font-size: 0.94rem; color: var(--text-secondary); opacity: 1; }
#blog .featured-tag,
#blog .blog-tags .tag {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 0;
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#blog .featured-link {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-family: var(--cp-mono);
  font-size: 0.76rem;
}
#blog .featured-link:hover {
  background: var(--cp-cyan);
  border-color: var(--cp-cyan);
  color: #000;
  transform: none;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}
#blog .blog-controls {
  background: #000;
  border: 1px solid var(--cp-line);
  border-radius: 0;
}
#blog .tag-filter {
  background: transparent;
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#blog .tag-filter:hover {
  background: transparent;
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
  transform: none;
}
#blog .tag-filter.active {
  background: var(--cp-cyan);
  border-color: var(--cp-cyan);
  color: #000;
}
#blog .more-articles-header { text-align: left; }
#blog .more-articles-title {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff;
}
#blog .more-articles-title::before {
  content: '//';
  color: var(--cp-pink);
  text-shadow: none;
}
#blog .more-articles-title::after { content: none; }
#blog .blog-post {
  background: #000;
  border: 1px solid var(--cp-line);
  border-left: 3px solid var(--cp-pink);
  border-radius: 0;
}
#blog .blog-post:hover {
  transform: translateX(4px);
  border-left-color: var(--cp-cyan);
  box-shadow: -6px 0 26px rgba(0, 229, 255, 0.22);
}
#blog .blog-post h3 {
  font-family: var(--cp-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#blog .blog-post h3 a:hover { color: var(--cp-cyan); }
#blog .blog-category,
#blog .blog-author {
  border-radius: 0;
  font-family: var(--cp-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#blog .blog-category {
  align-self: flex-start;
  background: var(--cp-pink);
  border-color: var(--cp-pink);
  color: #000;
}

/* ---------- tech reviews (cards carry inline styles, hence !important) ---------- */
.tech-reviews-grid > div {
  position: relative;
  background: #000 !important;
  border: 1px solid var(--cp-line) !important;
  border-radius: 0 !important;
}
.tech-reviews-grid > div:hover {
  transform: translateY(-4px);
  border-color: var(--cp-cyan) !important;
  box-shadow: 0 0 0 1px var(--cp-cyan), 0 0 36px rgba(0, 229, 255, 0.24);
}
.tech-reviews-grid > div > div:first-child {
  background: #050506 !important;
  border-bottom: 1px solid var(--cp-line);
}
.tech-reviews-grid > div > div:first-child span {
  border-radius: 0 !important;
  font-family: var(--cp-mono) !important;
  font-size: 0.68rem !important;
  box-shadow: none !important;
}
.tech-reviews-grid > div > div:first-child span[style*="linear-gradient"] {
  background: var(--cp-cyan) !important;
  color: #000 !important;
}
.tech-reviews-grid img[src*="m5stack-logo"] {
  padding: 0.9rem 1.3rem;
  background: #fff;
  border-radius: 0 !important;
}
.tech-reviews-grid h3 {
  font-family: var(--cp-head) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tech-reviews-grid span[style*="ff69b4"] {
  color: var(--cp-pink) !important;
  font-family: var(--cp-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tech-reviews-grid a[style*="linear-gradient"] {
  display: inline-block;
  background: transparent !important;
  border: 1px solid #fff;
  border-radius: 0 !important;
  color: #fff !important;
  font-family: var(--cp-mono) !important;
}
.tech-reviews-grid a[style*="linear-gradient"]:hover {
  background: var(--cp-cyan) !important;
  border-color: var(--cp-cyan);
  color: #000 !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

/* ---------- cart drawer ---------- */
.cart-drawer {
  background: #000;
  border-left: 1px solid var(--cp-pink);
  box-shadow: none;
}
.cart-drawer.open { box-shadow: -4px 0 50px rgba(255, 43, 214, 0.3); }
.cart-drawer-header,
.cart-drawer-footer { background: #000; }
.cart-drawer-title,
.cart-back-link,
.cart-empty-ascii,
.cart-item-line-total,
.cart-total-amt { color: var(--cp-cyan); }
.cart-drawer-title,
.cart-empty-ascii { text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }
.cart-total-amt {
  color: var(--cp-amber);
  text-shadow: 0 0 12px rgba(255, 171, 0, 0.5);
}
.cart-drawer-close,
.cart-qty-btn,
.cart-address-input,
.cart-address-select { border-radius: 0; }
.cart-address-input,
.cart-address-select { background: #000; }
/* Discount code box in the checkout view. The page only shows it for carts that hold an
   eligible device; the code itself is checked on the server and never appears here. */
.cart-promo { margin: 0 0 0.75rem; }
.cart-promo-row { display: flex; gap: 0.45rem; }
.cart-promo-row .cart-address-input {
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cart-promo-row .cart-address-input[readonly] { border-color: var(--cp-cyan); color: var(--cp-cyan); }
.cart-promo-btn {
  flex: none;
  min-width: 5.4rem;
  padding: 0 0.9rem;
  background: transparent;
  border: 1px solid var(--cp-cyan);
  border-radius: 0;
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cart-promo-btn:hover:not([disabled]),
.cart-promo-btn:focus-visible { background: var(--cp-cyan); color: #000; outline: none; }
.cart-promo-btn[disabled] { opacity: 0.5; cursor: default; }
.cart-promo-msg {
  min-height: 1.1em;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #ff5c5c;
}
.cart-promo-msg.ok { color: var(--cp-cyan); }
.cart-summary-discount { opacity: 1; }
.cart-summary-discount .cart-summary-label,
.cart-summary-discount .cart-summary-amt { color: var(--cp-pink); }

/* Checkout on phones. */
/* Pinned top and bottom instead of 100vh tall: on phone browsers 100vh is the screen WITHOUT
   the browser toolbars, which pushed the bottom of the drawer (the Pay button) under them. */
.cart-drawer { height: auto; bottom: 0; }
/* 16px fields: iPhones zoom the whole page whenever a field with smaller text is tapped. */
@media (max-width: 768px), (pointer: coarse) {
  .cart-address-input,
  .cart-address-select { font-size: 16px; }
  .cart-promo-row { min-height: 44px; }
}
/* Narrow or short screens (phones, landscape, an in-app browser with the keyboard open): the
   checkout scrolls as ONE column, address then discount code then totals then Pay, instead
   of squeezing the form into whatever is left above a pinned footer. When everything fits,
   the footer still sits at the bottom of the screen. */
#cart-view-address {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#cart-view-address .cart-drawer-body { flex: 1 0 auto; overflow: visible; }
#cart-view-address .cart-drawer-footer { flex: none; }

/* On-page payment methods under the totals. Every button is black with a hairline frame that
   lights up cyan on hover, like the rest of the site; PayPal, Apple and Google draw the buttons
   themselves in their own frames, so these rules only frame, size and space them. */
#cart-view-address .cart-drawer-body { flex: 0 0 auto; padding-bottom: 0.4rem; }   /* no stretch gap above the totals */
#cart-view-address .cart-promo { margin-bottom: 0.2rem; }
#cart-view-address .cart-promo-msg:empty { min-height: 0; margin-top: 0; }
.cart-pay { margin-top: 0.85rem; }
.cart-pay [hidden] { display: none !important; }
.cart-pay-title { margin: 0 0 0.65rem; }
.cart-pay-loading {
  padding: 0.75rem 0;
  font-family: var(--cp-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-cyan);
  opacity: 0.75;
}
.cart-pay-loading::after { content: '...'; animation: cpPayDots 1.2s steps(4, end) infinite; display: inline-block; width: 1.6em; overflow: hidden; vertical-align: bottom; }
@keyframes cpPayDots { from { width: 0; } to { width: 1.6em; } }
#cart-pay-paypal { display: flex; flex-direction: column; gap: 0.55rem; }
.cart-pay-wallet,
.cart-pay-btn-slot {
  position: relative;
  box-sizing: border-box;
  height: 45px;           /* 43px button inside a 1px frame */
  overflow: hidden;
  border: 1px solid rgba(138, 43, 226, 0.55);
  background: #000;
  line-height: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cart-pay-wallet { margin-bottom: 0.55rem; }
.cart-pay-wallet:hover,
.cart-pay-btn-slot:hover {
  border-color: var(--cp-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}
.cart-pay-btn-slot > div { margin: 0 !important; }
.cart-pay-wallet apple-pay-button {
  display: block;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 43px;
  --apple-pay-button-border-radius: 0;
}
.cart-pay-wallet > div,
.cart-pay-wallet button { width: 100%; height: 100%; border-radius: 0 !important; }
.cart-pay-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.05rem 0 0.85rem;
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8f8c9e;
}
.cart-pay-or::before,
.cart-pay-or::after { content: ''; flex: 1; height: 1px; background: rgba(138, 43, 226, 0.35); }
/* PayPal's card inputs sit inside their own frames with a few pixels of built-in margin; pull
   the frames out by that much so the inputs line up with every other field in the drawer. */
.cart-card-field { margin: 0 -7px -2px; }
.cart-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cart-card-row .cart-card-field:first-child { margin-right: 0; }
.cart-card-row .cart-card-field:last-child { margin-left: 0; }
#cart-card-btn { margin-top: 0.75rem; }
#cart-card-btn[disabled] { opacity: 0.6; cursor: wait; }
/* Drawer buttons (Checkout, Pay by card, the PayPal fallback) in the same language as
   Add to Cart: a slanted cyan slab, black Zen Dots, hard pink offset shadow it presses into. */
.cart-checkout-btn {
  width: calc(100% - 6px);
  margin-left: 3px;
  padding: 0.95rem 1rem 0.9rem;
  background: var(--cp-cyan);
  color: #000;
  border: 0;
  border-radius: 0;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewX(-8deg);
  box-shadow: 4px 4px 0 var(--cp-pink);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-checkout-btn:hover:not([disabled]),
.cart-checkout-btn:focus-visible {
  background: #fff;
  transform: skewX(-8deg) translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--cp-pink);
  outline: none;
}
.cart-checkout-btn[disabled] { opacity: 0.4; transform: skewX(-8deg); box-shadow: 4px 4px 0 rgba(255, 43, 214, 0.4); }

/* ---------- cart drawer type: the site's fonts, not a terminal font ---------- */
.cart-drawer { font-family: var(--cp-head); background: #000; }
.cart-drawer-title {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.cart-address-section-label {
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  color: var(--cp-pink);
  opacity: 1;
}
.cart-address-label { font-family: var(--cp-mono); color: #9a97ab; }
.cart-address-input,
.cart-address-select {
  font-family: var(--cp-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #f4f4f7;
}
.cart-address-input::placeholder { color: #5f5b72; }
.cart-promo-row .cart-address-input { font-family: var(--cp-head); font-weight: 600; letter-spacing: 0.16em; }
.cart-promo-btn { font-family: var(--cp-head); font-size: 0.74rem; }
.cart-back-link { font-family: var(--cp-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; }
.cart-summary-row { font-family: var(--cp-head); font-size: 0.92rem; letter-spacing: 0.04em; opacity: 1; color: #cfccdd; }
.cart-summary-amt { font-family: var(--cp-head); font-weight: 600; color: #f4f4f7; }
.cart-total-label { font-family: var(--cp-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.26em; opacity: 1; color: #f4f4f7; }
.cart-total-amt { font-family: var(--cp-display); font-weight: 400; font-size: 1.45rem; }
.cart-item-name { font-family: var(--cp-head); font-weight: 700; letter-spacing: 0.04em; }
.cart-item-unit-price { font-family: var(--cp-mono); }
.cart-ship-note { font-family: var(--cp-mono); }
.cart-promo-msg,
.cart-checkout-error { font-family: var(--cp-mono); }

/* ---------- touch targets ----------
   Thin controls keep their look; an invisible pseudo-element widens the area that takes the tap. */
.brand,
.video-dot { position: relative; }
.brand::before,
.video-dot::before { content: ''; position: absolute; }
.brand::before { inset: -10px -8px; }
.video-dot::before { inset: -14px -4px; }
.hero-ticker a.tick-alt::before { display: block; inset: -10px -4px; background: none; }

/* ---------- small screens ---------- */
/* Between the phone layout and a full desktop the one-row nav is wider than the space beside
   the brand and pushed the whole page sideways (iPad portrait). Tighten it; wrap as a last resort. */
@media (min-width: 769px) and (max-width: 960px) {
  header nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 0 0.1rem; }
  header nav a { font-size: 0.74rem; letter-spacing: 0.12em; padding: 0.5rem 0.45rem; }
  .cart-nav-btn { margin-left: 0.4rem; }
}
@media (max-width: 860px) {
  .hero-hud { flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
  .hud-side { width: 100%; }
  .hud-arrow { display: none; }
}
@media (max-width: 768px) {
  /* On a tall narrow screen the vignette just dims the top and bottom text: scanlines only. */
  body::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px); }
  nav ul { gap: 0.1rem 0.2rem; }
  nav a { font-size: 0.7rem; letter-spacing: 0.12em; padding: 0.55rem 0.5rem; }
  .cart-nav-btn { min-width: 42px; min-height: 36px; }
  /* Touch sizes: the filter chips and the bare search / category fields are too small to hit. */
  #blog .tag-filters { gap: 0.4rem; }
  #blog .tag-filter { padding: 0.5rem 0.75rem; }
  #blog .blog-controls input[type="text"],
  #blog .blog-controls select {
    width: 100% !important;
    min-height: 44px;
    border-bottom: 1px solid var(--cp-line) !important;
  }
  .section { padding: 3.2rem 0; }
  .section-title { gap: 0.7rem; margin-bottom: 1.8rem; }
  .hero-ticker { font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .hud-lede { font-size: 0.64rem; letter-spacing: 0.16em; }
  .hud-plate dl { font-size: 0.62rem; }
  .card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ascii-ground,
  .ascii-ground i,
  .hero-art,
  .hero-art i,
  html::after,
  .hero-ticker-track { animation: none; }
  .hero-ticker { overflow-x: auto; }
}

/* ---------- OUI-SPY Recon teaser card ---------- */
/* The spinning render on pure black. The frame is square and is not capped like the
   other photo frames, so the antennas are never cropped. */
.product-image.recon-slot {
  position: relative;
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  background: #000;
}
.recon-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
/* VCR on-screen display over the Recon spin (the tape look itself is baked into the video). */
.vhs-osd {
  position: absolute;
  font-family: 'VT323', var(--cp-mono);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #f2f2f2;
  text-shadow: 2px 0 0 rgba(255, 43, 214, 0.55), -2px 0 0 rgba(0, 229, 255, 0.5), 0 0 6px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  user-select: none;
}
.vhs-osd-play { top: 0.85rem; right: 1rem; animation: vhsOsdBlink 2.4s steps(1, end) infinite; }
.vhs-osd-time { left: 1rem; bottom: 1.35rem; }
@keyframes vhsOsdBlink { 0%, 86% { opacity: 1; } 87%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .vhs-osd-play { animation: none; } }

/* ---------- OUI-SPY Recon dossier ---------- */
/* Fills the rest of the teaser card (the Patch beside it is much taller on desktop): the
   recoloured mushroom skull with a Yagi antenna for a spine, standing in the deepwoods ASCII
   forest, with VCR-style tags around it. */
.product-card.product-teaser { display: flex; flex-direction: column; }
.recon-dossier {
  position: relative;
  flex: 1 1 auto;
  min-height: 560px;
  margin-top: 1.1rem;
  border: 1px solid rgba(138, 43, 226, 0.45);
  background: #000 url('uploads/products/recon-deepwoods-bg.webp?v=20261107') center 18% / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.recon-dossier::before {   /* fade into the card at the top, ground the figure at the bottom */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.05) 32%, rgba(0, 0, 0, 0.1) 62%, rgba(0, 0, 0, 0.88) 100%);
}
.recon-dossier::after {    /* scanlines, same as the tape above */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.recon-figure {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 52%;
  width: min(56%, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  animation: reconFloat 6s ease-in-out infinite;
}
.recon-skull {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 0 0 rgba(255, 43, 214, 0.55)) drop-shadow(-2px 0 0 rgba(0, 229, 255, 0.45)) drop-shadow(0 0 22px rgba(111, 140, 255, 0.35));
  animation: reconGlitch 5.5s steps(1, end) infinite;
}
.recon-spine {
  display: block;
  width: 42%;
  height: auto;
  margin-top: -9%;
  filter: drop-shadow(0 0 10px rgba(210, 60, 255, 0.45));
}
@keyframes reconFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}
@keyframes reconGlitch {
  0%, 93%, 100% { transform: none; }
  94% { transform: translateX(-4px) skewX(-3deg); }
  95% { transform: translateX(5px); }
  96% { transform: translateX(-2px) skewX(2deg); }
}
.recon-tag {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 46%;
  font-family: 'VT323', var(--cp-mono);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #f2f2f2;
  text-shadow: 2px 0 0 rgba(255, 43, 214, 0.55), -2px 0 0 rgba(0, 229, 255, 0.5);
}
.recon-tag b {
  font-weight: 400;
  color: var(--cp-cyan);
  font-size: 0.82em;
  letter-spacing: 0.16em;
}
.recon-tag b::before { content: '// '; color: var(--cp-pink); }
.recon-tag a { color: var(--cp-pink); text-decoration: none; border-bottom: 1px solid rgba(255, 43, 214, 0.5); }
.recon-tag a:hover,
.recon-tag a:focus-visible { color: var(--cp-cyan); border-bottom-color: currentColor; outline: none; }
.recon-title {
  position: absolute;
  z-index: 2;
  top: 1.1rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 3px 0 0 rgba(255, 43, 214, 0.7), -3px 0 0 rgba(0, 229, 255, 0.65), 0 0 18px rgba(111, 140, 255, 0.45);
  animation: reconGlitch 5.5s steps(1, end) infinite;
}
.recon-tag-tl { top: 4.4rem; left: 1rem; }
.recon-tag-tr { top: 4.4rem; right: 1rem; align-items: flex-end; text-align: right; }
.recon-tag-bl { bottom: 1rem; left: 1rem; }
.recon-tag-br { bottom: 1rem; right: 1rem; align-items: flex-end; text-align: right; }
.recon-tag-tl::after,
.recon-tag-tr::after {     /* thin leader line toward the skull */
  content: '';
  display: block;
  width: 3.2rem;
  height: 1px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, var(--cp-cyan), rgba(0, 229, 255, 0));
}
.recon-tag-tr::after { background: linear-gradient(270deg, var(--cp-cyan), rgba(0, 229, 255, 0)); }
@media (max-width: 480px) {
  .recon-dossier { min-height: 580px; }
  .recon-title { top: 0.95rem; font-size: 1.3rem; }
  .recon-tag-tl, .recon-tag-tr { top: 3.6rem; }
  .recon-figure { width: 50%; top: 55%; }
  .recon-tag { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  .recon-figure, .recon-skull, .recon-title { animation: none; }
}

/* ---------- merch (print on demand, Printify) ----------
   Same card language as the hardware: black card, pink and cyan corner brackets, amber price,
   cyan Add to Cart slab. The mockups come from Printify on a studio-white ground, so the photo
   sits in a lit frame. Pickers are slanted like the buttons; sold-out options are struck. */
.merch-lede {
  margin: -1.4rem 0 2.1rem;
  max-width: 46rem;
  font-family: var(--cp-head);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.merch-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}
.card.merch-card { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.6rem; }
.merch-photo {
  position: relative;
  margin: 0 0 1.15rem;
  background: #030308;
  border: 1px solid var(--cp-line);
  line-height: 0;
  overflow: hidden;
}
.merch-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.merch-sides { position: absolute; left: 10px; bottom: 10px; display: flex; }
.merch-side {
  min-height: 34px;
  padding: 0 0.85rem;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #d6d8e2;
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.merch-side + .merch-side { border-left: 0; }
.merch-side[aria-pressed="true"] { background: var(--cp-cyan); border-color: var(--cp-cyan); color: #000; }
.card.merch-card h3 { margin-bottom: 0.55rem; font-size: 1.22rem; }
.merch-card > p { margin-bottom: 0.75rem; }
.merch-card .features { margin-bottom: 1.05rem; }
.merch-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.15rem; }
.merch-opt { min-width: 0; }   /* the size chart scrolls inside the card instead of widening it */
.merch-opt-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  font-family: var(--cp-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f92a3;
}
.merch-opt-val { color: #fff; letter-spacing: 0.08em; }
.merch-chart-btn {
  margin-left: auto;
  padding: 0.3rem 0;
  background: none;
  border: 0;
  color: var(--cp-cyan);
  font: inherit;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.merch-swatches, .merch-sizes { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.merch-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--sw);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: skewX(-12deg);
  cursor: pointer;
}
.merch-swatch[aria-checked="true"] { outline: 2px solid var(--cp-cyan); outline-offset: 3px; box-shadow: 0 0 16px rgba(0, 229, 255, 0.55); }
.merch-swatch.is-out { opacity: 0.5; }
.merch-swatch.is-out::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--cp-pink);
  transform: translateX(-50%) rotate(45deg);
}
.merch-size {
  min-width: 48px;
  height: 42px;
  padding: 0 0.75rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ececf3;
  font-family: var(--cp-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: skewX(-12deg);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.merch-size:hover:not(:disabled) { border-color: #fff; }
.merch-size[aria-checked="true"] { background: var(--cp-cyan); border-color: var(--cp-cyan); color: #000; box-shadow: 3px 3px 0 var(--cp-pink); }
.merch-size:disabled { color: #5a5c68; border-color: rgba(255, 255, 255, 0.12); text-decoration: line-through; cursor: not-allowed; }
.merch-swatch:focus-visible,
.merch-size:focus-visible,
.merch-side:focus-visible,
.merch-chart-btn:focus-visible { outline: 2px solid var(--cp-pink); outline-offset: 4px; }
.merch-chart { margin-top: 0.8rem; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.merch-chart table { width: 100%; border-collapse: collapse; font-family: var(--cp-mono); font-size: 0.72rem; color: #d2d4de; }
.merch-chart th,
.merch-chart td { padding: 0.38rem 0.4rem; border: 1px solid rgba(255, 255, 255, 0.14); text-align: center; white-space: nowrap; }
.merch-chart th { color: var(--cp-cyan); font-weight: 700; }
.merch-chart tbody th { text-align: left; }
.merch-price { margin-top: auto; }
.merch-note {
  min-height: 1.2em;
  margin: 0.5rem 0 0.95rem;
  font-family: var(--cp-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--cp-amber);
}
.merch-card .links { margin-top: 0; }
.merch-add[disabled],
.merch-add[disabled]:hover {
  background: #16161b;
  color: #8a8c99 !important;
  box-shadow: 5px 5px 0 rgba(255, 43, 214, 0.32);
  transform: skewX(-12deg);
  cursor: not-allowed;
}
.merch-add[disabled]::after { color: #5d5f6b; box-shadow: inset 0 0 0 2px #2b2b34; }
@media (pointer: coarse) {
  .merch-swatch { width: 40px; height: 40px; }
  .merch-size { min-width: 52px; height: 46px; }
  .merch-side { min-height: 40px; }
}
@media (max-width: 480px) {
  .card.merch-card { padding: 1.1rem 1rem 1.3rem; }
  .merch-chart table { font-size: 0.66rem; }
  .merch-chart th, .merch-chart td { padding: 0.32rem 0.3rem; }
  .merch-lede { margin-top: -1rem; font-size: 0.94rem; }
}
/* Cart: the merch share of the shipping, under the shipping row. */
.cart-ship-split {
  margin: -0.2rem 0 0.45rem;
  font-family: var(--cp-mono);
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: right;
  color: #9a9db0;
}

/* ---------- partners: one even set of logo tiles ----------
   Every logo is a white mark on a transparent ground (tools/partner_logos.py), drawn to a
   balanced optical size, in tiles with the card's corner brackets; the marks spell the names,
   so there are no captions (the alt text names each partner). Four across, two by two
   on tablets and phones. Hover lights the tile and the mark like a product card. */
#partners .partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}
.partner-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 136px;
  padding: 1.5rem 1rem;
  background: radial-gradient(120% 90% at 50% 38%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 62%), #000;
  border: 1px solid var(--cp-line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.partner-tile::before,
.partner-tile::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.partner-tile::before { top: 0; left: 0; border-top: 2px solid var(--cp-pink); border-left: 2px solid var(--cp-pink); }
.partner-tile::after { right: 0; bottom: 0; border-right: 2px solid var(--cp-cyan); border-bottom: 2px solid var(--cp-cyan); }
.partner-tile img {
  display: block;
  height: auto;
  max-width: 84%;
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.partner-name {
  font-family: var(--cp-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8d9e;
  transition: color 0.2s ease;
}
.partner-tile:hover,
.partner-tile:focus-visible {
  border-color: var(--cp-cyan);
  box-shadow: 0 0 0 1px var(--cp-cyan), 0 0 30px rgba(0, 229, 255, 0.22);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.partner-tile:hover img,
.partner-tile:focus-visible img { opacity: 1; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.65)); }
.partner-tile:hover .partner-name,
.partner-tile:focus-visible .partner-name { color: var(--cp-cyan); }
.partner-tile:focus-visible { outline: 2px solid var(--cp-pink); outline-offset: 4px; }
@media (max-width: 900px) {
  #partners .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .partner-tile { min-height: 108px; padding: 1.1rem 0.75rem; }
  .partner-tile img { max-width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-tile, .partner-tile:hover, .partner-tile:focus-visible { transform: none; }
}
