/* ==========================================================================
   Schenk Engineering — design tokens
   Palette: graphite bg, steel gray (brand), blueprint blue accent, safety orange signal, paper white
   Type: Archivo (display, condensed industrial) / Inter (body) / IBM Plex Mono (specs, labels, data)
   Signature: registration-mark corners + blueprint grid, like a machine drawing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --graphite: #1c1b1e;
  --graphite-2: #232226;
  --steel: #575358;
  --steel-light: #8a8791;
  --blueprint: #4d7fa3;
  --blueprint-dim: #345872;
  --signal: #d9622b;
  --paper: #f2efe9;
  --paper-dim: #cfcbc2;
  --line: rgba(242, 239, 233, 0.14);

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

a { color: inherit; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- registration-mark corners: the signature element ---------- */
.reg {
  position: relative;
  border: 1px solid var(--line);
}
.reg::before, .reg::after,
.reg .rc-tr, .reg .rc-bl {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.reg::before { top: -1px; left: -1px; border-top: 2px solid var(--blueprint); border-left: 2px solid var(--blueprint); }
.reg::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--blueprint); border-right: 2px solid var(--blueprint); }

/* ---------- header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 27, 30, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 10px;
  height: 10px;
  background: var(--blueprint);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.brand img.logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.navlinks {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.navlinks a {
  text-decoration: none;
  color: var(--paper-dim);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.navlinks a:hover, .navlinks a.active {
  color: var(--paper);
  border-color: var(--blueprint);
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin: 0 0 18px;
}
h1.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-transform: uppercase;
}
h1.title .divider { color: var(--steel-light); margin: 0 10px; }
.tagline {
  font-size: 1.15rem;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 auto;
}
.hero-video {
  margin-top: 48px;
  overflow: hidden;
}
.hero-video video { width: 100%; }

/* ---------- generic section ---------- */
section { padding: 72px 0; }
section.bordered { border-bottom: 1px solid var(--line); }
h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  text-align: center;
}
.section-title .divider { color: var(--steel-light); margin-left: 8px; }
.section-lede { color: var(--paper-dim); max-width: 60ch; margin: 0 auto 40px; text-align: center; }

/* ---------- family / about ---------- */
.family-copy {
  max-width: 68ch;
  font-size: 1.05rem;
  color: var(--paper-dim);
  margin: 0 auto;
  text-align: center;
}
.family-copy strong { color: var(--paper); }
.family-photo {
  max-width: 640px;
  margin: 36px auto 0;
  overflow: hidden;
}
.family-photo img { width: 100%; display: block; }

/* ---------- team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.team-card { padding: 0; overflow: hidden; }
.team-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--graphite-2);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 16px 18px 20px; text-align: center; }
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.team-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--blueprint);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- projects ---------- */
.project-list { display: flex; flex-direction: column; gap: 56px; }
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.project:nth-child(even) { direction: rtl; }
.project:nth-child(even) > * { direction: ltr; }
.project-media { overflow: hidden; background: var(--graphite-2); }
.project-media video { width: 100%; display: block; }
.project-text { text-align: center; }
.project-index {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 8px 0 10px;
}
.project-desc { color: var(--paper-dim); margin: 0; }
.project-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid var(--blueprint-dim);
}
.project-link:hover { color: var(--paper); border-color: var(--paper); }

@media (max-width: 760px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  text-align: center;
}
form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; text-align: left; }
label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--paper-dim);
}
input, textarea {
  background: var(--graphite-2);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blueprint);
}
button.submit {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--signal);
  color: var(--graphite);
  border: none;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  padding: 13px 26px;
  cursor: pointer;
  transition: filter 0.15s;
}
button.submit:hover { filter: brightness(1.1); }
button.submit:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

.info-block { font-family: var(--font-mono); font-size: 0.88rem; }
.info-block h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.info-block p { margin: 0 0 22px; color: var(--paper-dim); }
.info-block a { color: var(--blueprint); text-decoration: none; }
.hours-table { width: 100%; max-width: 320px; margin: 0 auto 22px; border-collapse: collapse; }
.hours-table td { padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--paper-dim); }
.hours-table td:first-child { color: var(--paper); width: 40%; }
.social-links { display: flex; gap: 18px; justify-content: center; }
.social-links a {
  text-decoration: none;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 0.8rem;
  transition: color 0.15s, border-color 0.15s;
}
.social-links a:hover { color: var(--paper); border-color: var(--blueprint); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--steel-light);
  text-align: center;
}
