/* ============================================================
   NAE — Northland Automation & Engineering
   Industrial-premium design system
   ============================================================ */

:root {
  /* Palette */
  --ink:           #0B1118;     /* near-black, primary surface */
  --ink-2:         #131C26;     /* elevated dark surface */
  --ink-3:         #1C2733;     /* card on dark */
  --bone:          #F5F2EC;     /* paper/off-white */
  --bone-2:        #ECE7DE;     /* slightly warmer */
  --steel:         #6E7A88;     /* mid gray */
  --steel-2:       #99A4B0;
  --line:          rgba(255,255,255,0.08);
  --line-dark:     rgba(11,17,24,0.10);
  --signal:        #FF5C28;     /* industrial orange accent */
  --signal-2:      #FF8A5C;
  --amber:         #F5B033;
  --green:         #21C07A;

  /* Type */
  --f-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    1.25rem;
  --fs-h4:      1.5rem;
  --fs-h3:      2rem;
  --fs-h2:      2.75rem;
  --fs-h1:      clamp(2.75rem, 6vw, 5.25rem);

  /* Geometry */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --max:   1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease:  cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--dark { background: var(--ink); color: var(--bone); }
.section--ink  { background: var(--ink-2); color: var(--bone); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Type ---------- */
h1,h2,h3,h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { margin: 0 0 1.2em; }
p.lead { font-size: var(--fs-lead); color: var(--steel); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.section--dark .eyebrow { color: var(--signal-2); }

.kicker {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--signal); color: #fff;
}
.btn-primary:hover { background: #ff4514; }
.btn-ghost {
  background: transparent; color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }
.btn-dark {
  background: var(--ink); color: var(--bone);
}
.btn-dark:hover { background: #000; }
.btn .arrow {
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(245,242,236,0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.nav.scrolled {
  background: rgba(245,242,236,0.92);
  border-bottom-color: var(--line-dark);
  padding: 12px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.footer .brand__mark img,
.section--dark .brand__mark img {
  filter: invert(1);
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  line-height: 1;
  margin-top: 3px;
  font-weight: 400;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: rgba(11,17,24,0.06); }
.nav__links a.active { color: var(--signal); }
.nav__cta { margin-left: 8px; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: var(--ink); color: var(--bone);
  border: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bone);
    border-top: 1px solid var(--line-dark);
    padding: 16px var(--gutter) 24px;
    gap: 4px;
  }
  .nav.open .nav__links a { padding: 14px 16px; }
  .nav.open .nav__cta { display: inline-flex; margin: 12px var(--gutter) 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 880px);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
}
.hero::before {
  /* engineering grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,1), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,1), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(255,92,40,0.18), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
/* Subtle machined-metal texture in the hero — kept for back-compat, now lower opacity */
.hero__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("img/hero-machinery.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: 0.08;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.9) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

/* Hero split layout — text + featured image */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { order: -1; max-width: 520px; }
}
.hero__image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-3);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}
.hero__image::after {
  /* subtle vignette so the image sits in the dark hero */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,17,24,0.35) 100%);
  pointer-events: none;
}
/* Floating spec chip */
.hero__chip {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(11,17,24,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero__chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  max-width: 16ch;
  font-weight: 600;
}
.hero__title .accent {
  background: linear-gradient(90deg, var(--signal), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--steel-2);
  max-width: 56ch;
  margin: 28px 0 40px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}
.stat__num .unit {
  color: var(--signal);
}
.stat__label {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--steel-2);
  max-width: 22ch;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--bone);
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 10%, rgba(0,0,0,1), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 10%, rgba(0,0,0,1), transparent 65%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero p.lead { color: var(--steel-2); margin-top: 18px; }
.breadcrumbs {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--steel-2); }
.breadcrumbs a:hover { color: var(--signal-2); }
.breadcrumbs .sep { margin: 0 12px; opacity: 0.5; }

/* ---------- Capability strip ---------- */
.cap-card {
  background: var(--bone-2);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), background .35s var(--ease);
  border: 1px solid transparent;
}
.cap-card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--line-dark);
}
.cap-card__num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--signal);
  margin-bottom: 28px;
}
.cap-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.cap-card p {
  color: var(--steel);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  position: relative;
  background: var(--ink-2);
  color: var(--bone);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,92,40,0.4);
}
.product-card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  position: relative;
  overflow: hidden;
}
.product-card__media svg,
.product-card__media img {
  width: 100%; height: 100%; position: absolute; inset: 0;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  filter: saturate(0.85) brightness(0.92);
}
.product-card:hover .product-card__media img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
.product-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,24,0) 50%, rgba(11,17,24,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.product-card__tag-overlay {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(11,17,24,0.65);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.product-card__body {
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; flex: 1;
}
.product-card__tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-2);
  margin-bottom: 12px;
}
.product-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.product-card p {
  color: var(--steel-2);
  font-size: 0.95rem;
  flex: 1;
}
.product-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-2);
  margin-top: 18px;
}
.product-card__link .arrow { transition: transform .25s var(--ease); }
.product-card:hover .product-card__link .arrow { transform: translateX(4px); }

/* ---------- Feature row (image + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature--reverse { grid-template-columns: 1fr 1.05fr; }
.feature--reverse .feature__media { order: 2; }
@media (max-width: 820px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}
.feature__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--ink-3);
  position: relative;
}
.feature__media svg,
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.industry {
  background: var(--ink-2);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s var(--ease);
}
.industry:hover { background: var(--ink-3); }
.industry__icon {
  width: 36px; height: 36px;
  color: var(--signal);
}
.industry__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.industry__desc {
  color: var(--steel-2);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Spec list ---------- */
.spec-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec-list li {
  background: var(--bone);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.spec-list .label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.spec-list .value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ---------- Feature bullets (dark) ---------- */
.bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 14px;
}
.bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 1.02rem;
  color: var(--ink);
}
.section--dark .bullets li { color: var(--bone); }
.bullets .tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,92,40,0.15);
  color: var(--signal);
  display: grid; place-items: center;
  font-size: 0.7rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.section--dark .bullets .tick { background: rgba(255,92,40,0.18); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--line-dark);
  display: grid; gap: 40px;
}
.timeline__item h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.timeline__year {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 8px;
  display: block;
  position: relative;
}
.timeline__year::before {
  content: "";
  position: absolute;
  left: -38px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--bone), 0 0 0 5px var(--signal);
}
.timeline__item p {
  color: var(--steel);
  margin: 0;
  max-width: 60ch;
}

/* ---------- Two-col content ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.two-col__sticky { position: sticky; top: 110px; align-self: start; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,92,40,0.25), transparent 65%);
}
.cta-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 820px) { .cta-banner__inner { grid-template-columns: 1fr; } }
.cta-banner h2 { max-width: 16ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 36px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer h5 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a { color: var(--bone); opacity: 0.78; font-size: 0.96rem; transition: opacity .2s; }
.footer a:hover { opacity: 1; color: var(--signal-2); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--steel-2);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field textarea, .field select {
  font: inherit;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(255,92,40,0.12);
}
.section--dark .field input,
.section--dark .field textarea,
.section--dark .field select {
  background: var(--ink-3);
  color: var(--bone);
  border-color: var(--line);
}
.section--dark .field label { color: var(--steel-2); }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  aspect-ratio: 16/10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Video embeds ---------- */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line-dark);
}
.section--dark .video { border-color: var(--line); }
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
  padding: 24px 0;
  background: var(--bone);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--steel);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 12px; }
.marquee__track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Misc helpers ---------- */
.text-steel { color: var(--steel); }
.text-signal { color: var(--signal); }
.divider { height: 1px; background: var(--line-dark); border: none; margin: 56px 0; }
.section--dark .divider { background: var(--line); }
.center { text-align: center; }
.max-prose { max-width: 64ch; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Print niceties ---------- */
@media print {
  .nav, .footer, .cta-banner { display: none; }
}
