/* StudioHawk internal guide. Deep black + Bright Aqua, Archivo, rings and dots. */

:root {
  --black: #000000;
  --ink: #0b0b0d;
  --surface: #121216;
  --surface-2: #17171c;
  --line: #26262e;
  --line-soft: #1c1c22;
  --white: #ffffff;
  --text: #e8e8ea;
  --muted: #9a9aa4;
  --faint: #6e6e78;
  --aqua: #01ffff;
  --picton: #3db7e9;
  --violet: #adbaff;
  --yellow: #fecf40;
  --rose: #ff8b78;
  --green: #6ee7a8;
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ring and dot field: the StudioHawk device, two tiled layers, zero requests. */
.ring-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.rf-layer { position: absolute; inset: -10%; }
.rf-rings {
  background-image:
    radial-gradient(circle 70px at 12% 18%, transparent 68px, rgba(1,255,255,.10) 68px, rgba(1,255,255,.10) 69.4px, transparent 70px),
    radial-gradient(circle 110px at 78% 62%, transparent 108px, rgba(61,183,233,.09) 108px, rgba(61,183,233,.09) 109.2px, transparent 110px),
    radial-gradient(circle 40px at 58% 88%, transparent 38px, rgba(173,186,255,.09) 38px, rgba(173,186,255,.09) 39.2px, transparent 40px);
  background-repeat: no-repeat;
}
.rf-dots {
  background-image: radial-gradient(circle, rgba(173,186,255,.13) 1px, transparent 1.2px);
  background-size: 30px 30px;
  opacity: .55;
}

.page { position: relative; z-index: 1; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar img { height: 22px; display: block; }
.topbar a.home { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.topbar .where {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  white-space: nowrap;
}
.topbar .spacer { flex: 1; }
.topbar .stamp { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
@media (max-width: 760px) { .topbar .stamp { display: none; } }
@media (max-width: 520px) { .topbar .where { display: none; } }

/* Layout */
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 52px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 26px 120px;
}
@media (max-width: 940px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 30px; }
}

nav.side { position: sticky; top: 86px; align-self: start; }
@media (max-width: 940px) { nav.side { position: static; } }
nav.side ol { list-style: none; margin: 0; padding: 0; counter-reset: n; max-width: none; }
nav.side li { counter-increment: n; margin: 0; }
nav.side li.nonum { counter-increment: none; }
nav.side li.nonum a::before { content: ""; width: 15px; }
nav.side a {
  display: flex;
  gap: 11px;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.35;
}
nav.side a::before {
  content: counter(n, decimal-leading-zero);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding-top: 3px;
  flex: none;
}
nav.side a:hover { color: var(--white); }
nav.side a.on { color: var(--aqua); }
nav.side a.on::before { color: var(--aqua); }
nav.side .navhead {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

main { min-width: 0; }

/* Type */
h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--white);
}
h2 {
  font-size: clamp(23px, 2.7vw, 30px);
  line-height: 1.18;
  letter-spacing: -.018em;
  font-weight: 700;
  color: var(--white);
  margin: 62px 0 16px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
h2.first { border-top: 0; padding-top: 0; margin-top: 44px; }
h3 {
  font-size: 18.5px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.008em;
  margin: 34px 0 10px;
}
h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 26px 0 8px;
}
p { margin: 0 0 16px; max-width: 74ch; }
.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 66ch;
  margin-bottom: 26px;
}
.accent { color: var(--aqua); }
strong { color: var(--white); font-weight: 600; }
a { color: var(--picton); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--aqua); }

ul, ol { margin: 0 0 18px; padding-left: 22px; max-width: 74ch; }
li { margin-bottom: 8px; }
li::marker { color: var(--faint); }
ul.tight li, ol.tight li { margin-bottom: 4px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
  margin: 28px 0 10px;
}
a.card {
  display: block;
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(1,255,255,.42);
  background: var(--surface-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(1,255,255,.08);
}
a.card .num {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  letter-spacing: .1em;
}
a.card h3 { margin: 8px 0 8px; font-size: 20px; color: var(--white); }
a.card:hover h3 { color: var(--aqua); }
a.card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.5; }
a.card .ring {
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1.5px solid rgba(61,183,233,.2);
  transition: border-color .18s ease;
}
a.card:hover .ring { border-color: rgba(1,255,255,.32); }
a.card .st { display: block; margin-top: 12px; }
/* A long status label must wrap inside the card rather than run past its edge. */
a.card .chip { white-space: normal; }

/* Callouts */
.box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--picton);
  background: var(--surface);
  border-radius: 4px var(--r) var(--r) 4px;
  padding: 18px 22px;
  margin: 24px 0;
}
.box p:last-child, .box ul:last-child, .box ol:last-child { margin-bottom: 0; }
.box.warn { border-left-color: var(--yellow); }
.box.risk { border-left-color: var(--rose); }
.box.good { border-left-color: var(--green); }
.box .boxlab {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--picton);
  margin-bottom: 7px;
}
.box.warn .boxlab { color: var(--yellow); }
.box.risk .boxlab { color: var(--rose); }
.box.good .boxlab { color: var(--green); }

/* Status chips */
.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.5;
}
.chip.live { color: var(--green); border-color: rgba(110,231,168,.4); background: rgba(110,231,168,.07); }
.chip.part { color: var(--yellow); border-color: rgba(254,207,64,.4); background: rgba(254,207,64,.07); }
.chip.none { color: var(--rose); border-color: rgba(255,139,120,.4); background: rgba(255,139,120,.07); }
.chip.spec { color: var(--violet); border-color: rgba(173,186,255,.4); background: rgba(173,186,255,.07); }

/* Tables */
.tw { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 540px; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th {
  background: var(--surface-2);
  color: var(--white);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.018); }
td strong { color: var(--white); }
.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  background: var(--surface);
}
.stat b {
  display: block;
  font-size: 27px;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

/* Decision list */
ol.decisions { list-style: none; padding: 0; counter-reset: d; max-width: none; }
ol.decisions li {
  counter-increment: d;
  position: relative;
  padding: 15px 18px 15px 56px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 10px;
}
ol.decisions li::before {
  content: counter(d, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aqua);
  font-variant-numeric: tabular-nums;
}
ol.decisions b { display: block; color: var(--white); font-size: 16px; margin-bottom: 3px; }
ol.decisions p { font-size: 14.5px; color: var(--muted); margin: 0; max-width: none; }

/* Phase blocks */
.phase {
  border-left: 2px solid var(--line);
  padding: 0 0 4px 24px;
  margin-left: 6px;
  position: relative;
}
.phase::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--aqua);
}
.phase h3 { margin-top: 0; }
.phase + .phase { margin-top: 30px; }

/* Prev / next */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.pager a { text-decoration: none; color: var(--muted); max-width: 46%; }
.pager a:hover { color: var(--aqua); }
.pager a.next { text-align: right; margin-left: auto; }
.pager span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
}
.login-card img { height: 26px; display: block; margin: 0 auto 26px; }
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card p.sub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
label { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
input[type=password] {
  width: 100%;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  font-size: 16px;
}
input[type=password]:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }
button {
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--aqua);
  color: #000;
  border: 0;
  border-radius: 100px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
button:hover { background: var(--white); }
.err { color: var(--rose); font-size: 14px; margin: 14px 0 0; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
