/* Archen Partners - design system (dark alpine-industrial) */
:root {
  --bg: #0B1017;
  --bg-deep: #070B11;
  --surface: #121A26;
  --surface-band: #0D131C;
  --surface-2: #0E1520;
  --line: #22304A;
  --line-strong: #2E4162;
  --text: #C6D1E2;
  --heading: #F0F4FA;
  --muted: #8B9BB4;
  --accent: #FF6B2B;
  --accent-bright: #FF8A50;
  --accent-deep: #D8541D;
  --accent-soft: rgba(255, 107, 43, .13);
  --ok: #46C08A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-bright); }
::selection { background: var(--accent); color: #0B1017; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); line-height: 1.12; margin: 0 0 16px; font-weight: 600; letter-spacing: -0.3px; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; margin-bottom: 10px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p { margin: 0 0 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lede { font-size: 19px; color: var(--muted); max-width: 680px; }
.hero .lede, .on-dark .lede { color: #A9B7CE; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--accent-bright); margin: 0 0 14px; }
.eyebrow::before { content: "// "; opacity: .65; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); transition: background .15s, border-color .15s, color .15s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: #44557A; color: #E7EDF6; }
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-outline { border-color: #44557A; color: #E7EDF6; }
.btn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 17, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-word { font-family: var(--serif); font-size: 21px; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #B9C5D9; text-decoration: none; font-size: 15px; padding-bottom: 3px; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--accent); }
.site-nav a.nav-cta { color: #fff; border-bottom: none; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; color: #fff; cursor: pointer; }

/* Hero */
.hero { position: relative; background-color: var(--bg-deep); color: var(--text); padding: 100px 0 88px; overflow: hidden; border-bottom: 1px solid var(--line); }
.bg-blueprint {
  background-image:
    radial-gradient(1100px 480px at 78% -10%, rgba(255, 107, 43, .14), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.hero-inner { max-width: 800px; }
.hero-stats { display: flex; gap: 44px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 600; }
.stat span { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hero-page { background: linear-gradient(180deg, #0F1725, var(--bg)); padding: 80px 0 58px; border-bottom: 1px solid var(--line); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.ink { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 740px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* Grid & cards */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.icon-tile { width: 46px; height: 46px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-bright); display: grid; place-items: center; margin-bottom: 16px; }
.icon-tile svg { width: 24px; height: 24px; }
.num { font-family: var(--serif); font-size: 34px; color: var(--accent); font-weight: 600; line-height: 1; margin-bottom: 10px; }

/* Tombstones */
.tombstone { border-top: 3px solid var(--accent); }
.t-meta { font-family: var(--mono); color: var(--muted); font-size: 12.5px; letter-spacing: .03em; margin-top: -4px; }
.t-outcome { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--heading); }

/* Steps timeline */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 820px; }
.steps > li { position: relative; padding: 0 0 40px 78px; counter-increment: step; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--accent-bright); font-family: var(--mono); display: grid; place-items: center; font-size: 15px; }
.steps > li::after { content: ""; position: absolute; left: 24px; top: 58px; bottom: 10px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li:last-child { padding-bottom: 0; }
.step-when { font-family: var(--mono); font-size: 12px; color: var(--accent-bright); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.chip svg { width: 17px; height: 17px; color: var(--accent-bright); }
.chip:hover { border-color: var(--accent); color: var(--heading); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { background: #17202F; color: #E8EEF7; text-align: left; padding: 13px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 13px 18px; border-top: 1px solid var(--line); }
.data-table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; position: relative; padding-right: 36px; color: var(--heading); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent-bright); font-weight: 400; }
details[open].faq summary::after { content: "\2013"; }
.faq-body { padding: 0 0 20px; }
.faq-body p:last-child { margin-bottom: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin: 11px 0; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--heading); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #33445F; border-radius: 8px; font: inherit; font-size: 15px; background: var(--surface-2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-success { background: rgba(70, 192, 138, .08); border: 1px solid rgba(70, 192, 138, .35); border-radius: var(--radius); padding: 26px; }
.hidden { display: none; }

/* Team */
.avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--accent); color: var(--accent-bright); display: grid; place-items: center; font-family: var(--mono); font-size: 22px; letter-spacing: 1px; margin-bottom: 16px; }
.avatar-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--accent); margin-bottom: 16px; display: block; }
.role { font-family: var(--mono); color: var(--accent-bright); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; margin: -4px 0 10px; }

/* Articles */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 8px; }
.article h3 { margin-top: 30px; }
hr.divider { border: 0; border-top: 1px solid var(--line); margin: 60px auto; max-width: 760px; }

/* CTA band */
.cta-band { background: var(--bg-deep); color: #A9B7CE; padding: 64px 0; border-top: 2px solid var(--accent); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { margin: 0; }

/* Footer */
.site-footer { background: #060A0F; color: #9FAEC7; padding: 64px 0 36px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.site-footer h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #7C8CA6; }
.site-footer a { color: #9FAEC7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-links a { display: block; margin: 9px 0; font-size: 15px; }
.foot-tagline { font-family: var(--serif); font-size: 17px; color: #fff; margin: 12px 0 16px; }
.foot-contact { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.foot-disclaimer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: #5E7091; max-width: 920px; line-height: 1.6; }
.foot-bottom { margin-top: 14px; font-size: 12.5px; color: #5E7091; }

/* Reveal animation (JS-gated so content is never hidden without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-deep); flex-direction: column; align-items: flex-start; padding: 18px 24px 26px; gap: 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
}
@media (max-width: 720px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 58px 0; }
  .hero { padding: 70px 0 62px; }
  .hero-stats { gap: 26px; }
}

/* Hero watermark */
.hero-wrap { position: relative; }
.hero-mark { position: absolute; right: 24px; top: -40px; width: 300px; height: 300px; opacity: .1; pointer-events: none; }
@media (max-width: 880px) { .hero-mark { display: none; } }

/* Lead form */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #FF8A50; font-size: 14px; margin-top: 10px; }
