/* ==========================================================================
   QualitySpan — shared stylesheet
   Implements the "QualitySpan Website Interactive" design (Claude Design
   handoff, see /project and /chats in the repo root for source + intent).
   ========================================================================== */

:root {
  --ink: #14142B;
  --accent: #2A2A5C;
  --accent-light: #A3A3E0;
  --accent-soft: #ECECF6;
  --page-bg: #FBFBFD;
  --muted-1: #4D4D63;
  --muted-2: #3D3D52;
  --muted-3: #6A6A80;
  --muted-4: #5B5B72;
  --muted-5: #8A8AA0;
  --border-1: rgba(20, 20, 43, .1);
  --border-2: rgba(20, 20, 43, .12);
  --border-3: rgba(20, 20, 43, .16);
  --border-4: rgba(20, 20, 43, .18);
  --border-accent: rgba(42, 42, 92, .28);
  --purple-bg: #ECECF6;
  --img-placeholder: #E3E3EC;
  --img-placeholder-2: #DCDCE8;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--ink); }

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

button, input, textarea, select {
  font-family: 'Archivo', sans-serif;
}

.accent-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

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

.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.eyebrow--muted { color: var(--muted-5); }

/* ---- buttons / links ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 30px;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }

.btn-outline {
  border: 1px solid var(--border-4);
  color: var(--ink);
  background: transparent;
  padding: 16px 28px;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border-4);
  padding-bottom: 6px;
}
.link-underline--dark { color: var(--ink); }
.link-underline--white { color: #fff; border-bottom-color: rgba(255, 255, 255, .3); }
.link-underline:hover { border-bottom-color: currentColor; }
.link-underline--white:hover { color: #fff; }

/* ---- ISO badge ----------------------------------------------------------- */

.iso-mark {
  flex: none;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .08em;
}

.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-accent);
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
}
.iso-badge .iso-mark { width: 44px; height: 44px; font-size: 11px; }
.iso-badge-text { font-size: 14px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.iso-badge-text span { display: block; font-weight: 400; color: var(--muted-3); margin-top: 2px; }

/* ---- image placeholders (real photography TODO — see note below) -------- */

/*
 * NOTE: qualityspan.com is unreachable from this build environment (network
 * policy), so the two hero/about photos referenced by the source design
 * (banner.jpg, a workplace photo) could not be downloaded and self-hosted
 * as intended. These are neutral placeholders — drop real photography into
 * assets/img/ and swap the two .photo elements' background-image below.
 */
.photo {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--img-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo--alt { background: var(--img-placeholder-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  font-size: 13px;
  color: var(--muted-3);
  text-align: center;
  padding: 20px;
}

/* ---- site header ---------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--page-bg); }

.announce-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 9px 0;
}
.announce-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  row-gap: 6px;
}
.announce-info { display: flex; align-items: center; gap: 18px; }
.announce-dot {
  display: inline-flex; align-items: center; gap: 7px;
}
.announce-dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light);
}
.announce-sep { opacity: .35; }
.announce-iso { display: flex; align-items: center; gap: 7px; color: #fff; }
.announce-iso-tag {
  font-size: 10px; letter-spacing: .14em; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 2px; padding: 2px 5px;
}
.announce-bar a { color: rgba(255, 255, 255, .72); text-decoration: none; }

.site-nav-bar {
  border-bottom: 1px solid var(--border-2);
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-nav-bar .container {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav-links { display: flex; align-items: center; gap: 34px; }
.site-nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted-4);
}
.site-nav-links a:hover { color: var(--ink); }
.site-nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.site-nav-cta {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-3);
  background: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars span { width: 18px; height: 1.5px; background: var(--ink); display: block; }

/* ---- mobile nav (< 860px) ------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav-links, .site-nav-cta { display: none; }

  .site-nav-bar.is-open .site-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .site-nav-bar.is-open .site-nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-1);
  }
  .site-nav-bar.is-open .site-nav-cta {
    display: inline-flex;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }
  .site-nav-bar.is-open .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: 18px;
    padding-bottom: 22px;
  }
  .site-nav-bar.is-open .site-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- footer ---------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #fff; }
.site-footer .container { padding: 64px 40px 30px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { max-width: 380px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 22px; }
.footer-blurb { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .6); margin: 0 0 24px; }
.footer-iso {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 12px 16px;
}
.footer-iso-tag {
  font-size: 10px; letter-spacing: .14em; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 3px; padding: 3px 6px; color: var(--accent-light);
}
.footer-iso-text { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.footer-iso-text span { display: block; color: rgba(255, 255, 255, .45); }

.footer-col-title {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4); margin-bottom: 22px;
}
.footer-services { display: flex; flex-direction: column; gap: 13px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }

.footer-offices { display: flex; flex-direction: column; gap: 28px; }
.footer-office-title { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin-bottom: 14px; }
.footer-office-body { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.footer-office-body span { color: var(--accent-light); }

.footer-bottom {
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .42);
}
.footer-bottom a { color: rgba(255, 255, 255, .42); text-decoration: none; }
.footer-bottom-links { display: flex; gap: 26px; }
.footer-locations { display: flex; align-items: center; gap: 18px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- section rhythm ---------------------------------------------------- */

section { position: relative; }

/* ============================== HOME ==================================== */

.hero {
  padding: 66px 40px 56px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--purple-bg); color: var(--accent);
  border-radius: 999px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 30px;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: 70px; line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
  margin-bottom: 26px;
}
.hero p.lede {
  font-size: 18.5px; line-height: 1.6; color: var(--muted-1); max-width: 520px; margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 38px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .photo { height: 520px; }
.hero-stats {
  position: absolute; left: -32px; bottom: 44px;
  background: #fff; border: 1px solid var(--border-1); border-radius: 16px;
  padding: 22px 26px; box-shadow: 0 18px 40px -24px rgba(20, 20, 43, .35);
  display: flex; gap: 34px;
}
.hero-stat-num { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.hero-stat-label { font-size: 12px; color: var(--muted-3); letter-spacing: .02em; line-height: 1.4; }
.hero-stat-divider { width: 1px; background: var(--border-1); }

.capabilities {
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1);
}
.capabilities .container {
  padding: 26px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.capabilities-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-5); }
.capabilities-list { display: flex; gap: 40px; font-size: 15px; font-weight: 500; color: var(--muted-2); flex-wrap: wrap; }

.split-section { padding: 72px 40px; }
.split-section > .container:first-child { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split-section h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.split-lede { font-size: 19px; line-height: 1.62; color: var(--muted-2); margin-bottom: 20px; }
.split-sub { font-size: 16.5px; line-height: 1.65; color: var(--muted-3); }

.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-1); border: 1px solid var(--border-1); border-radius: 18px;
  overflow: hidden; margin-top: 44px;
}
.card-grid > .card { background: var(--page-bg); padding: 36px 30px 40px; }
.card-num { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 26px; }
.card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--muted-3); }

.services-dark { background: var(--ink); color: #fff; }
.services-dark .container { padding: 72px 40px; }
.services-dark-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.services-dark-head h2 { font-size: 46px; line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.services-dark-head p { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .6); max-width: 360px; }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile-dark {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 32px 28px 34px;
  background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 14px; min-height: 210px;
}
.tile-dark-head { display: flex; align-items: center; justify-content: space-between; }
.tile-tag { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
.tile-arrow { color: rgba(255, 255, 255, .3); font-size: 18px; }
.tile-dark h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.02em; font-weight: 600; }
.tile-dark p { font-size: 14.5px; line-height: 1.62; color: rgba(255, 255, 255, .6); }

.why-choose .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.why-choose h2 { font-size: 42px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin-bottom: 24px; }
.why-choose .split-sub { margin-bottom: 0; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reason-card {
  background: #fff; border: 1px solid var(--border-1); border-radius: 14px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.reason-num {
  width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--purple-bg);
  color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.reason-text { font-size: 15.5px; line-height: 1.45; font-weight: 500; }

.about-teaser { background: var(--purple-bg); }
.about-teaser .container {
  padding: 66px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-teaser .photo { height: 420px; background: var(--img-placeholder-2); }
.about-teaser h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin-bottom: 22px; }
.about-teaser p { font-size: 16.5px; line-height: 1.66; color: var(--muted-2); margin-bottom: 18px; }

.cta-section { padding: 72px 40px; }
.cta-band {
  background: var(--accent); border-radius: 24px; padding: 56px 52px; color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center;
}
.cta-band h2 { font-size: 44px; line-height: 1.06; letter-spacing: -.03em; font-weight: 600; margin-bottom: 18px; }
.cta-band p { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 420px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-actions .btn-white {
  background: #fff; color: var(--accent); font-size: 16px; font-weight: 600;
  padding: 18px 28px; border-radius: 12px; text-decoration: none; text-align: center;
}
.cta-actions .btn-ghost {
  border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 16px; font-weight: 500;
  padding: 18px 28px; border-radius: 12px; text-decoration: none; text-align: center;
}

/* ============================ SERVICES =================================== */

.page-hero {
  padding: 60px 0 46px;
  border-bottom: 1px solid var(--border-1);
}
.page-hero .container {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end;
}
.page-hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.page-hero .lede { font-size: 17.5px; line-height: 1.62; color: var(--muted-1); padding-bottom: 10px; }

.numbered-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.numbered-head .num { font-size: 22px; font-weight: 700; color: var(--accent); }
.numbered-head h2 { font-size: 32px; letter-spacing: -.025em; font-weight: 600; }

.qa-section { padding: 58px 40px 16px; }
.qa-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-1); border: 1px solid var(--border-1); border-radius: 18px; overflow: hidden;
}
.qa-card { background: #fff; padding: 36px 32px 40px; min-height: 240px; }
.qa-card h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.02em; font-weight: 600; margin-bottom: 14px; }
.qa-card p { font-size: 14.5px; line-height: 1.62; color: var(--muted-3); margin-bottom: 20px; }
.qa-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-tool { font-size: 11.5px; font-weight: 500; color: var(--muted-2); background: #F0F0F6; border-radius: 999px; padding: 5px 11px; }

.build-section { padding: 58px 40px 32px; }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.build-card {
  background: var(--ink); color: #fff; border-radius: 18px; padding: 38px 32px 40px;
  display: flex; flex-direction: column; min-height: 320px;
}
.build-card .tile-tag { margin-bottom: auto; }
.build-card h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; margin: 32px 0 14px; }
.build-card p { font-size: 15px; line-height: 1.62; color: rgba(255, 255, 255, .62); margin-bottom: 22px; }
.build-points { display: flex; flex-direction: column; gap: 9px; }
.build-points span { font-size: 13.5px; color: rgba(255, 255, 255, .78); display: flex; gap: 10px; }
.build-points span::before { content: "—"; color: var(--accent-light); }

.engage-section { padding: 48px 40px 32px; }
.engage-section .inner { border-top: 1px solid var(--border-1); padding-top: 46px; }
.engage-section h2 { font-size: 32px; letter-spacing: -.025em; font-weight: 600; margin-bottom: 38px; }
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engage-card { border: 1px solid var(--border-2); border-radius: 16px; padding: 30px 28px; background: #fff; }
.engage-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.engage-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted-3); margin-bottom: 18px; }
.engage-card .best { font-size: 12.5px; font-weight: 600; color: var(--accent); }

.rhythm-section { padding: 32px 40px 72px; }
.rhythm-band { background: var(--purple-bg); border-radius: 22px; padding: 44px 40px; }
.rhythm-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 30px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.rhythm-head h2 { font-size: 30px; letter-spacing: -.025em; font-weight: 600; }
.rhythm-head span { font-size: 13px; color: var(--muted-4); }
.rhythm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.rhythm-step { border-top: 2px solid var(--accent); padding-top: 18px; }
.rhythm-step .num { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.rhythm-step h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.rhythm-step p { font-size: 13.5px; line-height: 1.55; color: var(--muted-4); }

/* ============================== ABOUT ==================================== */

.about-hero { padding: 60px 40px 52px; }
.about-hero h1 {
  font-size: 62px; line-height: 1.03; letter-spacing: -.035em; font-weight: 600;
  max-width: 900px; margin-bottom: 40px;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-1); border: 1px solid var(--border-1); border-radius: 16px; overflow: hidden;
}
.stat-card { background: #fff; padding: 30px 28px; }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted-3); line-height: 1.45; }

.about-body { padding: 0 40px 66px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.about-body p.lede { font-size: 20px; line-height: 1.58; color: var(--ink); margin-bottom: 22px; }
.about-body p { font-size: 16.5px; line-height: 1.68; color: var(--muted-1); margin-bottom: 18px; }
.about-body .photo { height: 400px; }

.values-section { background: var(--ink); color: #fff; }
.values-section .container { padding: 66px 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.values-section h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.values-list {
  display: grid; gap: 1px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; overflow: hidden;
}
.value-row {
  background: var(--ink); padding: 32px 34px; display: grid; grid-template-columns: 200px 1fr;
  gap: 32px; align-items: baseline;
}
.value-row h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.value-row p { font-size: 15px; line-height: 1.62; color: rgba(255, 255, 255, .6); }

.offices-section { padding: 66px 40px; }
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office-card { border: 1px solid var(--border-2); border-radius: 20px; padding: 40px 36px; background: #fff; }
.office-kind { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.office-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.office-kind span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-5); }
.office-card h3 { font-size: 28px; letter-spacing: -.03em; font-weight: 600; margin-bottom: 10px; }
.office-card .addr { font-size: 15.5px; line-height: 1.6; color: var(--muted-4); margin-bottom: 24px; }
.office-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted-2); }
.office-meta .phone { color: var(--accent); font-weight: 500; }

.iso-strip {
  margin-top: 24px; border: 1px solid var(--border-accent); background: var(--purple-bg);
  border-radius: 20px; padding: 40px 36px; display: grid; grid-template-columns: auto 1fr auto;
  gap: 36px; align-items: center;
}
.iso-strip .iso-mark { width: 66px; height: 66px; font-size: 15px; }
.iso-strip h3 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.iso-strip p { font-size: 15.5px; line-height: 1.6; color: var(--muted-1); max-width: 620px; }
.iso-strip .request { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ============================== CONTACT =================================== */

.contact-hero {
  padding: 58px 40px 66px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start;
}
.contact-hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin-bottom: 22px; }
.contact-hero .lede { font-size: 17.5px; line-height: 1.62; color: var(--muted-1); max-width: 460px; margin-bottom: 44px; }

.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid var(--border-2); border-radius: 14px; padding: 20px 24px; background: #fff;
  text-decoration: none; color: var(--ink);
}
.contact-row-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-5); display: block; }
.contact-row-value { font-size: 17px; font-weight: 600; }
.contact-row-arrow { color: var(--accent); font-size: 18px; }
.contact-office-name { font-size: 16px; font-weight: 600; display: block; }
.contact-office-addr { font-size: 13.5px; color: var(--muted-3); }
.contact-office-phone { font-size: 14px; color: var(--accent); font-weight: 500; white-space: nowrap; }

.contact-iso {
  display: inline-flex; align-items: center; gap: 14px; border-top: 1px solid var(--border-2); padding-top: 24px;
}
.contact-iso .iso-mark { width: 40px; height: 40px; font-size: 10.5px; }
.contact-iso p { font-size: 13.5px; line-height: 1.5; color: var(--muted-4); }

.contact-form {
  background: #fff; border: 1px solid var(--border-2); border-radius: 22px; padding: 40px 38px;
  box-shadow: 0 24px 50px -34px rgba(20, 20, 43, .3);
}
.contact-form h2 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.contact-form-note { font-size: 14.5px; color: var(--muted-3); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border-3); border-radius: 10px; padding: 13px 14px;
  font-size: 14.5px; color: var(--ink); background: var(--page-bg);
}
.field textarea { resize: vertical; }
.field-full { margin-bottom: 24px; }
.field-error {
  display: none; font-size: 12.5px; color: #b3261e; margin-top: -2px;
}
.field-error.is-visible { display: block; }
.field.has-error input, .field.has-error select {
  border-color: #b3261e;
}
.field.has-error input:focus, .field.has-error select:focus {
  outline: 2px solid #b3261e; outline-offset: 2px;
}

.needs-label { font-size: 12.5px; font-weight: 600; color: var(--muted-2); display: block; margin-bottom: 10px; }
.needs-group { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.need-pill {
  font-size: 13px; font-weight: 500; border: 1px solid var(--border-3); border-radius: 999px;
  padding: 9px 15px; color: var(--muted-2); cursor: pointer; background: #fff;
}
.need-pill[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.need-pill:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.needs-error {
  display: none; font-size: 13px; color: #b3261e; margin: -8px 0 18px;
}
.needs-error.is-visible { display: block; }
.needs-group.has-error .need-pill { border-color: #b3261e; }

.form-submit {
  width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 12px;
  padding: 17px; font-size: 15.5px; font-weight: 600; cursor: pointer;
}
.form-submit:hover { background: var(--ink); }
.form-fineprint { font-size: 12.5px; line-height: 1.55; color: var(--muted-5); margin-top: 16px; text-align: center; }

.form-success {
  display: none; align-items: center; gap: 12px; background: var(--accent-soft); color: var(--accent);
  border-radius: 12px; padding: 16px 18px; font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.form-success.is-visible { display: flex; }

/* ============================ RESPONSIVE ================================== */

@media (max-width: 980px) {
  .hero, .page-hero .container, .split-section .container, .why-choose .container,
  .about-teaser .container, .cta-band, .about-body,
  .values-section .container, .contact-hero {
    grid-template-columns: 1fr !important;
  }
  .hero-media { margin-top: 12px; }
  .hero-stats { position: relative; margin-top: -40px; margin-left: 20px; width: fit-content; }
  .card-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid, .build-grid, .engage-grid, .rhythm-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .value-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .container, .hero, .page-hero, .split-section, .capabilities .container,
  .services-dark .container, .why-choose, .about-teaser .container, .cta-section,
  .qa-section, .build-section, .engage-section, .rhythm-section,
  .about-hero, .about-body, .values-section .container, .offices-section,
  .contact-hero, .announce-bar .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero { padding-top: 36px; padding-bottom: 36px; gap: 32px; }
  .hero h1 { font-size: 38px; margin-bottom: 14px; }
  .hero p.lede { font-size: 15.5px; margin-bottom: 22px; }
  .hero-badge { margin-bottom: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-media .photo { height: 260px; }
  .hero-stats { flex-direction: row; padding: 16px 18px; gap: 20px; }

  .capabilities-list { gap: 18px 26px; font-size: 13.5px; }

  .split-section { padding-top: 44px; padding-bottom: 44px; }
  .split-section h2, .why-choose h2 { font-size: 30px; }
  .split-lede { font-size: 16.5px; }
  .card-grid { grid-template-columns: 1fr; margin-top: 28px; }

  .services-dark-head h2, .about-teaser h2 { font-size: 28px; }
  .tile-grid, .build-grid, .engage-grid { grid-template-columns: 1fr; }

  .about-teaser .photo, .about-body .photo { height: 220px; }

  .cta-band { padding: 34px 24px; border-radius: 18px; }
  .cta-band h2 { font-size: 28px; }

  .page-hero h1 { font-size: 38px; }
  .rhythm-grid { grid-template-columns: 1fr 1fr; }

  .about-hero h1 { font-size: 36px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .values-section h2 { font-size: 28px; }
  .offices-grid { grid-template-columns: 1fr; }
  .iso-strip { grid-template-columns: 1fr; text-align: left; gap: 16px; }

  .contact-hero h1 { font-size: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
}
