/* ============================================================
   DRYWIZARD STEEL BUILDINGS — Design System
   Engineered Clarity
   ============================================================ */

:root {
  /* Color tokens */
  --graphite: #16191D;
  --gunmetal: #242A31;
  --machined: #5C6670;
  --amber: #E8932C;
  --amber-dark: #CF7E1B;
  --mill-white: #F5F6F4;
  --galvanized: #E3E6E8;
  --seam: #C8CDD2;
  --green: #2E7D5B;

  /* Type */
  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: 28px;
  --chamfer: 16px;
  --chamfer-sm: 10px;

  --shadow-card: 0 1px 2px rgba(22,25,29,.06), 0 8px 24px rgba(22,25,29,.07);
  --shadow-lift: 0 2px 4px rgba(22,25,29,.08), 0 16px 40px rgba(22,25,29,.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--mill-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--graphite);
  padding: 10px 18px; font-family: var(--font-display); font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px; background: var(--amber); display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--machined); max-width: 62ch; }
.on-dark .lead, .section-dark .lead { color: var(--seam); }

.mono-label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--machined);
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 104px 0; }
.section-dark { background: var(--graphite); color: var(--mill-white); }
.section-gunmetal { background: var(--gunmetal); color: var(--mill-white); }
.section-light { background: var(--mill-white); }
.section-galv { background: var(--galvanized); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Beam divider */
.beam {
  height: 3px; width: 64px; background: var(--amber); border: 0; margin: 24px 0;
}
.beam.center { margin-left: auto; margin-right: auto; }

/* Blueprint linework overlay for dark sections */
.blueprint {
  position: relative;
  overflow: hidden;
}
.blueprint > .container { position: relative; z-index: 2; }
.blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cg fill='none' stroke='%235C6670' stroke-width='1' opacity='0.35'%3E%3Cpath d='M60 280 L60 130 L210 60 L360 130 L360 280'/%3E%3Cpath d='M60 280 L360 280'/%3E%3Cpath d='M85 280 L85 142'/%3E%3Cpath d='M335 280 L335 142'/%3E%3Cpath d='M210 60 L210 90'/%3E%3Ccircle cx='210' cy='60' r='4'/%3E%3Ccircle cx='60' cy='130' r='3'/%3E%3Ccircle cx='360' cy='130' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 320px;
  opacity: .14;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 15px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--graphite);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  border-color: var(--seam);
  color: var(--graphite);
}
.section-dark .btn-secondary, .section-gunmetal .btn-secondary, .on-dark .btn-secondary {
  color: var(--mill-white);
}
.btn-secondary:hover { border-color: var(--amber); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--seam);
  padding: 32px 28px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before { transform: scaleX(1); }

.section-galv .card, .section-light .card { background: #fff; }
.section-dark .card, .section-gunmetal .card {
  background: var(--gunmetal);
  border-color: rgba(200,205,210,.22);
  color: var(--mill-white);
}
.section-dark .card p, .section-gunmetal .card p { color: var(--seam); }

.card h3 { margin: 14px 0 10px; }
.card p { color: var(--machined); font-size: .98rem; }
.card .mono-label { color: var(--amber); }
.card .card-link {
  display: inline-block; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  text-decoration: none; color: var(--graphite);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.section-dark .card .card-link, .section-gunmetal .card .card-link { color: var(--mill-white); }

/* Icon block for cards */
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--galvanized);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.section-dark .card-icon, .section-gunmetal .card-icon { background: rgba(200,205,210,.12); }
.card-icon svg { width: 30px; height: 30px; stroke: var(--graphite); }
.section-dark .card-icon svg, .section-gunmetal .card-icon svg { stroke: var(--amber); }

/* ---------- Image placeholders ---------- */
.img-ph {
  position: relative;
  background:
    linear-gradient(160deg, var(--gunmetal) 0%, var(--graphite) 100%);
  border: 1px solid rgba(200,205,210,.25);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  overflow: hidden;
}
.img-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cg fill='none' stroke='%235C6670' stroke-width='1.4' opacity='0.5'%3E%3Cpath d='M60 280 L60 130 L210 60 L360 130 L360 280'/%3E%3Cpath d='M60 280 L360 280'/%3E%3Cpath d='M85 280 L85 142'/%3E%3Cpath d='M335 280 L335 142'/%3E%3Cpath d='M210 60 L210 90'/%3E%3Ccircle cx='210' cy='60' r='4' fill='%23E8932C' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 30%;
  opacity: .55;
}
.img-ph .ph-tag {
  position: relative;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--seam);
}
.img-ph .ph-desc {
  position: relative;
  color: var(--mill-white);
  font-size: .95rem;
  margin-top: 6px;
  max-width: 40ch;
}
.img-ph.short { min-height: 220px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease;
  background: transparent;
}
.site-header.scrolled {
  background: var(--gunmetal);
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link svg { height: 46px; width: auto; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--mill-white);
  text-decoration: none;
  padding: 10px 14px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--seam);
  text-decoration: none;
}
.header-phone:hover { color: var(--amber); }
.btn-header { padding: 11px 20px; font-size: .88rem; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--mill-white); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tap-call { display: none; color: var(--mill-white); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 76px;
  background: var(--gunmetal);
  z-index: 99;
  padding: 32px var(--gutter);
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--mill-white);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(200,205,210,.15);
}
.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 1020px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: flex; }
  .tap-call { display: inline-flex; }
  .btn-header { display: none; }
}

/* Mobile sticky bottom bar */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 95;
  background: var(--gunmetal);
  border-top: 1px solid rgba(200,205,210,.2);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
@media (max-width: 1020px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
}
.mobile-bar .btn { flex: 1; padding: 13px 10px; font-size: .9rem; }
.mobile-bar .btn-secondary { border-color: var(--machined); color: var(--mill-white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--graphite);
  color: var(--mill-white);
  padding: 180px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin: 0 0 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.hero-micro {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--machined);
}
.hero-visual { position: relative; }
.hero-visual .img-ph { min-height: 420px; }
.hero.blueprint::before { opacity: .1; }

.hero-sub { padding: 170px 0 90px; }
.hero-sub .hero-grid { grid-template-columns: 1fr; max-width: 780px; }

@media (max-width: 1020px) {
  .hero { padding: 130px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual .img-ph { min-height: 300px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--gunmetal);
  border-top: 1px solid rgba(200,205,210,.12);
  padding: 26px 0;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--seam);
  font-size: .9rem;
}
.trust-item svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: var(--amber); }
@media (max-width: 1020px) { .trust-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-items { grid-template-columns: 1fr; } }

/* ---------- Feature split ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-split.reverse > .feature-copy { order: 2; }
@media (max-width: 1020px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.reverse > .feature-copy { order: 0; }
}
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy p { margin-bottom: 26px; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; margin-top: 24px; }
.timeline::before {
  content: "";
  position: absolute; left: 25px; top: 8px; bottom: 8px;
  width: 3px; background: var(--amber);
}
.timeline-step {
  position: relative;
  padding: 0 0 44px 84px;
}
.timeline-step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px;
  background: var(--gunmetal);
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.timeline-step h3 { margin-bottom: 8px; }
.timeline-step p { color: var(--seam); max-width: 58ch; }
.section-light .timeline-step p { color: var(--machined); }
.section-light .step-num { background: var(--mill-white); }

/* ---------- Quote sample card ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--seam);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  box-shadow: var(--shadow-card);
}
.quote-card-head {
  background: var(--graphite);
  color: var(--mill-white);
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.quote-card-head .mono-label { color: var(--amber); }
.quote-card-body { padding: 10px 28px 28px; }
.quote-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--seam);
}
.quote-row:last-child { border-bottom: 0; }
.quote-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-top: 3px;
}
.quote-badge.inc { background: rgba(46,125,91,.12); color: var(--green); }
.quote-badge.opt { background: rgba(232,147,44,.14); color: var(--amber-dark); }
.quote-badge.conf { background: var(--galvanized); color: var(--machined); }
.quote-badge.exc { background: rgba(22,25,29,.08); color: var(--graphite); }
.quote-row p { font-size: .95rem; color: var(--machined); }
.quote-row strong { display: block; color: var(--graphite); font-size: .98rem; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--seam);
  background: #fff;
  margin-bottom: 14px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--graphite);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .faq-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.faq-icon::before {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translate(-2px, -2px);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 24px;
  color: var(--machined);
  transition: max-height .3s ease, opacity .3s ease;
}
.faq-item.open .faq-a { opacity: 1; }
.faq-a p:last-child { padding-bottom: 22px; }

/* Scroll reveal for FAQ items (only when JS + motion allowed) */
.js-anim .faq-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.js-anim .faq-item.in { opacity: 1; transform: none; }

/* FAQ header badge */
.faq-badge {
  display: inline-flex;
  padding: 14px;
  background: rgba(232,147,44,.12);
  border-radius: 999px;
  margin-bottom: 16px;
}
.faq-badge svg { width: 28px; height: 28px; stroke: var(--amber); }
.faq-a p + p { margin-top: 10px; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-tab {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--seam);
  color: var(--machined);
  padding: 9px 18px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: all .18s ease;
}
.filter-tab:hover { border-color: var(--amber); color: var(--graphite); }
.filter-tab.active { background: var(--graphite); color: var(--mill-white); border-color: var(--graphite); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--seam); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: #fff;
  font-size: .94rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--galvanized);
  vertical-align: top;
}
.compare thead th {
  background: var(--graphite);
  color: var(--mill-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
}
.compare tbody th {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--machined);
  width: 180px;
  background: var(--mill-white);
}
.compare td { color: var(--machined); }

/* ---------- Forms / multi-step quote ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1020px) { .quote-layout { grid-template-columns: 1fr; } }

.form-shell {
  background: #fff;
  border: 1px solid var(--seam);
  padding: 36px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
@media (max-width: 560px) { .form-shell { padding: 24px 20px; } }

.form-progress {
  display: flex; gap: 8px; margin-bottom: 30px;
}
.form-progress .prog {
  flex: 1; height: 4px; background: var(--galvanized);
}
.form-progress .prog.done { background: var(--amber); }

.form-step-label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--machined);
  margin-bottom: 6px;
}
.form-step h2 { font-size: 1.45rem; margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 8px;
}
.field .opt-note { color: var(--machined); text-transform: none; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--graphite);
  background: var(--mill-white);
  border: 1px solid var(--seam);
  padding: 13px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.form-error {
  display: none;
  color: #B3471F;
  font-size: .9rem;
  margin-top: 14px;
}
.form-error.show { display: block; }

.form-micro {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--machined);
  display: flex; gap: 10px; align-items: flex-start;
}
.form-micro svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: var(--green); margin-top: 2px; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success svg { width: 56px; height: 56px; stroke: var(--green); margin: 0 auto 18px; }
.form-success h2 { margin-bottom: 12px; }
.form-success p { color: var(--machined); max-width: 46ch; margin: 0 auto; }

.trust-panel {
  background: var(--graphite);
  color: var(--mill-white);
  padding: 34px 30px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.trust-panel h3 { margin-bottom: 20px; }
.trust-panel ul { list-style: none; }
.trust-panel li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200,205,210,.14);
  color: var(--seam);
  font-size: .95rem;
}
.trust-panel li:last-child { border-bottom: 0; }
.trust-panel li svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: var(--amber); margin-top: 3px; }
.trust-panel .panel-phone {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  color: var(--amber);
  text-decoration: none;
  font-size: .95rem;
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 16ch; margin: 0 auto 16px; }
.final-cta p { color: var(--seam); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: var(--seam);
  padding: 72px 0 0;
  border-top: 3px solid var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand svg { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-col h4 {
  font-size: .82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--machined);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--seam); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--amber); }
.footer-cta { margin: 0 0 40px; }
.footer-bottom {
  border-top: 1px solid rgba(200,205,210,.14);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .82rem;
  color: var(--machined);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none !important; }
.note-confirm {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--machined);
  letter-spacing: .06em;
}

/* ============================================================
   HERO PARALLAX (ported from React/framer-motion HeroParallax)
   ============================================================ */
.hpx {
  background: var(--graphite);
  color: var(--mill-white);
  position: relative;
  height: 230vh; /* JS overrides this via fitHeight() on load + resize */
  padding-top: 130px;
  padding-bottom: 80px;  /* JS also sets this; value here is a no-JS fallback */
  /* clip vertically so nothing bleeds above/below the section,
     but allow horizontal overflow so drifting rows stay reachable */
  overflow-x: clip;
  overflow-y: clip;
}
.hpx-persp {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.hpx-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter) 70px;
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.hpx-header h1 { max-width: 16ch; margin-bottom: 22px; }
.hpx-header .lead { margin-bottom: 34px; }
.hpx-header .btn, .hpx-header a { pointer-events: auto; }

.hpx-stage {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transform: rotateX(15deg) rotateZ(20deg) translateY(-700px);
  opacity: .2;
}
/* Each row is a scroll container — users can drag/swipe left-right
   at any scroll position to reach cards that have drifted off-screen.
   The translateX from JS still runs normally; scroll offsets on top of it. */
.hpx-row {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  will-change: transform;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;          /* Firefox */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  cursor: grab;
}
.hpx-row::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
.hpx-row:active { cursor: grabbing; }
.hpx-row-rev { flex-direction: row-reverse; justify-content: flex-start; }

.hpx-card {
  flex: 0 0 auto;
  width: 20rem;
  height: 13rem;
  min-height: 0;
  text-decoration: none;
  transition: transform .3s ease;
  border-color: rgba(200,205,210,.3);
  scroll-snap-align: start;
}
.hpx-card:hover { transform: translateY(-20px); border-color: var(--amber); }
.hpx-card .hpx-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mill-white);
  margin-top: 4px;
}
.hpx-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.hpx-card:hover::after { transform: scaleX(1); }

/* Reduced motion / no-JS fallback: collapse to a normal hero */
.hpx-static { height: auto; padding-bottom: 90px; }
.hpx-static .hpx-stage { transform: none !important; opacity: 1 !important; }
.hpx-static .hpx-row { transform: none !important; overflow: hidden; margin-bottom: 32px; }
.hpx-static .hpx-row:nth-child(n+2) { display: none; }

@media (max-width: 1020px) {
  .hpx { height: 195vh; padding-top: 96px; padding-bottom: 90px; }
  .hpx-header { padding: 50px var(--gutter) 50px; }
  .hpx-card { width: 13rem; height: 9rem; }
  .hpx-row { gap: 18px; margin-bottom: 18px; overflow-x: auto; }
  .hpx-stage { transform: rotateX(15deg) rotateZ(20deg) translateY(-220px); }
}

/* ============================================================
   BORDER BEAM (vanilla port of the React/Tailwind BorderBeam)
   A light beam travels the perimeter of a box via offset-path.
   Brand colors only: Forge Amber -> Seam Gray -> transparent.
   ============================================================ */
.beam-box { position: relative; }
.border-beam {
  --size: 110;
  --duration: 8;
  --anchor: 90;
  --border-width: 1.5;
  --color-from: #E8932C;
  --color-to: #C8CDD2;
  --delay: 0s;
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: calc(var(--border-width) * 1px) solid transparent;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
  mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
  -webkit-mask-clip: padding-box, border-box;
  mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@supports (offset-path: rect(0 auto auto 0)) {
  .border-beam::after {
    content: "";
    position: absolute;
    aspect-ratio: 1;
    width: calc(var(--size) * 1px);
    background: linear-gradient(to left, var(--color-from), var(--color-to), transparent);
    offset-anchor: calc(var(--anchor) * 1%) 50%;
    offset-path: rect(0 auto auto 0 round calc(var(--size) * 1px));
    animation: border-beam calc(var(--duration) * 1s) infinite linear;
    animation-delay: var(--delay);
  }
}
@keyframes border-beam {
  100% { offset-distance: 100%; }
}


/* ============================================================
   3D MARQUEE (vanilla port of the React/motion ThreeDMarquee)
   Isometric plane of configuration tiles; columns drift in
   alternating directions on pure CSS animations.
   ============================================================ */
.m3d {
  height: 600px;
  overflow: hidden;
  position: relative;
  margin: 48px 0;
}
.m3d-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.m3d-plane-wrap {
  width: 1720px; height: 1720px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m3d-plane {
  width: 1720px;
  transform: rotateX(55deg) rotateZ(-45deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.m3d-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: m3d-drift-a 10s ease-in-out infinite alternate;
}
.m3d-col:nth-child(even) { animation: m3d-drift-b 15s ease-in-out infinite alternate; }
@keyframes m3d-drift-a { to { transform: translateY(100px); } }
@keyframes m3d-drift-b { to { transform: translateY(-100px); } }
.m3d-col::before {
  content: "";
  position: absolute;
  top: -40px; bottom: -40px; left: -17px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(200,205,210,.28) 0 5px, transparent 5px 10px);
}
.m3d-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 970 / 700;
  padding: 22px;
  text-decoration: none;
  background: linear-gradient(160deg, var(--gunmetal) 0%, var(--graphite) 100%);
  border: 1px solid rgba(200,205,210,.28);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transition: transform .3s ease, border-color .3s ease;
  overflow: hidden;
}
.m3d-tile::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cg fill='none' stroke='%235C6670' stroke-width='1.4' opacity='0.5'%3E%3Cpath d='M60 280 L60 130 L210 60 L360 130 L360 280'/%3E%3Cpath d='M60 280 L360 280'/%3E%3Cpath d='M85 280 L85 142'/%3E%3Cpath d='M335 280 L335 142'/%3E%3Cpath d='M210 60 L210 90'/%3E%3Ccircle cx='210' cy='60' r='4' fill='%23E8932C' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 30%;
  opacity: .5;
}
.m3d-tile::after {
  content: "";
  position: absolute;
  top: -17px; left: -10%;
  width: 120%; height: 1px;
  background: repeating-linear-gradient(to right, rgba(200,205,210,.28) 0 5px, transparent 5px 10px);
}
.m3d-tile:hover { transform: translateY(-10px); border-color: var(--amber); }
.m3d-tile .ph-tag { position: relative; }
.m3d-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--mill-white);
  margin-top: 6px;
}
@media (max-width: 1020px) {
  .m3d { height: 460px; }
  .m3d-plane-wrap { transform: scale(.7); }
}
@media (max-width: 640px) {
  .m3d { height: 380px; }
  .m3d-plane-wrap { transform: scale(.5); }
}


/* ============================================================
   CTA GLOW (vanilla port of the React CTA-with-glow + Glow)
   Layered amber radial ellipses rise + brighten on hover;
   content appears with staggered fade-up on scroll.
   ============================================================ */
.final-cta { overflow: hidden; }
.final-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -45%;
  width: 130%;
  height: 75%;
  transform: translateX(-50%) translateY(1rem);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(232,147,44,.22) 8%, rgba(232,147,44,0) 60%),
    radial-gradient(ellipse at center, rgba(232,147,44,.14) 10%, rgba(232,147,44,0) 55%);
  opacity: .8;
  z-index: 1;
  pointer-events: none;
  transition: transform .5s ease-in-out, opacity .5s ease-in-out;
}
.final-cta:hover::after {
  transform: translateX(-50%) translateY(-2rem);
  opacity: 1;
}

/* Appear-on-scroll for CTA content (motion-safe, JS-gated) */
.js-anim .final-cta .container > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.js-anim .final-cta .container > *:nth-child(2) { transition-delay: .1s; }
.js-anim .final-cta .container > *:nth-child(3) { transition-delay: .2s; }
.js-anim .final-cta .container > *:nth-child(4) { transition-delay: .3s; }
.js-anim .final-cta.in .container > * { opacity: 1; transform: none; }

/* CTA button rows + call button */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.final-cta .cta-row { justify-content: center; }
.btn-call svg { width: 17px; height: 17px; stroke: currentColor; flex: 0 0 auto; }

/* Call button — always solid/visible regardless of section background */
.btn-call {
  background: var(--gunmetal) !important;
  border-color: var(--amber) !important;
  color: var(--mill-white) !important;
}
.btn-call:hover {
  background: var(--amber) !important;
  color: var(--graphite) !important;
}
.btn-call svg { stroke: var(--amber); }
.btn-call:hover svg { stroke: var(--graphite); }

/* ============================================================
   REAL IMAGES — replaces .img-ph placeholders where photos exist
   ============================================================ */
.real-img {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  min-height: 340px;
  display: block;
}
.real-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.real-img:hover img { transform: scale(1.03); }
.real-img .img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(22,25,29,.72));
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--seam);
}

/* Card-sized image for building type detail sections */
.real-img.short { min-height: 220px; }

/* Hero background image (parallax hero cards) */
.hpx-card.has-img {
  background: none;
  overflow: hidden;
  /* Strict box — image must never escape these dimensions */
  position: relative;
  flex: 0 0 auto;
  width: 20rem;
  height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
}
.hpx-card.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hpx-card.has-img .ph-tag,
.hpx-card.has-img .hpx-title {
  position: relative; z-index: 2;
}
.hpx-card.has-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,25,29,.82) 0%, rgba(22,25,29,.15) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* 3D marquee tiles with real images */
.m3d-tile.has-img { overflow: hidden; }
.m3d-tile.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .55;
  transition: opacity .3s ease;
}
.m3d-tile.has-img:hover img { opacity: .7; }
.m3d-tile.has-img .ph-tag,
.m3d-tile.has-img .m3d-title { position: relative; z-index: 2; }


/* ============================================================
   BUILDING TYPE MODAL
   Tap/click a tile in the "Built for Every Industry" section
   to open a rich info panel. Closes on backdrop click or X.
   ============================================================ */
.btype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 1020px) { .btype-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .btype-grid { grid-template-columns: 1fr; } }

.btype-tile {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(200,205,210,.25);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: transform .25s ease, border-color .25s ease;
  background: var(--gunmetal);
}
.btype-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s ease;
  opacity: .7;
}
.btype-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,25,29,.85) 0%, rgba(22,25,29,.2) 60%, transparent 100%);
}
.btype-tile:hover { transform: translateY(-5px); border-color: var(--amber); }
.btype-tile:hover img { transform: scale(1.06); opacity: .85; }
.btype-tile-body { position: relative; z-index: 2; }
.btype-tile .mono-label { color: var(--amber); display: block; margin-bottom: 5px; }
.btype-tile h3 { color: var(--mill-white); font-size: 1.15rem; margin: 0; }
.btype-tap-hint {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .85;
}
.btype-tap-hint svg { width: 13px; height: 13px; stroke: var(--amber); }

/* Modal backdrop */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(22,25,29,.82);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }

/* Modal panel */
.modal-panel {
  background: var(--gunmetal);
  color: var(--mill-white);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  position: relative;
  animation: modal-in .28s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-img {
  width: 100%; height: 240px;
  object-fit: cover; object-position: center;
  display: block;
}
.modal-body { padding: 32px 36px 36px; }
@media (max-width: 600px) { .modal-body { padding: 24px 20px 28px; } .modal-img { height: 180px; } }
.modal-eyebrow { color: var(--amber); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.modal-panel h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.modal-panel p  { color: var(--seam); line-height: 1.7; margin-bottom: 14px; }
.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 28px;
}
@media (max-width: 600px) { .modal-features { grid-template-columns: 1fr; } }
.modal-feat {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,255,255,.05);
  padding: 12px 14px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.modal-feat svg { flex: 0 0 auto; width: 17px; height: 17px; stroke: var(--amber); margin-top: 2px; }
.modal-feat span { font-size: .93rem; color: var(--seam); }
.modal-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: rgba(22,25,29,.6);
  border: 1px solid rgba(200,205,210,.25);
  color: var(--mill-white);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; line-height: 1;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transition: background .2s ease;
  z-index: 10;
}
.modal-close:hover { background: var(--amber); color: var(--graphite); }


/* ============================================================
   BUILDING TYPE JUMP TABS — card style with beam effect
   Used on the buildings page quick-nav strip
   ============================================================ */
.btype-nav {
  background: var(--graphite);
  border-top: 1px solid rgba(200,205,210,.1);
  border-bottom: 3px solid var(--amber);
  padding: 24px 0;
}
.btype-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1020px) { .btype-nav-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .btype-nav-grid { grid-template-columns: repeat(2, 1fr); } }

.btype-nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 18px 12px;
  background: var(--gunmetal);
  border: 1px solid rgba(200,205,210,.18);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  overflow: hidden;
  text-align: center;
}
.btype-nav-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  background: rgba(36,42,49,.9);
}
.btype-nav-card .btype-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--amber);
}
.btype-nav-card .btype-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--mill-white);
  line-height: 1.2;
}

/* Beam on each nav card */
.btype-nav-card .border-beam {
  --size: 80;
  --duration: 6;
}
/* Stagger beam delays for the 6 cards */
.btype-nav-card:nth-child(1) .border-beam { --delay: 0s; }
.btype-nav-card:nth-child(2) .border-beam { --delay: -1s; }
.btype-nav-card:nth-child(3) .border-beam { --delay: -2s; }
.btype-nav-card:nth-child(4) .border-beam { --delay: -3s; }
.btype-nav-card:nth-child(5) .border-beam { --delay: -4s; }
.btype-nav-card:nth-child(6) .border-beam { --delay: -5s; }
