/* ===========================================================================
   BLACKWOLF Ai USA — site.css
   Lumen, commission 009. Brand system carried forward from commission 001.
   Palette: near-black ground, cream ink, oxblood rule. Cinematic register.
   No web fonts (system + Times) → zero font requests, instant first paint.
=========================================================================== */

:root {
  --ground:    #0a0a0c;   /* near-black page ground */
  --ground-2:  #101013;   /* alternating section */
  --panel:     #15151a;   /* card surface */
  --panel-2:   #1b1b21;   /* card hover / nested */
  --ink:       #f3efe6;   /* cream — primary text */
  --ink-dim:   #b7ad9c;   /* secondary text */
  --ink-quiet: #7d7466;   /* tertiary / labels */
  --hair:      rgba(243,239,230,0.10); /* hairline borders */
  --hair-2:    rgba(243,239,230,0.06);
  --rule:      #b3261e;   /* oxblood — the brand red */
  --rule-hot:  #ff3a2a;   /* hot red — eyes, accents */

  --serif: 'Times New Roman', Georgia, 'Times', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'Inter', system-ui, Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw:   1180px;
  --ease:   cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

::selection { background: var(--rule); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 48px);
  height: 2px;
  background: var(--rule);
  display: inline-block;
}

h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }

h1 { font-size: clamp(38px, 6.4vw, 78px); }
h2 { font-size: clamp(30px, 4.6vw, 54px); }
h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: 0; }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-dim); max-width: 60ch; }

.star { color: var(--rule-hot); }

/* ===========================================================================
   NAV
=========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(10,10,12,0.92), rgba(10,10,12,0));
  backdrop-filter: saturate(1.1) blur(2px);
  -webkit-backdrop-filter: saturate(1.1) blur(2px);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,12,0.86);
  border-bottom: 1px solid var(--hair);
  padding-top: 12px; padding-bottom: 12px;
}
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--rule-hot) 0 22%, var(--rule) 22% 46%, #0a0a0c 47% 100%);
  box-shadow: 0 0 14px rgba(255,58,42,0.45);
  flex: 0 0 auto;
}
.brand-name {
  font-weight: 800; font-size: 16px; letter-spacing: 0.14em; color: var(--ink);
}
.brand-name b { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav-links a {
  font-size: 13.5px; letter-spacing: 0.06em; color: var(--ink-dim);
  transition: color .25s var(--ease); position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  padding: 11px 22px; border-radius: 2px;
  background: var(--rule); color: #fff;
  border: 1px solid var(--rule);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--rule-hot); border-color: var(--rule-hot); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(179,38,30,0.4); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { background: rgba(243,239,230,0.06); border-color: var(--ink-dim); box-shadow: none; color: var(--ink); }
.btn.lg { padding: 15px 30px; font-size: 15px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,12,0.98); border-bottom: 1px solid var(--hair);
    padding: 18px var(--gutter) 26px; gap: 16px;
  }
  .nav-toggle { display: inline-flex; }
}

/* ===========================================================================
   HERO
=========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
.hero-media video { opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-media video.ready { opacity: 1; }
/* film grade breathing on the whole media plate */
.hero-media { animation: grade-breath 12s ease-in-out infinite; }
@keyframes grade-breath {
  0%,100% { filter: contrast(1.02) saturate(0.98) brightness(0.94); }
  50%     { filter: contrast(1.07) saturate(1.05) brightness(1.0); }
}
/* legibility scrims */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.55) 30%, rgba(10,10,12,0.12) 58%, rgba(10,10,12,0.40) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.5) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: overlay; opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.hero-content {
  position: relative; z-index: 3; width: 100%;
  padding-bottom: clamp(64px, 12vh, 130px); padding-top: 140px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(13px, 1.3vw, 17px); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink);
  padding: 7px 16px; border: 1px solid var(--hair);
  border-radius: 100px; background: rgba(10,10,12,0.4);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.hero h1 { margin: 26px 0 0; max-width: 16ch; text-shadow: 0 4px 40px rgba(0,0,0,0.7); }
.hero-sub {
  margin: 22px 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px); color: var(--ink-dim); letter-spacing: 0.02em;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* announcement strip under nav / over hero top — service-worker ticker */
.marquee {
  position: relative; z-index: 4; overflow: hidden;
  border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2);
  background: rgba(10,10,12,0.55); backdrop-filter: blur(2px);
}
/* soft edge-fade so segments enter/exit without a hard cut */
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(36px, 7vw, 96px);
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--ground), rgba(10,10,12,0)); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--ground), rgba(10,10,12,0)); }
.marquee-track {
  display: inline-flex; align-items: center; white-space: nowrap; gap: 0;
  animation: marquee 44s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* each set holds the full 8-segment sequence; two identical sets → -50% loops seamlessly */
.svc-set { display: inline-flex; align-items: center; flex: 0 0 auto; }
/* one service segment: icon + label */
.svc-seg { display: inline-flex; align-items: center; gap: 13px; padding: 11px 0; }
.svc-ico {
  flex: 0 0 auto; width: 28px; height: 28px; display: block; color: var(--ink-dim);
}
.svc-seg b {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase; font-size: 12.5px;
  color: var(--ink-dim); white-space: nowrap;
}
/* oxblood star separator between segments */
.svc-sep {
  flex: 0 0 auto; color: var(--rule); font-size: 12px; line-height: 1;
  margin: 0 34px; transform: translateY(-0.5px);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================================
   SECTIONS / GENERAL
=========================================================================== */
section { position: relative; }
.section { padding: clamp(72px, 11vh, 140px) 0; }
.section.alt { background: var(--ground-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head h2 { margin-top: 18px; }
.section-head .lead { margin-top: 22px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 34px 30px 30px; border-radius: 4px;
  background: var(--panel); border: 1px solid var(--hair);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rule); transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(243,239,230,0.18); background: var(--panel-2); }
.card:hover::before { transform: scaleY(1); }
.card-num {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink-quiet); letter-spacing: 0.1em;
}
.card h3 { margin: 14px 0 12px; }
.card p { margin: 0; color: var(--ink-dim); font-size: 16px; }

/* ---------- Chips marquee ---------- */
.chips-strip { margin-top: 56px; overflow: hidden; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); padding: 22px 0; }
.chips-track { display: inline-flex; white-space: nowrap; animation: marquee 40s linear infinite; will-change: transform; }
.chip {
  display: inline-flex; align-items: center; margin-right: 14px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--ink-dim);
  padding: 8px 16px; border: 1px solid var(--hair); border-radius: 100px;
  background: var(--panel);
}
.chip::before { content: "●"; color: var(--rule); font-size: 8px; margin-right: 9px; transform: translateY(-1px); }

/* ---------- Pillars (Why Us) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 38px 34px; border-right: 1px solid var(--hair);
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: 0; }
@media (max-width: 900px) {
  .pillar { border-right: 0; border-bottom: 1px solid var(--hair); }
  .pillar:last-child { border-bottom: 0; }
}
.pillar:hover { background: var(--panel); }
.pillar-rule { width: 34px; height: 2px; background: var(--rule); margin-bottom: 22px; }
.pillar h3 { margin: 0 0 6px; }
.pillar .tag { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 17px; margin: 0 0 16px; }
.pillar p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }

/* ---------- Closer ---------- */
.closer { text-align: center; padding: clamp(90px, 16vh, 180px) 0; position: relative; overflow: hidden; }
.closer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(179,38,30,0.22), transparent 70%);
}
.closer h2 { max-width: 18ch; margin: 22px auto 0; }
.closer .lead { margin: 24px auto 0; }
.closer .hero-actions { justify-content: center; }

/* ===========================================================================
   FOOTER
=========================================================================== */
.footer { border-top: 1px solid var(--hair); background: var(--ground); padding: clamp(56px, 9vh, 88px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand-lockup { margin-bottom: 16px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--ink-dim); max-width: 34ch; }
.footer-q { color: var(--ink); font-weight: 600; margin-top: 18px; max-width: 30ch; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-quiet); margin: 0 0 16px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--ink-dim); font-size: 14.5px; margin: 0 0 11px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  margin-top: clamp(40px, 6vh, 64px); padding-top: 26px; border-top: 1px solid var(--hair-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--ink-quiet);
}
.footer-legal a { color: var(--ink-quiet); transition: color .2s var(--ease); }
.footer-legal a:hover { color: var(--ink-dim); }
.footer-entity { color: var(--ink-dim); }

/* ===========================================================================
   ARTICLE / LEGAL PAGES
=========================================================================== */
.page-hero { padding: 150px 0 50px; border-bottom: 1px solid var(--hair); position: relative; }
.page-hero::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px; background: var(--rule);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p { margin-top: 18px; }
.article { padding: clamp(48px, 8vh, 80px) 0 clamp(72px, 11vh, 120px); }
.article-wrap { max-width: 760px; }
.article h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 48px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 32px 0 10px; }
.article p { color: var(--ink-dim); margin: 0 0 18px; }
.article ul { color: var(--ink-dim); margin: 0 0 18px; padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: color .2s var(--ease); }
.article a:hover { color: var(--rule-hot); }
.legal-meta {
  display: inline-flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 8px;
  font-size: 13.5px; color: var(--ink-quiet); letter-spacing: 0.02em;
}
.legal-meta b { color: var(--ink-dim); font-weight: 600; }
.callout {
  border: 1px solid var(--hair); border-left: 3px solid var(--rule);
  background: var(--panel); padding: 22px 26px; border-radius: 4px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.ordered-block { counter-reset: clause; }
.ordered-block > h3 { counter-increment: clause; }
.ordered-block > h3::before { content: counter(clause) ". "; color: var(--rule); }

/* ===========================================================================
   CONTACT
=========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 8px; font-weight: 600; }
label .req { color: var(--rule); }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--hair); border-radius: 3px;
  padding: 13px 15px; transition: border-color .2s var(--ease), background .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--ink-quiet); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rule); background: var(--panel-2); }
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%237d7466' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 6px; font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: #6fd08a; }
.form-status.err { color: #ff7a6c; }
.form-note { font-size: 13px; color: var(--ink-quiet); margin-top: 18px; }
.form-note a { color: var(--ink-dim); border-bottom: 1px solid var(--hair); }

.contact-block { }
.contact-block h3 { margin-bottom: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-item .ci-icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--rule); margin-top: 3px; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .ci-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 3px; }
.contact-item .ci-value { color: var(--ink); font-size: 16px; }
.contact-item .ci-value a { border-bottom: 1px solid var(--hair); }
.contact-item .ci-value a:hover { border-color: var(--rule); }

/* ===========================================================================
   CASE STUDY — the flagship page
=========================================================================== */

/* ---- Case-study hero: a quieter, typographic hero (no video) ---- */
.cs-hero {
  position: relative; padding: 160px 0 clamp(64px, 11vh, 120px);
  overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--hair);
}
.cs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 90% at 18% -10%, rgba(179,38,30,0.22), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 120%, rgba(179,38,30,0.14), transparent 65%);
}
.cs-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.cs-hero h1 { margin: 24px 0 0; max-width: 16ch; }
.cs-hero .lede { margin: 26px 0 0; font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-dim); max-width: 64ch; line-height: 1.6; }
.cs-hero .hero-actions { margin-top: 36px; }

/* ---- Prose block (mandate / problem) ---- */
.cs-prose { max-width: 820px; }
.cs-prose p { color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 18.5px); margin: 0 0 20px; line-height: 1.7; }
.cs-prose p.kicker { color: var(--ink); font-weight: 600; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-family: var(--sans); }
.cs-prose strong { color: var(--ink); }
.cs-prose .pull {
  font-family: var(--serif); font-style: italic; color: var(--ink);
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.01em;
  border-left: 3px solid var(--rule); padding-left: 26px; margin: 8px 0 8px;
  max-width: 22ch;
}

/* ---- The five Connect programs ---- */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.programs .program:first-child { grid-column: 1 / -1; }   /* Tech Connect = the umbrella, full width */
@media (max-width: 820px) { .programs { grid-template-columns: 1fr; } }
.program {
  position: relative; padding: 32px 30px; border-radius: 5px;
  background: var(--panel); border: 1px solid var(--hair); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.program::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rule); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
}
.program:hover { transform: translateY(-4px); border-color: rgba(243,239,230,0.18); background: var(--panel-2); }
.program:hover::before { transform: scaleY(1); }
.program-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.program-name { font-weight: 800; font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -0.01em; }
.program-role { font-family: var(--serif); font-style: italic; color: var(--rule-hot); font-size: 15px; letter-spacing: 0.02em; }
.program-tag {
  display: inline-block; margin-left: auto; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); background: rgba(179,38,30,0.18);
  border: 1px solid rgba(179,38,30,0.4); padding: 4px 11px; border-radius: 100px;
}
.program p { color: var(--ink-dim); margin: 0; font-size: 15.5px; line-height: 1.65; }
.program.umbrella { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.program.umbrella .program-name { font-size: clamp(24px, 3vw, 34px); }

/* ---- THE JOURNEY — the centerpiece. Six steps, one connecting spine. ---- */
.journey { position: relative; max-width: 880px; margin: 0 auto; }
.journey-spine {
  position: absolute; left: 27px; top: 18px; bottom: 18px; width: 2px;
  background: var(--hair); overflow: hidden;
}
.journey-spine .fill {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(to bottom, var(--rule-hot), var(--rule));
  transition: transform 1.4s var(--ease);
}
.journey.lit .journey-spine .fill { transform: scaleY(1); }
@media (max-width: 620px) { .journey-spine { left: 21px; } }

.step {
  position: relative; padding-left: 78px; padding-bottom: clamp(34px, 5vh, 52px);
}
.step:last-child { padding-bottom: 0; }
@media (max-width: 620px) { .step { padding-left: 60px; } }
.step-node {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ground); border: 2px solid var(--hair);
  font-weight: 800; font-size: 20px; color: var(--ink-quiet);
  transition: border-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
  z-index: 2;
}
@media (max-width: 620px) { .step-node { width: 44px; height: 44px; font-size: 17px; } }
.step.in .step-node {
  border-color: var(--rule); color: var(--ink); background: var(--panel);
  box-shadow: 0 0 0 5px rgba(179,38,30,0.12), 0 0 26px rgba(255,58,42,0.35);
}
.step-body { padding-top: 4px; opacity: 0; transform: translateX(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.step.in .step-body { opacity: 1; transform: none; }
.step-name { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet); font-weight: 700; margin-bottom: 8px; }
.step h3 { font-size: clamp(19px, 2.1vw, 25px); margin: 0 0 9px; letter-spacing: -0.01em; }
.step p { color: var(--ink-dim); margin: 0; font-size: 16px; line-height: 1.65; }
.step p .num { color: var(--ink); font-weight: 700; }

/* parallel-track callouts under the journey */
.journey-aside { max-width: 880px; margin: clamp(34px, 5vh, 52px) auto 0; display: grid; gap: 18px; }
.j-aside {
  border: 1px solid var(--hair); border-left: 3px solid var(--rule);
  background: var(--panel); padding: 24px 28px; border-radius: 4px;
}
.j-aside h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.j-aside p { margin: 0; color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; }

/* ===========================================================================
   CASE STUDY v2 — enterprise register (snapshot panel, principles, table)
=========================================================================== */

/* ---- Executive-overview layout: lede beside an "At a glance" panel ---- */
.cs-overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .cs-overview { grid-template-columns: 1fr; gap: 36px; } }
.cs-overview .overview-body p { color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.7; margin: 0 0 18px; }
.cs-overview .overview-body p:first-child { color: var(--ink); }

/* ---- The "At a glance" snapshot panel (AWS-style fact sidebar) ---- */
.snapshot {
  position: relative; border: 1px solid var(--hair); border-radius: 6px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  padding: 30px 30px 8px; overflow: hidden;
}
.snapshot::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--rule); }
.snapshot h3 {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-quiet);
  font-weight: 700; margin: 0 0 22px;
}
.snapshot dl { margin: 0; }
.snapshot .row { padding: 14px 0; border-top: 1px solid var(--hair-2); }
.snapshot .row:first-of-type { border-top: 0; padding-top: 0; }
.snapshot dt { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 5px; }
.snapshot dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.snapshot dd.muted { color: var(--ink-dim); }
.snapshot .syslist { list-style: none; margin: 4px 0 0; padding: 0; }
.snapshot .syslist li { color: var(--ink-dim); font-size: 14px; line-height: 1.5; padding: 3px 0 3px 16px; position: relative; }
.snapshot .syslist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }

/* ---- Numbered challenge list (compounding problems) ---- */
.challenge-list { counter-reset: ch; display: grid; gap: 16px; max-width: 880px; margin-top: 8px; }
.challenge-item {
  position: relative; counter-increment: ch; padding: 24px 28px 24px 74px;
  border: 1px solid var(--hair); border-radius: 5px; background: var(--panel);
}
.challenge-item::before {
  content: counter(ch); position: absolute; left: 24px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--rule-hot);
}
.challenge-item h3 { font-size: clamp(17px, 1.8vw, 21px); margin: 0 0 6px; }
.challenge-item p { margin: 0; color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; }
@media (max-width: 620px) { .challenge-item { padding-left: 28px; padding-top: 64px; } .challenge-item::before { top: 22px; left: 28px; } }

/* ---- Approach: three principles ---- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 30px 28px; border: 1px solid var(--hair); border-radius: 5px; background: var(--panel); }
.principle .p-rule { width: 32px; height: 2px; background: var(--rule); margin-bottom: 18px; }
.principle h3 { font-size: clamp(17px, 1.9vw, 21px); margin: 0 0 10px; }
.principle p { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.65; }

/* ---- Systems (v2: five equals, explained not sold) ---- */
.systems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .systems { grid-template-columns: 1fr; } }
.system {
  position: relative; padding: 30px; border: 1px solid var(--hair); border-radius: 5px;
  background: var(--panel); transition: border-color .4s var(--ease), background .4s var(--ease);
}
.system:hover { border-color: rgba(243,239,230,0.18); background: var(--panel-2); }
.system-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.system-name { font-weight: 800; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.01em; }
.system-role { font-size: 13.5px; color: var(--ink-quiet); letter-spacing: 0.02em; }
.system-tag {
  margin-left: auto; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--hair); padding: 4px 10px; border-radius: 100px;
}
.system p { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.65; }

/* ---- Security & compliance list ---- */
.compliance { max-width: 880px; display: grid; gap: 14px; }
.compliance .c-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border: 1px solid var(--hair); border-radius: 5px; background: var(--panel); }
.compliance .c-mark { flex: 0 0 auto; width: 20px; height: 20px; color: var(--rule); margin-top: 2px; }
.compliance .c-mark svg { width: 20px; height: 20px; }
.compliance p { margin: 0; color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; }
.compliance strong { color: var(--ink); }

/* ---- Outcomes table (real table treatment) ---- */
.table-wrap { max-width: 920px; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.outcomes-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.outcomes-table caption { text-align: left; padding: 0 0 18px; color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.outcomes-table th, .outcomes-table td { text-align: left; padding: 18px 24px; vertical-align: top; }
.outcomes-table thead th {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet);
  font-weight: 700; background: var(--ground-2); border-bottom: 1px solid var(--hair);
}
.outcomes-table tbody tr { border-bottom: 1px solid var(--hair-2); }
.outcomes-table tbody tr:last-child { border-bottom: 0; }
.outcomes-table tbody tr:nth-child(even) { background: rgba(243,239,230,0.015); }
.outcomes-table td.measure { color: var(--ink-dim); width: 58%; }
.outcomes-table td.value { color: var(--ink); font-weight: 600; }
.outcomes-table td.value .em { color: var(--rule-hot); font-weight: 700; }
.outcomes-table td.value em { font-weight: 400; color: var(--ink-quiet); font-style: italic; }
@media (max-width: 620px) {
  .outcomes-table, .outcomes-table tbody, .outcomes-table tr, .outcomes-table td { display: block; width: 100%; }
  .outcomes-table thead { display: none; }
  .outcomes-table tr { padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .outcomes-table td { padding: 4px 20px; }
  .outcomes-table td.measure { width: auto; color: var(--ink-quiet); font-size: 13px; }
  .outcomes-table td.value { font-size: 17px; }
}

/* ---- RESULTS STRIP — bold numbers bar ---- */
.results { background: var(--ground-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); }
@media (max-width: 760px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .results-grid { grid-template-columns: 1fr; } }
.stat { background: var(--ground-2); padding: 38px 28px; text-align: center; }
.stat .figure {
  font-weight: 800; font-size: clamp(36px, 5.2vw, 58px); letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--rule-hot) 220%); -webkit-background-clip: text; background-clip: text;
}
.stat .figure .unit { font-size: 0.5em; color: var(--rule-hot); -webkit-text-fill-color: var(--rule-hot); margin-left: 2px; }
.stat .label { margin-top: 14px; font-size: 14px; color: var(--ink-dim); line-height: 1.45; max-width: 24ch; margin-left: auto; margin-right: auto; }
.stat .label em { font-style: italic; color: var(--ink-quiet); font-size: 12.5px; display: block; margin-top: 4px; }

/* ---- Homepage case-study TEASER ---- */
.cs-teaser {
  position: relative; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
}
.cs-teaser::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(179,38,30,0.18), transparent 60%);
}
.cs-teaser-inner { position: relative; padding: clamp(34px, 5vw, 56px); }
.cs-teaser .dealer-line {
  font-family: var(--serif); font-style: italic; color: var(--rule-hot);
  font-size: clamp(14px, 1.5vw, 18px); letter-spacing: 0.02em; margin: 0 0 16px;
}
.cs-teaser h3 { font-size: clamp(24px, 3vw, 38px); max-width: 22ch; margin: 0 0 16px; letter-spacing: -0.01em; }
.cs-teaser p { color: var(--ink-dim); max-width: 62ch; margin: 0 0 26px; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.65; }
.cs-teaser-programs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.cs-teaser-programs .pchip {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink);
  padding: 7px 14px; border: 1px solid var(--hair); border-radius: 100px; background: rgba(10,10,12,0.4);
}
.cs-teaser-programs .pchip b { color: var(--rule-hot); font-weight: 700; }
.cs-teaser-stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px); margin: 0 0 32px; }
.cs-teaser-stats .ts { }
.cs-teaser-stats .ts .f { font-weight: 800; font-size: clamp(24px, 3vw, 34px); color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.cs-teaser-stats .ts .l { font-size: 12.5px; color: var(--ink-quiet); margin-top: 6px; letter-spacing: 0.02em; max-width: 18ch; }
.cs-teaser .hero-actions { margin: 0; }

/* ===========================================================================
   SCROLL REVEAL
=========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ===========================================================================
   REDUCED MOTION
=========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none !important; filter: contrast(1.04) saturate(1.0) brightness(0.96) !important; }
  .hero-media video { transition: none !important; }
  .marquee-track, .chips-track { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn, .nav, .program { transition: none !important; }
  /* Journey: show every step lit + spine filled, no scroll choreography */
  .journey-spine .fill { transform: scaleY(1) !important; transition: none !important; }
  .step-body { opacity: 1 !important; transform: none !important; transition: none !important; }
  .step .step-node {
    border-color: var(--rule) !important; color: var(--ink) !important; background: var(--panel) !important;
    box-shadow: none !important; transition: none !important;
  }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---- Client identity (case-study snapshot) ---- */
.client-ident { display: flex; align-items: center; gap: 14px; }
.logo-chip {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-chip img { width: 84%; height: 84%; object-fit: contain; display: block; }
/* ADT brand rules: dealer logo taller than ADT mark; marks separate and distinct */
.snapshot-auth { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.snapshot-auth img { height: 45px; width: auto; display: block; }

/* ---- Split hero: text left, framed logo figure right ---- */
.hero.split { align-items: center; min-height: 92svh; padding: 132px 0 72px; }
.hero.split::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 72% at 78% 38%, rgba(179,38,30,0.13), transparent 65%);
}
.hero-grid {
  position: relative; z-index: 3; width: 100%;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.hero.split .hero-content { padding: 0; }
.hero.split .hero-media {
  position: relative; inset: auto; z-index: auto; animation: none;
  aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--hair);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
}
.hero.split .hero-media img, .hero.split .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero.split { padding-top: 112px; min-height: auto; }
  .hero.split .hero-media { aspect-ratio: 16 / 11; }
}
