/* Bridged — bridged.com
   Tokens and components from the Bridged design system (Jost; teal / forest / ice). */

:root {
  --font-sans: "Jost", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;

  --surface: #ffffff;
  --surface-raised: #f2f6f4;
  --line: #c9d6d2;
  --line-strong: #76918b;
  --ink: #0b2622;
  --ink-muted: #4c6561;
  --brand: #083f3c;
  --on-brand: #e2eaf4;
  --brand-soft: #e2eaf4;
  --accent: #0c4b36;
  --on-accent: #ffffff;
  --accent-soft: #dcece4;
  --success: #0f6b5c;
  --success-soft: #dcf1ec;
  --danger: #b42318;
  --danger-soft: #fbeae8;

  --teal: #083f3c;
  --ice: #e2eaf4;
  --mint: #86d1b1;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0c4b36;

  --gutter: 120px;
  --content: 1200px;
}

.theme-dark {
  --surface: #083f3c;
  --surface-raised: #0e4b47;
  --line: #245e59;
  --line-strong: #639c95;
  --ink: #e2eaf4;
  --ink-muted: #a3bab5;
  --brand: #e2eaf4;
  --on-brand: #083f3c;
  --brand-soft: #11554b;
  --accent: #86d1b1;
  --on-accent: #083f3c;
  --accent-soft: #11554b;
  --focus-ring: 0 0 0 2px #083f3c, 0 0 0 4px #86d1b1;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[id] { scroll-margin-top: 24px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.display { font-size: 44px; line-height: 48px; font-weight: 300; letter-spacing: 0.01em; }
.title { font-size: 28px; line-height: 34px; font-weight: 400; }
.heading { font-size: 20px; line-height: 28px; font-weight: 500; }
.lead { font-size: 20px; line-height: 30px; font-weight: 400; }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }
.strong { font-weight: 500; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-raised { background: var(--surface-raised); }
.measure { max-width: 720px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.nav-link { font-size: 16px; line-height: 24px; color: var(--ink); }
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--accent); font-weight: 500; }

/* ---------- buttons (design-system Button) ---------- */
.br-btn {
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 40px; padding: 0 var(--space-6); border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.br-btn:hover { text-decoration: none; }
.br-btn-sm { height: 32px; padding: 0 var(--space-4); font-size: 14px; line-height: 20px; }
.br-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.br-btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.br-btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.br-btn-secondary:hover { background: var(--surface-raised); border-color: var(--ink); color: var(--ink); }
.br-btn-quiet { background: transparent; color: var(--accent); padding: 0 var(--space-4); }
.br-btn-quiet:hover { background: var(--accent-soft); color: var(--accent); }
.theme-dark .br-btn-primary { background: var(--mint); border-color: var(--mint); color: var(--teal); }
.theme-dark .br-btn-primary:hover { background: #a6dfc6; border-color: #a6dfc6; color: var(--teal); }
.theme-dark .br-btn-secondary:hover { background: var(--surface-raised); border-color: var(--ink); }
.btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- cards (design-system Card) ---------- */
.br-card {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-6);
}
.br-card-eyebrow { margin: 0 0 var(--space-2); }
.br-card-title { margin: 0 0 var(--space-3); font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink); }
.br-card-body { font-size: 16px; line-height: 24px; color: var(--ink); }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-6);
}

/* ---------- forms (design-system Input) ---------- */
.br-field { display: flex; flex-direction: column; gap: var(--space-2); }
.br-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.br-input, .br-textarea {
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink);
  padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--line-strong);
  background: var(--surface); width: 100%; transition: border-color 150ms ease-out;
}
.br-input { height: 40px; }
.br-textarea { min-height: 128px; padding: 8px 12px; resize: vertical; }
.br-input::placeholder, .br-textarea::placeholder { color: var(--ink-muted); }
.br-input:hover, .br-textarea:hover { border-color: var(--ink); }
.br-input:focus-visible, .br-textarea:focus-visible { border-color: var(--accent); box-shadow: var(--focus-ring); border-radius: var(--radius-md); }
.br-help { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.hidden-field { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--teal); color: var(--ice); }
.hero .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; align-items: center; gap: 80px; }
.hero-copy { flex: 1 1 0; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow { color: var(--mint); }
.hero-copy .lead { max-width: 600px; }
.hero-figure { width: 520px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hub { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 300; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hub img { position: absolute; left: 32.7%; top: 43.7%; width: 34.6%; height: auto; }
.hub-caption { max-width: 420px; text-align: center; color: #a3bab5; }

/* ---------- mission ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps { margin-top: 4px; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step-marker { display: flex; flex-direction: column; align-items: center; }
.step-num {
  flex: none; width: 28px; height: 28px; border-radius: var(--radius-full);
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; line-height: 28px; font-weight: 500; text-align: center;
}
.step-rail { flex: 1 1 auto; width: 1px; margin-top: 6px; background: var(--line); }
.step-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }

/* ---------- check lists ---------- */
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.checks.small svg { margin-top: 0; }

/* ---------- contact ---------- */
.contact .wrap { display: flex; align-items: flex-start; gap: 80px; }
.contact-copy { flex: 1 1 0; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.contact-form { width: 480px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.status {
  display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px;
  color: var(--success); background: var(--success-soft); border-radius: var(--radius-md); padding: 8px 12px;
}
.status svg { flex: none; width: 20px; height: 20px; }

/* ---------- case study ---------- */
.case-hero .hero-copy { max-width: 640px; }
.stat-grid { width: 480px; flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stat {
  background: #0e4b47; border: 1px solid #245e59; border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.stat-num { font-size: 40px; line-height: 44px; font-weight: 300; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--ice); }
.stat-label { font-size: 14px; line-height: 20px; color: #a3bab5; }
.stat-wide { grid-column: span 2; }
.stat-wide .eyebrow { color: var(--mint); }

.two-col { display: flex; align-items: flex-start; gap: 80px; }
.two-col-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.two-col-side { width: 440px; flex: none; display: flex; flex-direction: column; gap: 24px; }

.timeline { position: relative; }
.timeline-rail { position: absolute; left: 147px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.timeline ol { position: relative; display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 120px 24px minmax(0, 1fr); column-gap: 16px; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-date { padding-top: 2px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.tl-dot-cell { display: flex; justify-content: center; }
.tl-dot { display: block; width: 10px; height: 10px; margin-top: 5px; border-radius: var(--radius-full); background: var(--accent); border: 2px solid var(--surface-raised); box-sizing: content-box; }

.quote { display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 20px; line-height: 30px; }
.quote figcaption { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.link-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; }
.link-row .br-btn { flex: none; }
.link-row svg { width: 16px; height: 16px; }
.press { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.press a { font-size: 16px; line-height: 24px; font-weight: 500; }

.cta .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal); color: var(--ice); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand .eyebrow { color: #a3bab5; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; }
.footer-nav a { font-size: 14px; line-height: 20px; color: var(--ice); }
.footer-bottom { padding-top: 24px; border-top: 1px solid #245e59; font-size: 14px; line-height: 20px; color: #a3bab5; }

/* ---------- small pages ---------- */
.notice .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 64px; }
  .hero .wrap, .contact .wrap, .two-col { gap: 48px; }
  .hero-figure { width: 440px; }
  .stat-grid { width: 420px; }
  .two-col-side { width: 380px; }
}
@media (max-width: 1000px) {
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  .hero-figure { width: 100%; max-width: 520px; align-self: center; }
  .stat-grid { width: 100%; max-width: 520px; align-self: stretch; }
  .two-col { flex-direction: column; }
  .two-col-side { width: 100%; }
  .contact .wrap { flex-direction: column; }
  .contact-form { width: 100%; max-width: 560px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .display { font-size: 36px; line-height: 40px; }
  .title { font-size: 24px; line-height: 30px; }
  .lead { font-size: 18px; line-height: 28px; }
  .site-header .wrap { min-height: 0; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
  .site-logo img { width: 180px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 16px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stat-wide { grid-column: auto; }
  .tl-item { grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
  .tl-date { grid-column: 2; order: -1; padding-top: 0; margin-bottom: 4px; }
  .tl-dot-cell { grid-row: 1 / span 2; }
  .tl-item p { grid-column: 2; }
  .timeline-rail { left: 11px; }
  .link-row { flex-wrap: wrap; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { gap: 20px; }
}
