/* ==========================================================================
   Machinefabriek Helbers — stylesheet
   Industrial, precise, calm. Dark graphite sections alternate with
   off-white sections; one steel-blue accent; technical-drawing details.
   ========================================================================== */

/* --- Fonts (self-hosted, latin subset) --- */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens --- */
:root {
  --color-ink: #06101f;
  --color-graphite: #0f2547;
  --color-graphite-2: #17335c;
  --color-paper: #f5f4f1;
  --color-paper-2: #ebe9e4;
  --color-white: #ffffff;
  --color-accent: #0a50a0;
  --color-accent-light: #7bb0ec;
  --color-line-dark: rgba(245, 244, 241, 0.14);
  --color-line-light: rgba(20, 24, 28, 0.14);

  --font-body: "Barlow", system-ui, sans-serif;
  --font-heading: "Barlow Semi Condensed", system-ui, sans-serif;

  --content-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 2px;
  --shadow-soft: 0 20px 50px -25px rgba(0, 0, 0, 0.45);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.55;
  font-size: 1rem;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { max-width: 62ch; }

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

section { position: relative; }

.section-pad { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-dark { background: var(--color-graphite); color: var(--color-paper); }
.section-light { background: var(--color-paper); color: var(--color-ink); }

.section-dark p { color: rgba(245, 244, 241, 0.82); }
.section-dark a { color: var(--color-accent-light); }

/* Technical grid backdrop */
.tech-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--color-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.section-light .tech-grid {
  background-image:
    linear-gradient(var(--color-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-light) 1px, transparent 1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "Barlow", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.section-light .eyebrow { color: var(--color-accent); }
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

h2.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.section-intro {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-light a:focus-visible,
.section-light button:focus-visible {
  outline-color: var(--color-accent);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.5em;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.phone-icon { display: none; width: 1.15rem; height: 1.15rem; }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: #163d80; }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.section-dark .btn-outline:hover { background: rgba(245, 244, 241, 0.1); }
.section-light .btn-outline:hover { background: rgba(20, 24, 28, 0.06); }
.btn-ghost {
  background: rgba(245, 244, 241, 0.08);
  border-color: var(--color-line-dark);
  color: inherit;
}
.btn-ghost:hover { background: rgba(245, 244, 241, 0.16); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-graphite);
  color: var(--color-paper);
  border-bottom: 1px solid var(--color-line-dark);
}

.header-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  transition: min-height 0.2s ease;
}
.site-header.is-scrolled .header-inner {
  min-height: 3.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-paper);
  margin-right: auto;
}
.brand-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.brand-word {
  height: 0.95rem;
  width: auto;
  filter: brightness(0) invert(1);
}
@media (max-width: 480px) {
  .brand .brand-word { display: none; }
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.main-nav a:hover {
  border-color: var(--color-accent-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--color-line-dark);
  border-radius: var(--radius);
  color: var(--color-paper);
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* JS-enhanced collapsible nav */
body.js-nav .nav-toggle {
  display: inline-flex;
}
@media (max-width: 860px) {
  body.js-nav .nav-toggle { display: inline-flex; }
  body.js-nav .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-graphite);
    border-bottom: 1px solid var(--color-line-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  body.js-nav .main-nav.is-open {
    max-height: 24rem;
  }
  body.js-nav .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  body.js-nav .main-nav a {
    display: block;
    padding: 0.85em 0.1em;
    border-bottom: 1px solid var(--color-line-dark);
  }
  .header-phone-text { display: none; }
  .phone-icon { display: block; }
}

@media (min-width: 861px) {
  .nav-toggle { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 780px);
  color: var(--color-paper);
  background-color: var(--color-ink);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.55) 0%, rgba(15, 18, 22, 0.72) 55%, rgba(15,18,22,0.94) 100%),
    linear-gradient(90deg, rgba(15,18,22,0.55) 0%, rgba(15,18,22,0.15) 45%, rgba(15,18,22,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 10vh, 6rem) clamp(2.5rem, 8vh, 4rem);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(245, 244, 241, 0.12);
  border: 1px solid var(--color-line-dark);
  padding: 0.5em 1em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--color-accent-light);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 46ch;
  color: rgba(245, 244, 241, 0.88);
  margin-bottom: 2.25rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Key figures strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--color-line-light);
  border: 1px solid var(--color-line-light);
  margin-block: clamp(2rem, 5vw, 3rem);
}
.stat {
  background: var(--color-white);
  padding: 1.5rem 1.25rem;
  text-align: left;
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--color-accent);
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: #4b545c;
  margin-top: 0.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
.about-grid > * { min-width: 0; }
.about-media {
  position: relative;
}
.about-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line-light);
}
.about-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #5b646c;
  font-family: "Barlow", monospace;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-letterhead {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid var(--color-line-light);
}
.about-letterhead img {
  width: 100%;
  max-width: 30rem;
  height: auto;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--color-line-dark);
  border: 1px solid var(--color-line-dark);
}
.service-card {
  background: var(--color-graphite);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--color-accent-light);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.meta-lists {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--color-line-dark);
  padding-top: 2rem;
}
.meta-list h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 0.9rem;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill-list li {
  border: 1px solid var(--color-line-dark);
  border-radius: 999px;
  padding: 0.45em 1em;
  font-size: 0.9rem;
}

/* ==========================================================================
   Machine park
   ========================================================================== */
.machine-categories {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}
.machine-category {
  min-width: 0;
}
.machine-category h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-line-light);
  -webkit-overflow-scrolling: touch;
}
.machine-category table {
  min-width: 32rem;
}
.machine-category th,
.machine-category td {
  text-align: left;
  padding: 0.85em 1.1em;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-line-light);
  white-space: nowrap;
}
.machine-category td:last-child,
.machine-category th:last-child {
  white-space: normal;
}
.machine-category thead th {
  font-family: "Barlow", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: #5b646c;
  background: var(--color-paper-2);
}
.machine-category tbody tr:last-child td { border-bottom: none; }
.machine-category tbody tr:hover { background: var(--color-paper-2); }

.machine-photos {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.machine-photos .gallery-item { aspect-ratio: 4 / 3; }

/* ==========================================================================
   Gallery (work / products)
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-graphite-2);
  display: block;
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:focus-visible { outline-offset: -3px; }

.gallery-extra { display: block; }
body.js-gallery .gallery-extra {
  display: none;
}
body.js-gallery.gallery-open .gallery-extra {
  display: block;
}

.gallery-more {
  margin-top: 2rem;
  display: none;
}
body.js-gallery .gallery-more { display: flex; justify-content: center; }
body.js-gallery.gallery-open .gallery-more { display: none; }

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  color: var(--color-paper);
}
.lightbox::backdrop {
  background: rgba(10, 12, 15, 0.92);
}
.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}
.lightbox img {
  max-width: min(88vw, 1100px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border: 1px solid var(--color-line-dark);
}
.lightbox-caption {
  font-size: 0.9rem;
  color: rgba(245,244,241,0.75);
  font-family: "Barlow", monospace;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(20, 24, 28, 0.7);
  border: 1px solid var(--color-line-dark);
  color: var(--color-paper);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 1.3rem; height: 1.3rem; }
.lightbox-close { top: -0.25rem; right: -0.25rem; }
.lightbox-prev { left: -0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -0.25rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ==========================================================================
   Jobs
   ========================================================================== */
.jobs-box {
  border: 1px solid var(--color-line-light);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 1.25rem;
  max-width: 46rem;
  background: var(--color-white);
}
.jobs-box p { max-width: none; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
}
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  border: 1px solid var(--color-line-light);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-white);
}
.section-dark .contact-card {
  border-color: var(--color-line-dark);
  background: var(--color-graphite-2);
}
.section-dark .contact-list dt { color: rgba(245, 244, 241, 0.55); }
.contact-list { display: grid; gap: 0.9rem; }
.contact-list dt {
  font-family: "Barlow", monospace;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #5b646c;
}
.contact-list dd {
  font-size: 1.05rem;
  font-weight: 500;
}
.contact-list a { text-decoration: underline; text-decoration-color: var(--color-line-light); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: currentColor; }

.route-list {
  display: grid;
  gap: 1rem;
  counter-reset: route;
  margin-bottom: 1.75rem;
}
.route-list li {
  counter-increment: route;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  font-size: 0.98rem;
}
.route-list li::before {
  content: counter(route);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: rgba(245, 244, 241, 0.75);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 244, 241, 0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-paper);
  margin-bottom: 1rem;
}
.footer-brand .brand-icon { width: 2rem; height: 2rem; }
.footer-brand .brand-word { height: 0.85rem; }
.footer-col h3 {
  font-family: "Barlow", monospace;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(245,244,241,0.5);
  margin-bottom: 0.75rem;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col p, .footer-col address { font-style: normal; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(245,244,241,0.5);
}

/* ==========================================================================
   404
   ========================================================================== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-page .eyebrow { justify-content: center; }
.error-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); }

