/* ==========================================================================
   COR5 — Cyber Operational Resilience
   Design system + site styles

   Palette derived directly from the COR5 logo:
     base navy #010B1F · accent blue #0B6EFA · deep blue #0930B9 · steel #8B94A9
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #010B1F;
  --bg-alt:        #030F26;
  --surface:       #08192F;
  --surface-2:     #0B2039;

  /* Lines */
  --line:          rgba(139, 148, 169, .18);
  --line-strong:   rgba(139, 148, 169, .34);

  /* Text */
  --text:          #E9EEF7;
  --text-soft:     #C3CDDD;
  --muted:         #9AA8BD;
  --muted-2:       #78889F;

  /* Brand */
  --accent:        #0B6EFA;
  --accent-hi:     #3D8BFF;
  --accent-deep:   #0930B9;
  --steel:         #8B94A9;
  --silver:        #DEE3EB;

  /* Effects */
  --shadow:        0 18px 40px -22px rgba(0, 0, 0, .85);
  --shadow-lg:     0 40px 80px -40px rgba(0, 0, 0, .9);

  /* Geometry */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --container:     1200px;
  --container-narrow: 860px;
  --header-h:      74px;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --t-fast:        .18s var(--ease);
  --t:             .32s var(--ease);

  /* Grain texture — a fine sandpaper tooth over flat backgrounds.
     Greyscale fractal noise. Dark sections layer it at a low plain opacity
     (film-grain style); `overlay` is nearly inert against a near-black base,
     so it is only used on the light sections, where it blends as multiply.
     Raise baseFrequency for finer grain, lower it for coarser. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-size: 300px 300px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.95rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.8rem, 1.25rem + 2vw, 2.85rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.48rem); }
h4 { font-size: 1.07rem; letter-spacing: -.012em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-hi); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #7FB0FF; }

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: rgba(11, 110, 250, .32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--accent); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(4.25rem, 7vw, 7.25rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 5vw, 4.75rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head h2 { margin-bottom: .5rem; }

.lead {
  font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem);
  line-height: 1.62;
  color: var(--text-soft);
}

.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 2.5rem); }

/* ---------- 4. Bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section-head--center .eyebrow { justify-content: center; }

.accent { color: var(--accent-hi); }
.muted  { color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 110, 250, .06);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 10px 1px rgba(11, 110, 250, .8);
}

.tag-row { display: flex; flex-wrap: wrap; gap: .55rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(11, 110, 250, .9);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(11, 110, 250, 1);
}

.btn-ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(11, 110, 250, .1);
  transform: translateY(-2px);
}

.btn-sm { padding: .62rem 1.1rem; font-size: .85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9rem;
  color: var(--accent-hi);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(1, 11, 31, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(1, 11, 31, .95);
}

.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.brand:hover .brand-mark {
  border-color: rgba(11, 110, 250, .55);
  box-shadow: 0 0 22px -6px rgba(11, 110, 250, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
}
.brand-name em { font-style: normal; color: var(--accent-hi); }
.brand-tag {
  font-size: .555rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
  white-space: nowrap;
}

.site-nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list > li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem;
  font-size: .89rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  position: relative;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); background: rgba(255, 255, 255, .045); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
}
.nav-link .chev { width: 11px; height: 11px; opacity: .7; transition: transform var(--t-fast); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav-item-dropdown:hover .dropdown,
.nav-item-dropdown:focus-within .dropdown,
.dropdown.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown a:hover { background: rgba(11, 110, 250, .12); color: #fff; }
.dropdown .num {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  color: var(--accent-hi);
  padding-top: .2rem;
  letter-spacing: .04em;
  flex: none;
  display: inline-flex; align-items: flex-start; justify-content: center;
  width: 20px;
}
.dropdown .num svg { width: 18px; height: 18px; }
.dropdown .dd-title { display: block; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.dropdown .dd-desc  { display: block; font-size: .765rem; color: var(--muted-2); line-height: 1.45; margin-top: 2px; }

.nav-cta { flex: none; margin-left: .35rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  display: block; position: relative;
  width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--t-fast), background var(--t-fast);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--t-fast), top var(--t-fast);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.25rem, 5vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 720px;
  background:
    radial-gradient(60% 55% at 22% 30%, rgba(11, 110, 250, .26), transparent 68%),
    radial-gradient(46% 46% at 82% 18%, rgba(9, 48, 185, .24), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: .055;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { max-width: 58ch; color: var(--muted); }
.hero .btn-row { margin-top: 2rem; }

.hero-capline {
  display: flex; flex-wrap: wrap; gap: .4rem 1.05rem;
  font-family: var(--font-display);
  font-size: .77rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}
.hero-capline span { display: inline-flex; align-items: center; gap: 1.05rem; }
.hero-capline span::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .85;
}
.hero-capline span:last-child::after { display: none; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img {
  width: min(100%, 390px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgba(11, 110, 250, .75);
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 110, 250, .3), transparent 66%);
  filter: blur(46px);
}

/* Lifecycle strip */
.lifecycle {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1.35rem 0;
}
.lifecycle-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .75rem clamp(1rem, 3vw, 2.5rem);
}
.lifecycle-item {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: clamp(.8rem, .74rem + .3vw, 1rem);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.lifecycle-item i {
  width: 7px; height: 7px; flex: none;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(11, 110, 250, .9);
}

/* Interior page hero */
.page-hero {
  position: relative;
  padding: clamp(3rem, 5.5vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: -60% -20% auto -20%; height: 560px;
  background: radial-gradient(50% 55% at 26% 42%, rgba(11, 110, 250, .2), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: .05;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

/* Service page heading — glyph and title on one line */
.svc-heading {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.2vw, 1.6rem);
  margin-bottom: .75rem;
}
.svc-heading h1 { margin: 0; max-width: none; }
.svc-heading .svc-glyph { margin-bottom: 0; flex: none; }
.svc-heading .svc-glyph::after { display: none; }
.svc-heading .svc-glyph svg {
  width: clamp(42px, 6.5vw, 70px);
  height: clamp(42px, 6.5vw, 70px);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 62ch; color: var(--muted); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  font-size: .78rem; color: var(--muted-2);
}
.breadcrumb li { margin: 0; display: inline-flex; gap: .45rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-hi); }

/* Service page hero number */
.svc-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(140deg, var(--silver) 0%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2vw, 1.85rem);
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 110, 250, .8), transparent);
  opacity: 0; transition: opacity var(--t);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 110, 250, .42);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card h3, .card h4 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card p + p { margin-top: .8rem; }

a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }

/* Capability card (the five) */
.cap-card { display: flex; flex-direction: column; }
.cap-num {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent-hi);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.cap-num::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.cap-card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.cap-card .cap-tagline {
  color: var(--accent-hi);
  font-size: .86rem;
  font-weight: 500;
  margin-bottom: .7rem;
}
.cap-card .link-arrow { margin-top: 1.3rem; }

/* Service glyph — the five capability icons, per the COR5 service artwork.
   Replaces the 01–05 numbering: gradient stroke, outer glow, light streak. */
.svc-glyph {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.95rem;
  color: var(--accent-hi);   /* fills the solid detail dots inside the eye and hexagon */
}
.svc-glyph svg {
  width: 54px; height: 54px;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(46, 123, 255, .45));
  transition: filter var(--t), transform var(--t);
}
.svc-glyph::after {
  content: "";
  position: absolute; left: 0; bottom: -15px;
  width: 88px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(61, 139, 255, 0), rgba(150, 197, 255, .95), rgba(61, 139, 255, 0));
  opacity: .75;
  transition: opacity var(--t), width var(--t);
}
.cap-card:hover .svc-glyph svg {
  filter: drop-shadow(0 0 22px rgba(46, 123, 255, .8));
  transform: translateY(-2px);
}
.cap-card:hover .svc-glyph::after { opacity: 1; width: 104px; }

.svc-glyph--hero { margin-bottom: 1.75rem; }
.svc-glyph--hero svg { width: 78px; height: 78px; }
.svc-glyph--hero::after { width: 118px; bottom: -17px; }

/* Icon box */
.icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(11, 110, 250, .3);
  background: linear-gradient(140deg, rgba(11, 110, 250, .18), rgba(9, 48, 185, .07));
  color: var(--accent-hi);
  margin-bottom: 1.1rem;
  flex: none;
}
.icon-box svg { width: 21px; height: 21px; }

/* "What we do" item */
.svc-item { display: flex; gap: 1rem; }
.svc-item .svc-bullet {
  flex: none; margin-top: .5rem;
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(11, 110, 250, .7);
}
.svc-item h4 { margin-bottom: .3rem; font-size: 1.01rem; }
.svc-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Steps */
.step { position: relative; padding-top: 1.6rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(11, 110, 250, .12));
  border-radius: 2px;
}
.step .step-num {
  font-family: var(--font-display);
  font-size: .73rem; font-weight: 700; letter-spacing: .2em;
  color: var(--accent-hi); display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.13rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Panel / callout */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(11, 110, 250, .14), transparent 62%),
    var(--surface);
  padding: clamp(1.75rem, 3vw, 2.6rem);
}
.panel--outcome {
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.panel h3 { margin-bottom: .6rem; }
.panel p { color: var(--text-soft); margin-bottom: 0; }

/* Stat */
.stat { border-left: 2px solid rgba(11, 110, 250, .5); padding-left: 1.1rem; }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 700; color: #fff; line-height: 1.05;
  letter-spacing: -.02em;
}
.stat .stat-label { color: var(--muted); font-size: .87rem; margin-top: .4rem; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .7rem;
  color: var(--text-soft);
  font-size: .94rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 11px; height: 6px;
  border-left: 1.8px solid var(--accent-hi);
  border-bottom: 1.8px solid var(--accent-hi);
  transform: rotate(-45deg);
}

/* CTA band */
.cta-band {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(48% 130% at 20% 0%, rgba(11, 110, 250, .18), transparent 62%),
    radial-gradient(40% 120% at 88% 100%, rgba(9, 48, 185, .2), transparent 62%),
    var(--bg-alt);
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: .05;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 2rem;
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
}
.cta-inner h2 { margin-bottom: .55rem; max-width: 20ch; }
.cta-inner p { color: var(--muted); max-width: 52ch; margin: 0; }

/* Service switcher */
.svc-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}
.svc-switch a {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.svc-switch a:hover {
  border-color: rgba(11, 110, 250, .45);
  background: rgba(11, 110, 250, .07);
  transform: translateY(-2px);
  color: var(--text);
}
.svc-switch .num {
  font-family: var(--font-display);
  font-size: .7rem; letter-spacing: .2em; font-weight: 700; color: var(--accent-hi);
  display: inline-flex; align-items: center; min-height: 24px;
}
.svc-switch .num svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 0 8px rgba(46, 123, 255, .45));
}
.svc-switch .ttl { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); }

/* ---------- 9. Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--text-soft); text-transform: uppercase;
}
.field label .req { color: var(--accent-hi); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: .95rem;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { cursor: pointer; }
.field option { background: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(11, 110, 250, .06);
  box-shadow: 0 0 0 3px rgba(11, 110, 250, .16);
}
.form-note { font-size: .8rem; color: var(--muted-2); }
.field label.form-consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .86rem; font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input { width: auto; margin-top: .3rem; accent-color: var(--accent); flex: none; }

.form-status {
  display: none;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 110, 250, .4);
  background: rgba(11, 110, 250, .1);
  color: var(--text);
  font-size: .9rem;
}
.form-status.is-visible { display: block; }

/* Contact detail row */
.contact-line { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-line .icon-box { width: 38px; height: 38px; margin: 0; border-radius: 8px; }
.contact-line .icon-box svg { width: 17px; height: 17px; }
.contact-line .cl-label {
  font-size: .71rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: .15rem;
}
.contact-line .cl-value { color: var(--text); font-weight: 500; font-size: .96rem; }

/* ---------- 10. Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600;
  color: var(--text); text-align: left;
  transition: color var(--t-fast);
}
.acc-trigger:hover { color: var(--accent-hi); }
.acc-trigger .acc-icon { flex: none; position: relative; width: 14px; height: 14px; }
.acc-trigger .acc-icon::before,
.acc-trigger .acc-icon::after {
  content: ""; position: absolute; background: var(--accent-hi);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.acc-trigger .acc-icon::before { left: 0; top: 6px; width: 14px; height: 1.6px; }
.acc-trigger .acc-icon::after  { top: 0; left: 6px; width: 1.6px; height: 14px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); opacity: 0; }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { color: var(--muted); font-size: .94rem; padding-bottom: 1.35rem; }

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: clamp(3rem, 5vw, 4.25rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: 2.75rem;
}
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: .89rem; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .73rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.05rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .58rem; }
.footer-col a, .footer-col span { color: var(--muted); font-size: .89rem; }
.footer-col a:hover { color: var(--accent-hi); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  color: var(--muted-2); font-size: .81rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--accent-hi); }

.social-row { display: flex; gap: .55rem; margin-top: 1.35rem; }
.social-row a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.social-row a:hover { color: #fff; border-color: rgba(11, 110, 250, .5); background: rgba(11, 110, 250, .12); }
.social-row svg { width: 17px; height: 17px; }

/* ---------- 12. Reveal ----------
   Scoped to html.js so that content is always visible when scripting is
   unavailable. The .js class is set by a tiny inline script in <head>. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   12b. Light sections
   Overrides the design tokens locally, so every component inside inverts
   without needing its own light variant.
   ========================================================================== */
.section--light {
  --text:        #0B1A2E;
  --text-soft:   #2E3F58;
  --muted:       #55677F;
  --muted-2:     #7C8DA3;
  --line:        rgba(11, 26, 46, .12);
  --line-strong: rgba(11, 26, 46, .2);
  --accent-hi:   #0B55D0;          /* darkened to stay legible on white */
  background: #F4F7FC;
  color: var(--text-soft);
  position: relative;
  overflow: hidden;
}
.section--light::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  mix-blend-mode: multiply;
  opacity: .1;
  pointer-events: none;
}
.section--light > .container { position: relative; z-index: 1; }

.section--light h1, .section--light h2,
.section--light h3, .section--light h4 { color: var(--text); }
.section--light .section-head p,
.section--light .step p,
.section--light .card p,
.section--light .muted { color: var(--muted); }
.section--light .lead { color: var(--text-soft); }

.section--light .card {
  background: #fff;
  border-color: rgba(11, 26, 46, .1);
  box-shadow: 0 1px 3px rgba(11, 26, 46, .05);
}
.section--light .card:hover {
  border-color: rgba(11, 85, 208, .4);
  box-shadow: 0 22px 44px -28px rgba(11, 26, 46, .5);
}
.section--light .card::before {
  background: linear-gradient(90deg, transparent, rgba(11, 85, 208, .7), transparent);
}

.section--light .panel {
  background: #fff;
  border-color: rgba(11, 26, 46, .1);
  box-shadow: 0 1px 3px rgba(11, 26, 46, .05);
}
.section--light .panel p { color: var(--text-soft); }
.section--light .panel--outcome { border-left-color: var(--accent); }

.section--light .icon-box {
  border-color: rgba(11, 85, 208, .22);
  background: linear-gradient(140deg, rgba(11, 85, 208, .12), rgba(11, 85, 208, .03));
  color: var(--accent-hi);
}
.section--light .btn-ghost {
  background: #fff;
  border-color: rgba(11, 26, 46, .18);
  color: var(--text);
}
.section--light .btn-ghost:hover {
  background: rgba(11, 85, 208, .07);
  border-color: var(--accent);
  color: var(--accent-hi);
}
.section--light .acc-trigger { color: var(--text); }
.section--light .check-list li { color: var(--text-soft); }
.section--light .svc-item p { color: var(--muted); }
.section--light .svc-switch a { color: var(--text-soft); background: #fff; }
.section--light .svc-switch a:hover { background: rgba(11, 85, 208, .06); }
.section--light .pill { background: rgba(11, 85, 208, .06); color: var(--muted); }
.section--light ::selection { background: rgba(11, 85, 208, .2); color: #06101f; }

/* ==========================================================================
   12c. Hero rotator
   ========================================================================== */
.hero-rotator { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  /* Outgoing slide clears first; the incoming one is delayed so the two
     headlines never sit on top of each other mid-crossfade. */
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: .3s;
}
.hero-slide h1 { margin-bottom: 1.1rem; }
.hero-slide .lead { max-width: 58ch; color: var(--muted); }

.hero-dots {
  display: flex; gap: .5rem;
  margin-top: 1.75rem;
  padding: 0; list-style: none;
}
.hero-dot {
  width: 28px; height: 4px;
  padding: 0; border: 0; border-radius: 2px;
  background: rgba(139, 148, 169, .32);
  cursor: pointer;
  transition: background var(--t), width var(--t);
}
.hero-dot:hover { background: rgba(139, 148, 169, .55); }
.hero-dot.is-active {
  width: 54px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
}

.hero-visual { display: grid; }
.hero-figure {
  grid-area: 1 / 1;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: scale(.95);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.hero-figure.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: .3s;
}
.hero-glyph { display: grid; place-items: center; color: var(--accent-hi); }
.hero-glyph svg {
  width: min(62vw, 240px); height: auto;
  filter: drop-shadow(0 0 44px rgba(46, 123, 255, .55));
}

/* ==========================================================================
   12d. Insights / blog
   ========================================================================== */
.post-card { display: flex; flex-direction: column; }
.post-card .post-meta { margin-bottom: .8rem; }
.post-card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.post-card .link-arrow { margin-top: 1.2rem; }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem .8rem;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2);
}
.post-meta .post-kind {
  color: var(--accent-hi);
  display: inline-flex; align-items: center; gap: .45rem;
}
.post-meta .post-kind::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: var(--accent); transform: rotate(45deg);
}

.post-body { max-width: 70ch; }
.post-body h2 {
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
  margin-top: 2.6rem; margin-bottom: .7rem;
}
.post-body h3 { font-size: 1.14rem; margin-top: 1.9rem; margin-bottom: .5rem; }
.post-body > p:first-of-type { font-size: 1.1rem; color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.35rem; }
.post-body li { margin-bottom: .55rem; }
.post-body blockquote {
  margin: 2rem 0; padding: .3rem 0 .3rem 1.4rem;
  border-left: 2px solid var(--accent);
  color: var(--text); font-size: 1.06rem;
}
.post-body code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .88em;
  background: rgba(139, 148, 169, .13);
  padding: .12em .4em; border-radius: 4px;
}

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.post-tag {
  font-size: .76rem; letter-spacing: .05em;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}

.post-notice {
  border: 1px dashed rgba(255, 176, 32, .55);
  background: rgba(255, 176, 32, .07);
  color: #FFCE7A;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: .9rem;
  margin-bottom: 2rem;
}
.post-notice strong { color: #FFE0AC; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(70%, 280px); }
  .split { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .brand-tag { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 1rem clamp(1.15rem, 4vw, 2.5rem) 2rem;
    margin: 0;
    display: none;
  }
  .site-nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: .95rem .25rem;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { color: var(--accent-hi); }

  .dropdown {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    border: 0; box-shadow: none; background: none;
    padding: .35rem 0 .5rem .25rem;
    display: none;
  }
  .nav-item-dropdown:hover .dropdown,
  .nav-item-dropdown:focus-within .dropdown { display: none; }
  .dropdown.is-open { display: block; transform: none; }
  .dropdown a { padding: .6rem .5rem; }
  .dropdown .dd-desc { display: none; }

  .nav-mobile-cta { display: block; margin-top: 1.25rem; }
  .nav-mobile-cta .btn { width: 100%; }
}

@media (min-width: 1181px) {
  .nav-mobile-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lifecycle-inner { justify-content: flex-start; gap: .55rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero-capline { font-size: .67rem; gap: .35rem .75rem; }
  .hero-capline span { gap: .75rem; }
}

/* ---------- 14. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  h1, h2, h3, h4 { color: #000; }
  .card, .panel { border-color: #ccc; background: none; }
}
