/* =========================================================
   Apex Pure Solutions — shared stylesheet (5 pages)
   No build step. Keep this file next to the .html files.

   STRUCTURE NOTE
   Layout classes never share an element with .wrap. Sections are
   <section class="band"><div class="wrap"> … </div></section>
   so a section's vertical padding can never cancel the side gutter.

   THINGS TO REPLACE across the site:
     hello@example.com   -> your email address
     [FORM_ACTION]       -> Formspree / Basin / Netlify endpoint
     about.html          -> your real company details & story
   ========================================================= */

:root{
  /* --- ink & surface --- */
  --ink:        #0E1116;
  --ink-2:      #39424F;
  --muted:      #6B7683;
  --paper:      #F7F7F5;
  --surface:    #FFFFFF;
  --surface-2:  #F1F2EF;
  --line:       #E5E5E0;
  --line-2:     #D2D5CE;

  /* --- brand --- */
  --brand:      #2547F0;
  --brand-ink:  #1B34B8;
  --brand-soft: #EDF0FE;
  --brand-2:    #6E4BF5;
  --grad:       linear-gradient(135deg, #2547F0 0%, #6E4BF5 100%);

  /* --- status (reserved; never used as decoration) --- */
  --good:       #0CA30C;
  --warning:    #FAB219;
  --serious:    #EC835A;
  --critical:   #D03B3B;

  /* --- type --- */
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* --- shape --- */
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14,17,22,.04), 0 1px 3px rgba(14,17,22,.05);
  --shadow:    0 2px 4px rgba(14,17,22,.03), 0 10px 28px -6px rgba(14,17,22,.08);
  --shadow-lg: 0 30px 70px -20px rgba(14,17,22,.22), 0 6px 18px -8px rgba(14,17,22,.10);

  /* --- rhythm --- */
  --pad: 116px;
  --gutter: 28px;
  --maxw: 1140px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

.wrap{ width:100%; max-width: var(--maxw); margin:0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow{ max-width: 900px; }

img, svg{ max-width:100%; }

a{ color: var(--brand); text-underline-offset: 3px; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------------- type ---------------- */
h1,h2,h3,h4{ font-family: var(--display); font-weight:700; letter-spacing:-0.032em; margin:0; line-height:1.06; }
h1{ font-size: clamp(38px, 4.9vw, 62px); }
h2{ font-size: clamp(30px, 4.1vw, 48px); line-height:1.08; }
h3{ font-size: clamp(20px, 2.1vw, 23px); letter-spacing:-0.022em; line-height:1.24; }
h4{ font-size: 18px; letter-spacing:-0.018em; }

p{ margin:0; }

.eyebrow{
  font-family: var(--mono);
  font-size: 12px; font-weight:500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  display:flex; align-items:center; gap:10px;
  margin: 0 0 20px;
}
.eyebrow::before{
  content:""; width:22px; height:2px; border-radius:2px;
  background: var(--grad); flex:none;
}

.lede{ font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 58ch; line-height:1.6; }
.muted{ color: var(--muted); }

/* gradient phrase inside a heading */
.grad{
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------------- header ---------------- */
.site-header{
  position: sticky; top:0; z-index:60;
  background: rgba(247,247,245,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  border-bottom-color: var(--line);
  background: rgba(247,247,245,.94);
}
.bar{ display:flex; align-items:center; justify-content:space-between; gap:20px; height:74px; }

.logo{
  display:flex; align-items:center; gap:11px;
  font-family: var(--display); font-weight:700; font-size:18px;
  letter-spacing:-0.03em; color: var(--ink); text-decoration:none;
  white-space:nowrap; flex:none;
}
.logo .mark{
  width:30px; height:30px; border-radius:9px;
  background: var(--grad); flex:none;
  display:grid; place-items:center;
  box-shadow: 0 4px 12px -3px rgba(37,71,240,.5);
}
.logo .mark svg{ width:16px; height:16px; display:block; }

.nav{ display:flex; align-items:center; gap:4px; }
.nav a{
  font-size:15px; font-weight:500; color: var(--ink-2); text-decoration:none;
  padding:9px 14px; border-radius: var(--r-pill);
  transition: color .18s ease, background .18s ease;
  white-space:nowrap;
}
.nav a:hover{ color: var(--ink); background: rgba(14,17,22,.05); }
.nav a[aria-current="page"]{ color: var(--ink); background: rgba(14,17,22,.06); }

.header-cta{ display:flex; align-items:center; gap:10px; flex:none; }

/* hamburger */
.burger{
  display:none;
  width:42px; height:42px; flex:none;
  align-items:center; justify-content:center;
  background: transparent; border:1px solid var(--line-2);
  border-radius: 12px; cursor:pointer; color: var(--ink);
}
.burger span{
  display:block; width:17px; height:1.5px; background: currentColor; border-radius:2px;
  position:relative; transition: transform .22s ease, opacity .18s ease;
}
.burger span::before, .burger span::after{
  content:""; position:absolute; left:0; width:17px; height:1.5px;
  background: currentColor; border-radius:2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger span::before{ top:-5.5px; }
.burger span::after{ top:5.5px; }
/* open state: middle bar hides, the two others cross into an X */
.burger[aria-expanded="true"] span{ background: transparent; }
.burger[aria-expanded="true"] span::before{ top:0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after{ top:0; transform: rotate(-45deg); }

.mobile-nav{ display:none; }

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family: var(--body); font-weight:600; font-size:15px; line-height:1;
  padding: 14px 22px; border:1px solid transparent; border-radius: var(--r-pill);
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg{ width:15px; height:15px; flex:none; }
.btn-primary{
  background: var(--ink); color:#fff;
  box-shadow: 0 1px 2px rgba(14,17,22,.2), 0 8px 20px -8px rgba(14,17,22,.45);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 2px 4px rgba(14,17,22,.2), 0 14px 28px -10px rgba(14,17,22,.5); }
.btn-brand{
  background: var(--brand); color:#fff;
  box-shadow: 0 1px 2px rgba(37,71,240,.3), 0 10px 24px -10px rgba(37,71,240,.7);
}
.btn-brand:hover{ background: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost{
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover{ border-color: var(--ink); transform: translateY(-1px); }
.btn-sm{ padding: 11px 18px; font-size:14px; }

/* text link with arrow */
.arrow-link{
  display:inline-flex; align-items:center; gap:7px;
  font-size:15px; font-weight:600; color: var(--brand);
  text-decoration:none;
}
.arrow-link svg{ width:14px; height:14px; transition: transform .2s ease; }
.arrow-link:hover svg{ transform: translateX(3px); }

.cta-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

/* ---------------- section scaffolding ---------------- */
.band{ padding-top: var(--pad); padding-bottom: var(--pad); }
.band-sm{ padding-top: 76px; padding-bottom: 76px; }
.band-line{ border-top: 1px solid var(--line); }
.band-tint{ background: var(--surface-2); }

.sec-head{ max-width: 780px; margin-bottom: 56px; }
.sec-head .lede{ margin-top: 20px; }

.pagehead{ padding-top: 76px; padding-bottom: 68px; }
.pagehead .lede{ margin-top: 26px; }

/* ---------------- hero ---------------- */
.hero{ position:relative; padding-top: 84px; padding-bottom: 104px; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:-40% 20% auto -20%; height:820px;
  background: radial-gradient(48% 42% at 30% 40%, rgba(37,71,240,.13), transparent 70%),
              radial-gradient(38% 38% at 72% 28%, rgba(110,75,245,.11), transparent 70%);
  pointer-events:none; z-index:0;
}
.hero > .wrap{ position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns: 1.06fr .94fr; gap:64px; align-items:center; }
.hero h1{ margin-bottom:26px; }
.hero .lede{ margin-bottom:34px; }

.badge{
  display:inline-flex; align-items:center; gap:9px;
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-pill); padding:7px 15px 7px 9px;
  font-size:13.5px; font-weight:500; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom:28px;
}
.badge .dot{
  width:7px; height:7px; border-radius:50%; background: var(--good); flex:none;
  box-shadow: 0 0 0 3px rgba(12,163,12,.16);
}

.trust{
  display:flex; flex-wrap:wrap; gap:10px 28px; align-items:center;
  margin-top:38px; padding-top:28px; border-top:1px solid var(--line);
  font-size:14px; color: var(--muted);
}
.trust b{ color: var(--ink); font-weight:600; }

/* ---------------- data readout (audit panel) ---------------- */
.readout{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-lg);
}
.readout-head{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding-bottom:18px; margin-bottom:6px; border-bottom:1px solid var(--line);
  font-family: var(--mono); font-size:11px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color: var(--muted);
}
.readout-head b{ color: var(--ink); font-weight:500; }

/* Each row's divider doubles as its funnel bar: a full-width track with a
   fill sized to that stage. The printed value always carries the number —
   the bar is a second, redundant encoding, never the only one. */
.drow{
  position:relative;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:15px 0 16px;
  font-size:15px;
}
.drow .k{ color: var(--ink-2); display:flex; align-items:center; gap:9px; }
.drow .v{
  font-family: var(--mono); font-weight:500; font-size:14.5px;
  font-variant-numeric: tabular-nums; color: var(--ink); white-space:nowrap;
}
.drow::after{                      /* track */
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:3px; border-radius:2px; background: var(--surface-2);
}
.drow::before{                     /* fill */
  content:""; position:absolute; left:0; bottom:0; z-index:1;
  height:3px; border-radius:2px;
  width: max(4px, var(--v, 0%));
  background: #5598E7;
}
.drow:last-of-type::after{ background: transparent; }
.drow.is-flag::before{ background: var(--critical); }
.drow.is-flag .v{ color: var(--critical); }

/* Readouts whose rows are different measures (counts, hours, dates) share no
   common scale, so a bar would encode nothing. They get a plain hairline. */
.readout-plain .drow{ padding:14px 0; border-bottom:1px solid var(--line); }
.readout-plain .drow:last-of-type{ border-bottom:0; }
.readout-plain .drow::before,
.readout-plain .drow::after{ display:none; }

.flag{
  display:inline-flex; align-items:center; gap:5px;
  font-family: var(--mono); font-size:10px; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase;
  color: var(--critical); background: rgba(208,59,59,.09);
  border-radius: var(--r-pill); padding:3px 8px;
}
.flag svg{ width:11px; height:11px; }

.readout-note{
  font-size:14.5px; color: var(--muted); line-height:1.55;
  margin-top:18px; padding-top:18px; border-top:1px solid var(--line);
}

/* ---------------- cards ---------------- */
.cards{ display:grid; gap:20px; }
.cards-2{ grid-template-columns: repeat(2, 1fr); }
.cards-3{ grid-template-columns: repeat(3, 1fr); }
.cards-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display:flex; flex-direction:column;
}
.card-hover:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.card h3{ margin-bottom:12px; }
.card p{ color: var(--muted); font-size:16px; }
.card .arrow-link{ margin-top:20px; }
.card-foot{ margin-top:auto; padding-top:20px; }

.icon{
  width:46px; height:46px; border-radius:14px; flex:none;
  display:grid; place-items:center; margin-bottom:22px;
  background: var(--brand-soft); color: var(--brand);
}
.icon svg{ width:21px; height:21px; }
.tag{
  font-family: var(--mono); font-size:10.5px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color: var(--brand);
  display:block; margin-bottom:12px;
}

/* ---------------- process timeline ---------------- */
.timeline{ display:grid; gap:0; }
.tl-item{
  display:grid; grid-template-columns: 76px 1fr 190px; gap:28px;
  padding: 30px 0; border-top:1px solid var(--line); align-items:start;
}
.tl-item:last-child{ border-bottom:1px solid var(--line); }
.tl-n{
  font-family: var(--mono); font-size:13px; font-weight:500; color: var(--brand);
  letter-spacing:.06em; padding-top:3px;
}
.tl-item h3{ margin-bottom:8px; }
.tl-item p{ color: var(--muted); font-size:16px; }
.tl-when{
  font-family: var(--mono); font-size:12.5px; color: var(--muted);
  text-align:right; padding-top:4px;
}

/* ---------------- stat tiles (KPI row) ---------------- */
.stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.stat{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 30px;
}
.stat .num{
  /* proportional figures, UI sans — never tabular at display size */
  font-family: var(--body); font-weight:700;
  font-size: clamp(40px, 4.4vw, 54px); letter-spacing:-0.045em;
  line-height:1; display:block; margin-bottom:14px;
  background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat p{ color: var(--muted); font-size:15.5px; }

/* ---------------- service detail rows ---------------- */
.svc{
  display:grid; grid-template-columns: 1.08fr .92fr; gap:60px;
  padding: 64px 0; border-top:1px solid var(--line); align-items:start;
}
.svc:first-of-type{ border-top:0; padding-top:0; }
.svc h3{ font-size: clamp(26px, 3vw, 34px); margin:14px 0 16px; }
.svc > div > p{ color: var(--ink-2); margin-bottom:26px; }

.checks{ list-style:none; margin:0; padding:0; display:grid; gap:13px; }
.checks li{
  position:relative; padding-left:32px; font-size:16px; color: var(--ink-2);
}
.checks li svg{
  position:absolute; left:0; top:5px; width:19px; height:19px; color: var(--brand);
}

.spec{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.spec dl{ margin:0; }
.spec dt{
  font-family: var(--mono); font-size:10.5px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color: var(--muted);
}
.spec dd{ margin:6px 0 0; font-size:16px; color: var(--ink); }
.spec .grp{ padding:16px 0; border-bottom:1px solid var(--line); }
.spec .grp:first-child{ padding-top:0; }
.spec .grp:last-child{ padding-bottom:0; border-bottom:0; }

/* ---------------- pills ---------------- */
.pills{ display:flex; flex-wrap:wrap; gap:10px; }
.pill{
  font-size:14px; font-weight:500; color: var(--ink-2);
  border:1px solid var(--line); background: var(--surface);
  border-radius: var(--r-pill); padding:9px 17px;
  transition: border-color .18s ease, transform .18s ease;
}
.pill:hover{ border-color: var(--line-2); transform: translateY(-1px); }

/* ---------------- table ---------------- */
.tablewrap{
  overflow-x:auto; background: var(--surface);
  border:1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
table{ width:100%; border-collapse:collapse; min-width:640px; }
th, td{ text-align:left; padding:20px 24px; vertical-align:top; font-size:16px; }
thead th{
  font-family: var(--mono); font-size:10.5px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color: var(--muted);
  border-bottom:1px solid var(--line); padding-top:22px; padding-bottom:14px;
}
tbody tr{ border-bottom:1px solid var(--line); }
tbody tr:last-child{ border-bottom:0; }
td b{ font-family: var(--display); font-weight:700; letter-spacing:-0.02em; font-size:17px; }
td small{ display:block; color: var(--muted); font-size:14px; margin-top:5px; line-height:1.5; }
td.num{ font-family: var(--mono); font-variant-numeric: tabular-nums; white-space:nowrap; color: var(--ink-2); font-size:15px; }

/* ---------------- case studies ---------------- */
.case{
  display:grid; grid-template-columns: 1.08fr .92fr; gap:60px;
  padding: 70px 0; border-top:1px solid var(--line); align-items:start;
}
.case:first-of-type{ border-top:0; padding-top:0; }
.case h3{ font-size: clamp(26px, 3vw, 34px); margin-bottom:26px; }
.case-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.chip{
  font-family: var(--mono); font-size:11px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; color: var(--ink-2);
  background: var(--surface-2); border:1px solid var(--line);
  border-radius: var(--r-pill); padding:5px 11px;
}
.case dl{ margin:0; }
.case dt{
  font-family: var(--mono); font-size:10.5px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color: var(--brand);
  margin-top:26px;
}
.case dt:first-of-type{ margin-top:0; }
.case dd{ margin:8px 0 0; color: var(--ink-2); }

/* ---------------- quote ---------------- */
.quote{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-lg); padding: 48px clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm); margin:0;
}
.quote .qm{
  font-family: var(--display); font-size:64px; line-height:1; color: var(--brand);
  opacity:.18; display:block; margin-bottom:-18px;
}
.quote p{
  font-family: var(--display); font-weight:700;
  font-size: clamp(22px, 2.8vw, 31px); line-height:1.28; letter-spacing:-0.028em;
}
.quote cite{
  display:flex; align-items:center; gap:12px; margin-top:26px;
  font-style:normal; font-size:14px; color: var(--muted);
}
.quote cite::before{ content:""; width:26px; height:1px; background: var(--line-2); flex:none; }

/* ---------------- FAQ ---------------- */
.faq{ display:grid; gap:12px; }
.faq details{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r); overflow:hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open]{ border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary{
  cursor:pointer; list-style:none; padding:22px 26px;
  font-family: var(--display); font-weight:700; font-size:18px; letter-spacing:-0.02em;
  display:flex; justify-content:space-between; gap:20px; align-items:center;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:""; flex:none; width:11px; height:11px;
  border-right:1.8px solid var(--brand); border-bottom:1.8px solid var(--brand);
  transform: rotate(45deg) translateY(-2px); transition: transform .25s ease;
}
.faq details[open] summary::after{ transform: rotate(-135deg) translateY(-2px); }
.faq details p{ padding:0 26px 24px; color: var(--muted); max-width:70ch; }

/* ---------------- forms ---------------- */
.contact{ display:grid; grid-template-columns: 1fr 1.05fr; gap:60px; align-items:start; }

.form-card{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 38px);
  box-shadow: var(--shadow);
}
form{ display:grid; gap:18px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
label{ font-size:14px; font-weight:600; display:block; margin-bottom:8px; color: var(--ink); }
input, textarea, select{
  font-family: var(--body); font-size:16px; color: var(--ink);
  width:100%; padding:13px 15px;
  border:1px solid var(--line-2); background: var(--paper);
  border-radius: var(--r-sm);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input::placeholder, textarea::placeholder{ color:#9AA3AD; }
input:focus, textarea:focus, select:focus{
  outline:none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37,71,240,.12);
}
textarea{ min-height:140px; resize:vertical; }
select{
  appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B7683' stroke-width='1.7'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 14px center; background-size:15px;
  padding-right:42px;
}
.hint{ font-size:13.5px; color: var(--muted); line-height:1.55; }

/* numbered "what happens next" */
.nextup{ list-style:none; margin:0; padding:0; counter-reset:n; display:grid; gap:26px; }
.nextup li{ counter-increment:n; position:relative; padding-left:58px; color: var(--muted); font-size:16px; }
.nextup li::before{
  content: "0" counter(n);
  position:absolute; left:0; top:-2px;
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  font-family: var(--mono); font-size:12px; font-weight:500;
  color: var(--brand); background: var(--brand-soft);
}
.nextup b{ color: var(--ink); font-weight:600; }

.direct{ font-size:16px; color: var(--muted); }
.direct a{ color: var(--ink); font-weight:500; }

/* ---------------- about page bits ---------------- */
.detail-list{ margin:0; }
.detail-list .grp{
  display:grid; grid-template-columns: 210px 1fr; gap:24px;
  padding:18px 0; border-bottom:1px solid var(--line);
}
.detail-list .grp:last-child{ border-bottom:0; }
.detail-list dt{
  font-family: var(--mono); font-size:11px; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; color: var(--muted); padding-top:3px;
}
.detail-list dd{ margin:0; font-size:16px; color: var(--ink); }

.person{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-lg); padding:28px;
}
.avatar{
  width:56px; height:56px; border-radius:16px; margin-bottom:20px;
  background: var(--grad); display:grid; place-items:center;
  font-family: var(--display); font-weight:700; font-size:19px; color:#fff;
  letter-spacing:-0.02em;
}
.person h4{ margin-bottom:3px; }
.person .role{ font-family: var(--mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--brand); }
.person p{ color: var(--muted); font-size:15.5px; margin-top:14px; }

/* editorial placeholder marker — delete these once real copy is in */
.todo{
  border:1px dashed var(--line-2); border-radius: var(--r-sm);
  background: rgba(250,178,25,.07);
  padding:14px 16px; font-size:14px; color: var(--ink-2);
  display:flex; gap:10px; align-items:flex-start;
}
.todo svg{ width:16px; height:16px; color: var(--warning); flex:none; margin-top:3px; }
.todo code{ font-family: var(--mono); font-size:13px; background: rgba(14,17,22,.06); padding:1px 5px; border-radius:4px; }

/* ---------------- dark CTA ---------------- */
.cta{ padding-bottom: 96px; }
.cta-inner{
  position:relative; overflow:hidden;
  background: var(--ink); color:#fff;
  border-radius: 32px;
  padding: clamp(48px, 6vw, 84px) clamp(28px, 5vw, 76px);
}
.cta-inner::before{
  content:""; position:absolute; inset:auto -10% -60% 30%; height:520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37,71,240,.55), transparent 70%),
              radial-gradient(40% 40% at 78% 40%, rgba(110,75,245,.42), transparent 70%);
  pointer-events:none;
}
.cta-inner > *{ position:relative; z-index:1; }
.cta-inner h2{ max-width: 18ch; }
.cta-inner p{ color: rgba(255,255,255,.66); max-width:52ch; margin:22px 0 34px; font-size:18px; }
.cta-inner .btn-ghost{
  background: rgba(255,255,255,.07); color:#fff; border-color: rgba(255,255,255,.22); box-shadow:none;
}
.cta-inner .btn-ghost:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.cta-inner .btn-primary{ background:#fff; color: var(--ink); }

/* ---------------- footer ---------------- */
.site-footer{ border-top:1px solid var(--line); padding: 68px 0 40px; }
.foot-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap:48px; margin-bottom:52px; }
.foot-brand p{ color: var(--muted); font-size:15.5px; margin-top:18px; max-width:38ch; }
.foot-col h4{
  font-family: var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.1em;
  text-transform:uppercase; color: var(--muted); margin-bottom:18px;
}
.foot-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.foot-col a{ color: var(--ink-2); text-decoration:none; font-size:15.5px; }
.foot-col a:hover{ color: var(--brand); }
.foot-base{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding-top:28px; border-top:1px solid var(--line);
  font-size:14px; color: var(--muted);
}

/* ---------------- scroll reveal ----------------
   Hiding is scoped to .js, which the inline snippet in each <head> sets.
   With JavaScript off or broken, nothing is ever hidden. */
.js [data-reveal]{
  opacity:0; transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js [data-reveal].is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ transition:none !important; animation:none !important; }
  .js [data-reveal]{ opacity:1 !important; transform:none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1040px){
  :root{ --pad: 92px; }
  .hero-grid, .svc, .case, .contact{ grid-template-columns: 1fr; gap:44px; }
  .svc:first-of-type, .case:first-of-type{ padding-top:0; }
  .cards-4{ grid-template-columns: repeat(2, 1fr); }
  .foot-grid{ grid-template-columns: 1fr 1fr; gap:40px; }
  .foot-brand{ grid-column: 1 / -1; }
}

@media (max-width: 860px){
  /* nav collapses to a panel */
  .nav, .header-cta .btn{ display:none; }
  .burger{ display:flex; }
  .mobile-nav{
    display:block; overflow:hidden; max-height:0;
    border-top:1px solid transparent;
    transition: max-height .3s ease, border-color .3s ease;
  }
  .mobile-nav.is-open{ max-height:520px; border-top-color: var(--line); }
  .mobile-nav ul{ list-style:none; margin:0; padding:14px 0 22px; display:grid; gap:0; }
  .mobile-nav a:not(.btn){
    display:block; padding:14px 4px; font-size:17px; font-weight:500;
    color: var(--ink); text-decoration:none; border-bottom:1px solid var(--line);
  }
  .mobile-nav a[aria-current="page"]{ color: var(--brand); }
  .mobile-nav .btn{ margin-top:18px; width:100%; }
}

@media (max-width: 760px){
  :root{ --pad: 76px; --gutter: 22px; }
  body{ font-size:16.5px; }

  .cards-2, .cards-3, .cards-4, .stats, .contact{ grid-template-columns: 1fr; gap:40px; }
  .tl-item{ grid-template-columns: 1fr; gap:12px; padding:26px 0; }
  .tl-when{ text-align:left; padding-top:0; }
  .field-row{ grid-template-columns:1fr; }
  .detail-list .grp{ grid-template-columns:1fr; gap:6px; }
  .foot-grid{ grid-template-columns:1fr; gap:36px; }
  .hero{ padding-top:56px; padding-bottom:72px; }
  .pagehead{ padding-top:52px; padding-bottom:48px; }
  .cta-inner{ border-radius:24px; }
  .card, .stat, .person{ padding:26px 24px; }
  .readout{ padding:22px 22px 20px; }
  .cta-row .btn{ width:100%; }
  .quote{ padding:34px 26px; }
  .faq summary{ padding:20px; font-size:17px; }
  .faq details p{ padding:0 20px 20px; }
}

@media (max-width: 420px){
  .bar{ height:66px; }
  .logo{ font-size:16.5px; }
}
