/* Protech Dynamics
   Industrial / instrumentation styling. Hard edges everywhere: no border
   radius, no soft shadows, mitred rules, stencil-style labels. */

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #080b0e;
  --ground-2: #0d1216;
  --steel: #7e9aad;
  --steel-dim: #4a5b68;
  --ink: #eef3f6;
  --muted: #93a5b1;
  --amber: #d68b2a;
  --amber-hot: #f0ba64;
  --rule: rgba(126, 154, 173, 0.20);
  --rule-hot: rgba(214, 139, 42, 0.45);

  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: 'Archivo Black', 'Montserrat', Impact, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* ---------- stencil label ---------- */

.label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.label::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

.label .idx {
  color: var(--steel-dim);
}

/* ---------- header ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(8, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  font-family: var(--display);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand .dot {
  color: var(--amber);
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s linear, border-color 0.15s linear;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

#lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Faint measurement grid over the canvas. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(126, 154, 173, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(126, 154, 173, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: 7rem 4rem;
}

.hero-inner {
  max-width: 46rem;
}

.wordmark {
  font-family: var(--display);
  /* Archivo Black is wide. width:100% gives the text a box to wrap inside so
     the two words break cleanly on narrow screens instead of overflowing. */
  font-size: clamp(2.1rem, 8vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  width: 100%;
}

.wordmark .rule {
  display: block;
  width: 92px;
  height: 3px;
  background: var(--amber);
  margin-top: 1.5rem;
}

.tagline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.9rem;
  max-width: 34rem;
}

.lede {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--muted);
  margin: 0 0 2.25rem;
  max-width: 36rem;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--rule-hot);
  background: rgba(214, 139, 42, 0.07);
  transition: background 0.15s linear, border-color 0.15s linear;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(214, 139, 42, 0.18);
  border-color: var(--amber);
}

.note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  border-left: 2px solid var(--rule-hot);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--rule);
  width: fit-content;
  max-width: 100%;
}

.readout div {
  padding: 0.7rem 1.15rem;
  border-right: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.readout div:last-child {
  border-right: 0;
}

.readout b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ---------- sections ---------- */

.band {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.band.alt {
  background: var(--ground-2);
}

.band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  width: 100%;
}

.band p {
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2.75rem;
}

.cell {
  background: var(--ground);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  position: relative;
}

.band.alt .cell {
  background: var(--ground-2);
}

.cell .n {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.9rem;
}

.cell h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.cell p {
  font-size: 0.9rem;
  margin: 0;
}

/* Placeholder copy, deliberately conspicuous so it cannot ship by accident. */
.tbd {
  border: 1px dashed var(--rule-hot);
  padding: 1rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(214, 139, 42, 0.05);
  max-width: 44rem;
}

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

.foot {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.85rem;
  color: var(--muted);
}

.foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  justify-content: space-between;
}

.foot .entity {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.foot address {
  font-style: normal;
  line-height: 1.8;
}

.foot .legal {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--steel-dim);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* ---------- 404 ---------- */

.mid {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.code {
  font-family: var(--display);
  font-size: clamp(3.5rem, 15vw, 9rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.back {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule-hot);
  padding: 0.75rem 1.4rem;
  transition: background 0.15s linear;
}

.back:hover,
.back:focus-visible {
  background: rgba(214, 139, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

.form {
  margin-top: 2.5rem;
  max-width: 40rem;
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(8, 11, 14, 0.72);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s linear, background 0.15s linear;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(8, 11, 14, 0.95);
}

/* Honeypot: removed from view and from the tab order without display:none,
   which some bots detect and skip. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  cursor: pointer;
  font-family: var(--mono);
}

.form .btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  min-height: 1.2em;
  margin: 1rem 0 0;
  color: var(--steel);
}

.form-status.is-ok {
  color: var(--amber-hot);
}

.form-status.is-error {
  color: #e0714f;
}

.form-legal {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--steel-dim);
  margin-top: 1.5rem;
  max-width: 34rem;
}

.form-legal a {
  color: var(--steel);
}
