/* ============================================================
   Bridgework — site styles
   Fonts: Space Grotesk (display), IBM Plex Sans (body), IBM Plex Mono (labels)
   ============================================================ */
:root {
  --slate:  #1A2230;
  --slate-2:#2A3242;
  --bone:   #F2EDE2;
  --chalk:  #FAF6EC;
  --iron:   #6B7280;
  --iron-soft: #9AA0A8;
  --rust:   #B54A1F;
  --rust-soft: #E9C9B5;
  --rule:   #D9D2C2;
  --rule-dark: rgba(242,237,226,0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bone); color: var(--slate); }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--slate); color: var(--bone); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: "IBM Plex Mono", monospace; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ----- NAV ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,237,226,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.03em; color: var(--slate); }
.brand .slash { color: var(--rust); font-weight: 400; }
.navlinks { display: flex; gap: 32px; align-items: center; }
.navlinks a { font-size: 14px; font-weight: 400; color: var(--slate); transition: color .15s ease; }
.navlinks a:hover { color: var(--rust); }
.navlinks .cta { color: var(--rust); font-weight: 500; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--slate);
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; padding: 8px 10px;
}
.mobile-menu {
  display: none; flex-direction: column; padding: 8px 40px 24px; gap: 4px;
  border-bottom: 1px solid var(--rule); background: var(--bone);
}
.mobile-menu a {
  padding: 14px 0; font-size: 18px; font-family: "Space Grotesk", sans-serif;
  font-weight: 500; letter-spacing: -0.015em; color: var(--slate); border-bottom: 1px solid var(--rule);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }

/* ----- HERO ----- */
.hero { padding: 96px 0 88px; border-bottom: 1px solid var(--rule); }
.hero .eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--iron); margin-bottom: 40px;
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(48px, 7.8vw, 116px); letter-spacing: -0.035em;
  line-height: 0.96; margin: 0 0 32px; max-width: 18ch;
}
.hero h1 em { color: var(--rust); font-style: normal; font-weight: 500; }
.hero .lede { max-width: 58ch; font-size: 21px; line-height: 1.5; color: var(--iron); margin: 0 0 40px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px; padding: 14px 22px;
  border: 1px solid var(--slate); background: var(--slate); color: var(--bone);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--rust); border-color: var(--rust); color: var(--chalk); }
.btn.primary:hover { background: #9b3e18; border-color: #9b3e18; }
.btn.ghost { background: transparent; color: var(--slate); }
.btn.ghost:hover { background: var(--slate); color: var(--bone); }
.hero-byline {
  margin-top: 88px; display: flex; align-items: center; gap: 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--iron);
}
.hero-byline .rule { flex: 1; height: 1px; background: var(--rule); }
.hero-byline em { color: var(--rust); font-style: normal; }

/* ----- Section frame ----- */
.section { padding: 112px 0; border-bottom: 1px solid var(--rule); }
.section.dark { background: var(--slate); color: var(--bone); border-bottom-color: var(--slate-2); }
.section.dark .iron { color: var(--iron-soft); }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline; margin-bottom: 56px; }
.sec-head .kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--iron);
}
.section.dark .sec-head .kicker { color: var(--rust-soft); }
.sec-head h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(36px, 4.4vw, 62px); letter-spacing: -0.03em; line-height: 1.0;
  margin: 0 0 14px; max-width: 18ch;
}
.sec-head .lead { margin: 0; color: var(--iron); max-width: 60ch; font-size: 18px; line-height: 1.5; }
.section.dark .sec-head .lead { color: var(--iron-soft); }

/* ----- Services ----- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.svc {
  background: var(--chalk); padding: 36px 36px 32px; position: relative;
  transition: background .2s ease; display: grid;
  grid-template-rows: auto auto auto 1fr auto; gap: 18px; min-height: 340px;
}
.svc:hover { background: var(--bone); }
.svc .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.12em; color: var(--iron); }
.svc h3 { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 32px; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.svc .blurb { color: var(--iron); font-size: 16px; line-height: 1.55; margin: 0; }
.svc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.svc ul li { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--slate); padding-left: 16px; position: relative; }
.svc ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 1px; background: var(--rust); }
.svc .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px dashed var(--rule);
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--iron); letter-spacing: 0.08em;
}

/* ----- Process ----- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 1px; background: var(--rust-soft); }
.step { padding: 0 14px 0 0; position: relative; }
.step .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rust); position: relative; z-index: 1; margin: 18px 0 32px; }
.step .stepnum { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.12em; color: var(--rust); margin-bottom: 8px; }
.step h4 { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 28px; letter-spacing: -0.025em; line-height: 1.0; margin: 0 0 12px; color: var(--bone); }
.step p { margin: 0; color: var(--iron-soft); font-size: 15px; line-height: 1.55; max-width: 26ch; }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-copy p {
  font-family: "Space Grotesk", sans-serif; font-weight: 400;
  font-size: 24px; line-height: 1.4; letter-spacing: -0.015em;
  margin: 0 0 22px; color: var(--slate); max-width: 32ch;
}
.about-copy p em { color: var(--rust); font-style: normal; font-weight: 500; }
.about-copy p.fine { font-size: 16px; color: var(--iron); max-width: 44ch; line-height: 1.55; font-family: "IBM Plex Sans", sans-serif; font-weight: 400; letter-spacing: 0; }
.partners { display: grid; gap: 14px; }
.partner { background: var(--chalk); border: 1px solid var(--rule); padding: 22px; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.partner .photo {
  width: 72px; height: 86px; background: var(--slate);
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(242,237,226,0.04) 8px 9px);
  display: flex; align-items: flex-end; justify-content: center; color: var(--rust-soft);
  font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: 0.08em; padding-bottom: 6px;
}
.partner .role { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iron); margin-bottom: 6px; }
.partner h5 { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 8px; }
.partner .bio { font-size: 14px; line-height: 1.5; color: var(--iron); margin: 0; }

/* ----- Testimonials ----- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quote { background: var(--chalk); border: 1px solid var(--rule); padding: 32px 28px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; min-height: 320px; }
.quote .qmark { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 56px; line-height: 0.6; color: var(--rust); }
.quote blockquote { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: -0.015em; line-height: 1.35; color: var(--slate); }
.quote .attr { border-top: 1px dashed var(--rule); padding-top: 16px; }
.quote .attr .name { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.quote .attr .meta { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--iron); margin-top: 4px; }
.placeholder-banner {
  margin-top: 32px; background: var(--bone); border: 1px dashed var(--rule); padding: 16px 22px;
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.08em; color: var(--iron); text-align: center;
}

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.contact-big { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.03em; line-height: 1.0; margin: 0 0 32px; color: var(--bone); max-width: 14ch; }
.contact-big em { color: var(--rust); font-style: normal; font-weight: 500; }
.contact-copy { color: var(--iron-soft); font-size: 18px; line-height: 1.5; margin: 0 0 32px; max-width: 42ch; }
.contact-meta { display: grid; gap: 14px; font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 0.06em; color: var(--iron-soft); }
.contact-meta a { color: var(--iron-soft); transition: color .15s; }
.contact-meta a:hover { color: var(--bone); }
.contact-meta .label { color: var(--rust-soft); display: block; margin-bottom: 2px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Form */
.form { background: var(--chalk); padding: 32px 32px 28px; display: grid; gap: 16px; }
.form .row { display: grid; gap: 6px; }
.form label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iron); }
.form input, .form textarea {
  font-family: "IBM Plex Sans", sans-serif; font-size: 15px; color: var(--slate);
  border: 0; border-bottom: 1px solid var(--rule); background: transparent;
  padding: 8px 0 10px; outline: none; transition: border-color .15s ease;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--rust); }
.form textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.form .submit { margin-top: 8px; align-self: start; }
.form-success { padding: 8px 0; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; color: var(--slate); }
.form-success em { color: var(--rust); font-style: normal; }
.form-success .meta { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--iron); margin-top: 14px; font-weight: 400; }
.form-error { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--rust); letter-spacing: 0.04em; min-height: 14px; }

/* ----- Footer ----- */
.footer { background: var(--slate); color: var(--iron-soft); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--bone); font-size: 28px; }
.footer .blurb { margin-top: 16px; font-size: 14px; color: var(--iron-soft); max-width: 30ch; line-height: 1.55; }
.footer .col-title { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-soft); margin-bottom: 16px; }
.footer .col a { display: block; padding: 4px 0; font-size: 14px; color: var(--iron-soft); transition: color .15s ease; }
.footer .col a:hover { color: var(--bone); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; align-items: center;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--iron-soft);
}
.footer-bottom em { color: var(--rust); font-style: normal; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .svc-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process::before { display: none; }
  .step .dot { margin-top: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .nav-inner { height: 56px; }
  .navlinks { display: none; }
  .menu-toggle { display: inline-block; }
  .hero h1 { font-size: 48px; }
  .hero .lede { font-size: 18px; }
  .section { padding: 72px 0; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
