/* Argus website › Πώς δουλεύει (/how-it-works/). Page classes start with "hw-"; shared ones (v3-*) come from site.css and pages.css.
   Every scene is complete without motion: p-how.js adds .is-live to the round to pin it and play it step by step. */

/* ---------- Small shared bits of this page ---------- */
.hw-tag { flex: none; padding: 4px 9px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.2; color: var(--v3-mute); }
.hw-clip { overflow-x: clip; }

/* ---------- The round (static: everything at once; .is-live: pinned, the scroll runs it) ---------- */
.hw-round { position: relative; border-top: 1px solid var(--v3-line); }
.hw-round-pin { padding: clamp(84px, 10vw, 150px) 0; }
.hw-round-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(30px, 3.6vw, 52px); }
.hw-round-head .v3-h2 { font-size: clamp(36px, 4.4vw, 72px); }
.hw-round-head .v3-eyebrow { margin-bottom: 16px; }
.hw-round-note { max-width: 25em; padding-bottom: 6px; }
.hw-round-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "stage steps" "stage msgs" "stage log"; gap: 20px clamp(28px, 4vw, 64px); align-items: start; }

/* The stage: three regions around the site, beams between them, a packet per region */
.hw-stage { grid-area: stage; position: sticky; top: calc(var(--v3-head) + 24px); height: clamp(440px, 46vw, 600px); margin: 0; overflow: clip; isolation: isolate;
  border: 1.5px solid var(--v3-line); border-radius: 30px; background: radial-gradient(58% 58% at 50% 50%, rgba(208, 255, 0, .11), rgba(208, 255, 0, 0) 70%), #050505;
  transition: border-color .5s; }
.hw-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(50% 50% at 50% 50%, rgba(229, 72, 77, .28), rgba(229, 72, 77, 0) 72%); }
.hw-round[data-state="down"] .hw-stage { border-color: rgba(229, 72, 77, .5); }
.hw-round[data-state="down"] .hw-stage::before { opacity: 1; }
.hw-beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hw-ring { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.hw-ring--in { stroke: rgba(208, 255, 0, .16); }
.hw-beam { stroke: rgba(208, 255, 0, .22); stroke-width: 1.5; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.hw-beam.is-on { stroke: rgba(208, 255, 0, .9); stroke-dasharray: none; stroke-width: 2; }
.hw-beam.is-fail { stroke: var(--v3-red); stroke-dasharray: none; stroke-width: 2; }
.hw-pkt { position: absolute; z-index: 1; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--v3-lime);
  box-shadow: 0 0 0 4px rgba(208, 255, 0, .18), 0 0 18px rgba(208, 255, 0, .8); opacity: 0; pointer-events: none; will-change: transform; }
.hw-pkt.is-on { opacity: 1; }
.hw-pkt.is-fail { background: var(--v3-red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .2), 0 0 18px rgba(229, 72, 77, .85); }

.hw-region { --x: 50; --y: 11; position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 15px; border: 1.5px solid rgba(255, 255, 255, .38); border-radius: 16px; background: #000;
  white-space: nowrap; transition: border-color .3s, box-shadow .3s; }
.hw-region[data-r="vir"] { --x: 19; --y: 86; }
.hw-region[data-r="cal"] { --x: 81; --y: 86; }
.hw-region-t { display: grid; gap: 1px; line-height: 1.2; }
.hw-region-t b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.hw-region-t small { font-size: 12px; font-weight: 700; color: var(--v3-faint); }
.hw-region-out { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 2px solid rgba(255, 255, 255, .25); border-radius: 50%;
  transition: background-color .3s, border-color .3s, color .3s; }
.hw-region-out svg { position: absolute; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s var(--v3-ease); }
.hw-region[data-out="ask"] { border-color: var(--v3-lime); box-shadow: 0 0 0 6px rgba(208, 255, 0, .12); }
.hw-region[data-out="ask"] .hw-region-out { border-color: var(--v3-lime); border-right-color: transparent; animation: hw-spin .8s linear infinite; }
.hw-region[data-out="ok"] .hw-region-out { background: var(--v3-lime); border-color: var(--v3-lime); color: var(--v3-ink); }
.hw-region[data-out="fail"] { border-color: rgba(229, 72, 77, .85); }
.hw-region[data-out="fail"] .hw-region-out { background: var(--v3-red); border-color: var(--v3-red); color: #fff; }
.hw-region[data-out="ok"] .hw-ico-ok, .hw-region[data-out="fail"] .hw-ico-fail { opacity: 1; transform: none; }
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* The site card in the middle */
.hw-site { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(300px, 58%); transform: translate(-50%, -50%); display: grid; gap: 12px;
  padding: 18px 18px 16px; border-radius: 22px; background: #fff; color: var(--v3-ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 10px 12px 0 var(--v3-lime); transition: box-shadow .45s; }
.hw-round[data-state="down"] .hw-site { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 10px 12px 0 var(--v3-red); }
.hw-site-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-site-host { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.hw-site .hw-tag { border-color: rgba(16, 20, 12, .22); color: rgba(16, 20, 12, .6); font-size: 11px; }
.hw-site-pills { display: flex; min-height: 31px; }
.hw-pill { display: none; font-size: 13px; white-space: normal; line-height: 1.15; }
.hw-site[data-state="up"] .hw-pill[data-s="up"], .hw-site[data-state="checking"] .hw-pill[data-s="checking"], .hw-site[data-state="down"] .hw-pill[data-s="down"],
.hw-site[data-state="recovering"] .hw-pill[data-s="recovering"], .hw-site[data-state="back"] .hw-pill[data-s="back"] { display: inline-flex; animation: hw-pop .45s var(--v3-ease); }
@keyframes hw-pop { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.hw-chip--rec { background: #fff; }
.hw-chip--rec i { background: var(--v3-lime); box-shadow: 0 0 0 1.5px var(--v3-ink); }
.hw-chip--paused i { background: rgba(16, 20, 12, .35); }
.hw-tally { display: grid; gap: 8px; padding-top: 12px; border-top: 1.5px solid rgba(16, 20, 12, .14); }
.hw-tally-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 10px; padding: 3px 4px; margin: -3px -4px; border-radius: 8px;
  font-size: 13px; font-weight: 800; transition: background-color .35s, opacity .35s; }
.hw-tally-k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-tally-n { text-align: right; font-size: 16px; }
.hw-tally--fail.is-hit { background: var(--v3-lime); }
.hw-tally--fail.is-past { opacity: .45; }
.hw-dots { display: flex; gap: 5px; }
.hw-dots b { display: grid; place-items: center; width: 23px; height: 23px; border: 1.5px solid rgba(16, 20, 12, .28); border-radius: 50%; font-size: 10.5px; font-weight: 800;
  color: rgba(16, 20, 12, .45); transition: background-color .3s, border-color .3s, color .3s; }
.hw-dots b.is-fail { background: var(--v3-red); border-color: var(--v3-red); color: #fff; }
.hw-dots b.is-ok { background: var(--v3-lime); border-color: var(--v3-ink); color: var(--v3-ink); }

/* The steps: a numbered list; live, one at a time */
.hw-steps { grid-area: steps; border-top: 1px solid var(--v3-line); }
.hw-step { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--v3-line); }
.hw-step-n { font-size: 22px; line-height: 1.1; color: var(--v3-lime); }
.hw-step-h { font-size: clamp(19px, 1.6vw, 24px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.hw-step-t { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--v3-mute); max-width: 32em; }

/* The round timeline */
.hw-log { grid-area: log; padding: 14px 16px 4px; border: 1.5px solid var(--v3-line); border-radius: 20px; background: #0a0a0a; }
.hw-log-k { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-size: 14px; font-weight: 800; color: var(--v3-lime); }
.hw-log-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--v3-lime); box-shadow: 0 0 0 4px rgba(208, 255, 0, .16); }
.hw-log-head, .hw-log-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) 76px; align-items: center; gap: 10px; }
.hw-log-head { padding: 7px 0; border-bottom: 1px solid var(--v3-line); font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--v3-faint); }
.hw-log-head span:last-child, .hw-log-c { justify-self: end; }
.hw-log-row { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14px; font-weight: 700; line-height: 1.25; }
.hw-log-row:last-child { border-bottom: 0; }
.hw-log-round { color: #fff; }
.hw-log-reg { color: var(--v3-mute); }
.hw-out { display: inline-flex; align-items: center; gap: 7px; }
.hw-out::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--v3-lime) center / 11px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%2310140C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hw-out--fail { color: #ff8a8d; }
.hw-out--fail::before { background-color: var(--v3-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hw-out--ok { color: var(--v3-lime); }
.hw-log-c { padding: 3px 8px; border: 1px solid rgba(208, 255, 0, .38); border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--v3-lime); white-space: nowrap; }

/* The messages that go out (an empty outbox until the rule is met) */
.hw-msgs { grid-area: msgs; display: grid; gap: 10px; }
.hw-msg { list-style: none; background: #fff; }
.hw-msg .v3-note-sub { font-size: 14px; }
.hw-msg-none { display: none; }

/* Live: pinned to the screen; one step, the rows and the messages as they happen */
.hw-round.is-live .hw-round-pin { display: flex; flex-direction: column; height: 100vh; height: 100svh; padding: calc(var(--v3-head) + 20px) 0 24px; overflow: clip; }
.hw-round.is-live .hw-round-in { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hw-round.is-live .hw-round-head { margin-bottom: clamp(18px, 2.4vw, 32px); }
.hw-round.is-live .hw-round-note { display: none; }
.hw-round.is-live .hw-round-grid { flex: 1; min-height: 0; }
.hw-round.is-live .hw-stage { position: relative; top: 0; height: 100%; min-height: 0; align-self: stretch; }
.hw-round.is-live .hw-steps { display: grid; border: 0; }
.hw-round.is-live .hw-step { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s ease, transform .55s var(--v3-ease); }
.hw-round.is-live .hw-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hw-round.is-live .hw-step { grid-template-columns: 92px minmax(0, 1fr); }
.hw-round.is-live .hw-step-n { font-size: 34px; line-height: 1; white-space: nowrap; }
.hw-round.is-live .hw-step-n::after { content: "/06"; margin-left: 3px; font-size: .46em; color: var(--v3-faint); }
.hw-round.is-live .hw-log-row { display: none; }
.hw-round.is-live .hw-log-row.is-in:not(.is-old) { display: grid; animation: hw-row-in .45s var(--v3-ease); }
.hw-round.is-live .hw-log-rows:not(:has(.is-in))::before { content: "·  ·  ·"; display: block; padding: 8px 0; color: var(--v3-faint); letter-spacing: .2em; }
@keyframes hw-row-in { from { opacity: 0; transform: translateX(-14px); background: rgba(208, 255, 0, .12); } }
.hw-round.is-live .hw-log { align-self: start; }
.hw-round.is-live .hw-msgs { display: grid; gap: 0; padding-top: 10px; }
.hw-round.is-live .hw-msg { position: relative; z-index: 1; grid-area: 1 / 1; opacity: 0; transform: translateY(-18px) scale(.96); transition: opacity .35s ease, transform .5s var(--v3-ease), filter .4s; }
.hw-round.is-live .hw-msg.is-in { opacity: 1; transform: none; }
.hw-round.is-live .hw-msg.is-back { z-index: 0; transform: translateY(-10px) scale(.94); filter: brightness(.72); }
.hw-round.is-live .hw-msg-none { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 12px 16px; border: 1.5px dashed rgba(255, 255, 255, .22);
  border-radius: 18px; font-size: 14px; font-weight: 700; color: var(--v3-faint); transition: opacity .3s; }
.hw-round.is-live .hw-msg-none svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.hw-round.is-live .hw-msgs.has-msgs .hw-msg-none { opacity: 0; }

/* ---------- Check states (white) ---------- */
.hw-states-head, .hw-state { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .95fr); gap: 10px clamp(20px, 3vw, 44px); }
.hw-states-head { padding-bottom: 12px; border-bottom: 2px solid var(--v3-ink); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: rgba(16, 20, 12, .55); }
.hw-state { align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(16, 20, 12, .14); }
.hw-state-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hw-state-k .v3-chip { font-size: 13.5px; }
.hw-app { flex-basis: 100%; font: 600 12.5px/1.3 ui-monospace, Consolas, monospace; color: rgba(16, 20, 12, .5); }
.hw-app:empty { display: none; }
.hw-state-t { font-size: 16.5px; line-height: 1.5; color: rgba(16, 20, 12, .8); }
.hw-state-a { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: rgba(16, 20, 12, .5); }
.hw-state--alerts .hw-state-a { color: var(--v3-ink); }
.hw-state-a svg { width: 22px; height: 22px; flex: none; margin-top: -1px; fill: var(--v3-lime); stroke: var(--v3-ink); stroke-width: 1.7; stroke-linejoin: round; }
.hw-state--alerts { position: relative; }
.hw-state--alerts::before { content: ""; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 4px; border-radius: 2px; background: var(--v3-lime); }
.hw-states-note { max-width: 60em; margin-top: 26px; }

/* ---------- Incident, change, observation ---------- */
.hw-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; perspective: 1400px; }
.hw-kind { display: flex; flex-direction: column; gap: 14px; min-height: 480px; padding: clamp(24px, 2.6vw, 38px); border-radius: 28px; }
.hw-kind--incident { background: #fff; color: var(--v3-ink); box-shadow: 14px 16px 0 var(--v3-lime); }
.hw-kind--change { background: #0d0d0d; border: 1.5px solid rgba(255, 255, 255, .18); }
.hw-kind--obs { border: 1.5px dashed rgba(255, 255, 255, .38); }
.hw-kind-ico svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.hw-kind--incident .hw-kind-ico { color: var(--v3-red); }
.hw-kind--change .hw-kind-ico { color: var(--v3-lime); }
.hw-kind--obs .hw-kind-ico { color: #C9D0DC; }
.hw-kind h3 { margin-top: 6px; font-size: clamp(34px, 3.1vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.hw-kind-lead { font-size: clamp(18px, 1.45vw, 21px); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.hw-kind-ex { font-size: 16px; line-height: 1.5; color: var(--v3-mute); }
.hw-kind--incident .hw-kind-ex { color: rgba(16, 20, 12, .72); }
.hw-kind-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hw-kind-flow span { padding: 6px 11px; border: 1.5px solid var(--v3-ink); border-radius: 999px; font-size: 13px; font-weight: 800; }
.hw-kind-flow span:last-child { background: var(--v3-lime); }
.hw-kind-flow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hw-kind-alert { display: grid; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1.5px solid rgba(255, 255, 255, .2); font-size: 15.5px; line-height: 1.45; }
.hw-kind-alert b { justify-self: start; padding: 3px 8px 2px; border-radius: 4px; background: var(--v3-lime); color: var(--v3-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.hw-kind--incident .hw-kind-alert { border-top-color: rgba(16, 20, 12, .2); }
.hw-kind--incident .hw-kind-alert b { background: var(--v3-ink); color: var(--v3-lime); }
.hw-kind--obs .hw-kind-alert b { background: #fff; }

/* ---------- The evidence (white) ---------- */
.hw-ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 80px); align-items: start; }
.hw-inc { position: sticky; top: calc(var(--v3-head) + 32px); display: grid; gap: 12px; margin: 0; padding: clamp(18px, 2vw, 28px); border-radius: 26px; background: #000; color: #fff;
  box-shadow: 14px 16px 0 var(--v3-lime); }
.hw-inc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hw-inc-host { font-size: 15px; font-weight: 700; }
.hw-inc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 6px; font-size: clamp(21px, 1.9vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.hw-inc-title .v3-chip { border-color: transparent; }
.hw-inc-block { display: grid; gap: 10px; min-width: 0; padding: 14px 16px; border-radius: 16px; background: #131313; }
.hw-inc-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--v3-faint); }
.hw-inc-flag { color: var(--v3-lime); }
.hw-inc-code { margin: 0; font: 500 13.5px/1.65 ui-monospace, Consolas, "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: rgba(255, 255, 255, .86); }
.hw-inc-code b { color: #ff8a8d; font-weight: 700; }
.hw-c-dim { color: rgba(255, 255, 255, .42); }
.hw-inc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hw-shot { overflow: hidden; border-radius: 10px; background: #f3f3f0; color: var(--v3-ink); }
.hw-shot-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #dcdcd6; font-size: 10.5px; font-weight: 700; color: rgba(16, 20, 12, .6); }
.hw-shot-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(16, 20, 12, .28); }
.hw-shot-bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-shot-body { display: grid; justify-items: start; gap: 6px; padding: 12px 12px 14px; }
.hw-shot-body b { font-size: 30px; line-height: 1; }
.hw-shot-body i { width: 88%; height: 6px; border-radius: 3px; background: rgba(16, 20, 12, .16); }
.hw-shot-body i:last-child { width: 60%; }
.hw-sent li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; font-weight: 700; }
.hw-sent li:last-child { border-bottom: 0; }
.hw-sent .v3-chip { border-color: transparent; font-size: 11.5px; }
.hw-ev-facts { grid-template-columns: minmax(0, 1fr); }
.hw-ev-facts .v3-fact { padding: 20px 0 22px; }
.hw-keep { margin-top: clamp(56px, 7vw, 104px); padding-top: 24px; border-top: 2px solid var(--v3-ink); }
.hw-keep-k { margin-bottom: 8px; font-size: 15px; font-weight: 800; }
.hw-keep-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); grid-template-areas: "n bar" "t bar"; align-items: center; gap: 0 clamp(20px, 3vw, 44px);
  padding: 16px 0; border-bottom: 1px solid rgba(16, 20, 12, .14); }
.hw-keep-n { grid-area: n; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.hw-keep-t { grid-area: t; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: rgba(16, 20, 12, .66); }
.hw-keep-bar { grid-area: bar; position: relative; height: 22px; border-radius: 11px; background: rgba(16, 20, 12, .07); }
.hw-keep-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: max(22px, calc(var(--w) * 100%)); border-radius: inherit; background: var(--v3-ink); transform-origin: left; }
.hw-keep-row:last-child .hw-keep-bar i { background: var(--v3-lime); box-shadow: inset 0 0 0 2px var(--v3-ink); }

/* ---------- Quiet by design (lime) ---------- */
.hw-quiet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hw-q { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 318px; padding: 26px 26px 28px; border-radius: 24px; background: #000; color: #fff; }
.hw-q-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hw-q-n b { font-size: clamp(52px, 5.4vw, 86px); line-height: .9; color: var(--v3-lime); }
.hw-q-n span { font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .7); }
.hw-q h3 { margin-top: auto; font-size: clamp(20px, 1.7vw, 25px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.hw-q p:not(.hw-q-n) { font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.hw-q--guard { background: #fff; color: var(--v3-ink); box-shadow: inset 0 0 0 2px var(--v3-ink); }
.hw-q--guard .hw-q-n b { color: var(--v3-ink); }
.hw-q--guard .hw-q-n span, .hw-q--guard p:not(.hw-q-n) { color: rgba(16, 20, 12, .72); }
.hw-guard { position: absolute; top: 28px; right: 24px; display: grid; grid-template-columns: repeat(5, 12px); gap: 6px; }
.hw-guard i { width: 12px; height: 12px; border-radius: 50%; background: rgba(16, 20, 12, .2); }
.hw-guard i.is-x { background: var(--v3-red); }

/* ---------- Blocked ---------- */
.hw-bl-in { position: relative; z-index: 1; }
.hw-bl-table { margin-bottom: clamp(44px, 5.4vw, 76px); }
.hw-bl-table .v3-table { min-width: 720px; }
.hw-bl-table thead th { width: 40%; }
.hw-bl-table thead th:first-child { width: 20%; }
.hw-bl-table thead .v3-chip { border-color: transparent; font-size: 12.5px; letter-spacing: .01em; }
.hw-bl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 4.6vw, 84px); align-items: start; }
.hw-allow { display: grid; gap: 16px; margin: 6px 0 0; transform: rotate(-1.4deg); box-shadow: 14px 16px 0 var(--v3-lime); }
.hw-allow-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.hw-allow-lang { display: inline-flex; flex: none; padding: 3px; border: 1.5px solid var(--v3-ink); border-radius: 999px; }
.hw-allow-lang b { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1; }
.hw-allow-lang b:first-child { background: var(--v3-ink); color: var(--v3-lime); }
.hw-allow-list li { position: relative; padding: 13px 0 13px 38px; border-top: 1px solid rgba(16, 20, 12, .14); font-size: 16px; font-weight: 700; line-height: 1.4; }
.hw-allow-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--v3-lime)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2310140C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--v3-ink); }
.hw-allow figcaption { color: rgba(16, 20, 12, .62); }
.hw-bl-facts { grid-template-columns: minmax(0, 1fr); }

/* ---------- Maintenance and deploys (white) ---------- */
.hw-mt { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.hw-mt .v3-h2 { margin-bottom: clamp(26px, 3.2vw, 46px); }
.hw-mt-facts { grid-template-columns: minmax(0, 1fr); }
.hw-win { display: grid; gap: 20px; margin: 0; padding: clamp(20px, 2.2vw, 30px); border-radius: 26px; background: #000; color: #fff; box-shadow: 14px 16px 0 var(--v3-lime); }
.hw-win-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.hw-win-track { position: relative; height: 170px; border-radius: 16px; background: #121212; overflow: clip; }
.hw-win-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 12px); }
.hw-win-band { position: absolute; top: 0; bottom: 0; left: 14%; width: 40%; border-inline: 2px solid var(--v3-lime);
  background: repeating-linear-gradient(-45deg, rgba(208, 255, 0, .2) 0 8px, rgba(208, 255, 0, .05) 8px 16px); transform-origin: left; }
.hw-win-band b { position: absolute; left: 10px; top: 10px; padding: 3px 8px 2px; border-radius: 4px; background: var(--v3-lime); color: var(--v3-ink); font-size: 12px; font-weight: 800; }
.hw-win-blip, .hw-win-deploy { position: absolute; top: 50%; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -9px); }
.hw-win-blip i { width: 18px; height: 18px; border: 3px solid #121212; border-radius: 50%; background: var(--v3-red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .25); }
.hw-win-blip b, .hw-win-deploy b { padding: 3px 8px 2px; border-radius: 4px; background: #000; font-size: 12px; font-weight: 800; white-space: nowrap; }
.hw-win-blip--held { left: 36%; }
.hw-win-blip--held i { background: rgba(229, 72, 77, .45); box-shadow: none; }
.hw-win-blip--held b { color: var(--v3-faint); }
.hw-win-blip--inc { left: 86%; }
.hw-win-blip--inc b { color: #ff8a8d; }
.hw-win-deploy { left: 70%; top: 14px; transform: translateX(-50%); bottom: 14px; align-content: start; }
.hw-win-deploy i { width: 2px; height: 100%; position: absolute; top: 0; left: 50%; margin-left: -1px; background: var(--v3-lime); }
.hw-win-deploy b { position: relative; background: var(--v3-lime); color: var(--v3-ink); }
.hw-win-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.hw-win-msg .v3-chip { border-color: transparent; }

/* ---------- Argus watches itself ---------- */
.hw-hl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 80px); align-items: start; }
.hw-strips { display: grid; gap: 12px; }
.hw-strip { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px solid; border-radius: 18px; }
.hw-strip > i { width: 14px; height: 14px; flex: none; border-radius: 50%; }
.hw-strip p { display: grid; gap: 2px; }
.hw-strip b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.hw-strip span { font-size: 14.5px; line-height: 1.45; color: var(--v3-mute); }
.hw-strip--ok { border-color: rgba(208, 255, 0, .55); background: rgba(208, 255, 0, .06); }
.hw-strip--ok > i { background: var(--v3-lime); box-shadow: 0 0 0 0 rgba(208, 255, 0, .5); }
.vp-anim .hw-strip--ok > i { animation: hw-ping 2.4s ease-out infinite; }
@keyframes hw-ping { 0% { box-shadow: 0 0 0 0 rgba(208, 255, 0, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(208, 255, 0, 0); } }
.hw-strip--warn { border-color: rgba(240, 160, 42, .55); background: rgba(240, 160, 42, .07); }
.hw-strip--warn > i { background: var(--v3-amber); }
.hw-strip--bad { border-color: rgba(229, 72, 77, .6); background: rgba(229, 72, 77, .08); }
.hw-strip--bad > i { background: var(--v3-red); }
.hw-strip--off { border-color: rgba(138, 148, 166, .5); background: rgba(138, 148, 166, .07); }
.hw-strip--off > i { background: var(--v3-slate); }
.hw-hl-facts { grid-template-columns: minmax(0, 1fr); }

/* ======================= Responsive ======================= */
@media (max-width: 1180px) {
  .hw-log-head, .hw-log-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) 68px; gap: 8px; }
  .hw-log-row { font-size: 13px; }
}
@media (max-width: 1100px) {
  .hw-kind { min-height: 520px; }
  .hw-quiet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hw-states-head { display: none; }
  .hw-state { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0 20px; }
  .hw-state--alerts::before { left: -10px; }
  .hw-kinds { grid-template-columns: minmax(0, 1fr); }
  .hw-kind { min-height: 0; }
  .hw-ev-grid, .hw-bl-grid, .hw-mt, .hw-hl-grid { grid-template-columns: minmax(0, 1fr); }
  .hw-inc { position: relative; top: 0; }
  .hw-allow { transform: none; }
}
/* Tablets and phones: the stage on top, the step and the newest rows under it; the messages land on the stage. */
@media (max-width: 900px) {
  .hw-round-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "stage" "msgs" "steps" "log"; gap: 16px; }
  .hw-round.is-live .hw-msg-none { display: none; }
  .hw-round.is-live .hw-msgs { padding-top: 0; }
  .hw-stage { position: relative; top: 0; height: clamp(320px, 62vw, 460px); }
  .hw-round.is-live .hw-round-grid { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "stage" "steps" "log"; gap: 14px; }
  .hw-round.is-live .hw-stage { height: clamp(250px, 37svh, 400px); flex: none; }
  .hw-round.is-live .hw-msgs { grid-area: stage; z-index: 5; align-self: end; margin: 0 10px 10px; }
  .hw-round.is-live .hw-step { grid-template-columns: 64px minmax(0, 1fr); }
  .hw-round.is-live .hw-step-n { font-size: 24px; }
  .hw-round.is-live .hw-log { align-self: start; }
}
@media (max-width: 700px) {
  .hw-round-head .v3-h2 { font-size: clamp(32px, 9vw, 44px); }
  .hw-round.is-live .hw-round-pin { padding: calc(var(--v3-head) + 12px) 0 14px; }
  .hw-round.is-live .hw-round-head { margin-bottom: 12px; }
  .hw-round.is-live .hw-round-head .v3-eyebrow { margin-bottom: 8px; font-size: 13px; }
  .hw-region { gap: 7px; padding: 5px 5px 5px 9px; border-radius: 12px; }
  .hw-region-t b { font-size: 13px; }
  .hw-region-t small { font-size: 10.5px; }
  .hw-region-out { width: 22px; height: 22px; border-width: 1.5px; }
  .hw-region-out svg { width: 12px; height: 12px; }
  .hw-region[data-r="ams"] { --y: 10; }
  .hw-region[data-r="vir"] { --x: 20; --y: 89; }
  .hw-region[data-r="cal"] { --x: 80; --y: 89; }
  .hw-site { width: min(236px, 68%); gap: 8px; padding: 12px 12px 11px; border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .85), 7px 8px 0 var(--v3-lime); }
  .hw-round[data-state="down"] .hw-site { box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .85), 7px 8px 0 var(--v3-red); }
  .hw-site-host { font-size: 13.5px; }
  .hw-site .hw-tag { font-size: 10px; padding: 3px 7px; }
  .hw-site-pills { min-height: 24px; }
  .hw-pill { font-size: 11px; }
  .hw-tally { gap: 5px; padding-top: 8px; }
  .hw-tally-row { grid-template-columns: minmax(0, 1fr) auto 30px; gap: 6px; font-size: 11px; }
  .hw-tally-n { font-size: 13px; }
  .hw-dots { gap: 3px; }
  .hw-dots b { width: 18px; height: 18px; font-size: 9px; }
  .hw-step { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .hw-step-h { font-size: 19px; }
  .hw-step-t { font-size: 14.5px; line-height: 1.45; }
  .hw-round.is-live .hw-step-h { font-size: 18px; }
  .hw-round.is-live .hw-step-t { margin-top: 4px; font-size: 13.5px; }
  .hw-log { padding: 10px 12px 2px; border-radius: 16px; }
  .hw-log-k { font-size: 13px; margin-bottom: 2px; }
  .hw-log-head { display: none; }
  .hw-log-head, .hw-log-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; }
  .hw-log-row { padding: 7px 0; font-size: 12.5px; }
  .hw-log-c { display: none; }
  .hw-out::before { width: 14px; height: 14px; background-size: 10px; }
  .hw-msg { padding: 9px 12px; }
  .hw-msg .v3-note-sub { font-size: 13px; }
  .hw-msg .v3-note-txt { font-size: 12.5px; }
  .hw-round.is-live .hw-msg .v3-note-txt { display: none; }
  .hw-state-k .v3-chip { font-size: 12.5px; }
  .hw-state-t { font-size: 15.5px; }
  .hw-kind h3 { font-size: 42px; }
  .hw-inc-row { grid-template-columns: minmax(0, 1fr); }
  .hw-inc-code { font-size: 12.5px; }
  .hw-keep-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "t" "bar"; gap: 4px; }
  .hw-keep-bar { margin-top: 10px; height: 16px; }
  .hw-quiet { grid-template-columns: minmax(0, 1fr); }
  .hw-q { min-height: 0; }
  .hw-q h3 { margin-top: 14px; }
  .hw-win-track { height: 150px; }
  .hw-win-blip b, .hw-win-deploy b { font-size: 11px; }
  .hw-win-blip--inc { left: 88%; }
  .hw-win-blip--inc b { transform: translateX(-24%); }
  .hw-strip { padding: 14px 16px; gap: 12px; }
  .hw-strip b { font-size: 16px; }
}
@media (max-width: 380px) {
  .hw-region-t small { display: none; }
  .hw-round.is-live .hw-stage { height: clamp(236px, 35svh, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  .hw-region[data-out="ask"] .hw-region-out { animation: none; }
}
