@import url('tokens.css');

/* ============================================================
   CES MARKETING SITE — system styles
   Built on the CES Design System tokens (tokens.css).
   ============================================================ */

/* ---------- service accents (REDESIGN — gold-led) ----------
   The redesign makes GOLD/BRASS the dominant accent across the whole site.
   The three legacy accent slots (cal/qms/uc) now all resolve to the CES gold
   family so service cards, dropdown dots and workflow steps read gold, not a
   multi-colour SaaS palette. Slate is the single cool support tone. */
:root {
  --acc-cal:    #7e7715;   /* gold-deep — readable as text/icon */
  --acc-cal-bg: #f3efd2;
  --acc-qms:    #7e7715;   /* gold-deep */
  --acc-qms-bg: #f3efd2;
  --acc-uc:     #7e7715;   /* gold-deep */
  --acc-uc-bg:  #f3efd2;

  /* dark hero / CTA surfaces — CES navy (secondary, dark bands only) */
  --ink-hero:   #001b44;
  --ink-hero-2: #002e8080;

  --maxw: 1200px;
  --maxw-wide: 1440px;
  --gutter: 24px;
  --rhythm: 96px;

  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg2);
  background: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--blue-200); color: var(--ink-900); }

a { color: var(--fg-link); }

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

.section { padding: var(--rhythm) 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 1024px){ :root{ --rhythm:64px; } }
@media (max-width: 640px){
  :root{ --rhythm:48px; --gutter:16px; }
  body{ font-size:16px; }
  .section-sm{ padding:48px 0; }
}

.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-lead { max-width: 46ch; }

/* ---------- type ---------- */
h1,h2,h3,h4 { font-family: var(--font-sans); color: var(--fg1); margin: 0; text-wrap: balance; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--w-regular);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ces-gold-deep); /* deep gold keeps eyebrows AA-legible on light backgrounds */
  margin: 0 0 16px;
  display: block;
}
.eyebrow.on-dark { color: var(--ces-gold-pale); }
/* quiet WP-style grey kicker — used sparingly on secondary sections so the
   serif italic .eyebrow stays a deliberate accent on the major bands only */
.kicker {
  font-family: var(--font-sans); font-weight: var(--w-extrabold);
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ces-gold-deep); margin: 0 0 14px; display: block;
}
.kicker.on-dark { color: var(--ces-gold-pale); }
.eyebrow.acc-cal { color: var(--acc-cal); }
.eyebrow.acc-qms { color: var(--acc-qms); }
.eyebrow.acc-uc  { color: var(--acc-uc); }

.display {
  font-weight: var(--w-black);
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h1 {
  font-weight: var(--w-black);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.h2 {
  font-weight: var(--w-extrabold);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.018em;
}
.h3 {
  font-weight: var(--w-bold);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.h4 { font-weight: var(--w-bold); font-size: 20px; line-height: 1.35; }

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--fg3);
  font-weight: var(--w-regular);
  text-wrap: pretty;
}
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--fg3); }
.mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: -0.01em; }

.section-head { max-width: 720px; }
.section-head .h2 { margin-bottom: 18px; }
.section-head .lead { color: var(--fg3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--w-extrabold);
  font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-md);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
}
.btn svg, .btn i { width: 18px; height: 18px; }
/* PRIMARY = gold/brass — the dominant CTA colour across the site.
   WCAG: white on --ces-gold is only 3.19:1 (fails AA). The label is therefore
   DEEP NAVY on gold (4.86:1 on #9b931b, 7.0:1 once it brightens on hover) — a
   more deliberate, more premium pairing that also matches the WP buttons. */
.btn-primary { background: var(--ces-gold); color: var(--ces-navy-deep); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--ces-gold-3); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(155,147,27,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ces-gold-deep); border-color: var(--ces-gold); }
.btn-ghost:hover { background: var(--ces-gold-050); border-color: var(--ces-gold-deep); }
.btn-text { background: transparent; color: var(--ces-gold-deep); padding: 14px 6px; }
.btn-text:hover { color: var(--ces-gold-deep); text-decoration: underline; }
/* on a dark navy band the gold button stays gold (sharp accent on dark) —
   same deep-navy label so it clears AA against the gold both at rest and hover */
.btn-on-dark { background: var(--ces-gold); color: var(--ces-navy-deep); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.btn-on-dark:hover { background: var(--ces-gold-3); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(235,229,141,.45); }
.btn-ghost-dark:hover { background: rgba(235,229,141,.10); border-color: rgba(235,229,141,.7); }
/* on the full-gold band, use navy as the sharp dark CTA */
.btn-on-gold { background: var(--ces-navy); color: #fff; box-shadow: var(--shadow-navy); }
.btn-on-gold:hover { background: var(--ces-navy-deep); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* arrow nudge */
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: var(--w-extrabold); font-size: 15px; text-decoration: none;
  color: var(--ces-gold-deep);
  transition: gap .15s var(--ease), color .15s var(--ease);
}
.arrow-link:hover { gap: 11px; color: var(--ces-gold); }
.arrow-link.acc-cal { color: var(--acc-cal); }
.arrow-link.acc-qms { color: var(--acc-qms); }
.arrow-link.acc-uc  { color: var(--acc-uc); }
.arrow-link svg, .arrow-link i { width: 16px; height: 16px; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ces-gold-deep);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
@media (max-width: 980px){ .nav-logo img { height: 36px; } }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-weight: var(--w-bold); font-size: 15.5px;
  color: var(--fg2); text-decoration: none;
  padding: 9px 13px; border-radius: var(--r-sm); border: none; background: none; cursor: pointer;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover, .nav-trigger:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-links a.active { color: var(--ces-gold-deep); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-signin {
  font-weight: var(--w-bold); font-size: 15.5px; color: var(--fg2); text-decoration: none;
  padding: 9px 12px; border-radius: var(--r-sm); white-space: nowrap;
}
.nav-signin:hover { color: var(--ink-900); background: var(--ink-100); }

/* dropdown */
.nav-item { position: relative; }
.nav-trigger .chev { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.nav-item.open .nav-trigger .chev { transform: rotate(180deg); }
.nav-item.open .nav-trigger { color: var(--ink-900); background: var(--ink-100); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 320px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 12px; border-radius: var(--r-md); text-decoration: none;
  transition: background .14s var(--ease);
}
.dd-item:hover { background: var(--ink-050); }
.dd-ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-top: 1px;
}
.dd-ic svg, .dd-ic i { width: 20px; height: 20px; }
.dd-ic.cal { background: var(--acc-cal-bg); color: var(--acc-cal); }
.dd-ic.qms { background: var(--acc-qms-bg); color: var(--acc-qms); }
.dd-ic.uc  { background: var(--acc-uc-bg);  color: var(--acc-uc); }
.dd-tt { font-weight: var(--w-extrabold); font-size: 15px; color: var(--ink-900); display: flex; align-items: center; gap: 6px; }
.dd-tt .ext { width: 13px; height: 13px; color: var(--fg4); }
.dd-ds { font-size: 13.5px; color: var(--fg3); line-height: 1.45; margin-top: 2px; }

/* mobile */
.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink-900);
}
.burger svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0; z-index: 99;
  background: #fff; padding: 20px var(--gutter) 40px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mm-section { border-bottom: 1px solid var(--border); padding: 6px 0; }
.mm-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-weight: var(--w-bold); font-size: 18px;
  color: var(--ink-900); text-decoration: none;
}
.mm-sub { padding: 2px 0 10px; }
.mm-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px 11px 14px; color: var(--fg2); text-decoration: none;
  font-weight: var(--w-semibold); font-size: 16px;
}
.mm-sub a .dot { width: 8px; height: 8px; border-radius: 50%; }
.mm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

@media (max-width: 980px) {
  .nav-links, .nav-actions .nav-signin, .nav-actions .btn:not(.nav-demo) { display: none; }
  .nav-demo { display: none; }
  .burger { display: inline-flex; }
  .nav { gap: 12px; }
  .nav-spacer { flex: 1; }
}

/* sticky mobile demo bar */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px var(--gutter); background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-top: 1px solid var(--border);
}
@media (max-width: 980px){ .mobile-cta { display: block; } }

/* ============================================================
   HERO (dark)
   ============================================================ */
.hero-dark {
  position: relative; overflow: hidden;
  background:
    /* warm brass glow top-right + subtle engineering grain over deep navy */
    radial-gradient(110% 120% at 86% -15%, rgba(181,162,56,.28) 0%, rgba(0,46,128,.10) 38%, transparent 64%),
    radial-gradient(90% 120% at 2% 115%, rgba(155,147,27,.20) 0%, transparent 52%),
    var(--gradient-navy);
  color: #fff;
}
/* fine engineering texture: faint diagonal hairlines + grain for depth */
.hero-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(125deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 4px 4px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.hero-dark .eyebrow { color: var(--ces-gold-pale); }
.hero-dark h1, .hero-dark .display, .hero-dark .h1 { color: #fff; }
.hero-dark .lead { color: #cfd6e6; }

/* ---- HERO PHOTO: reusable cinematic background-image treatment ----
   Add `.hero-photo` to a `.hero-dark` section and set `--hero-img` to the
   asset URL. A deep-navy scrim is laid OVER the photo so the existing white
   headline / gold eyebrow / light lead keep AA contrast. The scrim is darker
   on the left (where the centred copy's first lines sit) and over the whole
   band, so text never lands on a bright part of the photo at any width.
   Measured: headline #fff over the scrimmed band reads ~9:1+ (navy-deep at
   ~82–92% effective alpha leaves the band darker than #00205a) — well past 4.5:1. */
.hero-photo {
  background-image:
    /* horizontal scrim — darkest left, fading right (protects centred copy) */
    linear-gradient(90deg,
      rgba(0,18,46,.94) 0%,
      rgba(0,20,52,.86) 42%,
      rgba(0,24,60,.74) 100%),
    /* vertical scrim — anchors header chrome + lifts CTAs off the floor */
    linear-gradient(180deg,
      rgba(0,16,42,.62) 0%,
      rgba(0,18,46,.40) 40%,
      rgba(0,20,52,.78) 100%),
    var(--hero-img);
  background-repeat: no-repeat;
  background-position: center, center, var(--hero-pos, center 38%);
  background-size: cover, cover, cover;
}
/* --- CENTRED variant: copy spans the middle, so the left-dark scrim would
   bury the photo. Use an even vertical + soft radial scrim instead — lighter
   across the band so the image reads, darker behind the copy column.
   Headline #fff over this band still measures ~7:1+ (band stays darker than
   #002e80 everywhere the text sits). */
.hero-photo.hero-photo--center {
  background-image:
    /* tight elliptical pool of shade hugging the copy column, fading to a
       much lighter veil at the edges so the photo reads top/sides/bottom */
    radial-gradient(86% 74% at 50% 50%,
      rgba(0,17,44,.88) 0%,
      rgba(0,19,50,.80) 40%,
      rgba(0,22,56,.46) 72%,
      rgba(0,24,60,.34) 100%),
    /* light overall floor so even the lit edges keep #fff/gold AA */
    linear-gradient(180deg,
      rgba(0,16,42,.30) 0%,
      rgba(0,18,46,.20) 40%,
      rgba(0,20,52,.50) 100%),
    var(--hero-img);
  background-position: center, center, var(--hero-pos, center 34%);
  background-size: cover, cover, cover;
}
@media (max-width: 760px) {
  .hero-photo.hero-photo--center {
    background-image:
      linear-gradient(180deg,
        rgba(0,16,42,.82) 0%,
        rgba(0,18,46,.76) 45%,
        rgba(0,20,52,.88) 100%),
      var(--hero-img);
    background-position: center, var(--hero-pos-m, center 32%);
    background-size: cover, cover;
  }
}

/* the engineering-grain ::before still rides on top — soften it over photos */
.hero-photo::before { opacity: .28; }
/* hide the decorative floating squares over a photo (they read as noise) */
.hero-photo .squares { display: none; }
@media (max-width: 760px) {
  /* on narrow screens the photo subject can drift behind text — lean the
     scrim darker and pull the focal point so copy stays on a clean area */
  .hero-photo {
    background-image:
      linear-gradient(180deg,
        rgba(0,16,42,.80) 0%,
        rgba(0,18,46,.74) 45%,
        rgba(0,20,52,.88) 100%),
      var(--hero-img);
    background-position: center, var(--hero-pos-m, center 35%);
    background-size: cover, cover;
  }
}
/* data-square motif (retained, gold) */
.squares { position: absolute; pointer-events: none; opacity: .5; z-index: 1; }
.sq { position: absolute; border-radius: 3px; }

/* ---- HOME hero: centred WP-style band, copy only, gold CTA ---- */
.hero-home { padding: 104px 0 150px; position: relative; }
.hero-home .wrap { position: relative; z-index: 2; }
.hero-home .hero-copy { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-home .hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero-home .display { font-size: clamp(31px, 7.4vw, 68px); overflow-wrap: break-word; hyphens: none; }
.hero-home .hero-cta { justify-content: center; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* legacy two-column hero grid (used by other pages / sections) */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { padding-bottom: 0; }
.hero-visual { position: relative; align-self: stretch; min-height: 440px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 360px; margin-bottom: -1px; }
  .hero-home { padding: 76px 0 130px; }
}
@media (max-width: 560px) {
  /* keep the centred WP hero inside the narrow viewport — no overflow */
  .hero-home .hero-copy { max-width: 100%; }
  .hero-home .display { font-size: clamp(28px, 8.2vw, 40px); }
  .hero-home .hero-copy .lead { max-width: 100% !important; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   OVERLAPPING SERVICE CARDS (WP signature — overlap hero base)
   ============================================================ */
.svc-overlap { position: relative; z-index: 5; margin-top: -110px; }
.svc-overlap .wrap { position: relative; z-index: 5; }
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 30px 26px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative; overflow: hidden;
}
.svc-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px -20px rgba(30,30,30,.4); }
.svc-card:hover::after { transform: scaleX(1); }

/* WP signature: the Aviation card carries a photo in place of the gold icon */
.svc-card.has-photo { padding-top: 0; }
.svc-card.has-photo .svc-photo {
  width: calc(100% + 52px); margin: 0 -26px 22px; aspect-ratio: 16 / 11;
  overflow: hidden; background: var(--ink-hero);
}
.svc-card.has-photo .svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.svc-card.has-photo:hover .svc-photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce){ .svc-card.has-photo .svc-photo img { transition: none; } }
.svc-ic {
  width: 74px; height: 74px; border-radius: 50%; margin-bottom: 18px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 28%, var(--ces-gold-3), var(--ces-gold) 72%, var(--ces-gold-deep));
  /* deep-navy glyph on gold — matches the WP circular icon and clears 3:1 for the large mark */
  color: var(--ces-navy-deep); box-shadow: 0 8px 18px rgba(155,147,27,.35);
}
.svc-ic svg, .svc-ic i { width: 34px; height: 34px; }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink-900); }
.svc-card p { font-size: 14.5px; color: var(--fg3); line-height: 1.55; margin-bottom: 20px; }
.svc-card .svc-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.svc-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: var(--w-extrabold);
  font-size: 13.5px; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease);
}
/* white-on-gold is 3.19:1 (fails AA); deep-navy label clears it at 4.86:1 */
.svc-pill.solid { background: var(--ces-gold); color: var(--ces-navy-deep); }
.svc-pill.solid:hover { background: var(--ces-gold-3); }
.svc-pill.ghost { border: 1.5px solid var(--ces-gold-100); color: var(--ces-gold-deep); }
.svc-pill.ghost:hover { background: var(--ces-gold-050); }
.svc-pill svg, .svc-pill i { width: 15px; height: 15px; }
@media (max-width: 1024px){ .svc-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .svc-cards { grid-template-columns: 1fr; } .svc-overlap { margin-top: -96px; } }

/* ============================================================
   FULL GOLD/BRASS BAND ("Why Choose CES?" stat row)
   ============================================================ */
.gold-band {
  position: relative; overflow: hidden; color: var(--ink-900);
  background: var(--gradient-gold);
}
.gold-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: repeating-linear-gradient(125deg, rgba(255,255,255,.12) 0 1px, transparent 1px 30px);
}
.gold-band .wrap { position: relative; z-index: 1; }
.gold-band .eyebrow { color: var(--ces-navy); }
.gold-band h2, .gold-band .h2 { color: var(--ces-navy-deep); }
/* navy-deep on the gold gradient clears AA comfortably (white/light-olive did not) */
.gold-band .lead { color: var(--ces-navy-deep); opacity: .82; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.stat { text-align: center; padding: 0 8px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -12px; top: 14%; bottom: 14%; width: 1px;
  background: rgba(0,0,0,.18);
}
.stat .num {
  font-family: var(--font-sans); font-weight: var(--w-black);
  font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--ces-navy-deep);
  letter-spacing: -.02em;
}
.stat .lab { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ces-navy-deep); opacity: .82; font-weight: var(--w-semibold); }
@media (max-width: 760px){
  .stat-row { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .stat + .stat::before { display: none; }
}

/* ============================================================
   INDUSTRIES — gold gear row
   ============================================================ */
.industry-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 44px; margin-top: 8px; }
.industry { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 110px; }
.industry .gear {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ces-gold-050); border: 1.5px solid var(--ces-gold-100);
  color: var(--ces-gold-deep); transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.industry .gear svg, .industry .gear i { width: 30px; height: 30px; }
.industry:hover .gear { background: var(--ces-gold); color: #fff; transform: rotate(20deg) scale(1.05); border-color: var(--ces-gold); }
.industry .name { font-size: 13.5px; font-weight: var(--w-bold); color: var(--fg2); letter-spacing: .02em; }

/* product hero (lighter dark, accent glow) */
.hero-product { padding: 84px 0 88px; }
.hero-product.cal { background:
  radial-gradient(110% 120% at 85% -10%, rgba(47,143,134,.36) 0%, rgba(44,87,154,.12) 38%, transparent 62%),
  var(--ink-hero); }
.hero-product.qms { background:
  radial-gradient(110% 120% at 85% -10%, rgba(159,73,121,.40) 0%, rgba(44,87,154,.12) 38%, transparent 62%),
  var(--ink-hero); }
.hero-product .eyebrow { color: #fff; opacity: .92; }
.hero-product.cal .eyebrow { color: #7fc4e0; }
.hero-product.qms .eyebrow { color: var(--ces-gold-pale); }
/* A .hero-photo on a product hero must beat .hero-product.cal/.qms `background`
   above (equal 0,2,0 specificity, declared later) — otherwise the product
   gradient hides the hero image. This makes the 7 service-style pages show
   their hero photos like the .hero-dark heroes do. */
.hero-product.hero-photo {
  background-image:
    linear-gradient(90deg, rgba(0,18,46,.92) 0%, rgba(0,20,52,.80) 44%, rgba(0,24,60,.62) 100%),
    linear-gradient(180deg, rgba(0,16,42,.52) 0%, rgba(0,18,46,.32) 42%, rgba(0,20,52,.74) 100%),
    var(--hero-img);
  background-repeat: no-repeat;
  background-position: center, center, var(--hero-pos, center 38%);
  background-size: cover, cover, cover;
}
.hero-product.hero-photo .eyebrow { color: var(--ces-gold-pale); opacity: 1; }

/* compact hero (about, contact, services, legal) */
.hero-compact { padding: 76px 0 56px; }
.hero-compact.light { background: var(--bg-page); border-bottom: 1px solid var(--border); }
.hero-compact .lead { margin-top: 18px; }

/* ============================================================
   FAUX BROWSER CHROME + DEVICE
   ============================================================ */
.browser {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -28px rgba(5,12,28,.65), 0 12px 28px -12px rgba(5,12,28,.5);
}
.browser.on-light { border-color: var(--border); box-shadow: var(--shadow-lg); }
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: #f1f4f9; border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-url {
  flex: 1; margin-left: 8px; height: 26px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px; padding: 0 12px;
  font-size: 12.5px; color: var(--fg3); font-family: var(--font-mono);
}
.browser-url svg { width: 12px; height: 12px; color: var(--success); }
.browser-body { background: var(--bg-page); }

/* floating card */
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px 18px;
}

/* tablet frame */
.tablet {
  border-radius: 26px; background: #0c1426; padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(5,12,28,.7);
  border: 1px solid rgba(255,255,255,.12);
}
.tablet-screen { border-radius: 14px; overflow: hidden; background: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 28px;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }

/* product card */
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding-top: 30px; }
.product-card .topbar { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pc-ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; }
.pc-ic svg, .pc-ic i { width: 22px; height: 22px; }
.pc-name { font-weight: var(--w-extrabold); font-size: 19px; color: var(--ink-900); letter-spacing: -.01em; }
.pc-one { color: var(--fg2); margin: 10px 0 18px; line-height: 1.5; }
.pc-bullets { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--fg2); }
.pc-bullets svg, .pc-bullets i { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.pc-foot { margin-top: auto; }

.cal-c { color: var(--acc-cal); } .cal-bg { background: var(--acc-cal); } .cal-soft { background: var(--acc-cal-bg); color: var(--acc-cal); }
.qms-c { color: var(--acc-qms); } .qms-bg { background: var(--acc-qms); } .qms-soft { background: var(--acc-qms-bg); color: var(--acc-qms); }
.uc-c  { color: var(--acc-uc); }  .uc-bg  { background: var(--acc-uc); }  .uc-soft  { background: var(--acc-uc-bg);  color: var(--acc-uc); }
.blue-soft { background: var(--ces-gold-050); color: var(--ces-gold-deep); }
.red-soft  { background: var(--ces-gold-050); color: var(--ces-gold-deep); }
.gold-soft { background: var(--ces-gold-050); color: var(--ces-gold-deep); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- capability list ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
@media (max-width: 760px){ .cap-grid { grid-template-columns: 1fr; gap: 28px; } }
.cap { display: flex; gap: 16px; }
.cap-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--ces-gold-050); color: var(--ces-gold-deep);
}
.cap-ic svg, .cap-ic i { width: 22px; height: 22px; }
.cap h4 { margin-bottom: 6px; }
.cap p { font-size: 15.5px; color: var(--fg3); line-height: 1.55; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-pill);
  background: var(--bg-page); border: 1px solid var(--border);
  font-size: 14px; font-weight: var(--w-semibold); color: var(--fg2);
}
.chip svg, .chip i { width: 15px; height: 15px; }

/* ---------- trust strip ---------- */
.trust { background: var(--bg-page); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-cap { text-align: center; color: var(--fg4); font-size: 13.5px; font-weight: var(--w-bold); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 28px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.logo-mark {
  font-weight: var(--w-black); font-size: 22px; letter-spacing: -.02em;
  color: var(--ink-400); opacity: .78; transition: opacity .15s, color .15s; white-space: nowrap;
}
.logo-mark:hover { opacity: 1; color: var(--ink-700); }
.logo-mark .sub { font-weight: var(--w-bold); font-size: 12px; letter-spacing: .02em; display: block; }

/* ---------- standards band ---------- */
.standards-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.standard {
  display: flex; align-items: center; gap: 11px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
}
.standard svg, .standard i { width: 22px; height: 22px; color: var(--ces-gold-deep); }
.standard .st-t { font-weight: var(--w-extrabold); font-size: 15px; color: var(--ink-900); }
.standard .st-s { font-size: 12.5px; color: var(--fg4); }

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.wf-step { position: relative; padding: 0 14px; }
.wf-step:first-child { padding-left: 0; }
.wf-step:last-child { padding-right: 0; }
.wf-line { position: absolute; top: 22px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.wf-step:last-child .wf-line { display: none; }
.wf-num {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ces-gold); color: var(--ces-gold-deep);
  display: grid; place-items: center; font-weight: var(--w-black); font-size: 18px; margin-bottom: 18px;
}
.wf-step.cal .wf-num { border-color: var(--acc-cal); color: var(--acc-cal); }
.wf-step.cal .wf-line { background: linear-gradient(90deg, var(--acc-cal-bg), var(--border)); }
.wf-step.qms .wf-num { border-color: var(--acc-qms); color: var(--acc-qms); }
.wf-step.qms .wf-line { background: linear-gradient(90deg, var(--acc-qms-bg), var(--border)); }
.wf-ic { color: var(--fg4); margin-bottom: 10px; }
.wf-ic svg, .wf-ic i { width: 20px; height: 20px; }
.wf-step h4 { font-size: 17px; margin-bottom: 6px; }
.wf-step p { font-size: 14.5px; color: var(--fg3); line-height: 1.5; }

@media (max-width: 860px) {
  .workflow { grid-template-columns: 1fr; gap: 0; }
  .wf-step { padding: 0 0 28px 64px; }
  .wf-step:last-child { padding-bottom: 0; }
  .wf-num { position: absolute; left: 0; top: 0; margin: 0; }
  .wf-line { top: 46px; left: 22px; right: auto; bottom: 0; width: 2px; height: auto; }
  .wf-ic { margin-top: 2px; }
}

/* ============================================================
   SPLIT (suite at a glance — two halves)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }
.split-half { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; }
.split-half .surface-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--w-extrabold);
  text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.split-half h3 { margin-bottom: 6px; }
.split-half .subhead { font-weight: var(--w-bold); color: var(--fg3); margin-bottom: 14px; }
.split-half p.body { color: var(--fg2); line-height: 1.6; margin-bottom: 22px; }

/* ============================================================
   PERSONA BAND
   ============================================================ */
.persona {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px;
}
.persona .role {
  display: inline-flex; align-items: center; gap: 9px; font-weight: var(--w-extrabold);
  color: var(--ink-900); font-size: 17px; margin-bottom: 12px;
}
.persona .role .ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; }
.persona .role .ic svg, .persona .role .ic i { width: 19px; height: 19px; }
.persona p { color: var(--fg3); font-size: 15.5px; line-height: 1.55; }
.persona .quoted { color: var(--fg2); }

/* ============================================================
   PAIRS WELL WITH
   ============================================================ */
.pair-card { display: flex; gap: 16px; align-items: flex-start; }
.pair-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; }
.pair-ic svg, .pair-ic i { width: 24px; height: 24px; }
.pair-card h4 { margin-bottom: 6px; }
.pair-card p { font-size: 15px; color: var(--fg3); line-height: 1.5; margin-bottom: 12px; }

/* ============================================================
   CTA BAND (dark)
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(100% 140% at 85% 0%, rgba(181,162,56,.34) 0%, transparent 56%),
    radial-gradient(90% 120% at 6% 100%, rgba(155,147,27,.22) 0%, transparent 52%),
    var(--gradient-navy);
  color: #fff; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: repeating-linear-gradient(125deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .eyebrow { color: var(--ces-gold-pale); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #cfd6e6; margin: 16px auto 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cta-band.uc {
  background:
    radial-gradient(100% 140% at 85% 0%, rgba(113,170,81,.30) 0%, transparent 55%),
    var(--ink-hero);
}

/* green try-block (light) */
.try-uc {
  background: linear-gradient(135deg, #eef6e9 0%, #e3f1da 100%);
  border: 1px solid #cfe6c2; border-radius: var(--r-xl);
  padding: 56px; text-align: center;
}
.try-uc .h2 { color: #2f5a1c; }
.try-uc .lead { color: #466a31; margin: 16px auto 28px; max-width: 50ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-hero); color: #aeb9cf; padding: 64px 0 28px; border-top: 4px solid var(--ces-gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-col a:hover { color: var(--ces-gold-pale); }
.footer-brand p { font-size: 14.5px; color: #8b97b0; line-height: 1.6; max-width: 30ch; }
.footer-col h5 {
  font-size: 12.5px; font-weight: var(--w-extrabold); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #aeb9cf; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col a .ext { width: 13px; height: 13px; opacity: .7; }
.footer-addr { font-size: 14px; color: #8b97b0; line-height: 1.7; font-style: normal; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: #76829c;
}
.footer-bottom .flag { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL-IN ANIMATION
   ============================================================ */
/* Reveals ENHANCE an already-visible default: content is visible with no JS,
   in a headless renderer, or if the IntersectionObserver never fires. The
   hidden start-state is only applied once JS confirms it can animate (it adds
   `.js` to <html>), so a missed observer can never ship a blank section. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px){ .form-grid { grid-template-columns: 1fr; gap: 40px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: var(--w-bold); font-size: 14.5px; color: var(--ink-900); margin-bottom: 7px; }
.field label .req { color: var(--ces-gold); margin-left: 2px; }
.input, .textarea, select.input {
  width: 100%; font-family: var(--font-sans); font-size: 16px; color: var(--ink-900);
  padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ces-gold); box-shadow: 0 0 0 3px rgba(155,147,27,.20); }
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 13.5px; font-weight: var(--w-semibold); margin-top: 6px; display: none; }
.field.show-err .field-err { display: block; }
.field-warn { color: var(--pending); font-size: 13.5px; font-weight: var(--w-semibold); margin-top: 6px; display: none; }
.field.show-warn .field-warn { display: block; }
.textarea { resize: vertical; min-height: 104px; }
.check-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px){ .check-set { grid-template-columns: 1fr; } }
.check {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer;
  font-weight: var(--w-semibold); font-size: 15px; transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--border-strong); }
.check input { width: 18px; height: 18px; accent-color: var(--ces-gold); cursor: pointer; }
.check.checked { border-color: var(--ces-gold); background: var(--ces-gold-050); }
.req-key { font-size: 13px; color: var(--fg4); margin-bottom: 22px; }
.req-key .req { color: var(--ces-gold); }
.form-foot { font-size: 13.5px; color: var(--fg4); margin-top: 16px; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sidebar-block { background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 16px; }
.sidebar-block h4 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sidebar-block h4 svg, .sidebar-block h4 i { width: 18px; height: 18px; color: var(--ces-gold-deep); }
.sidebar-block p { font-size: 14.5px; color: var(--fg3); line-height: 1.55; }
.sidebar-block a { font-weight: var(--w-bold); color: var(--ces-gold-deep); text-decoration: none; }
.sidebar-block a:hover { text-decoration: underline; }

/* fake turnstile */
.turnstile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; max-width: 320px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); background: #fafbfc; margin-bottom: 22px;
}
.turnstile .box { width: 26px; height: 26px; border: 2px solid var(--border-strong); border-radius: var(--r-xs); display: grid; place-items: center; }
.turnstile.checked .box { background: var(--success); border-color: var(--success); color: #fff; }
.turnstile .box svg { width: 16px; height: 16px; opacity: 0; }
.turnstile.checked .box svg { opacity: 1; }
.turnstile .t-label { font-size: 14px; font-weight: var(--w-semibold); color: var(--fg2); }
.turnstile .t-brand { margin-left: auto; font-size: 11px; color: var(--fg4); text-align: right; line-height: 1.2; }

/* legal / long-form prose (privacy, terms, gdpr) */
.legal-prose { max-width: 760px; }
.legal-prose .legal-section { padding-top: 40px; }
.legal-prose .legal-section:first-of-type { padding-top: 8px; }
.legal-prose h2 {
  font-family: var(--font-sans); font-weight: var(--w-bold); font-size: var(--text-xl);
  line-height: var(--lh-snug); letter-spacing: -0.01em; color: var(--fg1); margin: 0 0 14px;
}
.legal-prose p { color: var(--fg2); line-height: var(--lh-loose); margin: 0 0 16px; }
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose ul { margin: 0 0 16px; padding-left: 22px; }
.legal-prose li { color: var(--fg2); line-height: var(--lh-normal); margin-bottom: 8px; }
.legal-prose a { color: var(--fg-link); font-weight: var(--w-semibold); text-decoration: none; }
.legal-prose a:hover { text-decoration: underline; }
.legal-prose strong { color: var(--fg1); font-weight: var(--w-bold); }
.legal-prose .legal-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-prose th, .legal-prose td {
  text-align: left; padding: 11px 14px; border: 1px solid var(--border);
  vertical-align: top; line-height: var(--lh-normal); color: var(--fg2);
}
.legal-prose thead th { background: var(--bg-page); color: var(--fg1); font-weight: var(--w-bold); }
.legal-prose .legal-effective {
  display: inline-block; font-size: 14px; font-weight: var(--w-semibold);
  color: var(--fg3); margin-top: 4px;
}
.legal-prose .legal-address {
  margin-top: 8px; font-style: normal; color: var(--fg2); line-height: var(--lh-loose);
}
.legal-prose hr.legal-rule { height: 1px; background: var(--border); border: 0; margin: 36px 0; }

/* utility */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.bg-muted { background: var(--bg-page); }
.note-line { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--fg3); font-weight: var(--w-semibold); }
.note-line svg, .note-line i { width: 18px; height: 18px; color: var(--ces-gold-deep); }

/* ============================================================
   EDITORIAL IMAGE TREATMENT (engineering photos / generated art)
   ============================================================ */
.editorial-img {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--ink-100);
  background: var(--ink-hero);
}
.editorial-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editorial-img.tall { aspect-ratio: 4 / 5; }
.editorial-img.wide { aspect-ratio: 3 / 2; }
.editorial-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  background: linear-gradient(160deg, transparent 60%, rgba(0,27,68,.22));
}
.img-note { font-size: 12px; color: var(--fg4); margin-top: 8px; font-style: italic; }

/* "Our Story" grid (WP-style year cards) */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.story-cell { position: relative; padding-top: 18px; border-top: 2px solid var(--ces-gold-100); }
.story-cell .yr {
  font-family: var(--font-sans); font-weight: var(--w-black); font-size: 34px;
  line-height: 1; color: var(--ces-gold-deep); letter-spacing: -.02em; margin-bottom: 12px;
}
.story-cell h3 { font-size: 18px; margin-bottom: 8px; color: var(--ink-900); }
.story-cell p { font-size: 15px; color: var(--fg3); line-height: 1.6; }
@media (max-width: 860px){ .story-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .story-grid { grid-template-columns: 1fr; } }
.ext-ic { width: 14px; height: 14px; vertical-align: -1px; }

/* ============================================================
   CES — About "Our Story" timeline (new component, CES site only)
   ============================================================ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--ces-gold), var(--ces-navy));
}
.tl-item { position: relative; padding: 0 0 32px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--ces-gold);
}
.tl-year {
  display: inline-block; font-family: var(--font-sans); font-weight: var(--w-black);
  font-size: 26px; letter-spacing: -.01em; color: var(--ces-gold-deep); margin-bottom: 6px; line-height: 1;
}
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--fg3); font-size: 15.5px; line-height: 1.6; }

/* CES footer accreditation line */
.footer-accred { font-size: 13px; color: #8a93a8; margin-top: 12px; line-height: 1.7; }
