/* weldonsoft.com (SPEC 3): black, full-bleed cinematic panels, stark uppercase type, minimal nav, one CTA per screen.
   Font: IBM Plex Sans variable (OFL), latin subset renamed "WS Sans" (assets/fonts/OFL-IBMPlex.txt).
   Colour tokens are measured by tools/qa/contrast.py (text over the scrimmed images too). */
@font-face {
  font-family: "WS Sans";
  src: url("/assets/fonts/ws-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  /* optional, not swap: the font is preloaded, so it is normally ready for first paint; if it is late the fallback
     stays for that view instead of swapping in and shifting every line (CLS 0, SPEC 8). */
  font-display: optional;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-2: #d4d4d4;
  --fg-3: #a3a3a3;
  --line: #5e5e5e;
  --focus: #ffffff;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --max: 82rem;
  color-scheme: dark;
}
/* The site is dark in both schemes by design (SPEC 3); the tokens are restated for a forced dark preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #000000; --fg: #ffffff; --fg-2: #d4d4d4; --fg-3: #a3a3a3; --line: #5e5e5e; --focus: #ffffff; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 "WS Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; }
a { color: var(--fg); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 78%; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--fg); color: var(--bg); padding: 0.75rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* header: sits over the hero and scrolls away with it (not sticky, so it never covers a focused element) */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.0625rem; font-stretch: 85%;
}
.wm-a { font-weight: 700; }
.wm-b { font-weight: 400; }
.nav { display: flex; gap: clamp(0.25rem, 2vw, 2rem); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.4rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8125rem; font-weight: 600;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

/* full-bleed panels */
.panel { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); display: flex; align-items: flex-end; }
.panel-in { position: relative; z-index: 2; padding-top: clamp(5rem, 14vh, 9rem); padding-bottom: clamp(4rem, 12vh, 8rem); }
.panel-media { position: absolute; inset: 0; z-index: 0; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
/* scrim: darkest behind the text column, lets the image breathe on the right. tools/qa/contrast.py measures every
   text box against the brightest pixel actually rendered behind it (desktop and mobile), so this can't silently fail. */
.panel-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0) 100%);
}
.panel-hero { min-height: 100vh; min-height: 100svh; }
.panel-hero .panel-in { padding-top: 9rem; }
.panel-build, .panel-proof, .panel-contact { min-height: 100vh; min-height: 100svh; }
.panel-build .panel-media img { object-position: 70% 60%; }
.panel-contact .panel-media img { object-position: 50% 80%; }
.panel-plain { border-top: 1px solid #1f1f1f; }
.panel-plain .panel-in { padding-top: clamp(4.5rem, 12vh, 8rem); }

.kicker {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 1.25rem;
}
h1 { font-size: clamp(2.6rem, 8.2vw, 6.25rem); max-width: 14ch; }
h2 { font-size: clamp(2.1rem, 5.6vw, 4.25rem); max-width: 18ch; }
h3 { font-size: 1.25rem; letter-spacing: 0.06em; font-stretch: 85%; }
.lede { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--fg-2); }
.cta { margin-top: 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.9rem;
  border: 2px solid var(--fg); background: transparent; color: var(--fg);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); }

/* capabilities: numbered rows (CSS counters, so the numbers are decoration, not text) */
.caps { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.5rem; counter-reset: cap; max-width: 64rem; }
.caps li { counter-increment: cap; border-top: 1px solid var(--line); padding: 1.25rem 0 1.75rem; }
.caps li::before { content: counter(cap, decimal-leading-zero); display: block; font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--fg-2); margin-bottom: 0.75rem; }
.caps p, .steps p { margin-top: 0.6rem; color: var(--fg-2); font-size: 1rem; }

.steps { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 300;
  font-stretch: 75%; line-height: 1; color: var(--fg); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}

.fit { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 4rem; max-width: 60rem; }
.fit-list { margin-top: 1rem; }
.fit-list li { position: relative; padding: 0.8rem 0 0.8rem 1.75rem; border-top: 1px solid var(--line); color: var(--fg-2); }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.9rem; height: 2px; background: var(--fg); }
.fit-no li::before { width: 0.65rem; height: 0.65rem; top: 1.1rem; background: none; border: 2px solid var(--fg-3); transform: rotate(45deg); }

.contact-line { margin-top: 1.25rem; color: var(--fg-2); }
.contact-line a { display: inline-block; padding: 0.35rem 0; font-weight: 600; letter-spacing: 0.06em; }
.contact-addr { margin-top: 0.5rem; font-size: 0.9375rem; }

.site-footer { border-top: 1px solid #1f1f1f; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.wordmark-footer { min-height: 0; }
.footer-lines { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.875rem; color: var(--fg-2); }
.footer-lines a { display: inline-block; padding: 0.3rem 0; }

.notfound { min-height: 80vh; }

@media (max-width: 40rem) {
  .header-in { min-height: 4rem; }
  .wordmark { font-size: 0.9375rem; letter-spacing: 0.1em; }
  .nav { gap: 0; }
  .nav a { font-size: 0.6875rem; letter-spacing: 0.08em; padding: 0 0.3rem; }
  .panel-hero .panel-in { padding-top: 7rem; }
  .panel-build, .panel-proof, .panel-contact { min-height: 0; }
  .panel-media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 35%, rgba(0, 0, 0, 0.82) 100%); }
  .btn { width: 100%; padding: 0 1rem; letter-spacing: 0.12em; }
}
@media (max-width: 22.5rem) {
  /* very narrow phones (up to 360 px): the nav always sits under the wordmark (same layout in any font) */
  .header-in { flex-wrap: wrap; gap: 0; padding-top: 0.5rem; }
  .site-header nav { flex-basis: 100%; }
  .nav { margin-left: -0.3rem; }
  .panel-hero .panel-in { padding-top: 8.5rem; }
}

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