/* ============================================
   NORTHBRIDGE — design tokens
   ============================================ */
:root {
  --ink:        #142430;
  --ink-2:      #1D3243;
  --stone:      #EDE8DC;
  --stone-2:    #E2DBC9;
  --brass:      #AD8A3E;
  --brass-light:#D8B96B;
  --steel:      #5C7A8A;
  --brick:      #8B3A2B;
  --paper:      #F7F4EC;

  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

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

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

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* subtle paper grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 36, 48, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark--small { font-size: 1.15rem; color: var(--stone); }
.wordmark-dot { color: var(--brass); }

.main-nav {
  display: flex;
  gap: 36px;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-2);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color .2s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  padding: 10px 22px;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-text {
  padding: 13px 4px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}
.btn-text:hover { color: var(--brick); }

.btn-large { padding: 17px 34px; font-size: 1rem; }

.header-cta { flex-shrink: 0; }

/* ============================================
   HERO + BRIDGE SIGNATURE
   ============================================ */
.hero {
  position: relative;
  padding-top: 96px;
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  padding-bottom: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 22px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--ink);
}
.hero-headline em {
  font-style: italic;
  color: var(--brick);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.bridge-scene {
  width: 100%;
  margin-top: 20px;
}
.bridge-svg {
  width: 100%;
  height: auto;
  display: block;
}
.bridge-svg line { vector-effect: non-scaling-stroke; }
.bridge-svg .deck  { stroke: var(--ink); stroke-width: 3; }
.bridge-svg .tower { stroke: var(--ink); stroke-width: 4; }
.bridge-svg .trusses line { stroke: var(--steel); stroke-width: 2; }
.bridge-svg .cable { stroke: var(--brass); stroke-width: 1.6; }

.bridge-svg line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease) forwards;
}
.bridge-svg .trusses line { animation-name: draw; animation-duration: 1.6s; }
.bridge-svg .trusses line:nth-child(1)  { animation-delay: .55s; }
.bridge-svg .trusses line:nth-child(2)  { animation-delay: .62s; }
.bridge-svg .trusses line:nth-child(3)  { animation-delay: .69s; }
.bridge-svg .trusses line:nth-child(4)  { animation-delay: .76s; }
.bridge-svg .trusses line:nth-child(5)  { animation-delay: .83s; }
.bridge-svg .trusses line:nth-child(6)  { animation-delay: .90s; }
.bridge-svg .trusses line:nth-child(7)  { animation-delay: .97s; }
.bridge-svg .trusses line:nth-child(8)  { animation-delay: 1.04s; }
.bridge-svg .trusses line:nth-child(9)  { animation-delay: 1.11s; }
.bridge-svg .trusses line:nth-child(10) { animation-delay: 1.18s; }
.bridge-svg .trusses line:nth-child(11) { animation-delay: 1.25s; }
.bridge-svg .trusses line:nth-child(12) { animation-delay: 1.32s; }
.bridge-svg .cable { animation-delay: 1.5s; animation-duration: 1s; }
.bridge-svg .tower { animation-delay: .1s; }
.bridge-svg .deck  { animation-delay: .1s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ============================================
   STAT STRIP
   ============================================ */
.strip {
  background: var(--ink);
  color: var(--paper);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 32px;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(247,244,236,0.16);
  padding-left: 22px;
}
.strip-item:first-child { border-left: none; padding-left: 0; }
.strip-item .num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--brass-light);
}
.strip-item .label {
  font-size: 0.82rem;
  color: rgba(247,244,236,0.7);
}

/* ============================================
   SECTION HEADINGS (shared)
   ============================================ */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 14px;
}
.section-eyebrow--light { color: var(--brass-light); }

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 48px;
  max-width: 620px;
  color: var(--ink);
}

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 110px 0 100px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(20,36,48,0.12);
  border: 1px solid rgba(20,36,48,0.12);
}

.service-card {
  background: var(--paper);
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s var(--ease);
}
.service-card:hover { background: var(--stone); }

.service-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 100px 0;
  background: var(--stone);
  border-top: 1px solid rgba(20,36,48,0.1);
  border-bottom: 1px solid rgba(20,36,48,0.1);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.process-step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(20,36,48,0.14);
}
.process-step:last-child { border-bottom: 1px solid rgba(20,36,48,0.14); }

.step-index {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--brass);
  padding-top: 3px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.process-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
  max-width: 480px;
}

/* ============================================
   WHY
   ============================================ */
.why { padding: 110px 0; }

.why-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.why-lead {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 420px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}
.why-list h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.why-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.why-list li {
  border-top: 2px solid var(--brass);
  padding-top: 16px;
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
}

.cta-inner { display: flex; flex-direction: column; align-items: center; }

.cta-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.cta-sub {
  color: rgba(247,244,236,0.72);
  max-width: 460px;
  margin: 0 0 52px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 220px));
  gap: 1px;
  background: rgba(247,244,236,0.16);
  margin-bottom: 48px;
  border: 1px solid rgba(247,244,236,0.16);
}
.contact-card {
  background: var(--ink);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s var(--ease);
}
a.contact-card:hover { background: var(--ink-2); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.contact-value {
  font-size: 0.98rem;
  color: var(--paper);
}

.cta .btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.cta .btn-primary:hover { background: var(--brass-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 36px 0 44px;
  border-top: 1px solid rgba(247,244,236,0.14);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-fine {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(237,232,220,0.6);
  max-width: 640px;
}
.footer-fine--muted { color: rgba(237,232,220,0.4); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 920px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 44px; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .strip-item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 720px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(20,36,48,0.1);
    padding: 8px 22px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 10px 0; }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span {
    height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .wrap { padding: 0 22px; }
  .hero { padding-top: 64px; }
  .service-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 44px 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 300px; }
  .services, .process, .why { padding: 72px 0; }
  .cta { padding: 84px 0 72px; }
  .section-heading { margin-bottom: 32px; }
}
