/* ============================================================
   BRAINTOOLS — Site styles
   Static HTML site. Imports brand tokens from colors_and_type.css.
   ============================================================ */

@import url("colors_and_type.css");

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bt-paper); color: var(--bt-ink);
  font-family: var(--bt-font-sans); font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bt-paper);
  border-bottom: 1px solid var(--bt-ink);
  height: 72px;
  display: flex; align-items: center;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand-lockup {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand-lockup .mark {
  width: 40px; height: 40px;
  display: block;
}
.brand-lockup .wm {
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1;
}
.brand-lockup .wm .name {
  font-family: var(--bt-font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--bt-ink);
}
.brand-lockup .wm .strap {
  font-family: var(--bt-font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bt-steel-600);
  padding-top: 4px; border-top: 1px solid var(--bt-steel-300);
  margin-top: 2px;
}

.nav {
  display: flex; align-items: center; gap: 32px;
}
.nav .links {
  display: flex; align-items: center; gap: 32px;
}
.nav a {
  font-family: var(--bt-font-mono);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bt-ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--bt-dur-fast) var(--bt-ease-out);
}
.nav a:hover { border-bottom-color: var(--bt-ink); }
.nav a.active { border-bottom-color: var(--bt-hivis); }
.nav .cta {
  font-family: var(--bt-font-mono);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--bt-ink); color: var(--bt-paper);
  padding: 12px 18px;
  border: 1px solid var(--bt-ink);
  box-shadow: 4px 4px 0 0 var(--bt-hivis);
  transition: transform var(--bt-dur-fast) var(--bt-ease-out),
              box-shadow var(--bt-dur-fast) var(--bt-ease-out);
}
.nav .cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--bt-hivis);
}
.nav .contact-cta {
  font-family: var(--bt-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bt-paper);
  background: var(--bt-ink);
  padding: 10px 16px;
  border: 1px solid var(--bt-ink);
  border-bottom: 1px solid var(--bt-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 3px 3px 0 0 var(--bt-hivis);
  transition: transform var(--bt-dur-fast) var(--bt-ease-out),
              box-shadow var(--bt-dur-fast) var(--bt-ease-out);
}
.nav .contact-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--bt-hivis);
  border-bottom-color: var(--bt-ink);
}

/* mobile menu (simple show/hide) */
.menu-btn { display: none; background: none; border: 1px solid var(--bt-ink); padding: 8px 12px;
  font-family: var(--bt-font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ── FULL-BLEED IMAGE HERO (Home) ─────────────────────────── */
.hero-full {
  position: relative;
  height: calc(100vh - 72px);
  min-height: 640px;
  max-height: 840px;
  background: var(--bt-ink);
  border-bottom: 1px solid var(--bt-ink);
  overflow: hidden;
}
.hero-full .hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: contrast(1.05) saturate(1.05);
}
.hero-full .hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(10,10,10,0.92) 0%,
      rgba(10,10,10,0.78) 28%,
      rgba(10,10,10,0.30) 52%,
      rgba(10,10,10,0.05) 80%,
      rgba(10,10,10,0.0) 100%);
}
.hero-full .hero-frame {
  position: relative; height: 100%;
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center;
  z-index: 2;
}
.hero-full .hero-panel {
  max-width: 600px;
}
.hero-full .hero-caption {
  position: absolute;
  right: 32px; bottom: 32px;
  max-width: 360px;
  text-align: right;
  background: rgba(10,10,10,0.65);
  backdrop-filter: none;
  border: 1px solid var(--bt-paper);
  padding: 14px 18px;
}
.hero-full .hero-caption-tag {
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bt-hivis);
  margin-bottom: 6px;
}
.hero-full .hero-caption-body {
  font-family: var(--bt-font-sans);
  font-size: 12px; line-height: 1.45;
  color: var(--bt-paper);
}
@media (max-width: 768px) {
  .hero-full { height: auto; min-height: 0; max-height: none; }
  .hero-full .hero-img { position: relative; height: 320px; }
  .hero-full .hero-grad { display: none; }
  .hero-full .hero-frame {
    position: relative; padding: 40px 20px 56px;
    background: var(--bt-ink); flex-direction: column;
  }
  .hero-full .hero-caption { position: relative; right: auto; bottom: auto;
    margin-top: 32px; max-width: 100%; text-align: left; }
}

/* ── HERO / SECTION COMMONS ──────────────────────────────── */
.eyebrow {
  font-family: var(--bt-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-steel-600);
  display: inline-block;
}
.section { padding: 96px 0; border-bottom: 1px solid var(--bt-ink); }
.section.tight { padding: 64px 0; }
.section.ink { background: var(--bt-ink); color: var(--bt-paper); }
.section.warm { background: var(--bt-paper-warm); }

.display-1 {
  font-family: var(--bt-font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.93;
  letter-spacing: -0.045em;
  margin: 16px 0 32px;
  color: var(--bt-ink);
  text-wrap: balance;
}
.display-2 {
  font-family: var(--bt-font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.display-3 {
  font-family: var(--bt-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.lede {
  font-family: var(--bt-font-sans);
  font-size: 20px;
  line-height: 1.5;
  color: var(--bt-steel-700);
  margin: 0;
  max-width: 720px;
  text-wrap: pretty;
}
.body-lg p,
p.body-lg {
  font-family: var(--bt-font-sans);
  font-size: 18px; line-height: 1.55;
  color: var(--bt-ink); margin: 0 0 20px;
}
.body p,
p.body {
  font-size: 15px; line-height: 1.55;
  color: var(--bt-steel-700); margin: 0 0 16px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--bt-font-mono);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--bt-ink);
  transition: transform var(--bt-dur-fast) var(--bt-ease-out),
              box-shadow var(--bt-dur-fast) var(--bt-ease-out),
              background var(--bt-dur-fast) var(--bt-ease-out),
              color var(--bt-dur-fast) var(--bt-ease-out);
}
.btn-primary {
  background: var(--bt-ink); color: var(--bt-paper);
  box-shadow: 4px 4px 0 0 var(--bt-hivis);
}
.btn-primary:hover {
  background: var(--bt-hivis); color: var(--bt-ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--bt-ink);
}
.btn-secondary {
  background: var(--bt-paper); color: var(--bt-ink);
  box-shadow: 4px 4px 0 0 var(--bt-ink);
}
.btn-secondary:hover {
  background: var(--bt-ink); color: var(--bt-paper);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--bt-ink);
}
.btn-tertiary {
  background: transparent; color: var(--bt-ink);
  border: 0; padding: 4px 0;
  border-bottom: 1px solid var(--bt-ink);
}
.btn-tertiary:hover { background: var(--bt-hivis); }
.btn .arrow { width: 12px; height: 12px; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bt-paper-pure);
  border: 1px solid var(--bt-ink);
  box-shadow: 4px 4px 0 0 var(--bt-ink);
  padding: 28px;
}
.card.featured {
  box-shadow: 4px 4px 0 0 var(--bt-hivis);
  border-top: 6px solid var(--bt-hivis);
  padding-top: 22px;
}
.card .meta {
  font-family: var(--bt-font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bt-steel-500);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── FIGURE BLOCK (image placeholder, brand-style) ───────── */
.fig {
  position: relative;
  background: var(--bt-steel-100);
  border: 1px solid var(--bt-ink);
  background-image:
    linear-gradient(45deg, transparent 48%, var(--bt-steel-300) 48%, var(--bt-steel-300) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--bt-steel-300) 48%, var(--bt-steel-300) 52%, transparent 52%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 240px;
}
.fig.tall { min-height: 360px; }
.fig.short { min-height: 180px; }
.fig .tag {
  background: var(--bt-ink); color: var(--bt-paper);
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 10px;
  margin: 12px;
}
.fig.with-image { background: var(--bt-ink); }
.fig.with-image img { width: 100%; height: 100%; object-fit: cover; }
.fig .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  background: rgba(10,10,10,0.85); color: var(--bt-paper);
  padding: 8px 12px;
}

/* ── STATS BAND ────────────────────────────────────────────── */
.stats-band {
  background: var(--bt-ink); color: var(--bt-paper);
  padding: 72px 0;
}
.stats-band .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  align-items: end;
}
.stat .n {
  font-family: var(--bt-font-display);
  font-weight: 700; font-size: 88px; line-height: 0.9;
  letter-spacing: -0.04em;
}
.stat .n.hivis {
  background: var(--bt-hivis); color: var(--bt-ink);
  padding: 0 8px; display: inline-block;
}
.stat .lbl {
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bt-steel-400);
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--bt-steel-700);
}

/* ── BIG QUOTE ────────────────────────────────────────────── */
.quote {
  font-family: var(--bt-font-serif);
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.06; letter-spacing: -0.01em;
  margin: 0; max-width: 1100px;
}
.quote em {
  font-style: italic;
  background: var(--bt-hivis); color: var(--bt-ink);
  padding: 0 8px;
}
.quote-attr {
  font-family: var(--bt-font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bt-steel-600);
  margin-top: 32px;
}
.section.ink .quote-attr { color: var(--bt-steel-400); }
.section.ink .quote em { background: var(--bt-hivis); color: var(--bt-ink); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bt-ink); color: var(--bt-paper);
  padding: 80px 0 32px;
}
.site-footer .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--bt-steel-700);
}
.site-footer h4 {
  font-family: var(--bt-font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bt-steel-400);
  margin: 0 0 20px; font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a {
  font-family: var(--bt-font-sans);
  font-size: 14px; color: var(--bt-paper);
  border-bottom: 1px solid transparent;
}
.site-footer ul a:hover { border-bottom-color: var(--bt-hivis); }
.site-footer .brand-block .name {
  font-family: var(--bt-font-display);
  font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; color: var(--bt-paper);
  margin: 0 0 8px;
}
.site-footer .brand-block .tag {
  font-family: var(--bt-font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bt-steel-400);
  margin-bottom: 24px;
}
.site-footer .brand-block .desc {
  font-size: 14px; line-height: 1.55;
  color: var(--bt-steel-300); margin: 0; max-width: 380px;
}
.site-footer .legal {
  padding-top: 32px;
  display: flex; justify-content: space-between; gap: 32px;
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bt-steel-500);
}

/* ── UTILITIES ────────────────────────────────────────────── */
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.divider { border-top: 1px solid var(--bt-steel-200); margin: 64px 0; }
.tag-pill {
  display: inline-block;
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--bt-paper-pure);
  border: 1px solid var(--bt-ink); padding: 4px 8px;
  color: var(--bt-ink);
}
.tag-pill.hivis { background: var(--bt-hivis); }
.tag-pill.ink { background: var(--bt-ink); color: var(--bt-paper); border-color: var(--bt-ink); }
.stamp {
  display: inline-block;
  font-family: var(--bt-font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent; color: var(--bt-ink);
  border: 1px solid var(--bt-ink);
  padding: 8px 14px;
  transform: rotate(-2deg);
}
.hivis-bg { background: var(--bt-hivis); color: var(--bt-ink); padding: 0 6px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-band .grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }

  /* ---- Mobile nav: collapse links into the Menu button ---- */
  .menu-btn { display: inline-block; }
  .nav { gap: 12px; }
  .nav .contact-cta { display: none; }
  .nav .links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bt-paper);
    border-bottom: 1px solid var(--bt-ink);
    box-shadow: 0 12px 24px rgba(10,10,10,0.12);
    padding: 4px 20px 16px;
    z-index: 60;
  }
  .nav.open .links { display: flex; }
  .nav .links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--bt-steel-200);
    font-size: 13px;
  }
  .nav .links a:last-child { border-bottom: 0; }
  .nav .links .contact-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    box-shadow: 3px 3px 0 0 var(--bt-hivis);
  }

  /* ---- Force inline multi-column grids to stack ---- */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .stats-band .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .site-footer .legal { flex-direction: column; gap: 12px; }

  .brand-lockup .wm .strap { display: none; }
  .brand-lockup .wm .name { font-size: 20px; }
  .stat .n { font-size: 56px; }

  /* Tame oversized inline display headings on small screens */
  .display-2 { font-size: clamp(34px, 9vw, 48px) !important; }
  .lede { font-size: 18px; }
}
