/* ==========================================================================
   Smoko Gear (hardware.html). Loaded after styles.css; reuses its tokens.
   ========================================================================== */

/* ---------- Hero ---------- */

.hw-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 92px) clamp(64px, 8vw, 104px); background: var(--pink); }
.hw-hero .lede { color: var(--bitumen); }
.hw-hero .mark { background-image: linear-gradient(var(--hivis), var(--hivis)); }
.hw-hero .hero__note { color: var(--bitumen); }
.hw-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hw-hero h1 { margin-block: 18px 22px; }
.hw-hero__stage { position: relative; padding-bottom: 40px; }
.hw-hero__radio { width: min(100%, 470px); margin-inline: auto; filter: drop-shadow(0 10px 0 oklch(0.21 0.012 265 / 0.18)); }
.hw-hero__specs { position: absolute; left: -4%; bottom: 0; width: 56%; rotate: -8deg; filter: drop-shadow(0 8px 0 oklch(0.21 0.012 265 / 0.22)); }
.hw-sticker--1 { top: 4%; right: 0; rotate: 6deg; }
.hw-sticker--2 { bottom: 34%; right: -4%; rotate: -5deg; }
@media (max-width: 960px) {
  .hw-hero__grid { grid-template-columns: 1fr; }
  .hw-sticker--2 { right: 0; }
}
@media (max-width: 520px) {
  .hw-sticker { font-size: 15px; padding: 8px 12px; }
  .hw-sticker--2 { display: none; }
  .hw-hero__specs { width: 64%; left: -6%; }
}

/* ---------- Drawing overlays ---------- */

.hw-lcd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; fill: var(--hivis); }
.hw-lcd--small { font-size: 10px; font-weight: 600; opacity: 0.75; }
.hw-lcd--big { font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }

.hw-beacon path { animation: hw-beacon 2.4s ease-out infinite; }
.hw-beacon path:nth-child(2) { animation-delay: 0.3s; }
.hw-beacon path:nth-child(3) { animation-delay: 0.6s; }
@keyframes hw-beacon { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.hw-led-glow { animation: hw-led 1.6s ease-in-out infinite; }
@keyframes hw-led { 50% { opacity: 0.1; } }

.hw-marker circle { fill: var(--pink); stroke: var(--bitumen); stroke-width: 3; }
.hw-marker text { font-family: var(--font-display); font-weight: 800; font-size: 15px; text-anchor: middle; fill: var(--bitumen); }

.hw-flash { fill: var(--red); opacity: 0; }
[data-mode="evac"] .hw-flash { animation: hw-flash 0.9s steps(2, jump-none) infinite; }
@keyframes hw-flash { 0% { opacity: 0.25; } 100% { opacity: 0.65; } }
[data-mode="evac"] .hw-lcd { fill: var(--white); }
[data-mode="evac"] { --hw-beacon: var(--red); }

/* ---------- Numbered parts lists ---------- */

.hw-parts { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: part; }
.hw-parts li {
  counter-increment: part;
  position: relative;
  min-height: 30px;
  padding-left: 46px;
  font-size: 17px;
  color: var(--on-dark, oklch(0.86 0.01 265));
  text-wrap: pretty;
}
.hw-parts li::before {
  content: counter(part);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--bitumen);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: var(--bitumen);
}
.hw-parts b { color: var(--white); }
.hw-parts--light li { color: var(--bitumen-2); }
.hw-parts--light b { color: var(--bitumen); }

/* ---------- Radio ---------- */

.hw-radio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hw-radio__art svg { width: min(100%, 480px); margin-inline: auto; }
@media (max-width: 900px) { .hw-radio { grid-template-columns: 1fr; } }

.hw-announce-demo {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--bitumen-2);
}
.hw-announce-demo__head { display: grid; gap: 6px; }
.hw-announce-demo__head h3 { font-size: clamp(26px, 3vw, 36px); color: var(--hivis); }
.hw-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-announce { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; align-items: start; }
.hw-announce[hidden] { display: none; }
.hw-say {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: var(--concrete);
  color: var(--bitumen);
}
.hw-say .handled__av { width: 52px; height: 52px; }
.hw-say__who { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.hw-say p { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; text-wrap: pretty; }
.hw-say--serious { background: var(--white); box-shadow: inset 6px 0 0 var(--red); }
.hw-effects { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hw-effects li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--on-dark, oklch(0.86 0.01 265)); }
.hw-effects .i { width: 20px; height: 20px; margin-top: 2px; color: var(--hivis); }
.hw-announce.is-playing > * { animation: step-in 420ms ease-out both; }
.hw-announce.is-playing > * + * { animation-delay: 120ms; }
@media (max-width: 760px) { .hw-announce { grid-template-columns: 1fr; } }

/* ---------- A day with the radio ---------- */

.hw-day { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hw-day .section-head { margin-bottom: 32px; }
.hw-timeline { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hw-timeline li {
  display: grid;
  grid-template-columns: 56px 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--white);
  border: 2px solid var(--concrete-2);
}
.hw-timeline time { font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.hw-timeline .handled__av { width: 40px; height: 40px; }
.hw-timeline p { margin: 0; font-size: 16px; color: var(--ink-2); }
.hw-timeline b { color: var(--bitumen); }
.hw-day__phone { display: grid; place-items: center; }
@media (max-width: 900px) { .hw-day { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .hw-timeline li { grid-template-columns: 40px 1fr; align-items: start; }
  .hw-timeline time { grid-column: 2; grid-row: 1; font-size: 17px; }
  .hw-timeline .handled__av { grid-row: 1 / span 2; }
  .hw-timeline p { grid-column: 2; }
}

/* ---------- Specs ---------- */

.hw-pov { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.hw-pov__view { position: relative; margin: 0; }
.hw-pov__view svg { width: 100%; border: var(--line) solid var(--bitumen); border-radius: var(--radius-lg); box-shadow: var(--lip); }
.hw-pov__rec {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.21 0.012 265 / 0.85);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.hw-pov__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px oklch(1 0 0 / 0.3); animation: hw-led 1.6s ease-in-out infinite; }
.hw-pov__say {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: max-content;
  max-width: 86%;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 4px;
  background: var(--white);
  border: var(--line) solid var(--bitumen);
  box-shadow: 0 4px 0 var(--bitumen);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.2;
  text-wrap: balance;
}
.hw-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; }
@media (max-width: 960px) { .hw-pov { grid-template-columns: minmax(0, 1fr); } .hw-uses { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hw-pov__say { position: static; translate: none; width: auto; max-width: none; margin-top: 12px; } }

/* ---------- Shell ---------- */

.hw-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hw-shell__art { padding: clamp(16px, 3vw, 32px); background: var(--white); border: var(--line) solid var(--bitumen); border-radius: 32px; box-shadow: var(--lip); }
.hw-shell__art svg { width: 100%; }
.hw-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--bitumen);
  color: var(--white);
  font-weight: 700;
}
.hw-note .i { width: 22px; height: 22px; margin-top: 1px; color: var(--hivis); }
@media (max-width: 900px) { .hw-shell { grid-template-columns: 1fr; } }

/* ---------- Ground rules ---------- */

.hw-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.hw-rules li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius-lg); background: var(--bitumen-2); border: 2px solid oklch(0.42 0.012 265); }
.hw-rules h3 { font-size: 22px; color: var(--white); }
.hw-rules p { margin: 0; font-size: 16px; color: oklch(0.86 0.01 265); }
.hw-rules__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--hivis); color: var(--bitumen); border: var(--line) solid var(--bitumen); }
.hw-rules__icon .i { width: 22px; height: 22px; }
@media (max-width: 960px) { .hw-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hw-rules { grid-template-columns: 1fr; } }

.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .hw-beacon path, .hw-led-glow, .hw-pov__dot, .hw-announce.is-playing > * { animation: none; }
  [data-mode="evac"] .hw-flash { animation: none; opacity: 0.45; }
}
