:root {
  /* Brand: black + metallic gold, sampled from the Bulletproof logo */
  --ink: #0b0b0c;
  --ink-2: #1a1a1d;
  --text: #26262a;
  --muted: #5f6168;
  --line: #e6e3da;
  --paper: #ffffff;
  --paper-2: #f6f4ee;
  --accent: #d4af48;
  --accent-dark: #9c7a22;
  --gold: linear-gradient(180deg, #f3d77a 0%, #d4af48 48%, #a8842a 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .10);
  --serif: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-weight: 600; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

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

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--gold); color: var(--ink); font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; transition: filter .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-small { min-height: 40px; padding: 0 20px; font-size: .95rem; }
.btn-full { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 11, 12, .96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(212,175,72,.18);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .2s; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212,175,72,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: rgba(255,255,255,.86);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent); }
.roles { list-style: none; padding: 0; margin: 4px 0 26px; display: flex; flex-wrap: wrap; gap: 8px 0; }
.roles li { font-family: var(--serif); font-weight: 600; font-size: .95rem; letter-spacing: .04em; color: var(--accent); }
.roles li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); margin: 0 14px; vertical-align: middle; }
.lede { font-size: 1.18rem; max-width: 36em; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 32px;
}
.hero-card-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.hero-card-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 20px; }
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
/* Badge and name share a baseline, so the badge lines up with the first line when a name wraps */
.creds li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: baseline; font-size: .98rem; line-height: 1.4; color: rgba(255,255,255,.85); }
.creds abbr {
  display: block; text-align: center; text-decoration: none;
  font-weight: 600; font-size: .82rem; line-height: 1; letter-spacing: .06em; color: var(--accent);
  border: 1px solid rgba(212,175,72,.45); border-radius: 999px; padding: 6px 0;
}
.hero-card-note { font-size: .95rem; color: rgba(255,255,255,.65); margin: 0; }

/* Band */
.band { background: var(--gold); }
.band-inner { padding-top: 22px; padding-bottom: 22px; }
.band p { margin: 0; text-align: center; font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); font-weight: 500; }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* Services */
/* Flex rather than grid so a short last row stays centered */
.service-grid { --cols: 4; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.service {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--ink);
  display: grid; place-items: center; margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Model */
.model { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.model-copy p { max-width: 38em; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23d4af48' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist strong { color: var(--ink); }

.model-diagram { display: flex; flex-direction: column; align-items: stretch; }
.tier { border-radius: var(--radius); padding: 22px 26px; display: grid; gap: 2px; }
.tier-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tier-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.tier-detail { font-size: .92rem; }
.tier-cfo { background: var(--ink); color: rgba(255,255,255,.7); }
.tier-cfo .tier-label { color: var(--accent); }
.tier-cfo .tier-name { color: #fff; }
.tier-cpa { background: var(--paper); border: 2px solid var(--accent); color: var(--muted); box-shadow: var(--shadow); }
.tier-cpa .tier-label { color: var(--accent-dark); }
.tier-cpa .tier-name { color: var(--ink); }
.tier-you { background: transparent; border: 1px dashed #b9c0ca; color: var(--muted); }
.tier-you .tier-name { color: var(--ink); }
.tier-link { width: 2px; height: 28px; background: var(--accent); margin: 0 auto; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-num { display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent-dark); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* About */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: center; }
.about-portrait {
  aspect-ratio: 4 / 5; border-radius: 20px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.about-portrait::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(212,175,72,.4); border-radius: 12px;
}
.about-portrait span { font-family: var(--serif); font-size: 4.5rem; color: var(--accent); letter-spacing: .04em; }
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about-creds { font-weight: 600; letter-spacing: .08em; color: var(--accent-dark); margin-top: -6px; }
.about-copy p { max-width: 40em; }
.text-link { display: inline-flex; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent-dark); }

/* Contact */
.section-dark { background: var(--ink); color: rgba(255,255,255,.8); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact-label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.contact-list a { color: #fff; text-decoration: none; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact-plain { color: #fff; font-size: 1.08rem; }

.contact-form { background: var(--paper); border-radius: 20px; padding: 36px; color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: #fbfbfc; border: 1px solid #cfd5dd; border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(212,175,72,.28); }
.field .invalid { border-color: #c0392b; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.error { color: #c0392b; }
.form-status.ok { color: #2e7d4f; }

/* Footer */
.site-footer { background: #050505; color: rgba(255,255,255,.55); font-size: .92rem; border-top: 1px solid rgba(212,175,72,.15); }
.footer-logo { height: 46px; width: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .service-grid { --cols: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .hero-inner { gap: 40px; }
  .about { grid-template-columns: 280px 1fr; gap: 48px; }
  .contact, .model { gap: 48px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .btn { margin-top: 20px; min-height: 50px; }

  .hero-inner, .about, .contact, .model { grid-template-columns: 1fr; }
  .model { gap: 40px; }
  .hero-actions .btn { flex: 1 1 200px; }
  .hero-card { padding: 26px; }
  .lede { font-size: 1.08rem; }

  .about-portrait { max-width: 260px; aspect-ratio: 1; }
  .about-portrait span { font-size: 3.5rem; }

  .contact-form { padding: 26px 20px; }
  .section-head { margin-bottom: 36px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .service-grid { --cols: 1; }
  .roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .roles li::before, .roles li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 10px 0 0; vertical-align: middle; }
  .steps { gap: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .brand img { height: 38px; }
}
