/* Techtonic — site styles
   Palette and type from Brand Guide v1.0 (October 2026). */

@font-face {
  font-family: "Michroma";
  src: url("fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --carbon: #07090D;
  --signal: #0470F6;   /* accent only: dots, borders, dividers. Never small text. */
  --white: #FFFFFF;
  --steel: #9AA1AD;    /* secondary text on Carbon, 7.7:1 */
  --ink: #0B0E14;
  --hairline: rgba(154, 161, 173, 0.18);
  --hairline-strong: rgba(154, 161, 173, 0.32);

  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: 16px;
  --space: clamp(64px, 10vw, 128px);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Display type ---------- */

h1, h2, h3, .label, .btn, .site-nav a {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1, h2, h3 { margin: 0 0 0.75em; line-height: 1.3; color: var(--white); }

h1 { font-size: clamp(1.375rem, 4.6vw, 3rem); letter-spacing: 0.1em; line-height: 1.25; }
h2 { font-size: clamp(1.125rem, 2.4vw, 1.625rem); }
h3 { font-size: 1rem; letter-spacing: 0.14em; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--steel);
}

/* Indicator dot: echoes the terminal dot in the logo */
.label::before,
.dot::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--steel); max-width: 40em; }
.muted { color: var(--steel); }

/* ---------- Layout ---------- */

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

.section {
  padding: var(--space) 0;
  border-top: 1px solid var(--hairline);
}

/* ---------- Skip link + focus ---------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
.skip-link:focus-visible { outline-color: var(--white); }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--hairline); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Logo: supplied SVG, unaltered. Padding adds the clear space
   the SVG's own margin doesn't fully cover (>= signal-dot diameter). */
.logo { display: inline-block; padding: 6px; margin: -6px; text-decoration: none; }
.logo img { width: 176px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--steel);
  text-decoration: none;
}

.site-nav a:hover { color: var(--white); }

.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.16em;
  bottom: 2px;
  height: 2px;
  background: var(--signal);
}

@media (max-width: 559px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .logo img { width: 152px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--signal);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  line-height: 1.2;
}

.btn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.btn:hover { border-color: var(--white); }

.btn--quiet { border-color: var(--hairline-strong); }
.btn--quiet::after { background: var(--steel); }

.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: border-color 150ms ease, color 150ms ease; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 160px) 0 var(--space);
  /* Visible grid: 1px Steel hairlines on a 64px module */
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

.hero h1 { max-width: 20em; }
.hero .lede { margin-top: 32px; }

/* Thin signal trace under hero heading */
.trace {
  display: flex;
  align-items: center;
  width: min(360px, 70%);
  margin-top: 40px;
}
.trace::before { content: ""; flex: 1; height: 2px; background: var(--signal); }
.trace::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }

/* Page header (inner pages) */
.page-head { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 88px); }
.page-head .lede { margin-top: 24px; }

/* ---------- Grids ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.grid > * {
  padding: clamp(24px, 3.5vw, 40px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.grid h3 { margin-bottom: 1em; }
.grid p { color: var(--steel); }

.index {
  display: block;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.split {
  display: grid;
  gap: 32px 64px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
}

/* ---------- Products ---------- */

.products { display: grid; gap: 0; border-top: 1px solid var(--hairline); }

.product {
  display: grid;
  gap: 28px 56px;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 820px) {
  .product { grid-template-columns: 5fr 7fr; align-items: center; }
}

.product-media {
  margin: 0;
  border: 1px solid var(--hairline);
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

.product-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--steel);
}

.product h2 { margin-bottom: 0.9em; }
.product p { color: var(--steel); max-width: 34em; }

.spec {
  margin: 28px 0 32px;
  padding: 14px 16px;
  border: 1px dashed var(--hairline-strong);
  font-size: 0.9375rem;
  color: var(--steel);
}
.spec strong { color: var(--white); font-weight: 600; }

/* ---------- Credit lockup (About) ---------- */

.credit {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--hairline);
}
.credit .label { margin: 0; }
.credit .label::before { display: none; }
.credit img { width: 160px; }

/* ---------- CTA band ---------- */

.cta h2 { max-width: 22em; }
.cta p { color: var(--steel); max-width: 36em; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
  font-size: 0.9375rem;
  color: var(--steel);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}

.site-footer .logo img { width: 152px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; }
.footer-bottom a { color: var(--white); text-underline-offset: 4px; }

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

/* Inline links in body copy */
main p a { color: var(--white); text-underline-offset: 4px; text-decoration-color: var(--signal); text-decoration-thickness: 1px; }
main p a:hover { text-decoration-thickness: 2px; }

@media (max-width: 559px) {
  .site-nav { width: 100%; }
  .site-nav ul { gap: 4px 12px; justify-content: space-between; }
  .site-nav a { font-size: 0.65625rem; letter-spacing: 0.1em; }
}

.cta-email { margin-top: 20px; font-size: 0.9375rem; }
