/* ==========================================================================
   Target Fire Systems — concept site
   Tokens → base → components → sections → utilities
   Art direction: graphite + target red, engineering "spec sheet" detailing,
   concentric-ring motif taken from the logo.
   ========================================================================== */

:root {
  /* Brand (from logo) */
  --red: #c03b3c;
  --red-700: #a82f30;      /* hover, red text on light (6.7:1) */
  --red-400: #e4686a;      /* red text on dark */
  --red-50: #fbeceb;

  /* Graphite (logo bezel) */
  --night: #0f1114;
  --night-800: #171a1f;
  --night-700: #20242b;
  --night-600: #2c313a;

  /* Neutrals */
  --ink: #16191e;
  --muted: #565c66;
  --line: #e2ddd7;
  --paper: #f6f4f1;
  --white: #fff;
  --on-dark: #eceae6;
  --on-dark-muted: #a4a9b2;
  --line-dark: rgba(255, 255, 255, .12);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.03rem, 1rem + 0.15vw, 1.125rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.85rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.3vw, 3.3rem);

  /* Space & shape */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 2px 4px rgba(15, 17, 20, .05), 0 14px 34px -10px rgba(15, 17, 20, .18);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .2), 0 30px 70px -18px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--red-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
q { quotes: "“" "”"; }
:focus-visible { outline: 3px solid var(--focus, var(--red-700)); outline-offset: 3px; border-radius: 2px; }
.site-header, .hero, .certification, .process, .contact, .site-footer, .path-build, .sector-dark, .page-hero, .mobile-bar { --focus: var(--red-400); }
.form-card, .scope, .cert-card { --focus: var(--red-700); }
.nw { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--white); color: var(--ink); padding: .7rem 1rem; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 1rem; }

.kicker {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-700); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker-light { color: var(--red-400); }
.section .kicker { color: var(--red-700); }
.section .kicker-light, .page-hero .kicker { color: var(--red-400); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -8px rgba(192, 59, 60, .7); }
.btn-primary:hover { background: var(--red-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-600); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--on-dark); color: var(--night); transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.08rem; }
.btn-sm { min-height: 44px; padding: .55rem 1.05rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 17, 20, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark); color: #fff;
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.header-inner { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.75rem); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.02rem; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
.brand-name span { display: block; font-weight: 500; font-size: .74rem; letter-spacing: .2em; color: var(--on-dark-muted); }
.nav ul { display: flex; gap: clamp(.9rem, 1.8vw, 1.7rem); }
.nav a { color: var(--on-dark); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { color: #fff; border-color: var(--red); }
.nav-phone { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.nav-phone:hover { color: var(--red-400); }
.nav-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--red-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-phone small { font-size: .68rem; letter-spacing: .1em; color: var(--night); background: var(--red-400); border-radius: 2px; padding: .12rem .32rem; margin-right: .25rem; vertical-align: .1em; }
.menu-toggle { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--line-dark); border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), background .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
[aria-expanded="true"] .bars { background: transparent; }
[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { padding: .5rem var(--gutter) 1.5rem; border-top: 1px solid var(--line-dark); display: grid; gap: .75rem; }
.mobile-menu ul { display: grid; }
.mobile-menu li a { display: block; padding: .85rem 0; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }

@media (max-width: 1080px) { .nav { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 720px) {
  .nav-phone span { display: none; }
  .nav-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line-dark); border-radius: var(--r-sm); }
  .header-cta { display: none; }
  :root { --header-h: 64px; }
  .brand img { width: 44px; height: 44px; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(120% 90% at 85% 10%, #22262e 0%, var(--night) 60%);
  color: var(--on-dark);
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
}
.hero-rings { position: absolute; z-index: -1; width: min(900px, 120vw); right: -260px; top: -180px; opacity: .9; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--on-dark-muted); margin-bottom: 1.4rem; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(192, 59, 60, .25); flex: none; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--red-400); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-dark); max-width: 36rem; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-note { font-size: var(--step--1); color: var(--on-dark-muted); margin-top: 1.1rem; }

/* Certificate card */
.cert-card {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg); padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-lg); transform: rotate(1.2deg);
  border-top: 6px solid var(--red);
}
.cert-card::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(22, 25, 30, .16); border-radius: 8px; pointer-events: none; }
.cert-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.cert-stamp { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 5px var(--red-50); }
.cert-stamp svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cert-kicker { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--red-700); margin: 0 0 .15rem; }
.cert-title { font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 1.14rem; line-height: 1.15; margin: 0; }
.cert-rows { margin: 0; }
.cert-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .62rem 0; border-top: 1px solid var(--line); }
.cert-rows dt { font-size: .9rem; color: var(--muted); }
.cert-rows dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cert-link {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: .9rem; padding: .85rem 1rem; min-height: 48px;
  background: var(--night); color: #fff; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .2s;
}
.cert-link:hover { background: var(--red-700); color: #fff; }
.cert-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Proof strip */
.proof {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(2.75rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
}
.proof li { padding: 1.35rem 1.25rem 1.6rem 0; border-right: 1px solid var(--line-dark); padding-left: 1.25rem; }
.proof li:first-child { padding-left: 0; }
.proof li:last-child { border-right: 0; }
.proof strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.16rem; color: #fff; line-height: 1.2; }
.proof span { display: block; font-size: .86rem; color: var(--on-dark-muted); line-height: 1.35; margin-top: .25rem; }

@media (min-width: 961px) {
  .hero h1 { font-size: clamp(2.6rem, 1rem + 3.2vw, 3.9rem); font-stretch: 104%; max-width: none; letter-spacing: -.025em; line-height: 1.02; }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); }
}
@media (min-width: 961px) and (max-height: 780px) {
  .hero { padding-top: 1.5rem; }
  .eyebrow { margin-bottom: .9rem; }
  .hero h1 { font-size: 3.1rem; }
  .lede { margin-top: 1rem; font-size: var(--step-0); }
  .hero-actions { margin-top: 1.4rem; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cert-card { transform: none; max-width: 30rem; }
  .hero-rings { right: -75vw; top: -220px; opacity: .3; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof li { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line-dark); padding-block: 1rem; }
  .proof li:nth-child(odd) { padding-right: 1rem; }
  .proof li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .eyebrow { font-size: .74rem; }
  .eyebrow .long { display: none; }
}

/* ---------- Two paths ---------- */
.paths h2 { max-width: 20ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.75rem); }
.path { border-radius: var(--r-lg); overflow: hidden; }
.path h3 { font-size: var(--step-2); font-weight: 800; margin-bottom: .8rem; }
.path-tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: .9rem; }
.path-build {
  position: relative; background: var(--night); color: var(--on-dark);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 32px 32px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.path-build h3 { color: #fff; }
.path-build .path-tag { color: var(--red-400); }
.path-run { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.path-run img { width: 100%; height: 190px; object-fit: cover; object-position: 70% 55%; }
.path-run-body { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.path-run .path-tag { color: var(--red-700); }
.path .btn { margin-top: auto; position: relative; z-index: 1; }
.path-build { overflow: hidden; }
.path-build::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 0 34%, rgba(192, 59, 60, .22) 35% 50%, transparent 51% 66%, rgba(192, 59, 60, .16) 67% 82%, transparent 83%);
}
.path-docs-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 .6rem; }
.path-docs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.9rem; }
.path-docs li { border: 1px solid var(--line-dark); border-radius: 2px; padding: .3rem .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); background: rgba(255, 255, 255, .03); }
.path-build .ticks { margin-bottom: 1.6rem; }
.ticks { display: grid; gap: .55rem; margin: 1.1rem 0 1.9rem; }
.ticks li { position: relative; padding-left: 1.75rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 28%, transparent 30% 52%, var(--red) 54% 70%, transparent 72%);
}
@media (max-width: 860px) { .path-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .path .btn { width: 100%; } }

/* ---------- Services ---------- */
.services { background: var(--white); border-block: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-intro h2 { font-size: var(--step-2); line-height: 1.14; margin-bottom: 1.1rem; }
.services-intro > p { color: var(--muted); }
.services-photo { margin: 2rem 0 0; position: relative; border-radius: var(--r-lg); overflow: hidden; }
.services-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 28% 55%; filter: saturate(.8) contrast(1.12) brightness(.92); }
.services-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15, 17, 20, .7)); }
.service-list { border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.service-list .num { font-family: var(--font-display); font-stretch: 100%; font-weight: 800; font-size: 1.05rem; color: var(--red-700); letter-spacing: .06em; padding-top: .2rem; font-variant-numeric: tabular-nums; }
.service-list h3 { margin-bottom: .45rem; }
.service-list p { color: var(--muted); margin-bottom: .7rem; max-width: 34rem; }
.service-list a { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none; padding-block: .3rem; border-bottom: 2px solid var(--red-50); transition: border-color .2s; }
.service-list a:hover { border-color: var(--red); color: var(--red-700); }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .services-photo img { aspect-ratio: 16 / 8; }
}
@media (max-height: 760px) { .services-intro { position: static; } }
@media (max-width: 720px) { .service-list a { padding-block: .65rem; } }
@media (max-width: 520px) { .service-list li { grid-template-columns: 2.6rem 1fr; gap: .6rem; } }

/* ---------- Certification ---------- */
.certification {
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--night);
  color: var(--on-dark);
}
.cert-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.cert-intro h2 { color: #fff; font-size: var(--step-3); margin-bottom: 1.2rem; }
.cert-intro > p { color: var(--on-dark-muted); margin-bottom: 1.75rem; max-width: 32rem; }
.cert-facts { margin: 2.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.cert-facts div { padding: .9rem 0; border-top: 1px solid var(--line-dark); }
.cert-facts dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.cert-facts dd { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 700; color: #fff; line-height: 1.3; }
.scope { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.1rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-lg); border-top: 6px solid var(--red); }
.scope table { width: 100%; border-collapse: collapse; }
.scope caption { text-align: left; font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 1.08rem; line-height: 1.25; padding-bottom: 1rem; }
.scope thead th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 2px solid var(--ink); }
.scope thead th:last-child { padding-right: 0; }
.scope tbody td, .scope tbody th { padding: .72rem .5rem .72rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.scope thead th:first-child, .scope tbody td:first-child { width: 3.4rem; }
.scope tbody td:first-child { font-family: var(--font-display); font-weight: 800; color: var(--red-700); }
.scope tbody th { font-weight: 600; line-height: 1.3; }
.scope tbody th small { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); margin-top: .1rem; }
.scope tbody td:last-child { width: 3.4rem; text-align: center; padding-right: 0; }
.lvl { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--night); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .95rem; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
.scope tr.grp th { padding: 1.1rem 0 .6rem; border-bottom: 2px solid var(--ink); }
.scope tr.grp th > span { display: flex; align-items: center; gap: .8rem; font-family: var(--font-display); font-weight: 800; font-size: .98rem; line-height: 1.25; }
.scope tr.grp small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .84rem; color: var(--muted); margin-top: .1rem; }
.scope tr.grp .lvl { flex: none; margin: 5px; }
.scope tbody:first-of-type tr.grp th { padding-top: .2rem; }
.scope-note { font-size: var(--step--1); color: var(--muted); margin-top: 1.1rem; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .cert-facts { grid-template-columns: 1fr; } .scope tbody td:first-child { width: 2.4rem; } }

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); }
.sector { grid-column: span 5; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sector-wide { grid-column: span 7; }
.sector-dark { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.sector-dark h3 { color: #fff; }
.sector.sector-dark p { color: var(--on-dark-muted); }
.sector-n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--red); color: var(--red-700); font-family: var(--font-display); font-weight: 800; margin-bottom: 1.4rem; }
.sector-dark .sector-n { color: var(--red-400); }
.sector h3 { font-size: var(--step-2); font-weight: 800; margin-bottom: .6rem; }
.sector .path-tag { color: var(--red-700); margin-bottom: 1.2rem; }
.sector-dark .path-tag { color: var(--red-400); }
.sector p { color: var(--muted); max-width: 30rem; }
.sector::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 0 34%, rgba(192, 59, 60, .1) 35% 50%, transparent 51% 66%, rgba(192, 59, 60, .07) 67% 82%, transparent 83%);
}
.sectors-foot { margin-top: 2rem; color: var(--muted); }
.sectors-foot a { font-weight: 600; white-space: nowrap; }
@media (max-width: 800px) { .sector, .sector-wide { grid-column: 1 / -1; } .sector::after { width: 140px; height: 140px; right: -60px; bottom: -60px; } }

/* ---------- Process ---------- */
.process {
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--night);
  color: var(--on-dark);
}
.process h2, .process h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: s; position: relative; }
.steps::before { background: var(--night-600) !important; }
.steps::before { content: ""; position: absolute; left: 1.6rem; right: calc((100% - 2 * clamp(1.25rem, 3vw, 2.5rem)) / 3 - 1.6rem); top: 1.6rem; height: 6px; background: var(--red); border-radius: 3px; z-index: 0; }
.steps li { position: relative; z-index: 1; }
.step-n { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--night); margin-bottom: 1.4rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--on-dark-muted); }
.process-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.process-cta p { margin: 0; color: var(--on-dark-muted); }
.process-cta p a { font-weight: 600; white-space: nowrap; color: #fff; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { left: 1.6rem; right: auto; top: 1.6rem; bottom: 3rem; width: 6px; height: auto; transform: translateX(-50%); }
  .steps li { padding-left: 4.6rem; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 520px) { .process-cta .btn { width: 100%; } }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.company h2 { margin-bottom: 1.2rem; max-width: 18ch; }
.company-grid > div > p { color: var(--muted); max-width: 34rem; }
.company-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--r); padding: .6rem clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.company-card div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.company-card div:last-child { border-bottom: 0; }
.company-card dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.company-card dd { margin: 0; font-weight: 600; line-height: 1.4; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .company-card div { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.company { padding-top: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-intro h2 { font-size: var(--step-2); line-height: 1.14; margin-bottom: 1rem; }
.faq-intro p { color: var(--muted); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--red); color: var(--red-700); font-size: 1.2rem; line-height: 1; transition: transform .25s var(--ease), background .2s, color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-list summary:hover { color: var(--red-700); }
.faq-list details p { color: var(--muted); padding: 0 3rem 1.4rem 0; max-width: 40rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-list details p { padding-right: 0; } }

/* ---------- Contact / form ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-dark); }
.contact-rings { position: absolute; z-index: -1; width: 760px; left: -340px; bottom: -380px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy h2 { color: #fff; margin-bottom: 1.1rem; }
.contact-copy > p { color: var(--on-dark-muted); max-width: 30rem; }
.contact-list { display: grid; gap: 1.4rem; margin-top: 2.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; flex: none; }
.ci svg { width: 19px; height: 19px; fill: none; stroke: var(--red-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list div > span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .1rem; }
.contact-list a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; overflow-wrap: anywhere; display: inline-block; padding-block: .45rem; }
.contact-list a:hover { color: var(--red-400); }
.contact-list address { color: var(--on-dark); line-height: 1.5; }
.contact-list .map-link { font-size: .95rem; color: var(--red-400); }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-lg); border-top: 6px solid var(--red); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h3 { font-size: var(--step-2); font-weight: 800; margin-bottom: 1.3rem; }
.chips { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { padding: 0; margin-bottom: .6rem; font-weight: 600; font-size: .95rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .95rem; border: 1.5px solid #857e75; border-radius: 999px; background: var(--white); font-size: .95rem; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red-700); outline-offset: 2px; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; font-size: .82rem; color: var(--muted); margin-left: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #857e75; border-radius: var(--r-sm); padding: .8rem .9rem; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field ::placeholder { color: #6b7079; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(192, 59, 60, .25); }
.field .error { display: none; color: var(--red-700); font-size: .86rem; font-weight: 500; margin: .35rem 0 0; }
.field.has-error input { border-color: var(--red); }
.field.has-error .error { display: block; }
.upload { margin-bottom: 1.3rem; }
.upload-label { display: flex; align-items: center; gap: .65rem; min-height: 50px; padding: .7rem .9rem; border: 1.5px dashed #857e75; border-radius: var(--r-sm); cursor: pointer; font-weight: 500; font-size: .95rem; transition: border-color .15s, background .15s; }
.upload-label:hover { border-color: var(--ink); background: var(--white); }
.upload-label svg { width: 20px; height: 20px; fill: none; stroke: var(--red-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.upload-label [data-file-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-label .opt { margin-left: auto; flex: none; }
.upload input:focus-visible + .upload-label { outline: 3px solid var(--red-700); outline-offset: 2px; }
.form-note { font-size: var(--step--1); color: var(--muted); text-align: center; margin-top: .9rem; }
.form-success { text-align: center; padding: clamp(1rem, 4vw, 2.5rem) 0; outline: none; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px var(--red-50); }
.success-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin-bottom: .75rem; }
.form-success p { color: var(--muted); max-width: 28rem; margin-inline: auto; }
.success-urgent a { font-weight: 600; white-space: nowrap; }
.demo-flag { font-size: .8rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-list a[href^="mailto"] { font-size: .98rem; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a0b0d; color: var(--on-dark-muted); font-size: .95rem; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 2.5rem; padding-bottom: 2.75rem; }
.footer-brand img { width: 120px; margin-bottom: 1rem; }
.footer-brand p { max-width: 20rem; }
.site-footer h2 { font-size: .76rem; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-block; padding-block: .28rem; }
@media (max-width: 720px) { .site-footer a { padding-block: .6rem; } .site-footer li { padding-block: 0; } }
.site-footer a:hover { color: var(--red-400); text-decoration: underline; }
.site-footer li { padding-block: .12rem; }
.site-footer address { margin-top: .6rem; line-height: 1.55; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: 1.5rem 2rem; font-size: .82rem; line-height: 1.6; }
.footer-legal p { margin-bottom: .5rem; }
.credit { opacity: .75; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-grid > div:nth-child(3) ul { columns: 2; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: auto 1fr; gap: .6rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(15, 17, 20, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; }
  .site-footer { padding-bottom: 76px; }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page-hero { background: var(--night); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .hero-rings { right: -200px; top: -240px; opacity: .8; }
@media (max-width: 960px) { .page-hero .hero-rings { right: -75vw; opacity: .3; } }
.page-hero h1 { color: #fff; font-size: var(--step-3); max-width: 22ch; }
.page-hero p { color: var(--on-dark-muted); max-width: 36rem; margin-top: 1rem; }
.page-hero .hero-actions { margin-top: 1.75rem; }
.prose { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose h2 { font-size: var(--step-1); margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1em; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Review fixes ---------- */
.hero-proof { display: none; }
@media (max-width: 960px) {
  .hero-proof { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; min-height: 44px; margin-top: .6rem; padding: .5rem 0; font-size: .86rem; font-weight: 500; color: #fff; text-decoration: none; border-top: 1px solid var(--line-dark); width: 100%; }
  .hero-proof u { color: var(--red-400); text-underline-offset: .2em; }
}
@media (max-width: 520px) { .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.35rem); } .lede { font-size: 1.08rem; margin-top: 1.1rem; } .hero-actions { margin-top: 1.5rem; } }
.contact-proof { font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.5; color: #fff !important; padding: .8rem 0; border-block: 1px solid var(--line-dark); margin-top: 1.4rem; }
.urgent-note { background: var(--red-50); border-left: 4px solid var(--red); border-radius: var(--r-sm); padding: .7rem .9rem; font-size: .95rem; margin: -.25rem 0 1.1rem; }
.urgent-note a { font-weight: 600; white-space: nowrap; }
.form-note a { white-space: nowrap; }
