/* BOS Framework site styles
   Layout: dark full-bleed bands, one 1180px content column, two-column feature sections that stack on phones.
   Single dark theme by design (matches the current brand). */
:root {
  --bg: #0a0e16;
  --bg-raise: #111725;
  --bg-sunk: #070a10;
  --line: #222b3d;
  --fg: #e9edf5;
  --muted: #98a2b6;
  --accent: #7aa5ff;
  --accent-strong: #a9c4ff;
  --accent-ink: #08101f;

  --display: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.25rem, 5.2vw, 4rem);

  --radius: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--fg); margin: 0; text-wrap: balance; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-2); font-weight: 600; line-height: 1.25; }
h4 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-strong); letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.prose { display: grid; gap: 1rem; max-width: 65ch; color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.section.sunk { background: var(--bg-sunk); }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: 2.5rem; }
.head { display: grid; gap: 1rem; max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem;
  padding: 0.75rem 1.25rem; border-radius: 8px; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg); }
.link-arrow { font-weight: 600; font-size: 0.9375rem; }
.link-arrow::after { content: " \2192"; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.35rem; color: var(--fg); flex-shrink: 0; }
.brand:hover { color: var(--fg); }
.brand img { height: 30px; width: auto; display: block; }
.wordmark-bos { font-weight: 800; font-size: 1.375rem; letter-spacing: 0.04em; }
.wordmark-fw { font-weight: 400; font-size: 0.9375rem; color: var(--muted); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.9063rem; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.header-ctas { display: flex; gap: 0.5rem; }
.header-ctas .btn { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--fg); border-radius: 8px; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.875rem; cursor: pointer;
}
.mobile-nav {
  border-top: 1px solid var(--line); background: var(--bg);
  padding-block: 1rem 1.5rem;
}
.mobile-nav .wrap { display: grid; gap: 0.25rem; }
.mobile-nav a { color: var(--fg); padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav .btns { margin-top: 1rem; }
@media (max-width: 1080px) {
  .nav, .header-ctas { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Hero */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; gap: 1.5rem; }
.hero h1 { max-width: 18ch; }
.hero .sub { font-size: var(--step-2); color: var(--fg); font-weight: 500; max-width: 32ch; line-height: 1.3; }
.hero-note { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); max-width: 60ch; font-size: 0.9375rem; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 820px; margin-top: 0.5rem; }
.hero-stats div { background: var(--bg-raise); padding: 1rem 1.1rem; display: grid; gap: 0.15rem; }
.hero-stats b { font-size: 1.625rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: 0.8125rem; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0;
}
.card p { color: var(--muted); }
.card .link-arrow { margin-top: 0.25rem; }
.plain { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.plain p { color: var(--muted); }
.num { font-family: var(--mono); color: var(--accent); font-size: 0.8125rem; letter-spacing: 0.08em; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.panel { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.25rem; min-width: 0; }
.panel-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Layer stack (Forge / Cloud / Teams) */
.layers { display: grid; gap: 0; }
.layer {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.layer-meta { display: grid; gap: 0.4rem; }
.layer-body { display: grid; gap: 0.6rem; min-width: 0; }
.layer-body p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.8125rem; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; background: var(--bg); }
.connector { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.6rem; padding-left: 2.25rem; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.connector::before { content: ""; width: 1px; height: 28px; background: var(--accent); }
.layer.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
@media (max-width: 760px) { .layer { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; } }

/* Stats */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-raise); padding: 1.6rem 1.5rem; display: grid; gap: 0.35rem; align-content: start; }
.stat b { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat .label { font-weight: 600; }
.stat p { color: var(--muted); font-size: 0.9063rem; }

/* Quotes */
.quote { margin: 0; display: grid; gap: 1rem; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.3; color: var(--fg); }
.quote figcaption { color: var(--muted); font-size: 0.875rem; font-family: var(--mono); letter-spacing: 0.04em; }
.pull { border-left: 2px solid var(--accent); padding-left: 1.5rem; max-width: 52ch; }
.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.quote-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 0; display: grid; gap: 1rem; align-content: space-between; }
.quote-card blockquote { margin: 0; color: var(--fg); font-size: 1.0313rem; }
.quote-card figcaption { color: var(--muted); font-size: 0.8125rem; }
.quote-card figcaption b { color: var(--fg); font-weight: 600; }

/* From -> To */
.changes { display: grid; gap: 0.6rem; }
.change { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.change .from { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.change .arrow { color: var(--accent); }
.change .to { color: var(--fg); font-weight: 600; }

/* Personas */
.personas { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.persona { border-top: 1px solid var(--line); padding-top: 0.85rem; display: grid; gap: 0.3rem; }
.persona h4 { font-size: 1rem; }
.persona p { color: var(--muted); font-size: 0.9375rem; }

/* Lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--fg); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.65rem; height: 0.35rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks li span { color: var(--muted); }
.xs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.xs li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.xs li::before { content: "\00d7"; position: absolute; left: 0.1rem; top: -0.05em; color: var(--muted); font-size: 1.15rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-raise); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted); }
td:last-child { color: var(--fg); font-weight: 600; }

/* Timeline (real sequence) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); padding-top: 0.15rem; }

/* TCO bar */
.tco { display: grid; gap: 0.75rem; }
.tco-bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tco-bar .a { flex: 25; background: var(--accent); }
.tco-bar .b { flex: 75; background: repeating-linear-gradient(135deg, var(--bg-raise) 0 8px, var(--line) 8px 10px); }
.tco-legend { display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.tco-legend div { display: flex; gap: 0.6rem; align-items: center; }
.swatch { width: 0.85rem; height: 0.85rem; border-radius: 3px; flex-shrink: 0; }
.swatch.a { background: var(--accent); }
.swatch.b { background: var(--line); }

/* Case study */
.case-stats { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-stats div { background: var(--bg-raise); padding: 1.1rem 1.2rem; display: grid; gap: 0.2rem; }
.case-stats b { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.case-stats span { color: var(--muted); font-size: 0.8125rem; }
.meta-line { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Articles */
.article-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 0.8rem; align-content: start; color: var(--fg); transition: border-color 0.15s; }
.article-card:hover { border-color: var(--accent); color: var(--fg); }
.article-card p { color: var(--muted); }
.article-card .meta-line { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.featured-essay { display: grid; gap: 1.25rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.post-tags span { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; }

/* CTA pair */
.cta-pair { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cta { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 1rem; align-content: start; background: var(--bg-raise); }
.cta.primary { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--bg-raise)), var(--bg-raise) 70%); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cta p { color: var(--muted); max-width: 46ch; }
.cta .btns { margin-top: 0.5rem; }

/* Form */
.form-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 1.25rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--fg); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.9375rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9375rem; padding: 0.9rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badges span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.6rem; color: var(--fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunk); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: 0.9375rem; }
.footer-col h5 { margin: 0 0 0.85rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--fg); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--accent); }
.social { display: flex; gap: 0.6rem; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: 0.8125rem; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a { color: var(--muted); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center-note { color: var(--muted); max-width: 62ch; }
.center-note strong { color: var(--fg); }

/* v3 overrides (Oct 1, 2026): heading emphasis in the same sans-serif face, not italic serif, for readability. */
h1 em, h2 em, h3 em { font-family: var(--display); font-style: normal; font-weight: inherit; color: var(--accent-strong); letter-spacing: inherit; }
/* Home hero: two equal statements, one per line, for BOS Services and BOS Cloud. */
.hero h1.dual { max-width: none; display: grid; gap: 0.15em; }
.hero h1.dual span { display: block; }
.hero h1.dual .alt { color: var(--accent-strong); }
/* Highlighted one-line callout (AI & Data: "Data not ready?") */
.callout { border-left: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); padding: 0.1rem 0 0.1rem 0.85rem; color: var(--fg); }
.callout strong { color: var(--fg); font-weight: 600; }
/* AI & Data: the starter package and how it starts read as one framed section */
.package { display: grid; gap: 1.25rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: calc(var(--radius) + 4px); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.package .split { gap: 1.25rem; align-items: stretch; }
.package .panel { align-content: start; }
.package .panel h3 { font-size: var(--step-1); }
/* SW Engineering teams: first right-hand header sits on the centerline of the two-line h3 to its left */
@media (min-width: 881px) { .align-to-h3 { margin-top: calc(1.5rem * 1.25 - 1.1875rem * 1.3 / 2); } }
.package-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 0.25rem; }
.package-cta p { font-size: 0.9063rem; }
/* Accent color (Oct 2, 2026): teal derived from BOS Cloud brand teal #0E7490, replacing the earlier blue. */
:root { --accent: #3FB7C9; --accent-strong: #8FD3DF; --accent-ink: #06222A; }
