/* LaborStack — site styles
   Design tokens carried over from the LaborStack design canvas. */

/* ---------- Fonts (self-hosted Archivo variable) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f6f4;
  --surface: #ffffff;
  --ink: #201e1d;
  --ink-muted: #444141;
  --ink-soft: #6b6664;
  --brand: #0f6fce;
  --brand-dark: #0c5aa8;
  --brand-tint: #f1f6fe;
  --brand-border: #cfe2f8;
  --line: #ece8e2;
  --slate: #8fa3b8;
  --paper: #f8f4f4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 48px -20px rgba(32, 30, 29, 0.3);
  --shadow-sm: 0 1px 3px rgba(32, 30, 29, 0.08);
  --wrap: 1352px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; 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 {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* A `display` declaration beats the UA's [hidden] rule, so enforce it. */
[hidden] { display: none !important; }
img { background: var(--line); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

::selection { background: var(--brand); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-weight: 800;
}
h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tint { background: var(--surface); }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 68ch;
}
.section__head { max-width: 78ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: var(--paper); }
.btn--primary:hover { background: var(--brand-dark); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--slate); }
.btn--light { background: var(--paper); color: var(--brand); }
.btn--light:hover { background: #fff; color: var(--brand-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter);
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px clamp(16px, 2.4vw, 36px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px clamp(10px, 1.5vw, 22px);
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.nav__link { color: var(--ink-muted); padding: 8px 2px; display: inline-block; }
.nav__link:hover,
.nav__link[aria-current='page'] { color: var(--ink); text-decoration: none; }
.nav__link[aria-current='page'] { font-weight: 700; }

/* Dropdowns — CSS hover + JS for keyboard/touch */
.nav__item--has-menu {
  position: relative;
  /* Tall hover target so the pointer never leaves the item on its way down
     to the menu — the menu itself sits flush at top:100%, no gap to cross. */
  padding: 18px 0;
  margin: -18px 0;
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 8px 2px;
}
.nav__toggle:hover { color: var(--ink); }
.nav__toggle svg { transition: transform 0.18s ease; }
.nav__item--open > .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 60;
  width: 302px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  display: none;
}
.nav__item--open > .nav__menu { display: block; }
@media (hover: hover) {
  .nav__item--has-menu:hover > .nav__menu { display: block; }
}
.nav__menu a {
  display: block;
  padding: 11px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav__menu a:hover { background: var(--brand-tint); color: var(--brand); text-decoration: none; }
.nav__menu .is-finder {
  margin-top: 6px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  padding: 13px 14px;
}
.nav__menu .is-finder:hover { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.nav__menu .is-finder strong { display: block; font-size: 0.94rem; font-weight: 700; }
.nav__menu .is-finder span { display: block; margin-top: 3px; font-size: 0.79rem; font-weight: 500; line-height: 1.4; }

.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__actions .btn { padding: 11px 20px; font-size: 0.9rem; }

.btn-stack {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1.5px solid var(--brand-border);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-stack:hover {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
  text-decoration: none;
}
.header__plain { font-size: 0.94rem; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.header__plain:hover { color: var(--brand); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav,
  .header__actions { display: none; }
  .site-header__inner.is-open { flex-wrap: wrap; }
  .site-header__inner.is-open .nav,
  .site-header__inner.is-open .header__actions {
    display: block;
    width: 100%;
    margin-left: 0;
    padding-bottom: 12px;
  }
  .site-header__inner.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header__inner.is-open .nav__link,
  .site-header__inner.is-open .nav__toggle { padding: 12px 4px; width: 100%; font-size: 1rem; }
  .site-header__inner.is-open .nav__menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 12px;
  }
  .site-header__inner.is-open .header__actions { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 6vw, 88px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__lede { margin-top: 22px; font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero__note { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.stat--accent { background: var(--brand); border-color: var(--brand); }
.stat__value { font-size: clamp(38px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.stat__label { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.stat--accent .stat__value { color: var(--paper); }
.stat--accent .stat__label { color: rgba(248, 244, 244, 0.88); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.card h3 { letter-spacing: -0.02em; }
.card p { color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.card--link { transition: border-color 0.18s ease, transform 0.18s ease; }
.card--link:hover { border-color: var(--brand-border); transform: translateY(-2px); }
.card__link { margin-top: auto; font-weight: 700; font-size: 0.93rem; }
.card__media { margin: -8px -8px 4px; border-radius: 12px; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* problem cards read as a warning list */
.card--problem { background: var(--paper); border-color: #eadfdc; }

/* ---------- Prose (articles, legal) ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.5em; }
.prose li { color: var(--ink-muted); font-size: 17px; line-height: 1.65; }
.prose p { color: var(--ink-muted); font-size: 17px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose img { border-radius: var(--radius); margin-block: 1.8em; }
.prose figure { margin-block: 1.8em; }
.prose figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }

.takeaways {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
}
.takeaways h2 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { color: var(--ink); font-size: 0.96rem; }

.table-wrap { overflow-x: auto; margin-block: 1.8em; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; background: var(--surface); font-size: 0.92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-tint); font-weight: 700; color: var(--ink); }
td { color: var(--ink-muted); }
tr:last-child td { border-bottom: 0; }

/* ---------- Article meta ---------- */
.article-head { padding-block: clamp(36px, 4vw, 60px) 0; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-hero img { border-radius: var(--radius); margin-block: clamp(26px, 3vw, 40px); width: 100%; }
.back-link { font-size: 0.9rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }

/* ---------- FAQ / accordion ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 90ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item summary:hover { color: var(--brand); }
.faq-item__body { padding: 0 4px 24px; color: var(--ink-muted); font-size: 16px; line-height: 1.6; max-width: 78ch; }
.faq-group { margin-bottom: clamp(38px, 4vw, 60px); }
.faq-group__head { margin-bottom: 6px; }
.faq-group__blurb { color: var(--ink-muted); margin-top: 8px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .wrap { padding-block: clamp(52px, 6vw, 88px); }
.cta-band__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { margin-top: 16px; color: rgba(248, 244, 244, 0.82); max-width: 54ch; }
.cta-band__actions { margin-top: 30px; }
.cta-steps { display: grid; gap: 14px; }
.cta-step {
  background: rgba(248, 244, 244, 0.06);
  border: 1px solid rgba(248, 244, 244, 0.14);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.cta-step__num { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; color: var(--slate); }
.cta-step h3 { color: var(--paper); font-size: 1.02rem; margin-top: 5px; }
.cta-step p { margin-top: 7px; font-size: 0.9rem; color: rgba(248, 244, 244, 0.72); }
.cta-band__foot { margin-top: 24px; font-size: 0.88rem; color: rgba(248, 244, 244, 0.6); }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Split feature (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4.5vw, 68px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ---------- Logos / from-the-team ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; margin-top: 18px; }
.logo-row span { font-weight: 700; color: var(--ink-muted); letter-spacing: -0.02em; }

/* ---------- Founders ---------- */
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.4vw, 32px); }
.founder h3 { margin-bottom: 3px; }
.founder__role { font-size: 0.86rem; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.founder p { color: var(--ink-muted); font-size: 0.95rem; }
.founder a { font-weight: 700; font-size: 0.92rem; display: inline-block; margin-top: 14px; }

/* ---------- Quote ---------- */
.pullquote {
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 24px;
  margin-block: clamp(28px, 3vw, 44px);
  max-width: 62ch;
}
.pullquote p { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.4; }
.pullquote cite { display: block; margin-top: 12px; font-size: 0.88rem; font-style: normal; color: var(--ink-soft); }

/* ---------- Resources index ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease; }
.post-card:hover { transform: translateY(-2px); border-color: var(--brand-border); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { font-size: 0.8rem; color: var(--ink-soft); }
.post-card h3 { font-size: 1.08rem; letter-spacing: -0.02em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--brand); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus { border-color: var(--brand); outline: none; background: var(--surface); }
.field textarea { min-height: 148px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; }
.form__status[data-state='error'] { color: #b3261e; }
.form__status[data-state='ok'] { color: #14804a; }
.form button[type='submit'] { width: 100%; justify-content: center; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

.value-list { display: grid; gap: 18px; margin-top: 30px; }
.value-item h3 { font-size: 1.03rem; margin-bottom: 5px; }
.value-item p { color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.83rem; color: var(--ink-soft); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 7px; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current='page'] { color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(248, 244, 244, 0.72); padding-block: clamp(48px, 5vw, 72px) 30px; font-size: 15px; line-height: 1.6; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--paper); margin-bottom: 16px; }
.site-footer .brand:hover { color: var(--paper); }
.site-footer p { max-width: 46ch; }
.site-footer h2 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(248, 244, 244, 0.78); }
.site-footer a:hover { color: var(--paper); }
.site-footer__bottom {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(248, 244, 244, 0.14);
  font-size: 0.84rem;
  color: rgba(248, 244, 244, 0.5);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; margin-inline: auto; }
.mt-lg { margin-top: clamp(30px, 3.5vw, 48px); }

/* ---------- Hero animation (StacksVideoV2) ----------
   These rules mirror the original demo's #hero-anim block exactly. Note the
   stage sizes its 1920x1080 SVG itself via an inline transform:
     scale = min(w / 1920, (h - 44) / 1080)
   the 44px being the playback bar it reserves even when hidden. Do NOT
   override that transform (or add a viewBox) — doing so enlarges the artwork
   past the frame and clips the later scenes. */
.hero__anim {
  flex: 1.9 1 420px;
  min-width: 0;
  position: relative;
  width: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  cursor: pointer;
}
.hero__anim button,
.hero__anim [role="slider"],
.hero__anim input[type="range"] { display: none !important; }
.hero__anim div:has(> button) { display: none !important; }
.hero__anim > div > div > div:nth-child(2) { display: none !important; }
.hero__anim > div > div {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.hero__anim > div {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.hero__anim, .hero__anim * { box-shadow: none !important; }
.hero__anim > div > div > div:first-child { height: 100% !important; }
/* The stage's SVG carries width="1920" height="1080" and is fitted by its own
   inline transform. The global `svg { max-width: 100% }` reset would shrink it
   first and compound with that scale, so opt this one out. */
.hero__anim svg {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  transform-origin: center center;
}

/* Homepage hero uses a flex row so the animation can take the larger share. */
.hero__grid--anim {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 26px);
  align-items: center;
}
.hero__grid--anim > .hero__copy { flex: 1 1 320px; min-width: 0; max-width: 480px; }

/* ---------- Build Your Stack — interactive picker ----------
   Dark hero, two-column grid, sticky recommendation. Matches the original. */
.bld__hero {
  background: #141312;
  color: #f3f2f2;
  border-bottom: 1px solid #2e2b2a;
  padding-block: clamp(48px, 6vw, 84px) clamp(40px, 5vw, 64px);
}
.bld__eyebrow2 {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #4d9bf0; margin-bottom: 18px;
}
.bld__hero h1 {
  font-size: clamp(44px, 6.4vw, 86px);
  font-weight: 800; letter-spacing: -0.05em; line-height: .96; color: #f8f4f4;
}
.bld__lede {
  margin-top: 18px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5;
  color: #b9b4b0; max-width: 620px;
}
.bld__body { background: var(--bg); padding-block: clamp(36px, 4.4vw, 60px) clamp(52px, 6vw, 88px); }
.bld {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
}
.bld__steps { display: flex; flex-direction: column; gap: 38px; }
.bld__shead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bld__n2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.bld__q { font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.032em; line-height: 1.2; margin: 0; }
.bld__hint { font-size: 13px; color: #6e6862; }

.bld__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.bld__card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  text-align: left; padding: 16px 18px; border: 1.5px solid #e6e1db;
  border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.bld__card:hover { border-color: var(--slate); }
.bld__lab { font-weight: 700; font-size: 15px; letter-spacing: -0.015em; }
.bld__sub { font-size: 13px; color: #8a837a; }
.bld__mark {
  position: absolute; top: 13px; right: 13px; width: 20px; height: 20px;
  border-radius: 999px; display: grid; place-items: center;
  background: #f1eeea; color: #8a837a; font-size: 12px; font-weight: 700; line-height: 1;
}
.bld__dom { padding-right: 42px; }
.bld__dom.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bld__dom.is-on .bld__sub { color: #a9a4a0; }
.bld__dom.is-on .bld__mark { background: var(--brand); color: var(--paper); }
.bld__role.is-on {
  background: var(--brand); border-color: var(--brand); color: var(--paper);
  box-shadow: 0 12px 28px -14px rgba(15,111,206,.8);
}
.bld__role.is-on .bld__sub { color: var(--brand-border); }

.bld__empty {
  padding: 22px; border: 1.5px dashed #cfc8be; border-radius: 12px;
  color: var(--ink-soft); font-size: 14px;
}
.bld__group { margin-top: 18px; }
.bld__group:first-child { margin-top: 0; }
.bld__glab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a837a; font-weight: 700; }
.bld__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.bld__chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px 10px 11px; border: 1.5px solid #e6e1db; border-radius: 999px;
  background: var(--surface); cursor: pointer; font: inherit; font-size: 14px; text-align: left;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.bld__chip .bld__mark { position: static; width: 18px; height: 18px; font-size: 11px; }
.bld__chip:hover { border-color: var(--slate); }
.bld__chip.is-on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }
.bld__chip.is-on .bld__mark { background: var(--brand); color: var(--paper); }

.bld__restart {
  align-self: flex-start; cursor: pointer; display: flex; align-items: center; gap: 9px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid #cfc8be;
  transition: border-color .16s ease, color .16s ease;
}
.bld__restart:hover { border-color: var(--brand); color: var(--brand); }

/* --- sticky result --- */
.bld__side { position: sticky; top: 24px; }
.bld__result {
  border-radius: 18px; padding: 26px 30px 32px; background: var(--surface);
  border: 1px solid var(--line); color: #f3f2f2;
  transition: background 260ms ease, border-color 260ms ease;
}
.bld__empty2 {
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  min-height: 280px; margin: -26px -30px -32px; padding: 44px 32px;
  border: 1.5px dashed #cfc8be; border-radius: 18px; background: #fbfaf9;
}
.bld__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a837a; }
.bld__emptymsg {
  font-size: 19px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.35;
  color: #8a837a; max-width: 330px;
}
.bld__rtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bld__ladlab { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bld__ladder { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.bld__rung {
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
  border-radius: 999px; padding: 6px 12px; border: 1px solid;
  transition: background 220ms ease, color 220ms ease;
}
.bld__tier { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.1; margin-top: 16px; }
.bld__line { margin-top: 10px; font-size: 15px; line-height: 1.55; }
.bld__fit { margin-top: 8px; font-size: 13.5px; line-height: 1.5; }
.bld__tierlink {
  display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid currentColor;
}
.bld__tierlink:hover { text-decoration: none; opacity: .8; }
.bld__count { margin-top: 26px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.bld__stacks { display: grid; gap: 8px; margin-top: 12px; }
.bld__stack {
  display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px;
  padding: 13px 16px; border: 1px solid; border-radius: 11px; text-decoration: none;
}
.bld__stack:hover { text-decoration: none; opacity: .85; }
.bld__n { grid-row: span 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.bld__slab { font-weight: 700; font-size: 15px; letter-spacing: -.015em; }
.bld__swhy { font-size: 13px; line-height: 1.5; }
.bld__cta { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.bld__cta p { font-weight: 700; font-size: 15px; margin-bottom: 14px; }

/* ---------- Section rhythm (matches the original: white / #F7F6F4
   alternating, each separated by a hairline) ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.section { border-bottom: 1px solid var(--line); }
.section--tint { background: var(--surface); }

/* ---------- Trust band: heading left, body right ---------- */
.split-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  margin-bottom: 48px;
  max-width: none;
}
.split-head h2 { margin: 0; }
.split-head p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }

/* ---------- About hero: copy left, graphic right ---------- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }

/* ---------- Bespoke graphics (extracted from the original) ---------- */
.figure { width: 100%; min-width: 0; }
.figure > div { max-width: 100%; }
.figure--boxed {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  margin-block: 1.8em;
}
.figure__cap {
  margin-top: 14px; font-size: 14px; line-height: 1.5;
  color: var(--ink-soft); text-wrap: pretty;
}
.figure svg { max-width: 100%; height: auto; }

/* ---------- Stat cards: accent tints the number, not the card ---------- */
.stat--accent { background: var(--surface); border-color: var(--line); }
.stat__value--accent { color: var(--brand); }
.stat__label { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--ink-muted); }

/* ---------- Feature tiles (six stacks + dark CTA) ---------- */
.split-head--end { align-items: end; margin-bottom: 44px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(32,30,29,.04), 0 10px 30px -18px rgba(32,30,29,.16);
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: var(--ink);
  min-height: 232px;
  transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.tile:hover {
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(32,30,29,.06), 0 18px 40px -20px rgba(32,30,29,.30);
  border-color: #ddd8d0;
}
.tile__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #7d7979; }
.tile__title { font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--brand); }
.tile__body { font-size: 14px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.tile--cta {
  background: #1b1a19;
  border-color: #1b1a19;
  color: #f3f2f2;
  justify-content: space-between;
}
.tile--cta:hover { background: var(--brand); border-color: var(--brand); }
.tile--cta .tile__title { color: inherit; }
.tile__go { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }

.legal-more {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}

/* ---------- About: mission card + dark story band ---------- */
.mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: clamp(26px, 3vw, 40px);
}
.mission h2 { color: var(--brand); margin: 0; }
.mission p { font-size: 17px; line-height: 1.55; color: var(--ink-muted); }

.story { background: #1b1a19; color: #f3f2f2; padding-block: clamp(52px, 6vw, 88px); }
.story h2 { color: #f8f4f4; margin-bottom: clamp(28px, 3vw, 44px); }
.story__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.story__grid p { font-size: 15.5px; line-height: 1.65; color: #c4c1c1; }
.story__grid p + p { margin-top: 16px; }
.story__quote { border-left: 3px solid var(--brand); padding-left: 24px; }
.story__quote p {
  font-size: clamp(19px, 1.9vw, 23px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.4; color: #f3f2f2;
}
.story__quote cite {
  display: block; margin-top: 14px; font-style: normal;
  font-size: 14px; color: #9b9797;
}

/* Hero "Start over" — light on the dark band (matches the original) */
.bld__restart--hero {
  margin-top: 22px;
  background: none;
  color: #f3f2f2;
  border-color: #4a4644;
}
.bld__restart--hero:hover { border-color: #4d9bf0; color: #4d9bf0; }

/* ---------- Corrections measured against the original ---------- */
/* Page eyebrows are warm grey, not brand blue (only FAQ group labels are blue). */
.eyebrow { color: #7d7979; }
.faq-group .eyebrow, .eyebrow--brand { color: var(--brand); }

/* Detail-page hero runs a larger H1 and an 18px lede. */
.hero--detail .hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero--detail h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1; }
.hero--detail .hero__lede { font-size: 18px; line-height: 1.55; max-width: 600px; }
.hero--detail .hero__lede--2 { font-size: 17px; max-width: 580px; }

/* Closing line under a card group (problems / benefits / capabilities). */
.section__outro {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 78ch;
}

/* ---------- Resources category filter ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(24px, 3vw, 34px); }
.cat {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 17px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: #5b564e; border: 1px solid var(--line);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.cat:hover { border-color: var(--slate); }
.cat.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Wide pull quote closing a benefits section */
.pullquote--wide { max-width: 74ch; margin-top: clamp(26px, 3vw, 38px); }

.cats__count { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Post tags ---------- */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-tags > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tag--soft { background: var(--panel-2, #f4f2ee); border-color: var(--line); color: var(--ink-muted); }
