/* Wave Watcher: engineering datasheet theme. System fonts only. */
:root {
  --bg: #141a21;
  --bg-2: #182028;
  --panel: #1b242e;
  --rule: #2e3b48;
  --rule-soft: #222c37;
  --ink: #e1e7ec;
  --muted: #9aa8b5;
  --dim: #6f7f8e;
  --acc: #7cc6dc;
  --acc-dim: rgba(124, 198, 220, .14);
  --tbc: #e3b862;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --pad: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }
a { color: var(--acc); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 26, 33, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand svg { width: 24px; height: 24px; fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; }
.brand svg circle { opacity: .5; }
.docid { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding-left: 16px; border-left: 1px solid var(--rule); }
.topbar nav { margin-left: auto; display: flex; gap: 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- sections */
.sec { border-top: 1px solid var(--rule); padding: clamp(48px, 7vw, 88px) 0; }
.sec:first-child { border-top: 0; }
.sec-no {
  font-size: 12px; color: var(--acc); text-transform: uppercase; letter-spacing: .12em;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.sec-no::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--rule); }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.sec-head p { color: var(--muted); }
figcaption.mono, .fig-cap { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
figcaption span, .fig-cap span { color: var(--acc); text-transform: uppercase; margin-right: 10px; }
figure { margin: 0; }
.tbc { color: var(--tbc); font-family: var(--mono); font-size: .9em; white-space: nowrap; }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.025em; margin-bottom: 20px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: #c5cfd8; max-width: 34em; }
.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0 0; border-top: 1px solid var(--rule); }
.keyfacts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.keyfacts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); }
.keyfacts div:nth-child(even) { padding-left: 16px; }
.keyfacts dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.keyfacts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); }

/* ---------------------------------------------------------------- 3D figure */
.fig3d { container-type: inline-size; border: 1px solid var(--rule); background: var(--bg-2); }
.fig-cap { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.fig-stage {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; cursor: grab; touch-action: pan-y; outline: none;
  background-color: #161d25;
  background-image:
    linear-gradient(rgba(124, 198, 220, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 198, 220, .07) 1px, transparent 1px),
    linear-gradient(rgba(124, 198, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 198, 220, .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.fig-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); }
.fig3d.dragging .fig-stage { cursor: grabbing; }
.fig-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fig-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fig-leaders path { fill: none; stroke: var(--acc); stroke-width: 1; }
.callout { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s; }
.fig3d.ready .callout { opacity: 1; }
.cdot {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--acc); color: var(--acc);
  font: 600 11px/18px var(--mono); text-align: center; font-style: normal;
  opacity: calc(.3 + .7 * var(--vis, 1));
}
.clabel {
  position: absolute; top: var(--y); transform: translateY(-50%);
  font-size: 12px; color: var(--ink); line-height: 1.35;
  background: rgba(20, 26, 33, .88); border: 1px solid var(--rule); padding: 6px 9px;
  max-width: 210px;
}
.callout[data-side="left"] .clabel { left: 12px; }
.callout[data-side="right"] .clabel { right: 12px; }
.clabel b { color: var(--acc); font-weight: 600; margin-right: 6px; }
.clabel small { display: block; color: var(--muted); font-size: 11px; }
.fig-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; color: var(--muted); text-align: center; z-index: 4; padding: 0 16px; }
.fig-foot { display: flex; align-items: center; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.fig-hint { margin-right: auto; }
.fig-reset { font: inherit; color: var(--muted); background: none; border: 1px solid var(--rule); padding: 5px 10px; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.fig-reset:hover { color: var(--ink); border-color: var(--dim); }
.fig-legend { display: none; list-style: none; margin: 0; padding: 0; }
@container (max-width: 559px) {
  .clabel { display: none; }
  .fig-foot { flex-wrap: wrap; }
  .fig-legend { display: grid; gap: 4px; width: 100%; padding: 4px 0 8px; border-bottom: 1px solid var(--rule-soft); text-transform: none; letter-spacing: .02em; font-size: 12px; color: var(--muted); }
  .fig-legend b { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--acc); border-radius: 50%; color: var(--acc); text-align: center; line-height: 16px; font-size: 10px; margin-right: 8px; }
}

/* ---------------------------------------------------------------- footage */
.footage-frame { position: relative; aspect-ratio: 16 / 9; background: #10161c; border: 1px solid var(--rule); overflow: hidden; }
.footage-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.footage.has-clip video { display: block; }
.footage.has-clip .footage-ph { display: none; }
.footage-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.footage-ph p { position: relative; display: grid; gap: 6px; font-size: 13px; color: var(--muted); padding: 0 20px; }
.footage-ph p b { color: var(--tbc); font-weight: 500; letter-spacing: .08em; }
.ph-wave { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 30%; fill: none; stroke: rgba(124, 198, 220, .16); stroke-width: 1.5; }
.crop { position: absolute; width: 22px; height: 22px; border: 0 solid var(--dim); }
.crop.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.crop.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.crop.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.footage figcaption { margin-top: 10px; }

/* ---------------------------------------------------------------- system diagram */
.diagram { border: 1px solid var(--rule); background: var(--bg-2); padding: clamp(16px, 3vw, 32px); }
.dg { display: block; width: 100%; height: auto; }
.dg-tall { display: none; max-width: 380px; margin: 0 auto; }
.dg .blk rect { fill: var(--panel); stroke: var(--rule); stroke-width: 1; }
.dg .blk-acc rect { stroke: var(--acc); fill: rgba(124, 198, 220, .06); }
.dg .b-t { font: 600 13px var(--mono); fill: var(--ink); letter-spacing: .04em; }
.dg .b-s { font: 12px var(--mono); fill: var(--muted); }
.dg .lbl { fill: var(--acc); }
.dg .lane { font: 11px var(--mono); fill: var(--dim); letter-spacing: .14em; }
.dg .lane-rule { stroke: var(--rule-soft); stroke-dasharray: 2 4; }
.dg .ln { fill: none; stroke: var(--acc); stroke-width: 1.4; }
.dg .ln.dl { stroke: #b9c6d1; stroke-dasharray: 5 4; }
.dg .ah { fill: var(--acc); }
.dg .ahd { fill: #b9c6d1; }
.dg .sun circle { fill: none; stroke: var(--tbc); stroke-width: 1.6; }
.dg .sun .rays path { stroke: var(--tbc); stroke-width: 1.6; stroke-linecap: round; }
.diagram figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.cycle { margin-top: 36px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; max-width: 900px; }
.cycle h3 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 4px; }
.cycle ol { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.cycle li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.cycle li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--acc); padding-top: 3px; }
.cycle .note { grid-column: 2; color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ---------------------------------------------------------------- tables */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
table { border-collapse: collapse; width: 100%; }
.spec caption { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--acc); padding-bottom: 10px; border-bottom: 1px solid var(--acc); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.spec th { width: 40%; padding-right: 16px; font: 500 12px/1.9 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.cmp thead th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--rule); }
.cmp tbody th { font: 500 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: 18%; }
.cmp td { color: var(--muted); width: 41%; }
.cmp .us { color: var(--ink); border-left: 1px solid var(--acc); padding-left: 16px; background: var(--acc-dim); }
.cmp thead .us { color: var(--acc); }

/* ---------------------------------------------------------------- deployment */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cases article { padding: 24px 24px 8px 0; }
.cases article + article { padding-left: 24px; border-left: 1px solid var(--rule); }
.case-id { font-size: 12px; color: var(--acc); margin-bottom: 14px; }
.cases h3 { font-size: 19px; margin-bottom: 8px; }
.cases p:not(.case-id) { color: var(--muted); }

/* ---------------------------------------------------------------- field log */
.log { min-width: 720px; font-size: 13px; }
.log th, .log td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; }
.log thead th { font-weight: 500; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--rule); }
.log-photo { margin-top: 28px; max-width: 560px; }
.ph-box { aspect-ratio: 16 / 9; border: 1px dashed var(--rule); display: grid; place-content: center; text-align: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 16px; }
.ph-box b { color: var(--tbc); font-weight: 500; letter-spacing: .08em; }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.contact h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.contact p { color: var(--muted); }
.reveal { min-height: 48px; display: flex; align-items: center; }
.btn {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--bg); background: var(--acc); border: 1px solid var(--acc);
  padding: 13px 22px; cursor: pointer;
}
.btn:hover { background: #9ad5e7; }
.btn:focus-visible, .topbar a:focus-visible, .fig-reset:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.email { font-size: clamp(15px, 2vw, 18px); color: var(--ink); border: 1px solid var(--rule); padding: 11px 16px; user-select: all; word-break: break-all; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rule); padding: 20px 0 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .docid { display: none; }
}
@media (max-width: 760px) {
  .topbar nav { gap: 14px; font-size: 11px; }
  .spec-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .cases article, .cases article + article { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .cycle { grid-template-columns: 1fr; }
  .cycle .note { grid-column: 1; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dg-wide { display: none; }
  .dg-tall { display: block; }
}
@media (max-width: 520px) {
  .topbar nav a:not([href="#contact"]):not([href="#specs"]) { display: none; }
  .spec th { width: 38%; }
}
@media (prefers-reduced-motion: reduce) { .callout { transition: none; } }

/* stacked tables on phones */
@media (max-width: 640px) {
  .cmp, .log { min-width: 0; }
  .cmp thead, .log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr, .log tr { display: block; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .cmp tbody th { display: block; width: auto; border: 0; padding: 0 0 6px; color: var(--acc); }
  .cmp td, .log td { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; width: auto; border: 0; padding: 5px 0; white-space: normal; }
  .cmp td::before, .log td::before { content: attr(data-label); font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
  .cmp .us { padding: 5px 0 5px 10px; margin-top: 4px; }
  .log td:first-child { color: var(--acc); }
}
.nw { white-space: nowrap; }
