/* ==========================================================================
   WETWORX — WetWorx LLC, Defense Technology
   Palette : cool black ground, bone text, signal blue and steel sampled from the mark
   Type    : Saira Condensed (display) / Barlow (body) / JetBrains Mono (data)
   Notes   : No JavaScript is required for navigation, content, or the contact
             form. Print styles at the bottom of this file.
   ========================================================================== */

:root {
  --ink:        #0B0D10;   /* page ground, cool neutral to match the mark */
  --ink-2:      #11141A;   /* raised panel */
  --ink-3:      #171B23;   /* inset */
  --line:       #232833;   /* hairline */
  --line-hi:    #363D4B;   /* emphasised hairline */

  --bone:       #E5E8EC;
  --bone-dim:   #B9C0CA;
  --field:      #8B94A2;

  /* sampled from the WETWORX mark */
  --signal:     #4E9BD6;   /* primary accent */
  --signal-hi:  #7CBCE8;   /* hover / bright */
  --signal-dp:  #145394;   /* deep fill */
  --steel:      #A8A7A6;   /* the mark's metal */
  --alert:      #C4553F;

  --display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --body:    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max:    1240px;
  --rhythm: clamp(52px, 7vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone-dim);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
::selection { background: var(--signal); color: #06090D; }

a { color: var(--signal-hi); text-decoration: none; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: #06090D;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- typography */

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--bone);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; }
h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; letter-spacing: .04em; }

p { margin: 0 0 1.05em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
strong { color: var(--bone); font-weight: 600; }

.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--bone-dim); max-width: 64ch; }
.small { font-size: 15px; color: var(--field); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow--plain::after { display: none; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--field); }

/* --------------------------------------------------------------- structure */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: var(--rhythm); }
.rule-top { border-top: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }

.cols { display: grid; gap: clamp(22px, 2.6vw, 34px); grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.cols-2 { display: grid; gap: clamp(26px, 3.6vw, 52px); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .cols-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .cols-2.lead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ------------------------------------------------------------- status band */

.band {
  background: #080908;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--field);
}
.band .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- masthead */

.masthead { border-bottom: 1px solid var(--line); background: var(--ink); }
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-logo { width: auto; height: 46px; flex: none; }
@media (max-width: 560px) { .brand-logo { height: 38px; } }
.brand-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
  display: block;
}
.brand-name em { font-style: normal; color: var(--signal); }
.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--field);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

nav.primary { display: flex; flex-wrap: wrap; gap: 8px 26px; }
nav.primary a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-block: 5px;
  border-bottom: 1px solid transparent;
}
nav.primary a:hover { color: var(--bone); border-bottom-color: var(--line-hi); }
nav.primary a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--signal); }

/* ------------------------------------------------------------ credentials */

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line-hi);
  background: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.creds > * {
  padding: 13px 18px;
  border-right: 1px solid var(--line);
  color: var(--bone-dim);
  flex: 1 1 auto;
  white-space: nowrap;
}
.creds > *:last-child { border-right: 0; }
.creds b { color: var(--signal); font-weight: 500; }

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

.hero-logo { width: 100%; height: auto; align-self: center; }
@media (max-width: 899px) { .hero-logo { order: -1; max-width: 560px; margin-inline: auto; } }

@media (min-width: 900px) { .hero .cols-2.lead { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 92px); }
.hero-figure { position: absolute; inset: 0; pointer-events: none; opacity: .7; }
.hero .wrap { position: relative; }

.pagehead {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5.5vw, 72px);
  background: radial-gradient(120% 150% at 90% 0%, rgba(78,155,214,.10), transparent 60%), var(--ink);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 22px;
  border: 1px solid var(--signal);
  color: var(--signal-hi);
  background: transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.btn:hover { background: var(--signal); color: #06090D; }
.btn-solid { background: var(--signal); color: #06090D; }
.btn-solid:hover { background: var(--signal-hi); color: #06090D; }
.btn-quiet { border-color: var(--line-hi); color: var(--bone-dim); }
.btn-quiet:hover { background: transparent; border-color: var(--bone-dim); color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ------------------------------------------------------------------- panels */

.panel {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 30px);
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--line-hi);
  border-style: solid;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.panel h3 { margin-bottom: 10px; }
.panel p { font-size: 16px; }

.panel-link { display: block; color: inherit; transition: border-color .16s ease, background-color .16s ease; }
.panel-link:hover { border-color: var(--line-hi); background: var(--ink-3); color: inherit; }
.panel-link:hover h3 { color: var(--signal-hi); }

.panel-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--signal);
  display: block;
  margin-bottom: 12px;
}
.more { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); margin-top: 16px; display: inline-block; }

.plate {
  aspect-ratio: 16 / 9;
  background: var(--ink-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.plate--stacked { border-bottom: 0; }
.plate svg { width: 100%; height: 100%; }


/* ------------------------------------------------------------------ figures */

figure.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
figure.fig img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: var(--ink-3);
}
figure.fig figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--field);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
figure.fig figcaption b { color: var(--signal); font-weight: 500; white-space: nowrap; }
figure.fig.is-render figcaption b { color: var(--steel); }
figure.fig.on-light img { background: #E9E9E7; }

/* -------------------------------------------------------------- data tables */

.table-scroll { overflow-x: auto; }

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
table.data caption {
  text-align: left;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  padding-bottom: 14px;
}
table.data th, table.data td {
  padding: 11px 18px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th {
  color: var(--signal);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom-color: var(--line-hi);
}
table.data tbody th {
  font-weight: 400;
  color: var(--field);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
table.data td { color: var(--bone); }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }

/* two-column spec list (label / value) */
table.spec { min-width: 0; }
table.spec tbody th { width: 48%; }

code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--signal);
  background: rgba(78,155,214,.10);
  border: 1px solid rgba(78,155,214,.28);
  padding: 0 5px;
}

/* unconfirmed value marker — deliberately visible, easy to grep */
.tbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--signal);
  background: rgba(78,155,214,.10);
  border: 1px dashed rgba(78,155,214,.45);
  padding: 1px 7px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- lists */

ul.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
ul.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 1px; background: var(--signal); }

ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
ol.steps li:last-child { border-bottom: 1px solid var(--line); }
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--signal);
  padding-top: 4px;
}
ol.steps h4 { margin-bottom: 5px; }
ol.steps p { font-size: 16px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line-hi);
  padding: 6px 10px;
}

.callout { border-left: 2px solid var(--signal); background: var(--ink-2); padding: 20px 22px; }
.callout p { font-size: 16px; }

.note { border-left: 2px solid var(--line-hi); padding: 4px 0 4px 18px; color: var(--field); font-size: 15px; }

/* -------------------------------------------------------------------- form */

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--field); }
.field input, .field select, .field textarea {
  background: var(--ink-3);
  border: 1px solid var(--line-hi);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  width: 100%;
  border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.form-note { font-size: 14px; color: var(--field); }

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

footer.site { border-top: 1px solid var(--line); background: #080908; padding-block: clamp(38px, 5vw, 60px); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a, .foot-grid li { font-size: 15px; color: var(--bone-dim); }
.foot-grid a:hover { color: var(--signal-hi); }
.foot-entity { font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--bone-dim); }
.foot-entity b { color: var(--signal); font-weight: 500; }

.colophon {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--field);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==================================================================== print */
/* Capability information gets printed and put in a folder. Make it survive. */

@media print {
  :root {
    --ink: #FFFFFF; --ink-2: #FFFFFF; --ink-3: #FFFFFF;
    --line: #BBBBBB; --line-hi: #888888;
    --bone: #000000; --bone-dim: #1A1A1A; --field: #444444;
    --signal: #1F4D77; --signal-hi: #1F4D77;
  }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, nav.primary, .btn, .btn-row, .hero-figure, .skip, .plate { display: none !important; }
  figure.fig img { max-height: 3.4in; width: auto; border: .5pt solid #999; }
  figure.fig figcaption { color: #444; }
  .masthead { border-bottom: 1pt solid #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after,
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
  .panel, .creds, .callout { border: 1pt solid #999; background: #fff; }
  .panel::before, .panel::after { display: none; }
  .tbd { color: #000; background: #fff; border: 1pt dashed #666; }
  section { padding-block: 14pt; }
  h1, h2, h3, h4 { color: #000; break-after: avoid; }
  table.data { min-width: 0; font-size: 9pt; }
  table.data td, table.data th { border-bottom: .5pt solid #bbb; }
  tr, .panel, ol.steps li { break-inside: avoid; }
  footer.site { border-top: 1pt solid #000; }
}
