/* ============================================================
   DWARF — dwarf.rip
   design language: clean dark monospace. skeuomorphism is
   rationed: plastic keys, LED dots, amber VFD displays, and
   one calculator. everything else is quiet.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #0a0a0b;
  --bg-raise: #101012;
  --hairline: #232327;
  --hairline-soft: #19191c;

  /* type */
  --ink: #e8e6e1;
  --ink-soft: #97948c;
  --ink-faint: #5b5952;

  /* the five letters */
  --red: #f5252b;
  --orange: #f77706;
  --yellow: #fbca05;
  --green: #50ba34;
  --blue: #1b70c4;

  /* vfd display */
  --vfd-bg: #131110;
  --vfd: #ffb000;
  --vfd-dim: rgba(255, 176, 0, 0.28);

  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pixel: "VT323", "Space Mono", monospace;

  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(26px, 3.6vw, 40px); }
h2 { font-size: clamp(19px, 2.4vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0 0 14px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--mono); cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
main { display: block; padding-bottom: 100px; }
section { margin-top: clamp(56px, 8vw, 104px); }

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

/* ------------------------------------------------------------
   micro-label — engraved replacement, plain and quiet
   ------------------------------------------------------------ */

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fine { font-size: 12px; color: var(--ink-faint); line-height: 1.7; }

/* section head: index number + title + hairline */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
}
.section-head .idx { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.section-head h1, .section-head h2 { margin: 0; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head a, .section-head .tail {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  text-decoration: none;
}
.section-head a:hover { color: var(--ink); }

/* ------------------------------------------------------------
   keys — the skeuomorphic ration. candy plastic on black.
   ------------------------------------------------------------ */

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #2c2c31, #1d1d21);
  border: 1px solid #050506;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 3px 0 #0b0b0c,
    0 6px 14px rgba(0, 0, 0, 0.55);
  user-select: none;
  transition: filter 0.12s ease;
}
.key:hover { filter: brightness(1.12); }
.key:active, .key.is-down {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    0 0 0 #0b0b0c,
    0 1px 3px rgba(0, 0, 0, 0.4);
}

/* colour keys — glossy candy plastic */
.key-red, .key-orange, .key-yellow, .key-green, .key-blue {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.key-red {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%), linear-gradient(180deg, #ff5045, #d51218);
  border-color: #58060a; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.3), 0 3px 0 #7c090e, 0 6px 14px rgba(0,0,0,0.55);
}
.key-orange {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%), linear-gradient(180deg, #ff9834, #e56b00);
  border-color: #5c2c00; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.3), 0 3px 0 #8a4200, 0 6px 14px rgba(0,0,0,0.55);
}
.key-yellow {
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 45%), linear-gradient(180deg, #ffda3d, #edb800);
  border-color: #6b5300; color: #201a00; text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.2), 0 3px 0 #927200, 0 6px 14px rgba(0,0,0,0.55);
}
.key-green {
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0) 45%), linear-gradient(180deg, #63d33f, #3d9c26);
  border-color: #1b4a0e; box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(0,0,0,0.3), 0 3px 0 #256312, 0 6px 14px rgba(0,0,0,0.55);
}
.key-blue {
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0) 45%), linear-gradient(180deg, #3b8ede, #1961ab);
  border-color: #0a2e55; box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(0,0,0,0.3), 0 3px 0 #0e4478, 0 6px 14px rgba(0,0,0,0.55);
}
.key-red:active, .key-orange:active, .key-yellow:active, .key-green:active, .key-blue:active,
.key-red.is-down, .key-orange.is-down, .key-yellow.is-down, .key-green.is-down, .key-blue.is-down {
  transform: translateY(3px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 0 transparent, 0 1px 3px rgba(0, 0, 0, 0.4);
}

.key-big { padding: 15px 30px; font-size: 15px; border-radius: 12px; }
.key-square { width: 44px; height: 44px; padding: 0; }
.key[disabled] { opacity: 0.4; cursor: not-allowed; }
.key .px { flex: none; }

/* ------------------------------------------------------------
   LED dot — product colour indicator
   ------------------------------------------------------------ */

.led {
  --c: var(--ink-faint);
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.75), var(--c) 55%);
  box-shadow: 0 0 7px var(--c), inset 0 -1px 1px rgba(0, 0, 0, 0.45);
}
.led-red    { --c: var(--red); }
.led-orange { --c: var(--orange); }
.led-yellow { --c: var(--yellow); }
.led-green  { --c: var(--green); }
.led-blue   { --c: var(--blue); }

/* ------------------------------------------------------------
   VFD / LCD — amber glow displays
   ------------------------------------------------------------ */

.lcd {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px),
    var(--vfd-bg);
  color: var(--vfd);
  font-family: var(--pixel);
  border: 1px solid var(--hairline-soft);
  border-radius: 6px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 24px rgba(255, 176, 0, 0.05);
  text-shadow: 0 0 7px rgba(255, 176, 0, 0.55);
  padding: 4px 12px;
}
.lcd img.px {
  filter: sepia(1) saturate(4) hue-rotate(-8deg) drop-shadow(0 0 4px rgba(255, 176, 0, 0.5));
}

/* small bordered tag */
.chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink-soft);
}
.chip-red    { color: var(--red);    border-color: rgba(245, 37, 43, 0.4); }
.chip-orange { color: var(--orange); border-color: rgba(247, 119, 6, 0.4); }
.chip-yellow { color: var(--yellow); border-color: rgba(251, 202, 5, 0.4); }
.chip-green  { color: var(--green);  border-color: rgba(80, 186, 52, 0.4); }
.chip-blue   { color: var(--blue);   border-color: rgba(27, 112, 196, 0.4); }

/* pixel icons */
.px { image-rendering: pixelated; display: inline-block; vertical-align: middle; }
.meta-ico { opacity: 0.8; flex: none; }

/* ------------------------------------------------------------
   header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px var(--pad);
}
.site-header .logo img { height: 38px; width: auto; }
.site-header nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.site-header nav a:not(.key) {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.site-header nav a:not(.key):hover { color: var(--ink); }
.cart-key { padding: 9px 14px; border-radius: 9px; }
.cart-key .lcd { font-size: 20px; line-height: 1; padding: 2px 8px 0; min-width: 34px; text-align: right; }

/* hamburger — hidden on desktop */
.menu-key { display: none; width: 42px; height: 42px; }
.menu-key .burger { display: flex; flex-direction: column; gap: 5px; }
.menu-key .burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

/* mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 14px var(--pad) 30px;
  transform: translateY(-105%);
  transition: transform 0.22s ease;
}
.mobile-menu.open { transform: none; }
.mobile-menu .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.mobile-menu .head img { height: 30px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 2px;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu nav a:active { background: var(--bg-raise); }
.mobile-menu .fine { margin-top: auto; }

/* amber ticker under the header */
.marquee { overflow: hidden; }
.marquee .lcd {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  overflow: hidden;
  white-space: nowrap;
  font-size: 21px;
  padding: 5px 0 2px;
}
.marquee .track { display: inline-block; animation: marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
/* track holds 3 identical repetitions; shifting one third loops seamlessly */
@keyframes marquee { to { transform: translateX(-33.3333%); } }

/* ------------------------------------------------------------
   hero
   ------------------------------------------------------------ */

.hero { margin-top: clamp(40px, 6vw, 80px); }
.hero .split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}
.hero .copy { align-self: center; padding-bottom: clamp(10px, 3vw, 40px); }
.hero .copy .logo-big { width: min(500px, 94%); height: auto; margin-bottom: 24px; }
.hero .copy p { font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-soft); max-width: 36ch; }
.hero .actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
/* figure runs flush into the hero's bottom hairline; edges dissolve into the page */
.hero .figure {
  display: flex;
  justify-content: center;
  align-self: end;
  margin-bottom: calc(-1 * clamp(36px, 5vw, 60px));
}
.hero .figure img { width: min(440px, 96%); }
.hero .meta-row {
  position: relative;
  display: flex;
  gap: 22px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   product grid
   ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.card { display: flex; flex-direction: column; text-decoration: none; }
.card .ph {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--hairline-soft);
  background: #000;
  transition: border-color 0.15s ease;
}
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .ph { border-color: #3a3a40; }
.card .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  padding: 12px 2px 0;
  font-size: 13px;
  min-width: 0;
}
.card .meta .name { font-weight: 700; }
.card .meta .price {
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 19px;
  color: var(--vfd);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.4);
}
.card.sold .ph img { filter: grayscale(1) brightness(0.55); }
.card.sold .meta .price { color: var(--ink-faint); text-shadow: none; }

/* ------------------------------------------------------------
   calculator DW-01 — the one true panel
   ------------------------------------------------------------ */

.calc-section .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}
.calc-blurb p { max-width: 36ch; color: var(--ink-soft); }
.calc-blurb .label { display: block; margin-bottom: 14px; }

.calc {
  width: min(350px, 100%);
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #232326, #151517);
  border: 1px solid #000;
  border-radius: 24px;
  padding: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -6px 12px rgba(0, 0, 0, 0.4),
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.5);
}
.calc .model { display: flex; justify-content: space-between; margin-bottom: 12px; }
.calc .lcd {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px;
  overflow: hidden;
  border-radius: 8px;
}
.calc .lcd .msg { font-size: 32px; letter-spacing: 0.04em; white-space: nowrap; }
.calc .lcd .msg.result {
  font-size: 20px;
  white-space: normal;
  line-height: 1.25;
  text-align: right;
  letter-spacing: 0.05em;
}
.calc .keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.calc .key { width: 100%; aspect-ratio: 1; padding: 0; border-radius: 12px; font-size: 20px; }

/* corner screws — calculator chassis only */
.screws > .screw-b { position: absolute; inset: 0; pointer-events: none; }
.screws::before, .screws::after,
.screws > .screw-b::before, .screws > .screw-b::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, #0a0a0a 44%, #0a0a0a 56%, transparent 56%),
    radial-gradient(circle at 35% 30%, #4a4a4f, #202023 70%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.07);
}
.screws::before { top: 11px; left: 11px; }
.screws::after  { top: 11px; right: 11px; }
.screws > .screw-b::before { bottom: 11px; left: 11px; top: auto; }
.screws > .screw-b::after  { bottom: 11px; right: 11px; top: auto; }

/* ------------------------------------------------------------
   crash test slideshow
   ------------------------------------------------------------ */

.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides a {
  scroll-snap-align: start;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.slides .ph {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: #000;
  transition: border-color 0.15s ease;
}
.slides a:hover .ph { border-color: #3a3a40; }
.slides img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.slides .cap {
  padding: 10px 2px 0;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  gap: 9px;
  align-items: center;
}
.slides-nav { display: flex; gap: 10px; }
.slides-nav .key { width: 40px; height: 40px; padding: 0; border-radius: 9px; }

/* ------------------------------------------------------------
   product page
   ------------------------------------------------------------ */

.crumbs { margin: 26px 0 18px; font-size: 12px; color: var(--ink-faint); }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.pdp .gallery .ph {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: #000;
}
.pdp .gallery .ph img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pdp .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp .thumbs .th {
  width: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  cursor: pointer;
  opacity: 0.55;
  background: #000;
  padding: 0;
}
.pdp .thumbs .th.active { opacity: 1; border-color: var(--red); }
.pdp .thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.pdp .buy { padding-top: 6px; }
.pdp .price-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 20px; }
.pdp .price-row .lcd { font-size: 28px; padding: 3px 14px 0; }
.pdp .blurb { color: var(--ink-soft); max-width: 44ch; }

.size-keys { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 22px; }
.size-keys .key { min-width: 52px; }
.size-keys .key.selected {
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 45%), linear-gradient(180deg, #ffda3d, #edb800);
  border-color: #6b5300;
  color: #201a00;
  text-shadow: none;
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px rgba(107, 83, 0, 0.5), 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   skeuo controls: latching radio pins + rocker switch
   ------------------------------------------------------------ */

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 22px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #050506;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #232327, #17171a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 3px 0 #0b0b0c,
    0 5px 10px rgba(0,0,0,0.5);
  transition: filter 0.12s ease;
  user-select: none;
}
.radio:hover { filter: brightness(1.12); }
.radio .pin {
  width: 15px; height: 15px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 35% 30%, #47474d, #17171a 72%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.85), 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid #000;
}
.radio.on {
  color: var(--ink);
  transform: translateY(2px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 1px 0 #0b0b0c, 0 1px 3px rgba(0,0,0,0.4);
}
.radio.on .pin {
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), var(--red) 60%);
  box-shadow: 0 0 9px var(--red), inset 0 -1px 2px rgba(0,0,0,0.5);
  border-color: #58060a;
}

/* rocker switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.switch .well {
  width: 66px; height: 34px;
  flex: none;
  border-radius: 17px;
  border: 1px solid #000;
  background: linear-gradient(180deg, #0c0c0d, #1a1a1d);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.85), 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
}
.switch .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #3b3b41, #232327);
  border: 1px solid #060607;
  box-shadow: 0 2px 4px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: left 0.16s ease, background 0.16s ease;
}
.switch.on .knob {
  left: 35px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #ffda3d, #edb800);
  border-color: #6b5300;
}
.switch.on { color: var(--ink); }

.qty { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.qty .lcd { font-size: 24px; min-width: 56px; text-align: center; padding-top: 4px; }

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-row .key-orange { flex: 1; min-width: 220px; }

.accordion { margin-top: 30px; border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 13px 2px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--ink-faint); }
.accordion details[open] summary::after { content: "\2212"; }
.accordion .acc-body { padding: 0 2px 16px; color: var(--ink-soft); font-size: 13.5px; }

/* wash tag — stays paper-white, it's a printed object */
.washtag {
  background: #f4f2ec;
  border-radius: 4px;
  padding: 14px 16px;
  max-width: 260px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #33312c;
  position: relative;
}
.washtag::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed #b5b1a5;
  border-radius: 3px;
  pointer-events: none;
}

/* ------------------------------------------------------------
   info pages
   ------------------------------------------------------------ */

.info-page { max-width: 680px; margin: clamp(40px, 6vw, 70px) auto 0; }
.info-page h1 { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--hairline); padding-bottom: 12px; margin-bottom: 26px; }
.info-page table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.info-page th, .info-page td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hairline); }
.info-page th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.info-page .content > p { color: var(--ink-soft); }

.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary { list-style: none; padding: 15px 2px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--ink-faint); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .a { padding: 0 2px 18px; color: var(--ink-soft); }

/* about */
.about-hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.about-hero p { font-size: clamp(20px, 3vw, 32px); font-weight: 700; margin: 0; max-width: 24ch; }

/* 404 */
.notfound { text-align: center; padding-top: 50px; }
.notfound .lcd { display: inline-flex; align-items: center; gap: 18px; font-size: 60px; padding: 12px 30px 6px; margin-bottom: 26px; }
.notfound .cheerio { width: 130px; margin: 0 auto 26px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------
   checkout / confirmation
   ------------------------------------------------------------ */

.checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 30px;
}
.checkout aside { border-left: 1px solid var(--hairline); padding-left: clamp(20px, 3vw, 40px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: 6px; }
.field input, input.text {
  width: 100%;
  font-family: var(--mono);
  font-size: 15px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}
.field input:focus, input.text:focus { outline: 1px solid var(--red); outline-offset: 1px; }
.field input::placeholder, input.text::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.summary-lines { font-size: 13.5px; }
.summary-lines .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-soft); }
.summary-lines .total { font-weight: 700; color: var(--ink); border-bottom: none; padding-top: 14px; align-items: center; }
.summary-lines .total .lcd { font-size: 22px; padding: 2px 10px 0; }

.confirm-hero { text-align: center; padding-top: 60px; }
.confirm-hero .lcd {
  display: inline-block;
  font-size: clamp(36px, 7vw, 72px);
  padding: 16px 36px 8px;
  margin: 26px 0;
}
.confirm-hero .order-no { color: var(--ink-soft); }
.confirm-hero .figure { width: min(300px, 70%); margin: 30px auto 0; }
.confirm-hero .figure img { border-radius: 10px; border: 1px solid var(--hairline-soft); }

/* ------------------------------------------------------------
   cart drawer
   ------------------------------------------------------------ */

.drawer-veil {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-veil.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  border-left: 1px solid var(--hairline);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}
.cart-drawer.open { transform: none; }
.cart-drawer .head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--hairline);
}
.cart-drawer .head h3 { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.cart-drawer .head .key-square { margin-left: auto; width: 36px; height: 36px; }
.cart-drawer .items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-item .th { border-radius: 6px; overflow: hidden; border: 1px solid var(--hairline-soft); background: #000; }
.cart-item img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.cart-item .nm { font-weight: 700; font-size: 13px; }
.cart-item .sub { font-size: 12px; color: var(--ink-faint); }
.cart-item .qty-mini { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.cart-item .qty-mini .key { width: 25px; height: 25px; padding: 0; font-size: 13px; border-radius: 6px; }
.cart-item .price { font-family: var(--pixel); font-size: 18px; color: var(--vfd); text-shadow: 0 0 6px rgba(255, 176, 0, 0.4); }
.cart-drawer .foot { padding: 14px 20px 20px; border-top: 1px solid var(--hairline); }
.cart-drawer .subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-drawer .subtotal .lcd { font-size: 24px; padding: 3px 12px 0; }
.cart-drawer .foot .key-orange { width: 100%; }
.cart-empty { text-align: center; color: var(--ink-faint); padding: 60px 0; }

/* ------------------------------------------------------------
   popups: cookie + newsletter
   ------------------------------------------------------------ */

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 110;
  width: min(640px, calc(100vw - 24px));
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.cookie-bar p { margin: 0; font-size: 13px; flex: 1; min-width: 220px; }
.cookie-bar .fine { display: block; margin-top: 3px; }
.cookie-bar .key { padding: 8px 18px; }

.modal-veil {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}
.newsletter-modal {
  width: min(440px, 100%);
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}
.newsletter-modal .inner { padding: 30px 30px 24px; }
.newsletter-modal .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; }
.newsletter-modal h3 { font-size: 20px; }
.newsletter-modal form { display: flex; gap: 10px; margin: 18px 0 14px; }
.newsletter-modal input { flex: 1; }
.newsletter-modal .contract {
  max-height: 96px;
  overflow-y: auto;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-faint);
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}

/* newsletter inline */
.newsletter-inline .box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(22px, 3vw, 36px) 0;
}
.newsletter-inline .txt { flex: 1; min-width: 240px; }
.newsletter-inline .txt h3 { margin-bottom: 6px; }
.newsletter-inline .txt .fine { margin: 0; }
.newsletter-inline form { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.newsletter-inline input { flex: 1; }

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */

.site-footer { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--hairline); }
.site-footer .cols {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 50px) var(--pad) 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}
.site-footer .brand img { height: 44px; margin-bottom: 14px; }
.site-footer .brand .earth-spin { height: 54px; margin-top: 18px; animation: earthspin 14s linear infinite; }
@keyframes earthspin { to { transform: rotate(360deg); } }
.site-footer .legal img { height: 20px; opacity: 0.7; }
.site-footer .brand p { font-size: 13px; color: var(--ink-soft); max-width: 26ch; }
.site-footer h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 16px var(--pad) 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11px;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------
   misc
   ------------------------------------------------------------ */

/* mushroom cloud puff on add-to-cart */
@keyframes puff {
  0%   { transform: translate(-50%, 0) scale(0.4); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(-50%, -46px) scale(1.5); opacity: 0; }
}
.puff {
  position: absolute;
  left: 50%;
  top: -6px;
  pointer-events: none;
  animation: puff 0.8s ease-out forwards;
}

/* icons riding the amber ticker */
.marquee img.px {
  height: 19px;
  width: auto;
  margin: 0 20px;
  vertical-align: -3px;
}

/* drop / standard chip on cards */
.card .meta .chip { font-size: 9px; padding: 2px 7px; }

/* ------------------------------------------------------------
   the earth — 3D globe, click to nuke
   ------------------------------------------------------------ */

.globe-section .split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.globe-blurb p { max-width: 38ch; color: var(--ink-soft); }
.globe-blurb .label { display: block; margin-bottom: 14px; }
.globe-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.globe-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: crosshair;
}
.globe-hud {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.globe-hud .lcd { font-size: 20px; padding: 6px 14px 3px; white-space: nowrap; }
.globe-hud .status { flex: 1; min-width: 200px; white-space: normal; }
.globe-hint { font-size: 11px; color: var(--ink-faint); margin-top: 12px; }

/* strike log — amber terminal */
.globe-log {
  display: block;
  margin-top: 22px;
  padding: 12px 14px 10px;
  font-size: 17px;
  line-height: 1.5;
  min-height: 130px;
  max-width: 430px;
}
.globe-log div { overflow: hidden; text-overflow: ellipsis; }
.globe-log div:first-child { color: var(--vfd); }
.globe-log div:not(:first-child) { color: var(--vfd-dim); text-shadow: none; }
.globe-log:empty::before { content: "> NO STRIKES LOGGED. SUSPICIOUS."; color: var(--vfd-dim); text-shadow: none; }

/* home teaser for the earth page */
.earth-teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.earth-teaser p { max-width: 40ch; color: var(--ink-soft); }
.earth-teaser .label { display: block; margin-bottom: 14px; }
.earth-teaser .earth-thumb { display: flex; justify-content: center; }
.earth-teaser .earth-thumb img { width: min(420px, 96%); transition: transform 0.25s ease; }
.earth-teaser .earth-thumb:hover img { transform: rotate(-4deg) translateY(-6px); }
@media (max-width: 820px) { .earth-teaser { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .globe-section .split { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero .split, .calc-section .split, .pdp, .checkout { grid-template-columns: 1fr; }
  .checkout aside { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 24px; }
  .hero .figure { order: -1; margin-bottom: 0; }
  .hero .copy { padding-bottom: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .site-header nav { gap: 14px; }
}
@media (max-width: 640px) {
  /* header: logo left, hamburger + cart right; links live in the overlay */
  .site-header .bar { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .site-header nav { gap: 10px; }
  .site-header nav a:not(.key) { display: none; }
  .menu-key { display: inline-flex; }
  .site-header .logo img { height: 30px; }
  .cart-key { padding: 8px 11px; }
  .section-head { flex-wrap: wrap; }
  .section-head a, .section-head .tail { white-space: normal; text-align: right; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .meta { font-size: 12px; }
  .card .meta .price { font-size: 16px; }
  .card .meta .chip { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
