/* ============================================================
   PGCIS · pgcis.com · main stylesheet
   Design system: fable-website-pgcis/04-design/design-system.md
   Derived from the Denton value brief design language.
   Plain CSS, no build step. Edit directly.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:         #16192a;
  --ink-soft:    #454a63;
  --paper:       #f6f4ef;
  --paper-2:     #efece4;
  --card:        #ffffff;
  --indigo:      #2e4387;
  --indigo-deep: #222f5e;
  --indigo-tint: #e7eaf4;
  --gold:        #b07d2b;
  --safety:      #b5361f;
  --green:       #2f6b46;
  --green-tint:  #dfeae0;
  --blush:       #f6e3de;
  --amber-tint:  #f3e8d2;
  --grey-tint:   #eceae4;
  --rule:        #d9d4c8;
  --max:         1120px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --shadow-lift: 0 14px 34px -18px rgba(34, 47, 94, .45);
  --shadow-soft: 0 1px 6px rgba(34, 47, 94, .08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* faint paper grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-deep); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--indigo-deep); }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; color: var(--ink); }
h2 { font-size: clamp(27px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h4 { font-size: 16px; font-weight: 600; }
/* keep long words (esp. German compounds like "Verbraucherstreitbeilegung" and
   long URLs/emails on legal pages) from overflowing narrow phone viewports. */
h1, h2, h3, h4, p, li, a, td, .fact-list .v { overflow-wrap: break-word; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) h4 { -webkit-hyphens: auto; hyphens: auto; }
p, ul, ol { margin: 0 0 1.1em; max-width: 66ch; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { font-weight: 600; }
small, .small { font-size: 13.5px; color: var(--ink-soft); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.band-alt { background: var(--paper-2); }
.band-white { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--indigo); margin: 0 0 18px; max-width: none;
}
.lede { font-size: clamp(17px, 1.7vw, 21px); font-weight: 300; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); font-weight: 300; }
.mono { font-family: var(--mono); font-size: .85em; letter-spacing: -.01em; }

/* ghost section numeral (homepage) */
.ghost {
  position: absolute; top: clamp(18px, 4vw, 40px); right: clamp(8px, 3vw, 40px);
  font-size: clamp(64px, 9vw, 120px); font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); opacity: .05; line-height: 1; pointer-events: none; user-select: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.header-inner .brand-lockup { margin-right: auto; } /* brand left; nav + language switch cluster right */
.brand {
  font-weight: 700; font-size: 20px; letter-spacing: .06em; color: var(--ink);
  display: flex; align-items: baseline; gap: .55rem;
}
.brand .brand-mark { color: var(--indigo); }
.brand .brand-sub {
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); display: none;
}
@media (min-width: 900px) { .brand .brand-sub { display: inline; } }

.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.4rem); }
.site-nav > a, .nav-services summary {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: .35rem .15rem; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav > a:hover, .nav-services summary:hover { color: var(--indigo-deep); }
.site-nav > a[aria-current="page"] { color: var(--indigo-deep); border-bottom-color: var(--indigo); }
.site-nav .nav-cta {
  background: var(--indigo); color: #fff; padding: .5rem 1.05rem; border-radius: 8px;
  font-weight: 600; border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--indigo-deep); color: #fff; }

.nav-services { position: relative; }
.nav-services summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: var(--shadow-lift); padding: .5rem; min-width: 240px; z-index: 60;
}
.nav-dropdown a { display: block; padding: .55rem .8rem; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-dropdown a:hover { background: var(--indigo-tint); color: var(--indigo-deep); }

.nav-toggle { display: none; }

/* tighten the header cluster on phones so brand + Menu + language switch
   fit without overflow down to ~320px (the 24px desktop gap overflows small screens). */
@media (max-width: 430px) { .header-inner { gap: .5rem; } }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    background: none; border: 1.5px solid var(--rule); border-radius: 8px;
    font: 600 13px var(--font); color: var(--ink); padding: .45rem .8rem; cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .6rem clamp(20px, 5vw, 56px) 1.2rem;
    box-shadow: 0 18px 30px -22px rgba(34, 47, 94, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-services summary { padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .site-nav > a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav-dropdown { position: static; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 1rem; min-width: 0; }
  .site-nav .nav-cta { margin-top: .9rem; text-align: center; border: 0; }
  html.no-js .site-nav { display: flex; position: static; box-shadow: none; }
  html.no-js .nav-toggle { display: none; }
}

/* ---------- Brand lockup (elephant-globe mark + Pachyderm Global wordmark) ---------- */
.brand-lockup { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand-lockup:hover { color: var(--ink); }
.brand-lockup img { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-weight: 700; font-size: 15px; letter-spacing: .085em; line-height: 1.1;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.brand-name .gl { color: var(--indigo); }
.brand-tagline {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .215em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 3px; white-space: nowrap;
}
@media (max-width: 1080px) { .brand-tagline { display: none; } .brand-lockup img { height: 34px; } }
@media (max-width: 420px) { .brand-name { font-size: 12.5px; letter-spacing: .06em; } }
/* below 360px (tiny/old phones) there is no room for the wordmark plus the
   Menu button and language switch, so show the elephant-globe mark alone. */
@media (max-width: 359px) { .brand-text { display: none; } }

/* footer lockup on dark */
.brand-lockup.on-dark .brand-name { color: #fff; }
.brand-lockup.on-dark .brand-name .gl { color: #8fa1d8; }
.brand-lockup.on-dark .brand-tagline { color: #9aa2c2; }
.brand-lockup.on-dark img { filter: brightness(1.55) saturate(1.1); }
@media (max-width: 1080px) { .brand-lockup.on-dark .brand-tagline { display: flex; } }

/* small inline mark for caption bars / frames */
.mark-inline { height: 18px; width: auto; display: inline-block; vertical-align: -4px; }
.mark-inline.on-dark { filter: brightness(1.55) saturate(1.1); }

/* oversized watermark mark for band corners */
.mark-watermark {
  position: absolute; right: clamp(10px, 4vw, 48px); bottom: -30px;
  height: clamp(150px, 22vw, 260px); width: auto; opacity: .07; pointer-events: none;
  filter: grayscale(.3) brightness(1.6);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 130px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(46, 67, 135, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 67, 135, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 10%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 90% 70% at 70% 10%, #000 0%, transparent 70%);
}
.hero h1 { max-width: 17ch; }
.hero .subhead { font-size: clamp(17px, 1.8vw, 21px); font-weight: 300; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.proof-line {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-soft);
  border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 30px; max-width: none;
}
.proof-line strong { color: var(--indigo); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.button {
  display: inline-block; font-weight: 600; font-size: 15px; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 8px; border: 1.5px solid var(--indigo);
  color: var(--indigo); background: transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  cursor: pointer; font-family: var(--font);
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--indigo-deep); }
.button.primary { background: var(--indigo); color: #fff; }
.button.primary:hover { background: var(--indigo-deep); color: #fff; }

.more { font-weight: 600; font-size: 15px; }
.more::after { content: " →"; }

/* ---------- Cards / grids ---------- */
/* minmax floors use min(px,100%) so a grid track never exceeds a tiny viewport
   (prevents card/table overflow at <=320px). */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: 2rem; }
.cards-grid.two-up { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
/* five service doors: one horizontal scroll-snap row on every surface.
   Desktop shows 3-4 cards depending on window width; mobile shows one
   card plus a peek of the next to invite the scroll. */
.cards-grid.five {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  gap: 20px; padding: 4px 4px 16px; margin-left: -4px; margin-right: -4px;
  scrollbar-width: thin; scrollbar-color: var(--indigo) var(--paper-2);
}
.cards-grid.five::-webkit-scrollbar { height: 8px; }
.cards-grid.five::-webkit-scrollbar-track { background: var(--paper-2); border-radius: 4px; }
.cards-grid.five::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 4px; }
.cards-grid.five .card { flex: 0 0 clamp(255px, 26vw, 320px); scroll-snap-align: start; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 26px; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .meta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .6rem;
}
.card h3 { margin-bottom: .35rem; }
.card p { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: .6rem; font-size: 14px; }

/* service doors */
.door-num {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--gold);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem;
}
.door-need { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-bottom: .2rem; }

/* method blocks */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 20px; margin-top: 2rem; }
.method-block { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--indigo); border-radius: 10px; padding: 28px; }
.method-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .8rem;
}
.method-block p { font-size: 14.5px; font-weight: 300; color: var(--ink-soft); }

/* ---------- Stat band (dark palette break) ---------- */
.stat-band { background: var(--indigo-deep); color: #fff; position: relative; overflow: hidden; }
.stat-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.stat-band .eyebrow { color: #aeb9dd; }
.stat-band h2, .stat-band h3 { color: #fff; }
.stat-band p { color: #c3cbe6; font-weight: 300; }
.stat-band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 2.2rem 0 1rem; }
.stat { padding: 22px 26px 20px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .value { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: #fff; }
.stat .value small { font-size: .42em; font-weight: 500; color: #aeb9dd; margin-left: .2em; }
.stat .label { display: block; margin-top: .55rem; font-size: 13px; font-weight: 300; color: #c3cbe6; line-height: 1.45; }
@media (max-width: 760px) {
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-left: 0; }
  .stat:first-child { border-top: 0; }
}
/* light variant for inner pages */
.stat-grid.on-paper .stat { border-color: var(--rule); }
.stat-grid.on-paper .value { color: var(--indigo); }
.stat-grid.on-paper .value small { color: var(--ink-soft); }
.stat-grid.on-paper .label { color: var(--ink-soft); }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.chip.quality  { background: var(--indigo-tint); color: var(--indigo-deep); }
.chip.safety   { background: var(--blush); color: var(--safety); }
.chip.cost     { background: var(--amber-tint); color: var(--gold); }
.chip.schedule { background: var(--green-tint); color: var(--green); }
.chip.disc     { background: var(--grey-tint); color: var(--ink-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }

/* ---------- Process strip (L0-L5, PrecisionLoop) ---------- */
.process-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 1.8rem 0; }
.pnode {
  flex: 1 1 150px; min-width: 150px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: 16px 16px 14px;
}
.pnode .pcode { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: .08em; display: block; margin-bottom: .3rem; text-transform: uppercase; }
.pnode h4 { margin: 0 0 .25rem; font-size: 14.5px; }
.pnode p { font-size: 12.5px; font-weight: 300; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.pnode.core { background: var(--indigo); border-color: var(--indigo); }
.pnode.core .pcode { color: #d9c79b; }
.pnode.core h4 { color: #fff; }
.pnode.core p { color: #c3cbe6; }

/* ---------- Fact list (case studies) ---------- */
.fact-list { margin: 1.8rem 0 0; border-top: 1px solid var(--rule); max-width: 680px; }
.fact-list .row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.fact-list .k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: .15rem; }
.fact-list .v { font-size: 15px; font-weight: 400; }
@media (max-width: 560px) { .fact-list .row { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0; max-width: 820px; }
.logo-pill {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--rule); background: var(--card); border-radius: 20px; padding: .42rem .95rem;
}

/* ---------- Callout / quote ---------- */
.callout {
  border-left: 3px solid var(--indigo); background: var(--card); border-radius: 0 10px 10px 0;
  padding: 22px 26px; margin: 1.8rem 0; max-width: 720px;
}
.callout p { margin: 0; font-weight: 300; }
.callout .who { font-size: 13px; color: var(--ink-soft); margin-top: .6rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 2rem; }
.person { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; }
.person .role { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: .1rem 0 .7rem; }
.person p { font-size: 13.5px; font-weight: 300; color: var(--ink-soft); margin: 0; }
.person h3 { margin-bottom: 0; font-size: 18px; }

/* ---------- Media placeholders (until photography) ---------- */
.media-ph {
  background: var(--paper-2);
  border: 1px dashed var(--rule); border-radius: 10px;
  display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-soft); font-family: var(--mono); font-size: 12px; letter-spacing: .03em;
  min-height: 240px; padding: 1.4rem; gap: .4rem; margin: 2.2rem 0 0;
}
/* Image placeholders are hidden by default so the public site is clean.
   main.js adds .show-placeholders on non-production hosts (file://, localhost,
   *.pages.dev, staging/internal), revealing every shot slot and its brief for
   reviewers and the imagery team. When a real image replaces a block, it shows everywhere. */
.show-placeholders .media-ph { display: flex; }
.media-ph.tall { min-height: 340px; }
.media-ph small { font-family: var(--font); font-weight: 300; font-size: 12.5px; max-width: 46ch; }

/* ---------- Details / expanders ---------- */
details.expander { border: 1px solid var(--rule); border-radius: 8px; background: var(--card); padding: 0; margin-bottom: .7rem; max-width: 760px; }
details.expander summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: 15px; padding: 1rem 1.2rem;
}
details.expander summary::-webkit-details-marker { display: none; }
details.expander summary .tri { color: var(--indigo); transition: transform .25s ease; font-size: 12px; }
details.expander[open] summary .tri { transform: rotate(90deg); }
details.expander .ex-body { padding: 0 1.2rem 1.1rem; font-weight: 300; color: var(--ink-soft); font-size: 14.5px; }
details.expander .ex-body p { margin-bottom: .7em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
input, select, textarea {
  width: 100%; font: 300 15px var(--font); color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: .8rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-soft); font-weight: 300; }

/* ---------- Pre-footer CTA band ---------- */
.cta-band { background: var(--indigo-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cbe6; font-weight: 300; }
.cta-band .eyebrow { color: #aeb9dd; }
.cta-band .button { border-color: #fff; color: #fff; }
.cta-band .button:hover { color: #fff; }
.cta-band .button.primary { background: #fff; color: var(--indigo-deep); border-color: #fff; }
.cta-band .button.primary:hover { background: var(--indigo-tint); color: var(--indigo-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cde0; padding: clamp(48px, 7vw, 72px) 0 36px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-logo { font-weight: 700; font-size: 19px; letter-spacing: .06em; color: #fff; }
.footer-logo .brand-mark { color: #8fa1d8; }
.footer-tagline { font-weight: 300; color: #9aa2c2; margin-top: .8rem; font-size: 13.5px; max-width: 38ch; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-weight: 300; }
.site-footer a { color: #c9cde0; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.6rem; padding-top: 1.4rem;
  font-size: 12px; font-weight: 300; color: #8b92ad; max-width: none;
}

/* ---------- Reveal on scroll (JS-gated) ---------- */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv.d1 { transition-delay: .08s; }
html.js .rv.d2 { transition-delay: .16s; }
html.js .rv.d3 { transition-delay: .24s; }
html.js .rv.d4 { transition-delay: .32s; }

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

/* ---------- Page-specific helpers ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.kicker-link { display: inline-block; margin-top: .8rem; }
.toc-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.toc-pills a {
  font-size: 13px; font-weight: 500; border: 1px solid var(--rule); background: var(--card);
  border-radius: 20px; padding: .4rem .95rem; color: var(--ink-soft);
}
.toc-pills a:hover { border-color: var(--indigo); color: var(--indigo-deep); }
table.data { border-collapse: collapse; width: 100%; max-width: 820px; margin: 1.6rem 0; font-size: 14.5px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: .6rem .8rem .5rem 0; border-bottom: 1.5px solid var(--ink); }
table.data td { padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--rule); font-weight: 300; vertical-align: top; }
table.data td:first-child { font-weight: 500; }
/* on very small phones, shrink a wide multi-column data table so it fits
   without overflowing; keeps natural content-sized columns (no mid-word breaks). */
@media (max-width: 360px) {
  table.data { font-size: 12.5px; }
  table.data th, table.data td { padding-right: .5rem; }
}

/* ============================================================
   Homepage components (promoted from the "Control Room" design)
   Dark hero, service-line strip, CxIntelligence heat map,
   stat ribbon, and the cost-to-correct chart.
   ============================================================ */

/* dark hero */
.hero-dark {
  background: linear-gradient(170deg, var(--indigo-deep) 0%, #1b2348 55%, var(--ink) 100%);
  color: #fff; overflow: hidden; position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 100px);
}
.hero-dark::before { /* glowing drafting grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(143,161,216,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143,161,216,.10) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 75% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 95% 80% at 75% 0%, #000 0%, transparent 75%);
}
.hero-dark .eyebrow { color: #d9c79b; }
.hero-dark h1 { color: #fff; }
.hero-dark .subhead { color: #c3cbe6; }
.hero-dark .proof-line { color: #aeb9dd; border-top-color: rgba(255,255,255,.18); }
.hero-dark .proof-line strong { color: #d9c79b; }
.hero-dark .button { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-dark .button.primary { background: #fff; color: var(--indigo-deep); border-color: #fff; }
.hero-dark .button.primary:hover { background: var(--indigo-tint); color: var(--indigo-deep); }
.hero-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
/* let grid children shrink below their intrinsic min-content so the KPI console
   (min-content ~417px) cannot floor the track wider than the viewport on phones.
   Without this the hero content overflows and is clipped by .hero-dark overflow:hidden. */
.hero-cols > * { min-width: 0; }
@media (max-width: 920px) { .hero-cols { grid-template-columns: 1fr; } }

/* service-line strip above the headline */
.service-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 20px; padding: 0; }
.service-line span { position: relative; padding: 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.service-line span:first-child { padding-left: 0; }
.service-line span + span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 13px; width: 1px; background: currentColor; opacity: .45;
}

/* campus heat map - the CxIntelligence "Heat Map Display" motif */
.heatmap-frame {
  background: rgba(22,25,42,.55); border: 1px solid rgba(143,161,216,.28); border-radius: 12px;
  padding: 18px 18px 14px; backdrop-filter: blur(2px);
}
.hm-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #8fa1d8; display: flex; justify-content: space-between; margin-bottom: 12px;
}
.hm-head .live { color: #d9c79b; }
.hm-head .live::before { content: "\25CF"; margin-right: 6px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.heatmap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.hm { aspect-ratio: 1; border-radius: 3px; background: rgba(143,161,216,.14); }
.hm.l1 { background: rgba(143,161,216,.32); }
.hm.l2 { background: rgba(143,161,216,.55); }
.hm.l3 { background: #5a6da8; }
.hm.ok { background: #3f7a55; }
.hm.au { background: var(--gold); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.hm-legend {
  display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: #8fa1d8;
}
.hm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hm-caption { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6d7cb0; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .hm.au, .hm-head .live::before { animation: none; } }

/* hero KPI console (CxIntelligence program view, right column of dark hero) */
.hxa-console{border:1px solid rgba(143,161,216,.28);background:rgba(22,25,42,.55);border-radius:12px;padding:clamp(16px,2vw,22px);display:flex;flex-direction:column;gap:clamp(14px,1.8vw,18px);width:100%}
.hxa-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-family:var(--mono);font-size:11px;letter-spacing:.09em;color:#8fa1d8;text-transform:uppercase}
.hxa-head-l{display:flex;align-items:center;gap:8px;min-width:0}
.hxa-head-l img{width:16px;height:auto;flex:0 0 auto;opacity:.9}
.hxa-head-l span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hxa-live{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;color:#c3cbe6;border:1px solid rgba(143,161,216,.28);border-radius:999px;padding:3px 9px;font-size:10px;letter-spacing:.12em}
.hxa-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#3f7a55;animation:hxa-blink 2s ease-in-out infinite}
.hxa-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hxa-tile{border:1px solid rgba(143,161,216,.22);border-radius:10px;background:rgba(90,109,168,.08);padding:12px 12px 11px;display:flex;flex-direction:column;gap:6px;min-width:0}
.hxa-num{font-family:var(--font);font-weight:600;color:#fff;font-size:clamp(20px,2.4vw,28px);line-height:1}
.hxa-num small{font-weight:500;font-size:.5em;color:#d9c79b;margin-left:2px;letter-spacing:.02em}
.hxa-cap{font-family:var(--mono);font-size:9.5px;letter-spacing:.07em;line-height:1.35;color:#8fa1d8;text-transform:uppercase}
.hxa-bars{display:flex;flex-direction:column;gap:9px;border-top:1px solid rgba(143,161,216,.18);padding-top:clamp(12px,1.6vw,16px)}
.hxa-bar{display:grid;grid-template-columns:5.2em 1fr 2.6em;align-items:center;gap:10px}
.hxa-bar-lbl{font-family:var(--mono);font-size:10px;letter-spacing:.04em;color:#c3cbe6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hxa-track{display:block;height:7px;border-radius:4px;background:rgba(58,68,104,.38);overflow:hidden}
.hxa-fill{display:block;height:100%;border-radius:4px;background:#d9a94b}
.hxa-bar-val{font-family:var(--font);font-weight:500;font-size:11px;color:#fff;text-align:right}
.hxa-foot{font-family:var(--mono);font-size:10px;letter-spacing:.11em;color:#8fa1d8;text-transform:uppercase;margin:0}
.hxa-fill.hxa-green{background:#4f9e6e}
.hxa-fill.hxa-gold{background:#d9763f}
.hxa-fill.hxa-dim{background:rgba(143,161,216,.5)}
@keyframes hxa-blink{0%,100%{opacity:1}50%{opacity:.35}}
@media (max-width:560px){.hxa-tiles{grid-template-columns:repeat(2,1fr)}}
@media (prefers-reduced-motion:reduce){.hxa-live::before{animation:none}}

/* service-page hero console: solid panel for light heroes, right column of .hero-cols */
.hxa-console.on-paper{background:linear-gradient(170deg,var(--indigo-deep) 0%,#1b2348 60%,var(--ink) 100%);border-color:rgba(46,67,135,.3);box-shadow:var(--shadow-lift)}
.hero .hero-cols{align-items:center}
@media (max-width:920px){.hero .hxa-console{max-width:560px}}

/* stat ribbon directly under the dark hero */
.stat-ribbon { background: var(--ink); color: #fff; padding: 0; border-top: 1px solid rgba(143,161,216,.2); }
.stat-ribbon .stat-grid { margin: 0; }
.stat-ribbon .stat { padding-top: 26px; padding-bottom: 26px; border-color: rgba(255,255,255,.12); }
.stat-ribbon .value { font-size: clamp(26px, 3vw, 38px); }
.stat-ribbon .label { color: #8b92ad; }

/* cost-of-defect slider (methodology hero) — VERBATIM port of Muhammed's
   CxIntelligence demo cost ladder (pgcis-sales r2/site .costladder block).
   Demo->site token map: --panel->--card, --hairline->--rule, --font-mono->--mono;
   --indigo, --indigo-deep, --ink, --ink-soft carry the same names/values (site
   --ink-soft #454a63 vs demo #4a4f66 differ imperceptibly). No site token for the
   demo's --shadow (0 2px 10px) or --radius-card (10px), so those are inlined as
   the demo's literal values to stay pixel-verbatim. .cl-title reproduces the
   demo's global h3 exactly (the title sits ABOVE the panel, per the demo).
   .cl-range zeroes the site's global input box (border/background/padding/radius)
   so the range renders as the demo's bare native slider. */
.cl-title { font-size: 14px; font-weight: 600; color: var(--indigo-deep); margin: 18px 0 8px; }
.costladder { background: var(--card); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: 0 2px 10px rgba(34, 47, 94, .08); padding: 18px 20px;
  margin: 16px 0; max-width: 860px; }
.cl-figure { font-weight: 700; font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--indigo-deep);
  line-height: 1.1; }
.cl-copy { font-size: 14px; min-height: 3em; margin: 6px 0 12px;
  color: var(--ink); max-width: 640px; }
.cl-range { width: 100%; accent-color: var(--indigo); height: 28px; margin: 0;
  padding: 0; border: 0; background: none; border-radius: 0; }
.cl-stops { display: flex; justify-content: space-between; gap: 4px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-soft); margin-top: 4px; }
.cl-stops span { flex: 1; text-align: center; }
.cl-stops span:first-child { text-align: left; }
.cl-stops span:last-child { text-align: right; }
.cl-stops span.on { color: var(--indigo); font-weight: 600; }
.cl-caption { font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  margin-top: 12px; }

/* cost-to-correct chart, placed under the pattern heading */
.cost-chart { width: 100%; max-width: 720px; height: auto; display: block; margin: 1.6rem 0 .5rem; }
.cost-chart .bar { fill: var(--indigo-tint); stroke: var(--indigo); stroke-width: 1.4; }
.cost-chart .bar-hot { fill: #f6e3de; stroke: var(--safety); stroke-width: 1.6; }
.cost-chart .lbl { font-family: var(--mono); font-size: 10px; fill: var(--ink-soft); letter-spacing: .03em; }
.cost-chart .val { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--indigo-deep); }
.cost-chart .val-hot { fill: var(--safety); }
.cost-chart .axis { stroke: var(--rule); stroke-width: 1; }
.chart-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Our Oath (about page) ---------- */
#oath { padding-top: 0; padding-bottom: 0; }
.oath {
  position: relative; overflow: hidden; max-width: 860px; margin: 0 auto; text-align: center;
  padding: clamp(2.6rem, 6vw, 4.4rem) clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.oath-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, 116%); height: auto; opacity: .075;
  pointer-events: none; user-select: none;
}
.oath-inner { position: relative; z-index: 1; }
.oath .eyebrow { display: block; }
.oath h2 { text-align: center; letter-spacing: .03em; margin-bottom: 1.7rem; }
.oath-list { list-style: none; padding: 0; margin: 0 auto; max-width: 740px; }
.oath-list li {
  margin: 0 0 1.15rem; max-width: none;
  font-size: clamp(15.5px, 1.5vw, 18.5px); font-weight: 600; line-height: 1.5; color: var(--ink);
}
.oath-list li:last-child { margin-bottom: 0; }

/* ---------- Language switcher (flag + code dropdown, top-right of header) ---------- */
.lang-switch { position: relative; display: inline-block; }
.lang-switch > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .55rem; border: 1px solid var(--rule); border-radius: 9px;
  background: var(--card); transition: border-color .15s ease, box-shadow .15s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: var(--indigo); }
.lang-switch[open] > summary { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.lang-switch .flag {
  width: 22px; height: 16px; border-radius: 2px; display: block; flex: none;
  box-shadow: 0 0 0 1px rgba(34, 47, 94, .14);
}
.lang-switch .code { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.lang-chevron { width: 11px; height: 11px; color: var(--ink-soft); transition: transform .18s ease; }
.lang-switch[open] > summary .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; padding: .3rem; min-width: 92px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 11px;
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: .15rem;
}
.lang-menu .lang {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .55rem; border-radius: 7px; border: 0;
}
.lang-menu .code { color: var(--ink-soft); }
.lang-menu .lang:hover { background: var(--indigo-tint); }
.lang-menu .lang:hover .code { color: var(--indigo-deep); }
@media (max-width: 460px) {
  .lang-switch .code { display: none; } /* tiny screens: flags only */
}

/* ============================================================
   Service hero graphics -- one design family, six distinct forms
   ------------------------------------------------------------
   Light "paper artifact" panels for the right column of the light
   service heroes (.hero .hero-cols). The homepage hero keeps its
   dark .hxa-console; these rules never touch .hxa-* or .cl-*.
   Shared family: white card shell, mono header/footer bar, the
   indigo/gold/green palette, Poppins + IBM Plex Mono. Each page
   gets a different BODY skeleton:
     .dmx    advisory     -> site-selection decision matrix
     .dfr    owner's rep  -> daily field report artifact
     .trail  commissioning-> L1 to L5 vertical test rail
     .gantt  delivery     -> two-track schedule-compression gantt
     .cert   handover     -> operational-readiness certificate
   ============================================================ */

/* normalize base p/ul/ol/li rules (max-width:66ch, list margins) inside graphics */
.svc-gfx p, .svc-gfx ul, .svc-gfx ol, .pmap p, .pmap ul { max-width: none; }
.svc-gfx li, .pmap li { margin-bottom: 0; }

/* --- shared shell --- */
.svc-gfx {
  width: 100%; background: var(--card);
  border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow-lift); overflow: hidden; font-family: var(--font);
}
.svc-gfx__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 15px; border-bottom: 1px solid var(--rule); background: var(--paper-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft);
}
.svc-gfx__head .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.svc-gfx__head .t img { width: 15px; height: auto; opacity: .9; flex: 0 0 auto; }
.svc-gfx__head b {
  font-weight: 600; color: var(--indigo-deep); letter-spacing: .05em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-gfx__ref { flex: 0 0 auto; color: var(--gold); font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.svc-gfx__body { padding: 16px 15px; }
.svc-gfx__foot {
  padding: 10px 15px; border-top: 1px solid var(--rule); background: var(--paper);
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
}
@media (max-width: 920px) { .hero .svc-gfx { max-width: 560px; } }

/* --- advisory: site-selection decision matrix --- */
.dmx { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; align-items: center; }
.dmx .hc {
  font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); align-self: end; padding-bottom: 4px;
}
.dmx .site {
  text-align: center; font-family: var(--font); font-weight: 600; font-size: 12px;
  color: var(--indigo-deep); align-self: end; padding-bottom: 4px;
}
.dmx .site.pick { color: var(--green); }
.dmx .site.pick::after { content: " \2605"; font-size: 9px; color: var(--gold); }
.dmx .crit { font-family: var(--font); font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.dmx .cell {
  display: flex; align-items: center; justify-content: center; height: 30px;
  border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.dmx .cell.hi  { background: var(--green-tint); color: var(--green); }
.dmx .cell.mid { background: var(--amber-tint); color: var(--gold); }
.dmx .cell.lo  { background: var(--blush); color: var(--safety); }
.dmx .cell.pk  { outline: 1.5px solid var(--green); outline-offset: -1.5px; }

/* --- owner's rep: daily field report artifact --- */
.dfr-meta {
  display: flex; flex-wrap: wrap; gap: 5px 14px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .03em; color: var(--ink-soft);
  padding-bottom: 11px; margin-bottom: 10px; border-bottom: 1px dashed var(--rule);
}
.dfr-meta b { color: var(--ink); font-weight: 600; }
.dfr-log { list-style: none; margin: 0; padding: 0; }
.dfr-log li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--rule);
}
.dfr-log .id { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--indigo); }
.dfr-log .desc {
  font-size: 12.5px; font-weight: 300; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dfr-log .st {
  font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 12px;
}
.dfr-log .st.closed   { background: var(--green-tint); color: var(--green); }
.dfr-log .st.answered { background: var(--indigo-tint); color: var(--indigo-deep); }
.dfr-log .st.open     { background: var(--amber-tint); color: var(--gold); }
.dfr-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.dfr-photos b { display: block; font-size: 25px; font-weight: 700; color: var(--indigo-deep); line-height: 1; }
.dfr-photos span,
.dfr-sign .cap { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.dfr-sign { text-align: right; }
.dfr-sign svg { display: block; margin: 0 0 3px auto; }

/* --- commissioning: L1 to L5 vertical test rail --- */
.trail { list-style: none; margin: 0; padding: 0; }
.trail li {
  position: relative; display: grid; grid-template-columns: 26px 1fr auto;
  gap: 12px; align-items: center; padding: 8px 0;
}
.trail li::before {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px;
  background: var(--rule); z-index: 0;
}
.trail li:first-child::before { top: 50%; }
.trail li:last-child::before  { bottom: 50%; }
.trail .node {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  border: 2px solid var(--rule); background: var(--card); color: var(--ink-soft);
}
.trail .done .node   { background: var(--green); border-color: var(--green); color: #fff; }
.trail .active .node {
  background: var(--gold); border-color: var(--gold); color: #fff;
  animation: trail-pulse 2.6s ease-in-out infinite;
}
.trail .lv b { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--indigo-deep); }
.trail .lv span { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--ink-soft); letter-spacing: .02em; }
.trail .tag {
  font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 12px; white-space: nowrap;
}
.trail .done .tag   { background: var(--green-tint); color: var(--green); }
.trail .active .tag { background: var(--amber-tint); color: var(--gold); }
.trail li:not(.done):not(.active) .tag { background: var(--grey-tint); color: var(--ink-soft); }
@keyframes trail-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 125, 43, .45); }
  50%      { box-shadow: 0 0 0 6px rgba(176, 125, 43, 0); }
}
@media (prefers-reduced-motion: reduce) { .trail .active .node { animation: none; } }

/* --- delivery acceleration: two-track schedule-compression gantt --- */
.gantt-row { margin-bottom: 15px; }
.gantt-row .lbl {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 5px;
}
.gantt-row .lbl b { color: var(--indigo-deep); font-weight: 600; }
.gantt-bars {
  display: flex; height: 24px; border-radius: 5px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 27px, rgba(46, 67, 135, .09) 27px, rgba(46, 67, 135, .09) 28px),
    var(--grey-tint);
}
.gantt-seg {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .02em;
  color: #fff; white-space: nowrap; overflow: hidden;
}
.gantt-seg.build { background: var(--indigo); }
.gantt-seg.l4    { background: var(--gold); }
.gantt-seg.l5    { background: var(--green); }
.gantt-seg.trad  { opacity: .5; }
.gantt-seg.saved {
  background: none; color: var(--gold); font-weight: 600;
  border: 1px dashed var(--gold); border-left: 0; border-radius: 0 5px 5px 0;
}
.gantt-delta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: var(--green); background: var(--green-tint); border-radius: 12px; padding: 4px 11px;
}

/* --- operational handover: readiness certificate --- */
.cert-top {
  display: flex; align-items: center; gap: 15px;
  padding-bottom: 13px; margin-bottom: 11px; border-bottom: 1px solid var(--rule);
}
.cert-ring { flex: 0 0 auto; width: 62px; height: 62px; }
.cert-h .k { font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.cert-h b { display: block; font-size: 19px; font-weight: 700; color: var(--green); letter-spacing: -.01em; line-height: 1.1; }
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--ink); }
.cert-list .ck {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; background: var(--green); color: #fff;
}
.cert-list .ck.part { background: var(--gold); }
.cert-list small { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--ink-soft); }

/* ============================================================
   Our Work portfolio map -- novel section graphic
   ------------------------------------------------------------
   Used in index.html #selected-work and the work.html hero.
   Three region cells with MW-scaled markers over a faint
   drafting-grid field. Gold ring markers = campuses in the
   cross-region 550 MW portfolio; solid indigo dots = standalone
   projects, sized by capacity.
   ============================================================ */
.pmap {
  position: relative; margin: 0 0 2.4rem; max-width: none;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.pmap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(46, 67, 135, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 67, 135, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.pmap-bar {
  position: relative; display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 20px; padding: 14px 20px;
  border-bottom: 1px solid var(--rule); background: var(--paper-2);
}
.pmap-bar .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); font-weight: 600; margin: 0; }
.pmap-bar .v { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: 0; }
.pmap-bar .v b { font-family: var(--font); font-size: 21px; font-weight: 700; color: var(--indigo-deep); letter-spacing: -.01em; }
.pmap-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.pmap-cell { padding: 18px 22px; border-right: 1px solid var(--rule); }
.pmap-cell:last-child { border-right: 0; }
.pmap-cell h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 13px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.pmap-cell ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.pmap-cell li { display: flex; align-items: center; gap: 11px; margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.pmap-cell li:last-child { margin-bottom: 0; }
.pmap-cell li.sub { margin: -5px 0 12px 25px; font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }
.pmap-mk { flex: 0 0 auto; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-tint); }
.pmap-mk.port { background: transparent; border: 2px solid var(--gold); box-shadow: 0 0 0 3px var(--amber-tint); }
.pmap-num { font-weight: 700; color: var(--indigo-deep); }
@media (max-width: 720px) {
  .pmap-grid { grid-template-columns: 1fr; }
  .pmap-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pmap-cell:last-child { border-bottom: 0; }
}


/* --- self-hosted fonts (Poppins, IBM Plex Mono) --- */
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Poppins-300-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Poppins-300-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Poppins-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Poppins-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Poppins-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Poppins-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Poppins-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Poppins-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Poppins-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Poppins-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
