:root {
  --paper: #f0efec;
  --paper-warm: #ebe8e0;
  --ink: #1c1f24;
  --ink-soft: #3d434c;
  --ink-mute: #7a7d85;
  --teal: #2a5b6b;
  --teal-deep: #1e4552;
  --teal-tint: rgba(42,91,107,.08);
  --brass: #b08a4d;
  --brass-deep: #8f6d38;
  --brass-tint: rgba(176,138,77,.10);
  --border: #dcd8d0;
  --border-strong: #c4beb0;
  --danger: #a83842;
  --success: #4a7b3d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Rubik', -apple-system, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* === Typography === */
h1, h2, h3, h4 { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
.mono, code, pre { font-family: 'Overpass Mono', 'Consolas', monospace; }
.hl { color: var(--teal); font-weight: 700; }
.hl-b { color: var(--brass); font-weight: 700; }
.hl-r { color: var(--danger); font-weight: 700; }

/* === Layout === */
._c { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* === Header === */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,239,236,.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}
.hdr-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand-mark { width: 40px; height: 40px; border-radius: 3px; }
.brand span { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-family: 'Rubik', sans-serif; font-size: 0.94rem; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--teal); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: 'Overpass Mono', monospace;
  font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 2px;
  transition: all .18s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary, .nav a.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--teal); color: var(--paper); border-color: var(--teal); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-brass { background: var(--brass); color: var(--paper); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-deep); border-color: var(--brass-deep); }

/* === Hero === */
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }
.hero h1 { margin: 26px 0 22px; }
.hero .lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}
.hero-stat-val { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.hero-stat-val .hl { color: var(--teal); }
.hero-stat-lbl { font-family: 'Overpass Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.10em; color: var(--ink-mute); margin-top: 10px; }

/* === Lead form (dark inverted) === */
.lead-wrap {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 36px;
  border-radius: 4px;
  position: relative;
  border-top: 4px solid var(--brass);
}
.lead-wrap::before {
  content: ''; position: absolute; top: -18px; right: 32px;
  width: 32px; height: 32px;
  background: var(--brass);
  transform: rotate(45deg);
}
.lead-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lead-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brass);
}
.lead-eyebrow .dot { width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }
.lead-badge {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.7rem; color: rgba(240,239,236,.6);
  text-transform: uppercase; letter-spacing: 0.10em;
}
.lead-wrap h2 { color: var(--paper); font-size: 1.9rem; margin-bottom: 12px; }
.lead-sub { color: rgba(240,239,236,.72); font-size: 0.94rem; margin-bottom: 26px; line-height: 1.5; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(240,239,236,.6);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.96rem;
  background: rgba(255,255,255,.04);
  color: var(--paper);
  border: 1px solid rgba(240,239,236,.14);
  border-radius: 2px;
  transition: all .15s;
}
.field input:focus { outline: none; border-color: var(--brass); background: rgba(255,255,255,.07); }
.field input::placeholder { color: rgba(240,239,236,.35); }
.form-cta {
  width: 100%;
  padding: 15px;
  background: var(--brass);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: background .15s;
  margin-top: 8px;
}
.form-cta:hover { background: var(--brass-deep); }
.form-tos { margin-top: 16px; font-size: 0.78rem; color: rgba(240,239,236,.55); line-height: 1.5; }
.form-tos a { color: var(--brass); text-decoration: underline; }

/* === intl-tel-input fixes (dark form, light dropdown) === */
.iti { width: 100%; }
.iti__country-list {
  background: #ffffff !important;
  color: #1c1f24 !important;
  border: 1px solid #c4beb0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.20) !important;
  max-height: 300px !important;
  font-family: 'Rubik', sans-serif !important;
  font-size: 0.92rem !important;
}
.iti__country { color: #1c1f24 !important; padding: 7px 10px !important; }
.iti__country-name { color: #1c1f24 !important; }
.iti__dial-code { color: #7a7d85 !important; }
.iti__country:hover, .iti__country.iti__highlight {
  background: #f0efec !important;
  color: #2a5b6b !important;
}
.iti__divider { border-bottom: 1px solid #c4beb0 !important; }
.iti__selected-flag { background: rgba(255,255,255,.06) !important; }
.iti__selected-flag:hover, .iti__selected-flag:focus { background: rgba(255,255,255,.12) !important; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--paper) !important; }

/* === Section headings === */
.sec-hd { text-align: center; margin-bottom: 56px; }
.sec-hd .eyebrow { margin-bottom: 20px; }
.sec-hd h2 { margin: 0 auto 16px; max-width: 780px; }
.sec-hd p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* === Cards grid === */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 32px 28px;
  position: relative;
  transition: all .2s;
}
.card::before {
  content: '';
  position: absolute; top: -2px; left: -2px;
  width: 60px; height: 4px;
  background: var(--teal);
}
.card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.card-num {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.72rem; color: var(--brass); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 12px; font-family: 'Zilla Slab', serif; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* === Methodology (3-step) === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  padding: 32px 28px;
  background: var(--paper-warm);
  border-left: 4px solid var(--teal);
}
.step-num {
  font-family: 'Zilla Slab', serif;
  font-size: 3.2rem;
  color: var(--teal);
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* === Stats banner === */
.stats-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  position: relative;
}
.stats-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brass);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-val { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 2.8rem; color: var(--brass); line-height: 1; }
.stat-lbl { font-family: 'Overpass Mono', monospace; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.10em; color: rgba(240,239,236,.65); margin-top: 12px; }

/* === Testimonials === */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
  background: var(--paper);
  border: 2px solid var(--border-strong);
  padding: 32px 28px;
}
.stars { color: var(--brass); font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.tcard p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; margin-bottom: 22px; font-style: italic; }
.tcard-by { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.tcard-av { width: 42px; height: 42px; background: var(--teal); color: var(--paper); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.05rem; }
.tcard-meta strong { display: block; font-family: 'Zilla Slab', serif; font-weight: 600; color: var(--ink); }
.tcard-meta span { font-family: 'Overpass Mono', monospace; font-size: 0.74rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* === FAQ teaser === */
.faq-teaser { background: var(--paper-warm); padding: 88px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.faq-q {
  padding: 24px 28px;
  background: var(--paper);
  border: 2px solid var(--border-strong);
  transition: border-color .15s;
}
.faq-q:hover { border-color: var(--teal); }
.faq-q h4 { margin-bottom: 10px; font-family: 'Zilla Slab', serif; }
.faq-q p { color: var(--ink-soft); font-size: 0.92rem; }

/* === Footer === */
.ft { background: var(--ink); color: rgba(240,239,236,.75); padding: 72px 0 32px; }
.ft-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.ft-brand { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.4rem; color: var(--paper); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.ft-brand span { color: var(--teal); }
.ft-about { color: rgba(240,239,236,.65); font-size: 0.92rem; line-height: 1.6; margin-bottom: 24px; }
.ft-col h4 { color: var(--paper); font-family: 'Overpass Mono', monospace; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px; }
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 10px; }
.ft-col a { color: rgba(240,239,236,.7); font-size: 0.92rem; transition: color .15s; }
.ft-col a:hover { color: var(--brass); }
.ft-nl { max-width: 100%; }
.ft-nl input { width: 100%; padding: 11px 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(240,239,236,.14); color: var(--paper); font-family: 'Rubik', sans-serif; font-size: 0.9rem; border-radius: 2px; margin-bottom: 10px; }
.ft-nl button { width: 100%; padding: 11px; background: var(--brass); color: var(--paper); border: none; font-family: 'Overpass Mono', monospace; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em; border-radius: 2px; cursor: pointer; transition: background .15s; }
.ft-nl button:hover { background: var(--brass-deep); }
.ft-risk { padding: 24px; background: rgba(168,56,66,.10); border-left: 3px solid var(--danger); margin-bottom: 32px; font-size: 0.86rem; line-height: 1.6; color: rgba(240,239,236,.85); }
.ft-risk strong { color: var(--danger); font-weight: 700; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(240,239,236,.12); font-family: 'Overpass Mono', monospace; font-size: 0.78rem; color: rgba(240,239,236,.55); text-transform: uppercase; letter-spacing: 0.08em; flex-wrap: wrap; gap: 16px; }
.ft-certs { display: flex; gap: 16px; }
.ft-certs span { padding: 4px 10px; border: 1px solid rgba(240,239,236,.25); border-radius: 2px; }

/* === Subpage === */
.subhero { padding: 60px 0 40px; background: var(--paper-warm); border-bottom: 2px solid var(--ink); }
.crumb { font-family: 'Overpass Mono', monospace; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.10em; color: var(--ink-mute); margin-bottom: 18px; }
.crumb a { color: var(--teal); }
.subhero h1 { margin: 18px 0 20px; }
.sublead { font-size: 1.08rem; color: var(--ink-soft); max-width: 720px; line-height: 1.6; }
.subbody { max-width: 820px; margin: 0 auto; padding: 64px 0; }
.subbody h2 { margin: 40px 0 18px; }
.subbody h3 { margin: 28px 0 12px; }
.subbody p { margin-bottom: 16px; color: var(--ink); font-size: 1.02rem; line-height: 1.72; }
.subbody ul, .subbody ol { margin: 16px 0 24px; padding-left: 24px; }
.subbody li { margin-bottom: 10px; color: var(--ink); font-size: 1rem; line-height: 1.65; }
.subbody a { color: var(--teal); border-bottom: 1px solid var(--teal); }
.subbody strong { color: var(--ink); font-weight: 700; }
.subbody blockquote { margin: 24px 0; padding: 20px 24px; background: var(--paper-warm); border-left: 4px solid var(--teal); font-style: italic; }

.callout { padding: 24px 28px; background: var(--teal-tint); border-left: 4px solid var(--teal); margin: 24px 0; }
.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.brass { background: var(--brass-tint); border-left-color: var(--brass); }
.callout.red { background: rgba(168,56,66,.08); border-left-color: var(--danger); }
.callout.red strong { color: var(--danger); }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.kpi { padding: 24px; background: var(--paper-warm); border: 1px solid var(--border-strong); text-align: center; }
.kpi-val { font-family: 'Zilla Slab', serif; font-size: 2rem; font-weight: 700; color: var(--teal); }
.kpi-lbl { font-family: 'Overpass Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.10em; color: var(--ink-mute); margin-top: 8px; }

/* === Related box === */
.related { background: var(--paper-warm); padding: 32px; margin-top: 56px; border: 1px solid var(--border-strong); }
.related-h { font-family: 'Overpass Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass); font-weight: 600; margin-bottom: 16px; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a { padding: 8px 14px; background: var(--paper); border: 1px solid var(--border-strong); font-family: 'Rubik', sans-serif; font-size: 0.86rem; color: var(--ink); transition: all .15s; }
.related-list a:hover { border-color: var(--teal); color: var(--teal); }

/* === Role card (careers) === */
.role { padding: 28px; background: var(--paper-warm); border-left: 4px solid var(--brass); margin-bottom: 20px; }
.role-loc { font-family: 'Overpass Mono', monospace; font-size: 0.76rem; text-transform: uppercase; color: var(--ink-mute); letter-spacing: 0.10em; margin-bottom: 8px; }
.role h3 { margin-bottom: 12px; }

/* === Subpage FAQ / accordion === */
.subfaq { border-top: 1px solid var(--border); margin-top: 8px; }
.subfaq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.subfaq-item h4 { margin-bottom: 10px; color: var(--ink); }
.subfaq-item p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* === Blog row === */
.blog-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.blog-date { font-family: 'Overpass Mono', monospace; font-size: 0.82rem; color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-title { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.16rem; margin-bottom: 6px; color: var(--ink); }
.blog-desc { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }
.blog-meta { font-family: 'Overpass Mono', monospace; font-size: 0.74rem; color: var(--ink-mute); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* === Responsive === */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards, .steps, .tcards, .kpi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .blog-row { grid-template-columns: 1fr; gap: 8px; }
  section { padding: 60px 0; }
  ._c { padding: 0 22px; }
  .nav { display: none; }
}
