/* =====================================================================
   Giles Innovative Products, LLC — site styles
   Hybrid theme: light pages, dark navy bands · brand red accent · Barlow type system
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* surfaces (light) */
  --bg: #ffffff;
  --bg-2: #f3f5f8;
  --bg-3: #e8ecf1;
  --bg-4: #dbe1e8;
  --line: #dfe4ea;
  --line-strong: #c3cbd5;
  --grid-line: rgba(20, 40, 64, .07);

  /* text */
  --fg: #101a2a;
  --heading: #14283f;
  --fg-2: #46546a;
  --fg-3: #6b7a8f;

  /* brand */
  --red: #a50000;        /* logo red */
  --red-bright: #c40d0d; /* hover / emphasis fills */
  --red-text: #a50000;   /* red as text on light */
  --navy: #204870;       /* logo navy */
  --steel: #5a8fc0;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 600ms;
  --lift: -4px;          /* card / tile hover lift */
  --lift-sm: -2px;       /* button hover lift */
  --zoom: 1.05;          /* image hover zoom */
  --reveal-y: 16px;      /* scroll-reveal travel */

  /* type scale */
  --fs-2xs: .72rem;      /* tiny uppercase labels */
  --fs-xs: .8125rem;     /* eyebrows, captions, meta */
  --fs-sm: .875rem;      /* small copy, gallery captions */
  --fs-base-sm: .95rem;  /* compact body (lists, cards) */
  --fs-md: 1.05rem;      /* body in panels, chapter lists */
  --fs-lg: 1.2rem;       /* large body */
  --fs-xl: 1.35rem;      /* small headings */
  --fs-h3: 1.5rem;
  --fs-h3-lg: 1.75rem;
  --fs-num: 2rem;        /* stat numbers */
  --fs-num-lg: 2.25rem;
  --fs-lede: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-h3-fluid: clamp(1.4rem, 1.8vw, 1.75rem);
  --fs-h2-sm: clamp(1.6rem, 2.5vw, 2.25rem);
  --fs-h2: clamp(2.25rem, 4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 4.8vw, 3.9rem);
  --fs-display: clamp(2.9rem, 6.3vw, 5.6rem);

  /* tracking */
  --ls-tight: -.02em;
  --ls-text: .01em;
  --ls-ui: .06em;        /* buttons, nav */
  --ls-label: .12em;     /* eyebrows, uppercase labels */
  --ls-wide: .18em;      /* chapter labels, big uppercase */

  /* colour channels for translucent overlays and shadows */
  --ink-rgb: 15 22 34;
  --navy-rgb: 20 40 63;
  --red-rgb: 165 0 0;
  --red-soft-rgb: 242 92 84;
  --navy-2: #22446c;     /* mid navy: icons, chips */
  --navy-deep: #1b3757;  /* media placeholders */
  --red-soft: #f25c54;   /* red on dark */
  --red-tint: #f0a3a3;   /* red on dark, muted */
  --green: #1f9d55;      /* comparison ticks */
  --green-rgb: 31 157 85;
  --ink: #0f1622;        /* darkest surface (video frames, caption scrims) */

  /* elevation */
  --shadow-sm: 0 2px 6px rgb(var(--navy-rgb) / .18);
  --shadow-md: 0 8px 20px rgb(var(--navy-rgb) / .14);
  --shadow-lg: 0 18px 40px rgb(var(--navy-rgb) / .12);
  --shadow-xl: 0 30px 60px rgb(var(--navy-rgb) / .18);

  color-scheme: light;
}

/* Dark bands: hero, process animation, page heroes, CTA, footer */
.dark {
  --bg: #0f1622;
  --bg-2: #141d2b;
  --bg-3: #1b2536;
  --bg-4: #243147;
  --line: #26324a;
  --line-strong: #3a4a66;
  --grid-line: rgba(255, 255, 255, .045);
  --fg: #f3f4f6;
  --heading: #ffffff;
  --fg-2: #b7c0cf;
  --fg-3: #8b97ab;
  --red-text: #f25c54;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }   /* an author display rule otherwise beats the hidden attribute */
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: var(--ls-tight); text-wrap: balance; color: var(--heading); }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h2-sm); }
h4 { font-size: var(--fs-lg); letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: var(--radius); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

/* engineering grid texture */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--red-text);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--red); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--fg-2); max-width: 62ch; }
.lede strong { color: var(--fg); }   /* a phrase picked out inside a lede reads at full contrast */
h1 + p, h2 + p { margin-top: 1.5rem; }
.muted { color: var(--fg-2); }
.small { font-size: var(--fs-base-sm); }
.measure { max-width: 66ch; }
.num {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base-sm);
  letter-spacing: var(--ls-label); color: var(--fg-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: var(--ls-ui); text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-bright); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--heading); background: var(--heading); color: var(--bg); box-shadow: var(--shadow-md); transform: translateY(var(--lift-sm)); }
.dark .btn--ghost:hover { border-color: #fff; background: #fff; color: var(--heading); box-shadow: var(--shadow-md); }
.btn svg { transition: transform var(--dur-fast); }
.btn:hover svg { transform: translateX(4px); }
/* fixed light button: sits on red/navy bands, so it must not follow the .dark token flip */
.btn--light { background: #fff; color: rgb(var(--ink-rgb)); }
.btn--light:hover { background: #e9ecf1; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-lg); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--fg); border-bottom: 1px solid transparent;
  transition: color var(--dur-fast), gap var(--dur-fast);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--dur-fast); }
.link-arrow:hover { color: var(--red-text); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur), background var(--dur);
}
.header.is-scrolled { background: rgba(255,255,255,.95); box-shadow: 0 1px 0 var(--line), var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand img { height: 42px; width: auto; }
.brand__mark { height: 40px; }
.brand__text { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); letter-spacing: var(--ls-text); line-height: 1; }
.brand__text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--fg-3); margin-top: .3rem; }

.nav { display: none; align-items: center; gap: .25rem; }
.nav a {
  padding: .65rem .85rem; font-weight: 500; color: var(--fg-2); border-radius: var(--radius);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header__cta { display: none; }
.header__login { display: none; align-items: center; gap: .4rem; margin-right: .25rem; padding: .5rem .6rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: var(--ls-ui); text-transform: uppercase; color: var(--fg-2); border-radius: var(--radius); }
.header__login svg { width: 15px; height: 15px; }
.header__login:hover { color: var(--fg); background: var(--bg-2); }
.header__login[aria-current="page"] { color: var(--heading); }
.mobile-nav__login span { display: inline-flex; align-items: center; gap: .6rem; }
.mobile-nav__login span svg { width: 20px; height: 20px; color: var(--red-text); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--line-strong);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle { color: var(--heading); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-family: var(--font-display); font-size: var(--fs-h3-lg); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.mobile-nav__link svg { width: 24px; height: 24px; flex: none; color: var(--fg-3); }
.mobile-nav a.mobile-nav__link[aria-current="page"] { color: var(--red-text); }
.mobile-nav__sub { padding: .25rem 0 .75rem 1rem; border-bottom: 1px solid var(--line); }
.mobile-nav__sub a { display: block; padding: .5rem 0; color: var(--fg-2); }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__login { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero (home): full-width annotated model ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(70% 60% at 68% 55%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    linear-gradient(to bottom, var(--bg-2), var(--bg-3));
  border-bottom: 1px solid var(--line);
}
.hero__stage { position: relative; min-height: clamp(560px, 86vh, 900px); }
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0) 34%, rgba(255,255,255,.3) 39%, rgba(255,255,255,0) 42%);
}
@media (max-width: 899px) { .hero__stage::before { display: none; } }
.hero__viewer {
  position: absolute; top: 0; bottom: 0; right: 0; left: 42%; display: block; width: 58%; height: 100%;
  background: transparent; --poster-color: transparent; touch-action: pan-y;
}
@media (min-width: 1400px) { .hero__viewer { left: 44%; width: 56%; } }
.hero__copy {
  position: relative; z-index: 2; pointer-events: none;
  padding-block: clamp(3rem, 7vw, 5.5rem) 0; max-width: 34rem;
}
@media (min-width: 900px) { .hero__copy { max-width: 40%; } }
.hero__copy a { pointer-events: auto; }
.hero__copy h1 { font-size: var(--fs-display); max-width: 12ch; }
.hero__copy h1 em { font-style: normal; color: var(--red-text); }
.hero__copy .lede { margin-top: 1.5rem; max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__meta {
  position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2; pointer-events: none;
  display: grid; gap: .25rem; text-align: right; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3);
}
.hero__meta strong { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: var(--ls-ui); color: var(--heading); text-transform: none; }
.hero__meta svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: .3rem; }

/* callout pins (model-viewer hotspots) */
.hs { pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; }
.hs:hover, .hs:focus-visible, .hs.is-open { z-index: 2; }   /* an open label sits above the other pins */
.hs__dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--red);
}
.hs__dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red);
  opacity: .6; animation: hs-pulse 2.2s ease-out infinite;
}
@keyframes hs-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.hs__label {
  opacity: 0; pointer-events: none; transition: opacity var(--dur);   /* revealed on hover / focus / tap */
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%) translateX(var(--nudge, 0px));
  white-space: nowrap; background: rgba(255,255,255,.96); border: 1px solid var(--line-strong); border-left: 3px solid var(--red);
  padding: .35rem .6rem; font-size: var(--fs-xs); font-weight: 600; color: var(--heading); line-height: 1.2; text-align: left;
  box-shadow: var(--shadow-md);
}
.hs__label small { display: block; font-weight: 500; color: var(--fg-3); font-size: var(--fs-2xs); letter-spacing: var(--ls-ui); }
.hs--left .hs__label { left: auto; right: 16px; border-left: 1px solid var(--line-strong); border-right: 3px solid var(--red); text-align: right; }
/* labels are shown on hover, keyboard focus or tap, so two pins can never overlap each other's text */
.hs:hover .hs__label, .hs:focus-visible .hs__label, .hs.is-open .hs__label { opacity: 1; }
.hs:focus-visible .hs__dot { outline: 2px solid var(--red); outline-offset: 4px; }
.hs:not([data-visible]) { opacity: 0; pointer-events: none; transition: opacity var(--dur); }
.hs[data-visible] { opacity: 1; transition: opacity var(--dur); }

/* stats band under the hero */
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.hero__stats div { background: var(--bg); padding: 1.35rem 1.25rem; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: var(--fs-h2-sm); font-weight: 700; line-height: 1; color: var(--fg); }
.hero__stats span { display: block; margin-top: .4rem; font-size: var(--fs-sm); letter-spacing: var(--ls-ui); text-transform: uppercase; color: var(--fg-3); }
@media (min-width: 800px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 899px) {
  .hero__stage { min-height: 0; display: flex; flex-direction: column; }
  .hero__stage > .container { order: 1; }
  .hero__viewer { order: 2; position: relative; inset: auto; left: auto; width: 100%; aspect-ratio: 4 / 3; height: auto; margin-top: 1rem; }   /* the desktop 58%-wide strip becomes a full-width stage */
  .hero__copy { max-width: none; }
  .hero__meta { order: 3; position: static; text-align: left; padding: .75rem var(--gutter) 1.5rem; }
  .hs__label { font-size: var(--fs-2xs); }
}
@media (max-width: 899px) { .hs--desk { display: none; } }
/* phones: the pins stay, because a tap now reveals the label; it wraps and is slid back inside the stage by place() */
@media (max-width: 600px) { .hero__viewer { aspect-ratio: 1 / 1; } .hs__label { font-size: var(--fs-2xs); width: max-content; max-width: 62vw; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .hs__dot::after { animation: none; } }

/* Model viewer (generic) */
.mv { position: relative; border: 1px solid var(--line); background: var(--bg-2); }
.mv .corner { position: absolute; width: 28px; height: 28px; border-color: var(--red); border-style: solid; border-width: 0; z-index: 1; }
.mv .corner--tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.mv .corner--br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }
.mv model-viewer { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: transparent; --poster-color: transparent; }
.mv__hint { position: absolute; left: .9rem; bottom: .7rem; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: .5rem; pointer-events: none; }
.mv__hint svg { width: 18px; height: 18px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--bg);
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); opacity: .55; }
@media (max-width: 899px) { .page-hero__media img { object-position: var(--hero-pos-m, var(--hero-pos, center)); } }
.page-hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgb(var(--ink-rgb) / .96) 20%, rgb(var(--ink-rgb) / .6) 70%, rgb(var(--ink-rgb) / .5)); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 1.5rem; max-width: 52ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); color: var(--fg-3); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }

/* ---------- Chapter headers (home) ---------- */
.chapter { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; }
.chapter__num {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: .9;
  color: var(--red-text); letter-spacing: var(--ls-tight);
}
.chapter__label {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lede);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--heading);
  display: inline-flex; align-items: center; gap: 1rem;
}
.chapter__label::after { content: ""; width: 3.5rem; height: 2px; background: var(--red); }
.dark .chapter__label { color: var(--fg); }

/* ---------- Section headers ---------- */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 1.5rem; }
/* deck: intro reads directly under the headline, marked with a red rule */
.section-head--split { gap: 1.25rem; }
.section-head--split .section-head__aside, .team-teaser .section-head__aside { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--red); max-width: 60ch; color: var(--fg-2); }
.team-teaser h2 + .section-head__aside { margin-top: 1.5rem; }
.dark .section-head--split .section-head__aside { color: var(--fg-2); }

/* ---------- Credentials band (brand navy) ---------- */
.cred {
  background: linear-gradient(180deg, var(--navy-2), var(--navy-deep));
  color: #fff; border-top: 3px solid var(--red);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
.cred__grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.cred__tile { position: relative; background: var(--navy-2); padding: 1.5rem 1.5rem 1.4rem; display: grid; gap: .2rem; align-content: start; border-left: 3px solid var(--red); }
.cred__tile > svg { width: 22px; height: 22px; color: var(--red-soft); margin-bottom: .55rem; }
.cred__tile strong { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1; color: #fff; letter-spacing: var(--ls-text); }
.cred__tile strong sup { font-size: .5em; color: var(--red-soft); vertical-align: top; position: relative; top: .1em; }
.cred__tile span { font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 600; margin-top: .35rem; }
.cred__tile small { font-size: var(--fs-sm); color: rgba(255,255,255,.65); }
.cred__tile--codes strong { font-size: var(--fs-h3-fluid); white-space: nowrap; padding-top: .45em; }
@media (min-width: 700px) { .cred__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cred__tile { padding: 1.75rem 2rem 1.6rem; } }

/* ---------- Logo strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof__inner { display: grid; gap: 1.5rem; align-items: center; padding-block: 1.75rem; }
.proof__label { font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.proof__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.proof__logo { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 56px; }
.proof__logo img { height: 34px; width: auto; }
.proof__logo span { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--heading); letter-spacing: var(--ls-text); }
.proof__badge { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: var(--fs-base-sm); min-height: 56px; }
.proof__badge svg { width: 20px; height: 20px; color: var(--red-text); }
@media (min-width: 900px) { .proof__inner { grid-template-columns: auto 1fr; gap: 3rem; } }

/* ---------- Services grid ---------- */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  position: relative; background: var(--bg); padding: 2rem 1.75rem 2.25rem;
  display: flex; flex-direction: column; gap: 1rem; min-height: 100%;
  transition: background var(--dur);
}
.service:hover { background: var(--bg-3); }
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.service:hover::after, .service:focus-within::after { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__icon { width: 44px; height: 44px; color: var(--red-text); }
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-size: var(--fs-h3-lg); }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service p { color: var(--fg-2); margin: 0; }
.service ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.service li { font-size: var(--fs-xs); padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-2); }
.service .link-arrow { margin-top: .5rem; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } .services--5 .service:nth-child(4), .services--5 .service:nth-child(5) { grid-column: span 1; } }

/* ---------- Service cards with photo headers (home) ---------- */
.svc-grid { display: grid; gap: 1.25rem; }
.svc {
  position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  overflow: hidden; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.svc:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lg); }
.svc__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); filter: saturate(.9); }
.svc:hover .svc__media img { transform: scale(var(--zoom)); }
.svc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--navy-rgb) / .55), rgb(var(--navy-rgb) / 0) 60%); }
.svc__num {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base-sm); letter-spacing: var(--ls-label);
  color: #fff; background: var(--red); padding: .25rem .5rem;
}
.svc__body { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.svc__body h3 { font-size: var(--fs-h3); }
.svc__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card is the link */
.svc__body h3 a:hover { color: var(--red-text); }
.svc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.svc:hover::after { transform: scaleX(1); }
.svc__body p { color: var(--fg-2); margin: 0; }
.svc__body ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem .9rem; margin-top: auto; padding-top: .35rem; border-top: 1px solid var(--line); }
.svc__body li { font-size: var(--fs-base-sm); color: var(--fg-2); display: flex; align-items: baseline; gap: .55rem; line-height: 1.35; padding-top: .35rem; }
.svc__body li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; position: relative; top: -1px; }
.svc .link-arrow { margin-top: .25rem; }
/* flagship service: full-width band (image beside the copy), then the other four in one symmetrical row */
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .svc--wide .svc__media { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .svc--wide .svc__media::after { background: linear-gradient(to right, rgb(var(--navy-rgb) / 0) 70%, rgb(var(--navy-rgb) / .35)); }
  .svc--wide .svc__body { padding: 2rem 2.25rem 2.25rem; justify-content: center; }
  .svc--wide .svc__body h3 { font-size: var(--fs-num); }
  .svc--wide .svc__body p { font-size: var(--fs-md); max-width: 46ch; }
  .svc--wide .svc__body ul { grid-template-columns: repeat(2, 1fr); margin-top: 1.25rem; }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc--wide { grid-template-columns: 1.1fr 1fr; }
  .svc:not(.svc--wide) .svc__body { padding: 1.25rem 1.25rem 1.4rem; }
  .svc:not(.svc--wide) .svc__body h3 { font-size: var(--fs-xl); }
  .svc:not(.svc--wide) .svc__body p { font-size: var(--fs-base-sm); }
  .svc:not(.svc--wide) .svc__body ul { grid-template-columns: 1fr; }
}

/* ---------- Split (image + text) ---------- */
/* ---------- Mapping packages ---------- */
.caps__title { font-family: var(--font-body); font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); margin: 0 0 .25rem; }
.pkgs { display: grid; gap: 1.25rem; margin-top: .5rem; }
.pkg { position: relative; background: var(--bg); border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.pkg:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.pkg h3 { font-size: var(--fs-xl); letter-spacing: var(--ls-text); }
.pkg__price { margin: .5rem 0 1rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num-lg); line-height: 1; color: var(--heading); }
.pkg ul { display: grid; gap: .35rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pkg li { display: flex; gap: .6rem; align-items: baseline; font-size: var(--fs-base-sm); color: var(--fg-2); }
.pkg li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; position: relative; top: -2px; }
.pkg--featured { border-color: var(--heading); box-shadow: inset 0 3px 0 var(--red); }
.pkg--featured::after { content: "Most popular"; position: absolute; top: 1.1rem; right: 1.25rem; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); font-weight: 600; }
.pkgs__notes { margin-top: 1.75rem; display: grid; gap: .5rem; max-width: 70ch; color: var(--fg-3); font-size: var(--fs-base-sm); }
.pkgs__notes p { margin: 0; }
@media (min-width: 700px) { .pkgs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
/* ---------- Services index: editorial rows ---------- */
.srows { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.srow { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.srow__media { position: relative; display: block; overflow: visible; }
.srow__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.srow__media:hover img { transform: translateY(var(--lift)); box-shadow: var(--shadow-xl); }
.srow__media .corner { position: absolute; width: 28px; height: 28px; border-color: var(--red); border-style: solid; border-width: 0; z-index: 1; }
.srow__media .corner--tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.srow__media .corner--br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }
.srow .chapter { margin-bottom: .75rem; }
.srow .chapter__num { font-size: var(--fs-h2); }
.srow .chapter__label { font-size: var(--fs-base-sm); letter-spacing: var(--ls-wide); }
.srow h2 { font-size: var(--fs-h2); }
.srow h2 a:hover { color: var(--red-text); }
.srow__text { margin-top: 1rem; color: var(--fg-2); font-size: var(--fs-md); max-width: 52ch; }
.srow__list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.srow__list li { font-size: var(--fs-base-sm); color: var(--fg-2); display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.srow__list li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }
@media (min-width: 900px) {
  .srow { grid-template-columns: 1fr 1fr; }
  .srow:nth-child(even) .srow__media { order: 2; }
}
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media { position: relative; margin: 0; }   /* no UA figure margin */
.split__frame { position: relative; }
.split__frame img { display: block; }   /* corner marks anchor to the image, not the caption below it */
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.split--start { align-items: start; }
/* how-it-works: full-width head, then step list beside a sticky portrait photo */
.howit { display: grid; gap: 2.5rem; align-items: start; }
.steps--flush { margin-top: 0; }
@media (min-width: 900px) { .howit { grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 5vw, 4.5rem); } .howit__media { position: sticky; top: 6rem; } }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media figcaption { margin-top: .75rem; font-size: var(--fs-sm); color: var(--fg-3); letter-spacing: var(--ls-ui); }
.split__media .corner, .split__frame .corner { position: absolute; width: 28px; height: 28px; border-color: var(--red); border-style: solid; border-width: 0; }
.split__media .corner--tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.split__media .corner--br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: 2; }
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem; row-gap: .25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3-lg); color: var(--red-text); line-height: 1; }
.step > * { grid-column: 2; }
.step h4 { font-family: var(--font-display); font-size: var(--fs-xl); margin-bottom: .25rem; }
.step p { margin: 0; color: var(--fg-2); font-size: var(--fs-base-sm); }

/* ---------- Process stage (three.js walkthrough) ---------- */
.section--process .section-head { margin-bottom: 2rem; }
.stage { position: relative; margin-top: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: grid; grid-template-columns: 1fr; }
.stage__viewport { position: relative; background: radial-gradient(60% 70% at 55% 45%, rgba(90,143,192,.10), transparent 70%), var(--bg); }
.stage__canvas { position: relative; z-index: 1; display: block; width: 100%; height: clamp(380px, 56vw, 720px); touch-action: pan-y; cursor: grab; }
.stage__canvas:active { cursor: grabbing; }
.stage__sheet { position: absolute; z-index: 0; left: 8%; right: 5%; top: 14%; bottom: 16%; border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px var(--line); background: rgb(var(--ink-rgb) / .9); opacity: 0; pointer-events: none; transition: opacity var(--dur); }
.stage__sheet span { position: absolute; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); color: var(--fg-3); font-weight: 600; }
.stage__sheet span:first-child { left: 14px; top: 12px; }
.stage__sheet span:last-child { right: 14px; bottom: 10px; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.stage__label { position: absolute; left: 0; top: 0; transform: translate(-9999px, -9999px); opacity: 0; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; color: var(--fg); background: rgb(var(--ink-rgb) / .9); border-left: 3px solid var(--red); padding: .25rem .5rem; margin: -.9rem 0 0 .6rem; transition: opacity var(--dur); }
.stage__label::before { content: ""; position: absolute; left: -9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--red); border-radius: 50%; }
.stage__load { position: absolute; z-index: 2; left: 0; top: 0; opacity: 0; pointer-events: none; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base-sm); color: var(--red-text); letter-spacing: var(--ls-ui); }
.stage__stamp { position: absolute; z-index: 2; right: 1.5rem; top: 1.25rem; width: 76px; height: 76px; border: 3px double var(--red-text); border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--red-text); opacity: 0; pointer-events: none; }
.stage__stamp strong { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1; }
.stage__stamp small { font-size: .55rem; letter-spacing: var(--ls-label); text-transform: uppercase; }
.stage__hint { position: absolute; z-index: 2; right: 1rem; bottom: .75rem; margin: 0; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); pointer-events: none; display: inline-flex; gap: .4rem; align-items: center; }
.stage__hint svg { width: 14px; height: 14px; }
.stage__panel { position: relative; padding: 1.35rem var(--gutter) 1.5rem; background: var(--bg-2); border-top: 1px solid var(--line); }
.stage__panel.is-in > * { animation: caption-in .45s var(--ease-out) both; }
.stage__num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: var(--ls-label); color: var(--red-text); }
.stage__panel h3 { font-size: var(--fs-h3-lg); margin: .1rem 0 .4rem; }
.stage__panel p { color: var(--fg-2); font-size: var(--fs-base-sm); margin-bottom: .75rem; }
.stage__timeline { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .75rem 1rem; align-items: center; padding: .75rem var(--gutter) .9rem; border-top: 1px solid var(--line); background: rgb(var(--ink-rgb) / .85); }
.stage__play { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; color: var(--fg); }
.stage__play svg { width: 16px; height: 16px; } .stage__play > svg:first-child { display: none; }
.stage__play .ic-pause { display: none; } .stage.is-playing .stage__play .ic-pause { display: block; } .stage.is-playing .stage__play .ic-play { display: none; }
.stage__steps { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.stage__steps::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .stage__steps { -webkit-mask-image: none; mask-image: none; } }
.stage__steps button { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: var(--radius); color: var(--fg-3); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: var(--ls-ui); white-space: nowrap; transition: color var(--dur-fast), opacity var(--dur); }
.stage__steps button span { font-size: var(--fs-xs); letter-spacing: var(--ls-label); color: var(--red-text); }
.stage__steps button:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.stage__steps button[aria-current="step"] { color: var(--fg); background: rgb(var(--red-rgb) / .28); box-shadow: inset 0 0 0 1px var(--red); }
.stage__steps button.is-dim { opacity: .35; }
.stage__scrub-wrap { grid-column: 1 / -1; position: relative; display: block; height: 18px; cursor: pointer; }
.stage__scrub { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stage__progress { position: absolute; left: 0; right: 0; top: 7px; height: 4px; background: var(--line); pointer-events: none; }
.stage__progress span { display: block; height: 100%; width: 0; background: var(--red); }
.stage__scrub:focus-visible + .stage__progress { outline: 2px solid var(--red-text); outline-offset: 4px; }
.stage__fallback { display: none; padding: 1rem var(--gutter); color: var(--fg-2); grid-column: 1 / -1; }
.stage.is-fallback .stage__viewport, .stage.is-fallback .stage__timeline { display: none; }
.stage.is-fallback .stage__fallback { display: block; }
@media (min-width: 900px) {
  /* full-bleed, full-height stage: text card and timeline float over the model */
  .scrolly { width: 100vw; margin-left: calc(50% - 50vw); }
  .stage { grid-template-columns: 1fr; margin-top: 1rem; }
  .stage__viewport { grid-row: 1; grid-column: 1; }
  .stage__canvas { height: calc(100vh - 76px); max-height: none; }
  .stage__timeline { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; border-top: 0; background: linear-gradient(to top, rgb(var(--ink-rgb) / .95), rgb(var(--ink-rgb) / .6) 70%, rgb(var(--ink-rgb) / 0)); padding: 1.25rem max(var(--gutter), calc(50vw - 600px)) 1rem; }
  .stage__hint { bottom: 6.2rem; right: max(1rem, calc(50vw - 600px)); }
  .stage__stamp { right: max(1.5rem, calc(50vw - 600px)); }
}
/* scroll-driven pinning */
.scrolly { position: relative; }
.scrolly.is-pinned { height: var(--scrolly-len, 900vh); }
.scrolly.is-pinned .scrolly__pin { position: sticky; top: 76px; }
.scrolly.is-pinned .stage { margin-top: 0; border-top: 0; }
.stage__scrollhint { display: none; margin: 0; align-items: center; gap: .4rem; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.stage__scrollhint svg { width: 14px; height: 14px; }
.scrolly.is-pinned .stage__scrollhint { display: inline-flex; }
.stage.is-scrollmode .stage__play { display: none; }   /* scroll drives the timeline here, so play/pause would do nothing */
.scrolly.is-pinned .stage__timeline { grid-template-columns: auto 1fr auto; }
/* step overlays: headline top-left, details strip above the timeline */
.stage__cap { position: relative; z-index: 4; padding: 1.25rem var(--gutter) .25rem; max-width: 34rem; }
.stage__cap .stage__num { display: block; margin-bottom: .2rem; }
.stage__cap h3 { font-size: var(--fs-h2-sm); margin: 0 0 .4rem; text-shadow: 0 2px 18px rgb(var(--ink-rgb) / .9); }
.stage__cap p { margin: 0; color: var(--fg-2); font-size: var(--fs-md); max-width: 30rem; text-shadow: 0 2px 14px rgb(var(--ink-rgb) / .9); }
.stage__deliv { position: relative; z-index: 4; display: grid; gap: 1rem 1.5rem; padding: 1rem var(--gutter) 1.25rem; border-left: 3px solid var(--red); margin: .75rem var(--gutter) 1rem; background: rgb(var(--ink-rgb) / .7); }
.stage__deliv h5 { margin: 0 0 .45rem; font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); }
.stage__deliv li { font-size: 1rem; color: var(--fg); padding: .12rem 0; display: flex; gap: .6rem; align-items: baseline; line-height: 1.4; }
.stage__deliv li::before { content: ""; width: 5px; height: 5px; background: var(--red); flex: none; position: relative; top: -2px; }
.stage__sample { display: inline-flex; align-items: center; gap: .7rem; align-self: center; padding: .6rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--fg); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base-sm); letter-spacing: var(--ls-ui); text-transform: uppercase; white-space: nowrap; transition: border-color var(--dur-fast), background var(--dur-fast); }
.stage__sample:hover { border-color: var(--red); background: rgb(var(--red-rgb) / .2); }
.stage__sample img { width: 72px; height: 48px; object-fit: cover; border: 1px solid var(--line-strong); }
.stage__sample svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .stage__deliv { grid-template-columns: 1fr 1fr auto; align-items: start; gap: 1rem 2.5rem; } }
@media (min-width: 900px) {
  .stage__cap { position: absolute; left: max(var(--gutter), calc(50vw - 600px)); top: clamp(7rem, 22vh, 13rem); max-width: 30rem; padding: 0; pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .stage.is-show-cap .stage__cap { opacity: 1; transform: none; }
  .stage__deliv { position: absolute; left: max(var(--gutter), calc(50vw - 600px)); right: max(var(--gutter), calc(50vw - 600px)); bottom: 6.6rem; margin: 0; max-width: none; padding: 1.1rem 1.4rem 1.2rem; background: rgb(var(--ink-rgb) / .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); pointer-events: none; }
  .stage.is-show-deliv .stage__deliv { opacity: 1; transform: none; pointer-events: auto; }
}
/* deliverable preview card */
.step__art { position: relative; display: block; width: 100%; padding: 0; margin-top: 1rem; cursor: pointer; text-align: left; border: 1px solid var(--line-strong); background: #000; overflow: hidden; }
.step__art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .85; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur); }
.step__art:hover img { transform: scale(var(--zoom)); opacity: 1; }
.step__art span { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: var(--ls-ui); text-transform: uppercase; }
.step__art span svg { width: 14px; height: 14px; }
.step__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--ink-rgb) / .7), transparent 55%); pointer-events: none; }
.step__art-label { display: block; margin-top: .4rem; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); }
.step__cols { display: grid; gap: .75rem 1rem; }
.step__cols h5 { margin: .4rem 0 .35rem; font-family: var(--font-body); font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); }
.step__cols li { font-size: var(--fs-sm); color: var(--fg-2); padding: .12rem 0; display: flex; gap: .55rem; align-items: baseline; line-height: 1.4; }
.step__cols li::before { content: ""; width: 5px; height: 5px; background: var(--red); flex: none; position: relative; top: -2px; }
@media (min-width: 480px) { .step__cols { grid-template-columns: 1fr 1fr; } }

/* Process graphic: the steps drawn as numbered markers on a rail, so a section can carry its own
   sequence without a photograph propped beside it. Stacks vertically, runs across from 900px. */
.flow { --mark: 46px; display: grid; gap: 1.9rem; counter-reset: flow; margin-top: 2.25rem; }
.flow__step { counter-increment: flow; position: relative; display: grid; grid-template-columns: var(--mark) 1fr; column-gap: 1.1rem; }
.flow__step > * { grid-column: 2; }
.flow__step::before {
  content: counter(flow, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  width: var(--mark); height: var(--mark); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); line-height: 1; letter-spacing: var(--ls-ui);
}
.flow__step::after { content: ""; position: absolute; left: calc(var(--mark) / 2 - 1px); top: var(--mark); bottom: -1.9rem; width: 2px; background: var(--line-strong); }
.flow__step:last-child::after { display: none; }
.flow__step h4 { font-family: var(--font-display); font-size: var(--fs-xl); margin: .2rem 0 .3rem; }
.flow__step p { margin: 0; color: var(--fg-2); font-size: var(--fs-base-sm); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 0 1.5rem; }
  .flow__step { grid-template-columns: 1fr; }
  .flow__step > *, .flow__step::before { grid-column: 1; }
  .flow__step::before { grid-row: auto; margin-bottom: 1.15rem; }
  .flow__step::after { left: var(--mark); right: -1.5rem; top: calc(var(--mark) / 2 - 1px); bottom: auto; width: auto; height: 2px; }
}

.entry { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 0; }
.entry__label { font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-right: .25rem; }
.entry button { padding: .5rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-base-sm); font-weight: 500; color: var(--fg-2); background: transparent; transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.entry button:hover { color: var(--fg); border-color: var(--fg-3); }
.entry button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.entry__note { flex-basis: 100%; margin: .35rem 0 0; font-size: var(--fs-base-sm); color: var(--fg-2); min-height: 1.4em; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); }
.lightbox::backdrop { background: rgb(var(--ink-rgb) / .88); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border: 1px solid var(--line-strong); background: #000; }
.lightbox p { margin: .6rem 0 0; color: var(--bg-4); font-size: var(--fs-base-sm); text-align: center; }
.lightbox__close { position: absolute; top: -2.75rem; right: 0; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Capabilities list band ---------- */
.caps { display: grid; gap: 2.5rem; }
.caps__col h3 { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.caps__col h3 svg { width: 28px; height: 28px; color: var(--red-text); }
.caps__list { display: grid; gap: 0; }
.caps__list li { padding: .75rem 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; color: var(--fg-2); }
.caps__list li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }
@media (min-width: 800px) { .caps { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Feature list (icon + text) ---------- */
.features { display: grid; gap: 1.5rem; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.feature__icon { width: 48px; height: 48px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--red-text); border-radius: var(--radius); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h4 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--fg-2); font-size: var(--fs-base-sm); }
@media (min-width: 800px) { .features--2 { grid-template-columns: 1fr 1fr; gap: 2rem; } .features--3 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1000px) { .features--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg-2); padding: 1.75rem 1.5rem; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1; }
.stat strong sup { font-size: .5em; color: var(--red-text); vertical-align: top; top: .15em; position: relative; }
.stat span { display: block; margin-top: .5rem; color: var(--fg-3); font-size: var(--fs-sm); letter-spacing: var(--ls-ui); text-transform: uppercase; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Team ---------- */
.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.person { display: grid; gap: .75rem; align-content: start; }
.person__photo { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9); transition: transform var(--dur-slow) var(--ease-out); }
.person:hover .person__photo img { transform: scale(var(--zoom)); }
.person h3 { font-size: var(--fs-h3); }
.person__role { color: var(--red-text); font-weight: 600; font-size: var(--fs-sm); letter-spacing: var(--ls-ui); text-transform: uppercase; }
.person__cred { color: var(--fg-3); font-size: var(--fs-xs); }
.person p { color: var(--fg-2); font-size: var(--fs-base-sm); margin: .25rem 0 0; }
@media (min-width: 800px) { .team { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 1000px) { .team--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .team--4 { grid-template-columns: repeat(4, 1fr); } }

.team-teaser { display: grid; gap: 2rem; align-items: center; }
.team-teaser__faces { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 .25rem; }
.team-teaser__faces img { width: 88px; max-width: none; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg-2); box-shadow: var(--shadow-md); justify-self: center; position: relative; }
.team-teaser__faces img:first-child { justify-self: start; }
.team-teaser__faces img:last-child { justify-self: end; }
.team-teaser__faces img:hover { z-index: 1; transform: translateY(var(--lift)); transition: transform var(--dur-fast); }
@media (min-width: 900px) { .team-teaser { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .8rem .6rem; font-size: var(--fs-sm); background: linear-gradient(to top, rgb(var(--ink-rgb) / .92), rgb(var(--ink-rgb) / 0)); color: #fff; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery--3 { grid-template-columns: repeat(3, 1fr); } }

.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { transition: transform var(--dur-slow) var(--ease-out); }
.gallery figure:hover img { transform: scale(var(--zoom)); }
.gallery figcaption { pointer-events: none; }
/* two-up photo pair: tall field photo beside a wide office photo */
.photo-pair { display: grid; gap: 1rem; }
.photo-pair figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pair figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; font-size: var(--fs-sm); background: linear-gradient(to top, rgb(var(--ink-rgb) / .95), rgb(var(--ink-rgb) / 0)); color: var(--bg-4); }
@media (min-width: 800px) { .photo-pair { grid-template-columns: 2fr 3fr; } .photo-pair figure { aspect-ratio: 3 / 2; } .photo-pair__tall { aspect-ratio: auto; } }
/* ---------- About: values + promise ---------- */
.values { display: grid; gap: 1.25rem; }
.value { position: relative; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.75rem 1.6rem 1.9rem; transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.value:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lg); }
.value__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num-lg); line-height: 1; color: var(--red-text); letter-spacing: var(--ls-tight); margin-bottom: .6rem; }
.value h3 { font-size: var(--fs-num); letter-spacing: var(--ls-text); }
.value__tag { margin: .6rem 0 .9rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.25; color: var(--heading); }
.value p:last-child { margin: 0; color: var(--fg-2); font-size: var(--fs-base-sm); line-height: 1.55; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.promise { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 10vw, 8rem); }
.promise__bg { position: absolute; inset: 0; z-index: -1; }
.promise__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: .62; }
.promise__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(var(--ink-rgb) / .9) 0%, rgb(var(--ink-rgb) / .62) 45%, rgb(var(--ink-rgb) / .42) 100%), linear-gradient(to top, rgb(var(--ink-rgb) / .6), rgb(var(--ink-rgb) / 0) 40%); }
.promise__inner { display: grid; gap: 2rem; align-items: center; position: relative; }
.promise__title { font-size: var(--fs-h1); color: #fff; }
.promise .lede { color: var(--fg-2); }
.promise__list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.promise__list li { display: flex; align-items: center; gap: .9rem; font-size: var(--fs-md); color: var(--fg); }
.promise__list svg { width: 22px; height: 22px; color: var(--red-bright); flex: none; }
@media (min-width: 900px) { .promise__inner { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }
/* ---------- About: founder quote card ---------- */
.quote-card { position: relative; align-self: center; padding: 2.75rem 2.5rem 2.25rem; background: linear-gradient(135deg, var(--navy-2), var(--heading)); color: #fff; box-shadow: inset 0 3px 0 var(--red), var(--shadow-xl); }
.quote-card__mark { position: absolute; top: .6rem; left: 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 7rem; line-height: 1; color: rgba(255,255,255,.1); }
.quote-card__text { position: relative; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2-sm); line-height: 1.2; text-wrap: balance; }
.quote-card__by { margin: 1.5rem 0 0; display: grid; gap: .1rem; font-size: var(--fs-base-sm); color: var(--line-strong); }
.quote-card__by strong { color: #fff; font-weight: 600; }
.quote-card__motto { margin: 1.75rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--red-tint); }
/* ---------- About: at-a-glance facts ---------- */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-body); font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); padding-top: .2rem; }
.facts dd { margin: 0; color: var(--fg-2); font-size: var(--fs-base-sm); line-height: 1.5; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: .2rem; } }
/* ---------- About: mission & vision ---------- */
.mission { display: grid; gap: 1.25rem; }
.mission__panel { padding: 2.25rem 2rem 2.4rem; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.mission__panel .eyebrow { margin-bottom: 1rem; }
.mission__text { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3-fluid); line-height: 1.25; letter-spacing: var(--ls-tight); color: var(--heading); text-wrap: balance; }
.mission__panel--mission { background: linear-gradient(135deg, var(--navy-2), var(--heading)); border-color: transparent; color: #fff; box-shadow: inset 0 3px 0 var(--red); }
.mission__panel--mission .eyebrow { color: var(--red-tint); }
.mission__panel--mission .mission__text { color: #fff; }
.mission__verse { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-style: italic; font-size: var(--fs-base-sm); line-height: 1.5; color: var(--line-strong); }
.mission__verse span { font-style: normal; color: var(--red-tint); white-space: nowrap; }
.mission__note { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-base-sm); line-height: 1.5; color: var(--fg-2); }
.mission__note svg { width: 20px; height: 20px; color: var(--red-text); flex: none; margin-top: .15rem; }
@media (min-width: 800px) { .mission { grid-template-columns: 1fr 1fr; } }
/* ---------- About: licensure map ---------- */
.licmap { display: grid; gap: 2.5rem; align-items: center; }
.licmap__map { margin: 0; }
.licmap__svg { width: 100%; height: auto; display: block; }
.licmap__state { fill: var(--line); stroke: #fff; stroke-width: 1; transition: fill var(--dur-fast); }
.licmap__state.is-lic { fill: var(--navy-2); }
.licmap__office circle:first-child { fill: rgb(var(--red-rgb) / .18); }
.licmap__office circle:last-child { fill: var(--red); stroke: #fff; stroke-width: 2; }
.licmap__pin path { fill: var(--red); stroke: #fff; stroke-width: 2; }
.licmap__pin circle { fill: #fff; }
.licmap__pin text { font-family: var(--font-display); font-weight: 600; font-size: 20px; fill: var(--heading); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.licmap__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem; font-size: var(--fs-sm); color: var(--fg-3); }
.licmap__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.licmap__key { width: 14px; height: 14px; border-radius: var(--radius); background: var(--navy-2); display: inline-block; }
.licmap__key--office { border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgb(var(--red-rgb) / .18); }
.licmap__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.25rem; margin: 1.5rem 0 1rem; }
.licmap__list li { display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--heading); }
.licmap__abbr { display: inline-grid; place-items: center; width: 2.6rem; height: 2rem; background: var(--navy-2); color: #fff; font-size: var(--fs-base-sm); letter-spacing: var(--ls-ui); border-radius: var(--radius); box-shadow: inset 0 -2px 0 var(--red); }
.licmap__standards { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.licmap__standards { display: grid; gap: 1.25rem; }
.licmap__row .eyebrow { margin-bottom: .6rem; }
@media (min-width: 900px) { .licmap { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; } }
/* ---------- Engineering: discipline layout (head above, media + compact lists) ---------- */
.disc { display: grid; gap: 2rem; align-items: start; }
.disc__aside { padding: 2rem 2.1rem 2.2rem; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.section--alt .disc__aside { background: var(--bg); }
.disc__aside .eyebrow { margin-bottom: 1rem; font-size: var(--fs-xs); }
.disc__aside .eyebrow.mt-3 { margin-top: 2rem; }
.disc__list { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.6rem; }
.disc__list li { display: flex; align-items: baseline; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); line-height: 1.4; color: var(--fg-2); }
.disc__list li::before { content: ""; width: 7px; height: 7px; background: var(--red); flex: none; position: relative; top: -1px; }
@media (min-width: 900px) { .disc { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; } }
@media (max-width: 560px) { .disc__list { grid-template-columns: 1fr; } }
/* ---------- Engineering: per-discipline galleries ---------- */
.disc-gallery { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.disc-gallery .eyebrow { margin-bottom: 1rem; }
/* ---------- Engineering: tools & proof blocks ---------- */
.toolgrid { display: grid; gap: 1rem; }
.tool { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.25rem 1.25rem 1.35rem; }
.dark .tool, .dark .cfd__stats div { background: var(--bg-2); }
.tool__use { display: block; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); margin-bottom: .4rem; }
.tool h3 { font-size: var(--fs-xl); letter-spacing: var(--ls-text); }
.tool p { margin: .5rem 0 0; color: var(--fg-2); font-size: var(--fs-base-sm); line-height: 1.5; }
.toolgrid__codes { margin: 1.25rem 0 0; color: var(--fg-3); font-size: var(--fs-base-sm); }
.toolgrid__codes strong { color: var(--heading); font-weight: 600; }
@media (min-width: 640px) { .toolgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .toolgrid { grid-template-columns: repeat(3, 1fr); } }
.proof-block { display: grid; gap: 2rem; align-items: start; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.proof-block__text h3 { font-size: var(--fs-h2-sm); margin: .4rem 0 .9rem; }
.proof-block__text > p { color: var(--fg-2); line-height: 1.6; }
.disc__list--1 { grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 900px) {
  .proof-block { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .proof-block--rev .proof-block__media { order: 2; }
}
/* model / FEA wipe slider: two synced viewers, the FEA-textured one clipped by --wipe */
.mvfea { --wipe: 0%; }
.mvfea__fea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
.mvfea__divider { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; margin-left: -1px; background: var(--red); z-index: 3; opacity: 0; pointer-events: none; transition: opacity var(--dur); }
.mvfea.is-wiping .mvfea__divider { opacity: 1; }
.mvfea__ctl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; margin-top: .9rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); }
.mvfea__ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: ew-resize; }
.mvfea__ctl input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--heading), var(--red)); border-radius: var(--radius); }
.mvfea__ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: var(--shadow-sm); }
.mvfea__ctl input[type=range]::-moz-range-track { height: 4px; background: linear-gradient(90deg, var(--heading), var(--red)); border-radius: var(--radius); }
.mvfea__ctl input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: var(--shadow-sm); }
.mvfea__legend { position: absolute; z-index: 3; right: .9rem; bottom: .7rem; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); opacity: 0; transition: opacity var(--dur); pointer-events: none; }
.mvfea.is-on .mvfea__legend { opacity: 1; }
/* CFD */
.cfd { margin: 0; border: 1px solid var(--line); background: var(--ink); }
.cfd__video { display: block; width: 100%; aspect-ratio: 1106 / 550; object-fit: cover; }
.cfd figcaption { padding: .6rem .8rem; font-size: var(--fs-xs); color: var(--fg-3); background: var(--bg); border-top: 1px solid var(--line); }
.cfd__stats { display: grid; gap: .75rem; margin: 1.25rem 0 1rem; }
.cfd__stats div { padding: .9rem 1rem; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.cfd__stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; color: var(--heading); }
.cfd__stats span { display: block; margin-top: .3rem; font-size: var(--fs-xs); color: var(--fg-3); letter-spacing: var(--ls-text); }
@media (min-width: 640px) { .cfd__stats { grid-template-columns: repeat(3, 1fr); } }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--2 img { aspect-ratio: 2 / 1; }
@media (min-width: 1000px) { .gallery--5 { grid-template-columns: repeat(5, 1fr); } .gallery--5 figcaption { font-size: var(--fs-xs); } }
/* ---------- Mobile (phones) ---------- */
@media (max-width: 600px) {
  :root { --fs-display: 2.5rem; --fs-h1: 2.25rem; --fs-h2: 2rem; --fs-h2-sm: 1.6rem; --fs-lede: 1.05rem; }
  .hero__copy { text-align: center; }
  .hero__copy h1, .hero__copy .lede { margin-inline: auto; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .form .btn--lg { width: 100%; justify-content: center; }
  .gallery figcaption { font-size: var(--fs-2xs); padding: .9rem .5rem .4rem; letter-spacing: 0; }
  .mvfea__legend { bottom: auto; top: .7rem; right: .9rem; }   /* keep clear of the drag hint at the bottom */
  .cta-band .btn { width: 100%; justify-content: center; }
  .disc__aside { padding: 1.4rem 1.25rem 1.5rem; }
  .tool { padding: 1.1rem 1.1rem 1.2rem; }
  .est__actions, .est__foot > div:first-child { width: 100%; }
  .est__actions .btn { flex: 1; justify-content: center; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__box { padding: 1.5rem 1.1rem 1.25rem; }
    /* drawings table -> stacked cards */
  .tablewrap { overflow: visible; }
  .ptable thead { display: none; }
  .ptable tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .ptable tbody td { display: block; padding: 0; border: 0; }
  .ptable tbody td:nth-child(1) { grid-row: 1; grid-column: 1; }
  .ptable tbody td:nth-child(3) { grid-row: 1; grid-column: 2; text-align: right; color: var(--fg-2); }
  .ptable tbody td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .ptable tbody td:nth-child(4) { grid-row: 3; grid-column: 1; color: var(--fg-2); }
  .ptable tbody td:nth-child(5) { grid-row: 3; grid-column: 2; text-align: right; }
  .ptable tbody td:nth-child(6) { grid-row: 4; grid-column: 1 / -1; margin-top: .5rem; text-align: left; white-space: normal; display: flex; gap: .5rem; }
  .ptable tbody td:nth-child(6) .btn { flex: 1; justify-content: center; }
  .ptable tbody td.nowrap.muted { display: block; }
}
@media (min-width: 480px) and (max-width: 699px) { .cards--4, .cards--5 { grid-template-columns: repeat(2, 1fr); } }
/* ---------- Client portal ---------- */
.page-hero--portal { padding-block: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-hero--portal h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); max-width: none; }
.page-hero--portal .lede { margin-top: .75rem; font-size: var(--fs-base); }
.page-hero--portal .breadcrumb { margin-bottom: 1.25rem; }
.section--portal { padding-block: 1.5rem var(--section); }
.portal { min-height: 40vh; }
.portal__loading, .portal__alert { color: var(--fg-2); }
.portal__alert { padding: .9rem 1.1rem; background: var(--red-tint-bg, rgb(var(--red-rgb) / .08)); border-left: 3px solid var(--red); margin-bottom: 1.5rem; }
.portal__login { max-width: 34rem; }
.portal__login h2 { font-size: var(--fs-h2-sm); margin: .3rem 0 .8rem; }
.portal__login .form { margin-top: 1.5rem; max-width: 26rem; }
.portal__staff-link { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tab__n { display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-left: .35rem; border-radius: 1em; background: var(--bg-3); font-size: var(--fs-xs); text-align: center; vertical-align: middle; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: collapse; font-size: var(--fs-base-sm); }
.ptable th { text-align: left; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); padding: .5rem .75rem; border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
.ptable td { padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tr.is-old td { color: var(--fg-3); }
.ptable .nowrap { white-space: nowrap; text-align: right; }
.tag { display: inline-block; padding: .15rem .55rem; border-radius: var(--radius); font-size: var(--fs-2xs); letter-spacing: var(--ls-ui); text-transform: uppercase; font-weight: 600; }
.tag--ok { background: rgb(var(--green-rgb) / .12); color: var(--green); }
.tag--old { background: var(--bg-3); color: var(--fg-3); }
.tag--off { background: rgb(var(--red-rgb) / .1); color: var(--red-text); }
.btn--sm { padding: .45rem .8rem; font-size: var(--fs-xs); }
.tx { padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: var(--bg); margin-bottom: 1rem; }
.tx__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.tx__no { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--heading); margin-right: .75rem; }
.tx__purpose { font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); font-weight: 600; }
.tx__files { margin: .6rem 0 .9rem; color: var(--fg-2); font-size: var(--fs-base-sm); display: grid; gap: .15rem; }
.tx__files li::before { content: "▪"; margin-right: .5rem; color: var(--fg-3); }
.tx__foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.tx__ack { text-align: right; }
.pv { position: fixed; inset: 0; z-index: 220;   /* above the modal: the estimate review opens the PDF from inside it */ display: flex; flex-direction: column; background: rgb(var(--ink-rgb)); }
.pv[hidden] { display: none; }
.pv__bar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; color: #fff; }
.pv__name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pv__frame { flex: 1; width: 100%; border: 0; background: #fff; }
.tag--wait { background: rgb(var(--red-rgb) / .1); color: var(--red-text); }
.portal__alert--ok { background: rgb(var(--green-rgb) / .1); border-left-color: var(--green); color: var(--fg); }
/* estimates */
.est-panel { margin-bottom: 2.25rem; }
.est-panel__head .eyebrow { margin-bottom: .75rem; }
.est { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--bg); margin-bottom: 1rem; }
.est--done { border-left-color: var(--green); }
.est--expired, .est--old { border-left-color: var(--line-strong); background: var(--bg-2); color: var(--fg-2); }
.est--expired .est__no, .est--old .est__no { color: var(--fg-2); }
.est__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.est__no { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--heading); margin-right: .5rem; }
.est__rev { font-weight: 600; color: var(--fg-2); margin-right: .6rem; }
.est__file { margin: .2rem 0 .8rem; }
.est__note { margin: 0 0 .9rem; font-size: var(--fs-base-sm); color: var(--fg-2); }
.est__note--warn { color: var(--red-text); font-weight: 600; }
.est__quote { margin: -.4rem 0 1rem; padding: .5rem .9rem; border-left: 3px solid var(--line-strong); font-size: var(--fs-base-sm); color: var(--fg-2); white-space: pre-wrap; }
.est__foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.est__actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: var(--fs-2xs); letter-spacing: var(--ls-ui); text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.pill--ok { background: rgb(var(--green-rgb) / .12); color: var(--green); }
.pill--wait { background: rgb(var(--red-rgb) / .1); color: var(--red-text); }
.pill--old { background: var(--bg-3); color: var(--fg-3); }
.pcard__todo { color: var(--red-text); font-weight: 600; }
.pmcard__name { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--heading); }
/* needs your attention */
.attn { margin-bottom: 2.25rem; padding: 1.25rem 1.4rem 1.3rem; border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--bg); }
.attn__title { margin: 0 0 .75rem; font-size: var(--fs-h3); display: flex; align-items: center; gap: .5rem; }
.attn__list { display: grid; gap: .4rem; margin: 0; }
.attn__item { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; background: var(--bg-2); color: var(--heading); font-weight: 500; transition: background var(--dur) var(--ease-out); }
.attn__item:hover { background: var(--bg-3); }
.attn__item svg { flex: none; margin-left: auto; color: var(--red-text); }
.attn__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.attn__dot--transmittal { background: var(--navy, var(--heading)); }
.attn__text { min-width: 0; }
.attn__proj { display: block; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.attn__ok { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--fg-2); }
.attn__ok svg { color: var(--green); flex: none; }
.attn--info { border-left-color: var(--line-strong); background: var(--bg-2); }
.attn--info .attn__ok svg { color: var(--fg-3); }
/* admin */
.admin__crumbs { margin: 0 0 1.25rem; font-size: var(--fs-base-sm); color: var(--fg-2); }
.admin__crumbs a { font-weight: 600; color: var(--heading); }
.admin__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
@media (min-width: 700px) { .admin__stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1rem 1.2rem; background: var(--bg-2); border-left: 3px solid var(--heading); display: grid; gap: .1rem; }
.stat strong { font-family: var(--font-display); font-size: var(--fs-h2-sm); color: var(--heading); line-height: 1.1; }
.stat span { font-size: var(--fs-sm); color: var(--fg-2); }
.stat--red { border-left-color: var(--red); } .stat--red strong { color: var(--red-text); }
.atable tr.is-link { cursor: pointer; } .atable tr.is-link:hover td { background: var(--bg-2); }
.tab__n--red { background: var(--red); color: #fff; }
.btn--ghost { color: var(--fg-3); }
/* portal sign-in hero */
.login { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.login__media { position: absolute; inset: 0; } .login__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.login__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgb(var(--ink-rgb) / .94) 0%, rgb(var(--ink-rgb) / .82) 45%, rgb(var(--ink-rgb) / .6) 100%); }
.login__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .login__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.login__intro h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin: .3rem 0 1rem; max-width: 14ch; }
.login__intro .lede { max-width: 46ch; }
.login__points { margin: 1.75rem 0 0; display: grid; gap: .7rem; max-width: 46ch; }
.login__points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--fg-2); font-size: var(--fs-base-sm); }
.dark .login__points li { color: rgb(255 255 255 / .82); }
.login__points svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--red-text); }
.login__points strong { color: #fff; }
.login__card { --bg: #ffffff; --bg-2: #f3f5f8; --bg-3: #e8ecf1; --line: #dfe4ea; --line-strong: #c3cbd5; --fg: #101a2a; --heading: #14283f; --fg-2: #46546a; --fg-3: #6b7a8f; --red-text: #a50000;
  background: var(--bg); color: var(--fg); color-scheme: light; padding: 2rem 2rem 1.75rem; border-top: 4px solid var(--red); box-shadow: var(--shadow-lg); }
.login__card h2 { font-size: var(--fs-h2-sm); margin: .3rem 0 .6rem; }
.login__card .form { margin-top: 1.25rem; }
.login__card .btn--lg { width: 100%; justify-content: center; }
.login__alt { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.login__alt .btn { gap: .45rem; }
.btn--outline { background: none; border: 1px solid var(--line-strong); color: var(--fg-2); }
.btn--outline:hover { border-color: var(--heading); color: var(--heading); }
@media (max-width: 600px) { .login__card { padding: 1.5rem 1.1rem 1.25rem; } }
/* record page + my-work rows */
.attn__due { flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.attn__due.is-overdue { color: var(--red-text); }
.attn__act { color: var(--fg-3); font-weight: 500; }
.rec-link { color: inherit; text-decoration: none; } .rec-link:hover { color: var(--red-text); text-decoration: underline; }
.rec { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .rec { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; } }
.rec__side { display: grid; gap: 1rem; }
.rec__meta { margin: 0; display: grid; gap: .55rem; }
.rec__meta div { display: grid; gap: .1rem; }
.rec__meta dt { font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.rec__meta dd { margin: 0; font-size: var(--fs-base-sm); }
.hist { margin: 0; padding-left: 1.3rem; position: relative; display: grid; gap: .55rem; }
.hist::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.hist__item { position: relative; display: flex; gap: .8rem; align-items: baseline; font-size: var(--fs-base-sm); }
.hist__dot { position: absolute; left: -1.3rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line-strong); }
.hist__item--done .hist__dot { border-color: var(--green); background: var(--green); }
.hist__item--create .hist__dot { border-color: var(--heading); }
.hist__item--view .hist__dot { border-color: var(--c-est); }
.hist__at { flex: none; width: 6.5rem; color: var(--fg-3); font-size: var(--fs-sm); }
.hist__text { color: var(--fg); }
/* list filters */
.psec__tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { padding: .3rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--fg-2); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.chip:hover { color: var(--heading); border-color: var(--heading); }
.chip.is-on { background: var(--heading); color: #fff; border-color: var(--heading); }
.chip:disabled { opacity: .45; cursor: default; }
.chip__n { opacity: .75; font-weight: 500; }
/* RFIs */
.rfi { padding: 1.1rem 1.25rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--bg); margin-bottom: 1rem; }
.rfi--todo { border-left-color: var(--red); }
.rfi--done { opacity: .75; }
.rfi__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.rfi__no { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--heading); margin-right: .6rem; }
.rfi__dir { font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-right: .5rem; }
.rfi__subject { margin: .4rem 0 .1rem; font-size: var(--fs-h3); }
.rfi__meta { margin: 0 0 .7rem; }
.rfi__q { color: var(--fg); font-size: var(--fs-base-sm); line-height: 1.55; }
.rfi__sugg { margin: .6rem 0 0; font-size: var(--fs-base-sm); color: var(--fg-2); }
.rfi__files { margin: .7rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.rfi__links { margin: 0 0 .6rem; display: flex; gap: .4rem; flex-wrap: wrap; } .rfi__links .kind { margin: 0; text-decoration: none; } .rfi__links .kind:hover { text-decoration: underline; }
.ptable .rec-link strong { color: var(--heading); }
.rfi__a { margin-top: .9rem; padding: .8rem 1rem .6rem; background: var(--bg-2); border-left: 3px solid var(--green); }
.rfi__a .eyebrow { margin-bottom: .3rem; }
.rfi__a > div { font-size: var(--fs-base-sm); line-height: 1.55; }
.rfi__actions { margin-top: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.attn__dot--rfi { background: var(--heading); }
.attn--gip { border-left-color: var(--heading); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field--row { grid-template-columns: 1fr; } }
/* document-type identity: one color + icon per kind; red is reserved for "waiting on you" */
:root { --c-est: #b7791f; --c-dwg: #204870; --c-tx: #1a7f8e; --c-rfi: #6b4fbb; }
.kind { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem .15rem .35rem; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: var(--ls-ui); text-transform: uppercase; color: var(--kind, var(--fg-2)); background: color-mix(in srgb, var(--kind, var(--fg-2)) 10%, transparent); margin-right: .5rem; vertical-align: middle; }
.kind svg { width: 14px; height: 14px; flex: none; }
.kind--est { --kind: var(--c-est); } .kind--dwg { --kind: var(--c-dwg); } .kind--tx { --kind: var(--c-tx); } .kind--rfi { --kind: var(--c-rfi); }
.est, .tx, .rfi { border-left: 4px solid var(--kind, var(--line-strong)); }
.est--done, .est--expired, .est--old, .rfi--done { border-left-color: var(--line-strong); }
.is-action { box-shadow: inset 0 3px 0 var(--red); }
.is-action .kind { background: color-mix(in srgb, var(--kind) 14%, transparent); }
.court { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.court--you { color: var(--red-text); } .court--you::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.court--them { color: var(--fg-3); } .court--them::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--line-strong); }
.court--done { color: var(--green); } .court--done svg { width: 15px; height: 15px; }
.court__d { font-weight: 500; color: var(--fg-3); }
.attn__item .kind { flex: none; margin: 0; }
/* admin app shell */
.section--admin { padding-block: 1.5rem 3rem; }
.container--wide { --container: 88rem; }
.admin { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .admin { grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; } .admin__side { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow: auto; } }
.admin__side { padding: 1rem 0 1rem; border-right: 1px solid var(--line); }
.admin__brand { padding: 0 .9rem .9rem; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.admin__brand strong { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--heading); }
.admin__nav { display: grid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.admin__nav a { display: flex; align-items: center; gap: .4rem; padding: .5rem .9rem; font-weight: 600; color: var(--fg-2); }
.admin__nav a:hover, .admin__nav a.is-on { color: var(--heading); background: var(--bg-2); }
.admin__search { padding: .9rem .9rem .4rem; }
.admin__search input { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-base-sm); }
.admin__search input:focus { outline: none; border-color: var(--red-text); box-shadow: 0 0 0 3px rgb(var(--red-soft-rgb) / .25); }
.admin__listhead { margin: .4rem .9rem .2rem; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.admin__list { margin: 0; }
.admin__cust { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .9rem; color: var(--fg); font-size: var(--fs-base-sm); border-left: 3px solid transparent; }
.admin__cust:hover { background: var(--bg-2); }
.admin__cust.is-on { border-left-color: var(--red); background: var(--bg-2); color: var(--heading); font-weight: 600; }
.admin__custmeta { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: var(--fg-3); white-space: nowrap; }
.admin__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.admin__sublist { margin: 0 0 .3rem; padding-left: 1.6rem; }
.admin__sublist a { display: block; padding: .2rem .5rem; font-size: var(--fs-xs); color: var(--fg-2); }
.admin__sublist a:hover { color: var(--heading); }
@media (max-width: 899px) {
  .admin__side { border-right: 0; border-bottom: 1px solid var(--line); padding: .25rem 0 .5rem; }
  .admin__brand { display: none; }
  .admin__nav { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 0; padding: 0; }
  .admin__nav a { padding: .55rem .7rem; font-size: var(--fs-base-sm); }
  .admin__lists summary { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; font-weight: 600; cursor: pointer; color: var(--heading); border-top: 1px solid var(--line); }
  .admin__list { max-height: 16rem; overflow: auto; }
}
@media (min-width: 900px) { .admin__lists summary { display: none; } }
.admin__lists summary::-webkit-details-marker { display: none; }
.admin__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.admin__head h2 { margin: .1rem 0 .2rem; font-size: var(--fs-h2-sm); }
.admin__head p { margin: 0; }
.admin__head .eyebrow a { display: inline-flex; align-items: center; gap: .3rem; }
.admin__grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 1100px) { .admin__grid { grid-template-columns: repeat(3, 1fr); } }
.acard { padding: 1rem 1.2rem 1.1rem; background: var(--bg-2); border-left: 3px solid var(--heading); display: grid; gap: .35rem; align-content: start; }
.gteam { list-style: none; margin: .3rem 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.gteam__m { display: flex; align-items: center; gap: .6rem; }
.gteam__who { flex: 1; min-width: 0; line-height: 1.3; }
.gteam__who strong { display: block; color: var(--heading); }
.gteam__who .small { display: block; }
.gteam__add { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.gteam__add select { flex: 1; min-width: 9rem; padding: .35rem .5rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-sm); color: var(--heading); }
.acard--team { grid-column: span 2; }
.ms__date { padding: .25rem .4rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-sm); color: var(--heading); }
.ms__add { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.ms__add input { flex: 1; min-width: 10rem; padding: .4rem .6rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-sm); }
.ms__add input[type=date] { flex: 0 0 11rem; }
.pms__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); vertical-align: middle; }
.pms__dot--done { background: var(--green); } .pms__dot--late { background: var(--red); } .pms__dot--due { background: #d99226; }
.holds { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.holds li { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.holds__l { flex: 0 0 18rem; font-weight: 600; color: var(--heading); font-size: var(--fs-sm); }
.holds__in { flex: 1; min-width: 14rem; padding: .4rem .6rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-sm); }
.holds__in.is-saved { border-color: var(--green); }
.acard--red { border-left-color: var(--red); }
.acard .eyebrow { margin-bottom: .2rem; }
.acard .statusctl { margin-top: 0; }
.statusctl__sel { padding: .3rem .5rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-sm); color: var(--heading); }
.acard .attn__list { gap: .3rem; }
.acard .attn__item { padding: .45rem .6rem; font-size: var(--fs-sm); flex-wrap: wrap; }
.acard .attn__text { flex: 1 1 9rem; }
.statusctl { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.statusctl__label { font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-right: .25rem; }
.statusctl .btn.is-on { background: var(--heading); color: #fff; border-color: var(--heading); opacity: 1; }
.statusctl__hint { flex-basis: 100%; }
.choice input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
/* page sections */
.psec { margin-bottom: 2.75rem; scroll-margin-top: 8.5rem; }
.psec__head { margin-bottom: 1rem; }
.psec__head h3 { margin: 0 0 .25rem; font-size: var(--fs-h3); display: flex; align-items: center; gap: .5rem; }
.psec__head p { margin: 0; }
/* ---------- Client app: sidebar + main inside a project, brand bar + list outside one (staff keep the two-pane admin shell) ---------- */
html.is-app {
  --p-red: #9B0000; --p-red-800: #7A0000; --p-red-600: #B31111; --p-red-200: #F0C4C4; --p-red-100: #FAE8E8; --p-red-50: #FDF5F5;
  --p-blue-900: #0F2B3F; --p-blue-800: #173B56; --p-blue-700: #204E70; --p-blue-200: #BFD4E2; --p-blue-100: #E4EDF3; --p-blue-50: #F2F7FA;
  --p-g800: #2B333A; --p-g700: #434D56; --p-g600: #5D6873; --p-g500: #7C8792; --p-g400: #A4ADB6; --p-g300: #C7CED4; --p-g200: #DFE4E8; --p-g100: #EDF0F2; --p-g50: #F6F8F9;
  --p-green: #1F6B45; --p-green-100: #E2F1E9; --p-amber: #96601A; --p-amber-500: #D99226; --p-amber-100: #FBF0DC;
  --p-display: "Montserrat", "Helvetica Neue", Arial, sans-serif; --p-body: "Barlow", "Helvetica Neue", Arial, sans-serif; --p-mono: var(--p-body);   /* no typewriter face anywhere in the portal (Ethan, 2026-09-20): data reads in Barlow */
  --p-sh-xs: 0 1px 2px rgba(16, 20, 24, .06); --p-sh-md: 0 4px 14px rgba(16, 20, 24, .10);
}
html.is-app .header, html.is-app .mobile-nav, html.is-app .footer { display: none; }
html.is-app body { background: var(--p-g50); color: var(--p-g800); font-family: var(--p-body); font-size: 14px; line-height: 1.6; }
html.is-app .mono, html.is-app .ph__meta .pbadge--accent { font-family: var(--p-mono); font-weight: 500; letter-spacing: 0; }
.app--client { min-height: 100vh; display: flex; flex-direction: column; }
.app--client[hidden] { display: none; }   /* the hidden attribute must beat display:flex (signed-out page showed an empty 100vh shell) */
.pshell { display: flex; flex: 1; align-items: stretch; }
.pmain { flex: 1; min-width: 0; }
/* internal bar (GIP staff inside a client project) */
.pibar[hidden] { display: none; }
.pibar { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 4px 20px; background: var(--p-blue-900); color: rgba(255, 255, 255, .7); font-size: 12px; }
.pibar__chip { flex: none; padding: 3px 8px; background: var(--p-red); color: #fff; font-family: var(--p-display); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; }
.pibar__r { margin-left: auto; white-space: nowrap; }
.pibar b { color: #fff; font-weight: 600; }
.pibar a { color: #fff; text-decoration: underline; }
/* sidebar */
.pside { width: 228px; flex: none; display: flex; flex-direction: column; gap: 20px; padding: 20px 16px; background: #fff; border-right: 1px solid var(--p-g200); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.pside__brand, .ptop__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--p-display); font-weight: 700; font-size: 13px; color: var(--p-blue-800); text-decoration: none; }
.pside__brand img { height: 26px; width: auto; }
.pside__proj { padding: 12px; background: var(--p-g50); border: 1px solid var(--p-g200); border-radius: 3px; }
.pside__proj .mono { font-size: 11px; color: var(--p-g500); }
.pside__name { margin-top: 3px; font-family: var(--p-display); font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--p-blue-800); }
.pside__co { margin-top: 8px; font-size: 13px; color: var(--p-g600); }
.pside__co a { font-weight: 600; color: var(--p-blue-700); text-decoration: none; }
.pside__co a:hover { color: var(--p-red); }
.pnav { display: flex; flex-direction: column; gap: 2px; }
.pnav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-left: 2px solid transparent; border-radius: 0 3px 3px 0; font-size: 14px; color: var(--p-g800); text-decoration: none; transition: background 140ms, color 140ms; }
.pnav a:hover { background: var(--p-g50); color: var(--p-blue-800); }
.pnav a.is-active { padding-left: 10px; border-left-color: var(--p-red); background: var(--p-red-50); font-weight: 500; color: var(--p-blue-800); }
.pnav .ico { flex: none; color: var(--p-g600); }
.pnav a.is-active .ico { color: var(--p-red); }
.pnav__n { margin-left: auto; font-family: var(--p-mono); font-size: 11px; color: var(--p-g500); }
.pnav__n--red { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--p-red); color: #fff; font-weight: 600; border-radius: 3px; }
.pside__help { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--p-g600); cursor: pointer; text-align: left; }
.pside__help:hover { color: var(--p-red); }
.pside__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--p-g200); display: flex; align-items: center; gap: 10px; }
.pav { flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center; background: var(--p-blue-800); color: #fff; font-family: var(--p-display); font-weight: 700; font-size: 11px; border-radius: 3px; }
.pav--lg { width: 44px; height: 44px; font-size: 15px; }
.pav--top { background: rgba(255, 255, 255, .14); }
.pside__who { flex: 1; min-width: 0; line-height: 1.25; }
.pside__who strong { display: block; font-weight: 500; font-size: 13px; color: var(--p-g800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pside__who span { display: block; font-size: 11px; color: var(--p-g500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pside__out { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--p-g500); border-radius: 3px; }
.pside__out:hover { color: var(--p-red); background: var(--p-red-50); }
/* brand top bar + project list (outside a project) */
.app--list .pshell { display: block; }
.ptop { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 32px; background: var(--p-blue-800); color: #fff; }
.ptop__brand { color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-right: auto; }
.ptop__brand img { height: 24px; width: auto; }
.ptop__who { font-size: 13px; color: rgba(255, 255, 255, .7); }
.ptop__link { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; margin-left: 8px; }
.ptop__link:hover { text-decoration: underline; }
.plist { max-width: 1000px; margin: 0 auto; padding: 32px; }
.plist__h { margin: 4px 0 0; font-family: var(--p-display); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--p-blue-800); letter-spacing: 0; }
.plist__lead { margin: 0 0 24px; font-size: 16px; color: var(--p-g600); }
.plist__sub { font-family: var(--p-display); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--p-blue-800); margin: 26px 0 10px; }
.plabel { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pradio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--p-g200); border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.pradio:hover { border-color: var(--p-blue-800); }
.pradio input[type=radio] { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; flex: none; accent-color: var(--p-blue-700); }
.pradio > span { flex: 1 1 auto; min-width: 0; }
.pradio__help { display: block; font-size: 13px; color: var(--p-g600); margin-top: 2px; }
.pradio:has(input:checked) { border-color: var(--p-blue-800); box-shadow: inset 0 0 0 1px var(--p-blue-800); }
.pfiles { display: block; margin-top: 8px; }
.pfiles__f { display: inline-block; font-size: 13px; background: var(--p-g50); border: 1px solid var(--p-g200); border-radius: 6px; padding: 3px 8px; margin: 0 6px 6px 0; }
.pfiles__kb { color: var(--p-g600); }
.peyebrow { margin: 0; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--p-red); }
.prule { width: 48px; height: 4px; margin: 14px 0 16px; background: var(--p-red); }
.pj { display: flex; align-items: center; gap: 24px; margin-top: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--p-g200); border-radius: 5px; box-shadow: var(--p-sh-xs); transition: box-shadow 200ms, border-color 200ms; }
.pj:hover { box-shadow: var(--p-sh-md); border-color: var(--p-g300); }
.pj--act { border-left: 3px solid var(--p-red); }
.pj__l { flex: 1; min-width: 0; }
.pj__top { display: flex; align-items: center; gap: 10px; }
.pj__top .mono { font-size: 12px; color: var(--p-g500); }
.pj__t { margin: 6px 0 0; font-family: var(--p-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.pj__t a { color: var(--p-blue-800); text-decoration: none; }
.pj__t a:hover { color: var(--p-red); }
.pj__meta { margin: 4px 0 0; font-size: 14px; color: var(--p-g600); }
.pj__stats { display: flex; gap: 28px; padding: 0 24px; border-left: 1px solid var(--p-g200); border-right: 1px solid var(--p-g200); }
.pj__stat { text-align: center; min-width: 64px; }
.pj__v { font-family: var(--p-display); font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--p-blue-800); }
.pj__v--red { color: var(--p-red); }
.pj__k { margin-top: 2px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--p-g600); }
.pj__b { flex: none; }
/* page header + body */
.ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 32px; background: #fff; border-bottom: 1px solid var(--p-g200); }
.ph > * { max-width: 100%; }
@media (min-width: 1625px) { .ph { padding-inline: calc((100% - 1560px) / 2 + 32px); } }   /* the header lines up with the capped content instead of hugging the far edge */
.ph h1 { margin: 4px 0 0; font-family: var(--p-display); font-weight: 600; font-size: 25px; line-height: 1.25; color: var(--p-blue-800); letter-spacing: 0; }
.ph__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ph__cap { font-size: 13px; color: var(--p-g600); }
.ph__acts { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 4px; min-width: 0; }   /* the header buttons wrap onto a second line instead of pushing the page sideways (tablet width) */
.pback { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 13px; color: var(--p-g600); text-decoration: none; }
.pback:hover { color: var(--p-red); }
.pbody { display: flex; flex-direction: column; gap: 24px; padding: 28px 32px 48px; width: 100%; max-width: 1560px; margin-inline: auto; }   /* capped and centred: on a 2560px screen the tables used to stretch into empty space (PI-009) */
.pbody .portal__alert { margin: 0; }
.pgrid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.pcol { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* cards */
.pc { background: #fff; border: 1px solid var(--p-g200); border-radius: 5px; box-shadow: var(--p-sh-xs); overflow: hidden; }
.pc--act { border-left: 3px solid var(--p-red); }
.pc--pad { padding: 20px; }
.pc--kind > .pc--pad { padding: 16px 20px 20px; }   /* card() puts the head outside, so the body keeps its own padding */
.pc--internal { border-color: var(--p-blue-200); background: var(--p-blue-50); }
.pc__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 18px 20px; border-bottom: 1px solid var(--p-g200); }
.pc__title { margin: 0; font-family: var(--p-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--p-blue-800); letter-spacing: 0; }
.pc__cap { font-size: 13px; color: var(--p-g600); }
.pc--pad .pc__title { margin-bottom: 0; }
.pc--pad .prule { margin: 12px 0 16px; }
.pempty { margin: 0; padding: 16px 20px; font-size: 14px; color: var(--p-g600); }
.pc--pad .pempty { padding: 0 0 16px; }
.pmuted { font-size: 13px; color: var(--p-g500); }
.pnotice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--p-g200); border-radius: 5px; color: var(--p-g700); }
.pnotice .ico { flex: none; color: var(--p-blue-700); }
/* action queue */
.pq { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--p-g200); }
.pq:first-child { border-top: 0; }
.pq--ok { gap: 12px; color: var(--p-g700); }
.pq--ok .ico { color: var(--p-green); }
.pq__ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; }
.pq__ic--est { background: var(--p-red-50); color: var(--p-red); }
.pq__ic--tx { background: var(--p-blue-50); color: var(--p-blue-700); }
.pq__ic--rfi { background: var(--p-amber-100); color: var(--p-amber); }
.pq__body { flex: 1 1 22rem; min-width: 0; }   /* keeps a readable width: the buttons drop to their own line rather than squeezing the wording into a ribbon */
.pq__id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pq__id .mono { font-size: 13px; font-weight: 500; color: var(--p-blue-800); }
.pq__desc { margin-top: 3px; font-size: 14px; }
.pq__desc em { font-style: normal; font-weight: 600; color: var(--p-red); }
.pq__date { flex: none; font-family: var(--p-mono); font-size: 12px; color: var(--p-g500); white-space: nowrap; }
.pq__date.is-late { color: var(--p-red-600); font-weight: 600; }
.pq__acts { display: flex; flex: none; flex-wrap: wrap; gap: 8px; margin-left: auto; }
/* chips, badges, pills */
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1.4; }
.pchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pchip--pending { background: var(--p-amber-100); color: var(--p-amber); }
.pchip--review { background: var(--p-blue-100); color: var(--p-blue-700); }
.pchip--ok { background: var(--p-green-100); color: var(--p-green); }
.pchip--revise, .pchip--overdue { background: var(--p-red-100); color: var(--p-red-600); }
.pchip--draft { background: var(--p-g100); color: var(--p-g600); }
.pbadge { display: inline-block; padding: 3px 8px; border: 1px solid transparent; border-radius: 3px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.pbadge--accent { background: var(--p-red-100); color: var(--p-red); border-color: var(--p-red-200); }
.pbadge--brand { background: var(--p-blue-50); color: var(--p-blue-700); border-color: var(--p-blue-200); }
.pbadge--neutral { background: var(--p-g100); color: var(--p-g600); border-color: var(--p-g300); }
.pbadge.mono { font-family: var(--p-mono); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.prev { display: inline-block; min-width: 34px; padding: 2px 8px; background: var(--p-blue-800); color: #fff; font-family: var(--p-mono); font-weight: 600; font-size: 11px; text-align: center; border-radius: 3px; }
.prev--none { background: var(--p-g100); color: var(--p-g500); }
.pack { font-family: var(--p-mono); font-size: 12px; color: var(--p-green); white-space: nowrap; }
/* buttons */
.pb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid transparent; border-radius: 3px; font-family: var(--p-display); font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background 140ms, color 140ms, border-color 140ms; }
.pb--sm { height: 30px; padding: 0 10px; font-size: 12px; }
.pb--md { height: 38px; padding: 0 16px; font-size: 14px; }
.pb--block { width: 100%; margin-top: 16px; }
.pb--primary { background: var(--p-red); color: #fff; }
.pb--primary:hover { background: var(--p-red-800); color: #fff; }
.pb--secondary { background: var(--p-blue-800); color: #fff; }
.pb--secondary:hover { background: var(--p-blue-900); color: #fff; }
.pb--outline { background: #fff; color: var(--p-blue-800); border-color: var(--p-g300); }
.pb--outline:hover { background: var(--p-blue-50); border-color: var(--p-g400); color: var(--p-blue-800); }
.pb--ghost { background: none; color: var(--p-blue-700); }
.pb--ghost:hover { background: var(--p-blue-50); color: var(--p-blue-800); }
.pb:active { transform: translateY(1px); }
.pb:disabled { background: var(--p-g200); color: var(--p-g500); border-color: transparent; cursor: not-allowed; transform: none; }
.pb:focus-visible, .pnav a:focus-visible, .plink:focus-visible { outline: 2px solid var(--p-blue-700); outline-offset: 2px; }
/* tables */
.ptw { overflow-x: auto; }
.pt { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt th { padding: 10px 10px; background: var(--p-g50); border-bottom: 1px solid var(--p-g300); text-align: left; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--p-g600); white-space: nowrap; }
.pt td { padding: 8px 8px; border-top: 1px solid var(--p-g200); vertical-align: middle; }
.pt tbody tr:first-child td { border-top: 0; }
.pt tbody tr:hover td { background: var(--p-g50); }
.pt th:first-child, .pt td:first-child { padding-left: 20px; }
.pt th:last-child, .pt td:last-child { padding-right: 20px; }
.pt .c { text-align: center; }
.pt .r { text-align: right; }
.pt td.mono { font-size: 13px; white-space: nowrap; }
.pt td.mono a, .plink { font-weight: 600; color: var(--p-blue-800); text-decoration: none; }
.pt td.mono a:hover, .plink:hover { color: var(--p-red); text-decoration: underline; }
.pt .pt__title { width: auto; min-width: 140px; }   /* the column that soaks up slack; the rest keep their natural width */
.pt td:not(.pt__title):not(.pt__wrap):not(.pt__acts) { white-space: nowrap; }   /* the action buttons may wrap: they are what pushed the row past the card (PI-007) */
.pt td.pt__wrap { min-width: 9rem; max-width: 18rem; }
.pt td .pt__sub { white-space: normal; max-width: 14rem; }
.pt td.pt__title .pt__sub { max-width: none; }   /* the revision note reads across the title column, not in a 14rem ribbon */
.pt__sub { display: block; font-size: 12px; color: var(--p-g500); margin-top: 2px; }
.pt .pt__acts { text-align: right; white-space: normal; }   /* the buttons wrap rather than push the row past the card */
.pt .pt__acts .pb { margin-left: 4px; margin-top: 2px; white-space: nowrap; }
.pt tr.is-old td, .pt tr.is-old .pt__title { color: var(--p-g500); }
.pt tr.is-old td.mono a { color: var(--p-g600); }
.pt td .pchip { vertical-align: middle; }
.pt__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 20px; background: var(--p-g50); border-top: 1px solid var(--p-g200); font-size: 13px; color: var(--p-g600); }
/* brand panel */
.ppanel { padding: 24px; background: linear-gradient(160deg, #173B56 0%, #0F2B3F 100%); color: #fff; border-radius: 5px; box-shadow: var(--p-sh-md); }
.ppanel__eyebrow { margin: 0 0 14px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ppanel__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.ppanel__row b { font-weight: 500; }
.ppanel__bar { margin-top: 12px; }
.ppanel__l { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.ppanel__l .mono { font-size: 12px; }
.ppanel__track { height: 6px; background: rgba(255, 255, 255, .18); border-radius: 3px; overflow: hidden; }
.ppanel__fill { height: 100%; background: #fff; border-radius: 3px; }
.ppanel__fill--red { background: var(--p-red-600); }
.ppanel__note { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: rgba(255, 255, 255, .85); }
/* RFI activity, PM card, key/value rows */
.pact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pact__i { display: flex; gap: 10px; align-items: flex-start; }
.pact__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--p-g400); }
.pact__i--open .pact__dot { background: var(--p-amber-500); }
.pact__i--done .pact__dot { background: var(--p-green); }
.pact__l { font-size: 12px; color: var(--p-g600); }
.pact__i--open .pact__l { color: var(--p-amber); }
.pact__i--done .pact__l { color: var(--p-green); }
.pact__t { font-size: 14px; margin-top: 2px; }
.ppm { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ppm__n { font-family: var(--p-display); font-weight: 600; font-size: 15px; color: var(--p-blue-800); }
.pkv { margin-top: 14px; }
.pkv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--p-g200); font-size: 14px; color: var(--p-g600); }
.pkv > div:first-child { border-top: 0; }
.pkv b, .pkv a { font-weight: 500; color: var(--p-blue-800); text-align: right; text-decoration: none; }
.pkv .mono { font-size: 13px; }
.pkv .red { color: var(--p-red); font-weight: 600; }
.pkv a:hover { color: var(--p-red); }
/* history list */
.phist { list-style: none; margin: 0; padding: 8px 20px 12px; display: grid; gap: 8px; font-size: 14px; }
.phist li { display: flex; gap: 16px; align-items: baseline; }
.phist .mono { flex: none; width: 92px; font-size: 12px; color: var(--p-g500); }
.phist a { font-size: 13px; color: var(--p-g500); }
/* schedule + since-last-visit */
.pms { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pms__i { display: flex; gap: 10px; align-items: flex-start; }
.pms__i.is-next .pms__n { font-weight: 600; color: var(--p-blue-800); }
.pms__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--p-g400); }
.pms__dot--done { background: var(--p-green); }
.pms__dot--late { background: var(--p-red-600); }
.pms__dot--due { background: var(--p-amber-500); }
.pms__n { font-size: 14px; }
.pms__d { font-size: 12px; color: var(--p-g500); margin-top: 2px; }
.pt .pms__dot { display: inline-block; margin: 0; }
.phist--card { padding: 12px 20px 14px; }
.pq__holds { display: block; margin-top: 2px; font-size: 13px; color: var(--p-amber); font-weight: 500; }
/* admin side of the shared shell */
.pside__custs { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 120px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.pside__lab { margin: 4px 0 0; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--p-g600); }
.pside__lab span { color: var(--p-g500); font-family: var(--p-body); letter-spacing: 0; text-transform: none; }
.pside__q { width: 100%; padding: 7px 10px; border: 1px solid var(--p-g300); border-radius: 3px; background: #fff; font: inherit; font-size: 13px; color: var(--p-g800); }
.pside__q:focus { outline: 2px solid var(--p-blue-700); outline-offset: 1px; }
.pcust { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; align-content: start; flex: none; }
.pcust__a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 3px; font-size: 13px; color: var(--p-g800); text-decoration: none; }
.pcust__a:hover { background: var(--p-g50); }
.pcust__a.is-active { background: var(--p-red-50); color: var(--p-blue-800); font-weight: 500; }
.pcust__n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcust__m { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--p-g500); }
.pcust__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-red); }
.pcust__sub { list-style: none; margin: 0 0 4px; padding: 0 0 0 14px; }
.pcust__sub a { display: block; padding: 3px 8px; font-size: 12px; color: var(--p-g600); text-decoration: none; }
.pcust__sub a:hover { color: var(--p-red); }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.pstat { padding: 16px 18px; background: #fff; border: 1px solid var(--p-g200); border-left: 3px solid var(--p-blue-800); border-radius: 5px; box-shadow: var(--p-sh-xs); }
.pstat strong { display: block; font-family: var(--p-display); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--p-blue-800); }
.pstat span { display: block; margin-top: 4px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--p-g600); }
.pstat--red { border-left-color: var(--p-red); }
.pstat--red strong { color: var(--p-red); }
.pc--gip { border-left: 3px solid var(--p-blue-700); }
.pstatus { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pt__foot--form { display: block; }
.padd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pdate { width: 8.2rem; }
.pt .pt__acts .pb--sm { padding: 0 7px; }
.padd input, .padd select, .psel, .pdate { padding: 6px 8px; border: 1px solid var(--p-g300); border-radius: 3px; background: #fff; font: inherit; font-size: 13px; color: var(--p-g800); }
.padd input[type=text] { flex: 1; min-width: 10rem; }
.padd select { flex: 1; min-width: 9rem; }
.pc--pad .padd { margin-top: 12px; }
.pholds { list-style: none; margin: 0; padding: 12px 20px 16px; display: grid; gap: 10px; }
.pholds li { display: grid; gap: 4px; }
.pholds__l { font-weight: 600; font-size: 13px; color: var(--p-blue-800); }
.pholds__in { width: 100%; padding: 7px 10px; border: 1px solid var(--p-g300); border-radius: 3px; background: #fff; font: inherit; font-size: 13px; }
.pholds__in.is-saved { border-color: var(--p-green); }
.gteam { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.gteam__m { display: flex; align-items: center; gap: 10px; }
.gteam__who { flex: 1; min-width: 0; line-height: 1.3; }
.gteam__who strong { display: block; color: var(--p-blue-800); font-weight: 600; font-size: 14px; }
.gteam__who .pmuted { display: block; }
html.is-app .red { color: var(--p-red); }
/* the RFI cards (staff view) inside a portal card */
.pc--rfis .psec { margin: 0; }
.pc--rfis .psec__head h3 { font-family: var(--p-display); font-size: 18px; letter-spacing: 0; }
@media (max-width: 900px) {
  .pside__custs { flex-basis: 100%; order: 6; }
}
/* older pieces (RFI cards, record pages, modals) inside the app shell: same type as the rest of the portal */
html.is-app .btn { font-family: var(--p-display); text-transform: none; letter-spacing: 0; font-size: 13px; border-radius: 3px; }
html.is-app .btn--sm { font-size: 12px; }
html.is-app .pbody h3, html.is-app .pbody h4, html.is-app .rfi__subject, html.is-app .modal__box h3 { font-family: var(--p-display); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
html.is-app .pbody .rfi__subject { font-size: 17px; }
html.is-app .pbody .psec__head h3 { font-size: 18px; }
html.is-app .eyebrow { font-family: var(--p-display); }
.pval { width: 7rem; padding: 5px 8px; border: 1px solid var(--p-g300); border-radius: 3px; background: #fff; font: inherit; font-size: 13px; color: var(--p-g800); text-align: right; }
.pval.is-saved { border-color: var(--p-green); }
.plist .pc { margin-top: 8px; }
/* ---------- Portal shell: navy sidebar (more colour, and the same band as the client top bar) ---------- */
html.is-app body { background: var(--p-g100); }
.pside { background: var(--p-blue-800); border-right: 0; color: #fff; }
.pside__brand { color: #fff; }
.pside__proj { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.pside__proj .mono { color: rgba(255, 255, 255, .6); }
.pside__name { color: #fff; }
.pside__co { color: rgba(255, 255, 255, .65); }
.pside__co a { color: #fff; }
.pside__co a:hover { color: var(--p-red-200); }
.pnav a { color: rgba(255, 255, 255, .82); }
.pnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pnav a.is-active { background: rgba(255, 255, 255, .13); border-left-color: var(--p-red-600); color: #fff; }
.pnav .ico, .pnav a.is-active .ico { color: rgba(255, 255, 255, .85); }
.pnav__n { color: rgba(255, 255, 255, .55); }
.pnav__n--red { background: var(--p-red-600); color: #fff; }
.pside__help { color: rgba(255, 255, 255, .7); text-decoration: none; }
.pside__help:hover { color: #fff; }
.pside__foot { border-top-color: rgba(255, 255, 255, .16); }
.pside .pav { background: var(--p-red); }
.pside__who strong { color: #fff; }
.pside__who span { color: rgba(255, 255, 255, .6); }
.pside__out { color: rgba(255, 255, 255, .7); }
.pside__out:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.pside__lab { color: rgba(255, 255, 255, .6); }
.pside__lab span { color: rgba(255, 255, 255, .45); }
.pside__q { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.pside__q::placeholder { color: rgba(255, 255, 255, .5); }
.pside__q:focus { outline-color: var(--p-red-200); }
.pcust__a { color: rgba(255, 255, 255, .85); }
.pcust__a:hover { background: rgba(255, 255, 255, .08); }
.pcust__a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.pcust__m { color: rgba(255, 255, 255, .5); }
.pcust__dot { background: var(--p-red-600); }
.pcust__sub a { color: rgba(255, 255, 255, .7); }
.pcust__sub a:hover { color: #fff; }
@media (max-width: 900px) { .pside { border-bottom: 0; } .pnav { border-top-color: rgba(255, 255, 255, .16); } .pnav a.is-active { border-bottom-color: var(--p-red-600); } }
/* card headers get a faint band so cards read as panels, not sheets of paper */
.pc__head { background: var(--p-g50); }
.pc--pad { border-top: 3px solid var(--p-blue-800); }
.pc--pad.pc--internal { border-top-color: var(--p-blue-700); }

/* ---------- Older pieces (RFI cards, estimate / transmittal cards, record pages, modals) restyled to the shell ---------- */
html.is-app .rfi, html.is-app .est, html.is-app .tx { padding: 18px 20px 16px; margin-bottom: 16px; background: #fff; border: 1px solid var(--p-g200); border-left: 3px solid var(--p-g300); border-radius: 5px; box-shadow: var(--p-sh-xs); color: var(--p-g800); }
html.is-app .rfi.is-action, html.is-app .est.is-action, html.is-app .tx.is-action { border-left-color: var(--p-red); box-shadow: var(--p-sh-xs); }
html.is-app .est--done { border-left-color: var(--p-green); }
html.is-app .est--expired, html.is-app .est--old, html.is-app .rfi--done { border-left-color: var(--p-g300); background: var(--p-g50); opacity: 1; color: var(--p-g600); }
html.is-app .rfi__no, html.is-app .est__no, html.is-app .tx__no { font-family: var(--p-display); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--p-blue-800); }
html.is-app .rfi__dir, html.is-app .tx__purpose, html.is-app .rec__meta dt { font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-g600); }
html.is-app .tx__purpose { color: var(--p-red); }
html.is-app .rfi__subject { margin: 8px 0 2px; font-size: 17px; color: var(--p-blue-800); }
html.is-app .rfi__meta, html.is-app .est__file, html.is-app .est__note { font-size: 13px; color: var(--p-g600); }
html.is-app .rfi__q { margin-top: 8px; padding: 12px 14px; background: var(--p-g50); border-left: 3px solid var(--p-red); font-size: 14px; line-height: 1.6; }
html.is-app .rfi__sugg { font-size: 13px; color: var(--p-g700); }
html.is-app .rfi__a { margin-top: 12px; padding: 12px 14px 8px; background: var(--p-green-100); border-left: 3px solid var(--p-green); border-radius: 0 3px 3px 0; }
html.is-app .rfi__a .eyebrow { color: var(--p-green); font-size: 11px; letter-spacing: .12em; }
html.is-app .rfi__a .eyebrow::before { background: var(--p-green); }
html.is-app .est__quote { border-left-color: var(--p-g300); color: var(--p-g700); font-size: 13px; }
html.is-app .est__rev { color: var(--p-g600); }
html.is-app .tx__files { font-size: 13px; color: var(--p-g700); }
html.is-app .tx__files li::before { color: var(--p-g400); }
/* type badges (Estimate / Drawing / Transmittal / RFI) and ball-in-court -> chips */
html.is-app .kind { padding: 3px 8px 3px 6px; border-radius: 3px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .06em; background: var(--p-blue-50); color: var(--p-blue-700); }
html.is-app .kind--est { background: var(--p-red-50); color: var(--p-red); }
html.is-app .kind--rfi { background: var(--p-amber-100); color: var(--p-amber); }
html.is-app .kind--tx { background: var(--p-blue-50); color: var(--p-blue-700); }
html.is-app .kind--dwg { background: var(--p-g100); color: var(--p-g700); }
html.is-app .is-action .kind { background: var(--p-red-50); }
html.is-app .tag { padding: 3px 8px; border-radius: 3px; font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .06em; }
html.is-app .tag--ok { background: var(--p-green-100); color: var(--p-green); }
html.is-app .tag--old { background: var(--p-g100); color: var(--p-g600); }
html.is-app .tag--wait, html.is-app .tag--off { background: var(--p-amber-100); color: var(--p-amber); }
html.is-app .court { font-family: var(--p-display); font-weight: 600; font-size: 12px; }
html.is-app .court--you { color: var(--p-red); } html.is-app .court--you::before { background: var(--p-red); }
html.is-app .court--them { color: var(--p-g500); } html.is-app .court--them::before { border-color: var(--p-g400); }
html.is-app .court--done { color: var(--p-green); }
html.is-app .court__d { color: var(--p-g500); }
/* filter chips */
html.is-app .chip { border-radius: 3px; border-color: var(--p-g300); color: var(--p-blue-800); font-family: var(--p-display); font-weight: 600; font-size: 12px; padding: 5px 10px; }
html.is-app .chip:hover { border-color: var(--p-g400); background: var(--p-blue-50); color: var(--p-blue-800); }
html.is-app .chip.is-on { background: var(--p-blue-800); border-color: var(--p-blue-800); color: #fff; }
html.is-app .chip:disabled { opacity: 1; color: var(--p-g400); border-color: var(--p-g200); }
html.is-app .chip__n { opacity: 1; color: inherit; font-weight: 500; }
/* buttons inside the older cards and modals */
html.is-app .btn { border-radius: 3px; border-color: var(--p-g300); color: var(--p-blue-800); background: #fff; box-shadow: none; }
html.is-app .btn:hover { transform: none; box-shadow: none; background: var(--p-blue-50); border-color: var(--p-g400); color: var(--p-blue-800); }
html.is-app .btn--primary { background: var(--p-red); border-color: var(--p-red); color: #fff; }
html.is-app .btn--primary:hover { background: var(--p-red-800); border-color: var(--p-red-800); color: #fff; }
html.is-app .btn--ghost { background: transparent; border-color: transparent; color: var(--p-blue-700); }
html.is-app .btn--ghost:hover { background: var(--p-blue-50); border-color: transparent; color: var(--p-blue-800); }
html.is-app .btn--outline { background: #fff; border-color: var(--p-g300); color: var(--p-blue-800); }
html.is-app .btn--light { background: #fff; color: var(--p-blue-800); }
/* record page */
html.is-app .rec__side .acard { padding: 18px 20px; background: #fff; border: 1px solid var(--p-g200); border-left: 0; border-top: 3px solid var(--p-blue-800); border-radius: 5px; box-shadow: var(--p-sh-xs); }
html.is-app .acard .eyebrow { font-family: var(--p-display); font-size: 11px; letter-spacing: .14em; color: var(--p-red); }
html.is-app .acard .eyebrow::before { display: none; }
html.is-app .rec__meta dd { font-size: 14px; color: var(--p-g800); }
html.is-app .psec { margin-bottom: 28px; }
html.is-app .psec__head h3 { color: var(--p-blue-800); }
html.is-app .psec__head p { color: var(--p-g600); font-size: 13px; }
html.is-app .hist::before { background: var(--p-g200); }
html.is-app .hist__dot { border-color: var(--p-g300); }
html.is-app .hist__item--done .hist__dot { border-color: var(--p-green); background: var(--p-green); }
html.is-app .hist__item--create .hist__dot { border-color: var(--p-blue-800); }
html.is-app .hist__at { color: var(--p-g500); font-size: 13px; }
html.is-app .ptable th { font-family: var(--p-display); font-weight: 600; font-size: 11px; letter-spacing: .14em; color: var(--p-g600); background: var(--p-g50); border-bottom: 1px solid var(--p-g300); }
html.is-app .ptable td { border-bottom-color: var(--p-g200); font-size: 14px; }
html.is-app .tablewrap { background: #fff; border: 1px solid var(--p-g200); border-radius: 5px; }
html.is-app .portal__alert { border-radius: 5px; }
/* modal + forms */
html.is-app .modal { background: rgba(15, 43, 63, .55); }
html.is-app .modal__box { border-top: 0; border-radius: 8px; box-shadow: 0 16px 40px rgba(16, 20, 24, .22); padding: 24px 28px 24px; }
html.is-app .modal__box::before { content: ""; display: block; width: 48px; height: 4px; background: var(--p-red); margin-bottom: 14px; }
html.is-app .modal__box h3 { margin: 4px 0 12px; font-size: 22px; color: var(--p-blue-800); }
html.is-app .modal__box .eyebrow { font-family: var(--p-display); font-size: 11px; letter-spacing: .14em; color: var(--p-red); }
html.is-app .modal__box .eyebrow::before { display: none; }
html.is-app .modal__close { border-radius: 3px; border-color: var(--p-g300); color: var(--p-g600); }
html.is-app .modal .field label, html.is-app .modal .choices legend { font-family: var(--p-display); font-weight: 600; font-size: 12px; color: var(--p-blue-800); }
html.is-app .modal .field input, html.is-app .modal .field textarea, html.is-app .modal .choices__input input, html.is-app .modal select { border: 1px solid var(--p-g300); border-radius: 3px; background: #fff; font: inherit; font-size: 14px; color: var(--p-g800); }
html.is-app .modal .field input:focus, html.is-app .modal .field textarea:focus { outline: 2px solid var(--p-blue-700); outline-offset: 1px; border-color: var(--p-blue-700); }
html.is-app .choices { border-color: var(--p-g200); border-radius: 3px; background: var(--p-g50); }
html.is-app .choice input { accent-color: var(--p-red); }
html.is-app .cl-q { background: var(--p-g50); border-left-color: var(--p-red); border-radius: 0 3px 3px 0; font-size: 14px; }
html.is-app .muted { color: var(--p-g600); }
.pt__desc { color: var(--p-g800); font-size: 14px; margin-top: 4px; }
.ptop__btn { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.passign { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.rfi__actions .passign { margin-left: auto; }
/* sidebar record search results: plain stacked list, no inner scroll */
.precs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; flex: none; }
.precs a { display: grid; gap: 1px; padding: 7px 9px; border-radius: 3px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.precs a:hover { background: rgba(255, 255, 255, .14); }
.precs__k { font-family: var(--p-display); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.precs b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.precs__s { font-size: 12px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.precs__more { padding: 4px 9px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.pcust:empty { display: none; }
/* search box (sidebar / top bar) + results */
.psearch { display: flex; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; }
.psearch input { flex: 1; min-width: 0; padding: 7px 10px; border: 0; background: none; font: inherit; font-size: 13px; color: #fff; }
.psearch input::placeholder { color: rgba(255, 255, 255, .55); }
.psearch input:focus { outline: none; }
.psearch:focus-within { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .14); }
.psearch button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; }
.psearch button:hover { color: #fff; }
.psearch--top { width: min(320px, 40vw); margin-right: auto; }
.ptop .ptop__brand { margin-right: 20px; }
.pfind { list-style: none; margin: 0; padding: 6px 0; }
.pfind a { display: grid; gap: 2px; padding: 10px 20px; border-top: 1px solid var(--p-g200); color: var(--p-g800); text-decoration: none; }
.pfind li:first-child a { border-top: 0; }
.pfind a:hover { background: var(--p-g50); }
.pfind b { color: var(--p-blue-800); font-weight: 600; }
.pfind span { font-size: 13px; color: var(--p-g600); }
.plist .pfind a { padding: 10px 20px; }
@media (max-width: 900px) { .psearch { flex-basis: 100%; order: 4; } .psearch--top { width: auto; flex-basis: 100%; order: 5; margin: 6px 0 0; } .ptop { flex-wrap: wrap; height: auto; padding: 10px 16px; } }
.prevnotes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--p-g700); }
.prevnotes b { color: var(--p-blue-800); }
.pt .pt__acts .pb--sm { padding: 0 6px; margin-left: 2px; }
.pnote { display: block; width: 100%; min-width: 14rem; margin-top: 4px; padding: 4px 8px; border: 1px solid var(--p-g300); border-radius: 3px; background: #fff; font: inherit; font-size: 12px; color: var(--p-g800); }
.pnote.is-saved { border-color: var(--p-green); }
.pt__note { color: var(--p-g700); }
.ph__acts .pb--outline[download] { white-space: nowrap; }
/* record page + modal bits kept from the earlier client UI */
.pbody .rec { margin: 0; }
.cl-review__open { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.cl-review__choices { display: flex; gap: .5rem; flex-wrap: wrap; }
.cl-q { margin: 0 0 .5rem; padding: .8rem 1rem; background: var(--bg-2); border-left: 3px solid var(--line-strong); font-size: var(--fs-base-sm); line-height: 1.55; }
.cl-q p { margin: .5rem 0 0; }
.cl-help p { margin: 0 0 .8rem; font-size: var(--fs-base-sm); color: var(--fg-2); }
.cl-help strong { color: var(--heading); }
.cl-help__more { margin-top: 1rem !important; padding-top: .9rem; border-top: 1px solid var(--p-g200); }
.cl-help__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.cl-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--fg-2); text-decoration: underline; cursor: pointer; }
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pshell { flex-direction: column; }
  .pside { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--p-g200); }
  .pside__proj { flex: 1; min-width: 0; padding: 6px 10px; }
  .pside__co { margin-top: 0; }
  .pside__name { margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pnav { flex-basis: 100%; order: 5; flex-direction: row; gap: 0; overflow-x: auto; margin: 0 -16px; padding: 0 12px; border-top: 1px solid var(--p-g200); }
  .pnav a { flex: none; height: 40px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; }
  .pnav a.is-active { padding-left: 12px; border-bottom-color: var(--p-red); background: none; }
  .pnav__n { margin-left: 2px; }
  .pside__help { display: none; }
  .pside__foot { margin: 0; padding: 0; border: 0; }
  .pside__who { display: none; }
  .ptop { padding: 0 16px; }
  .ptop__who { display: none; }
  .plist { padding: 24px 16px; }
  .plist__h { font-size: 26px; }
  .pj { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .pj__l { flex-basis: 100%; }
  .pj__stats { flex: 1; justify-content: space-around; padding: 0; border: 0; gap: 12px; }
  .pj__stat { min-width: 0; }
  .ph { flex-direction: column; gap: 14px; padding: 18px 16px; }
  .ph h1 { font-size: 22px; }
  .ph__acts { flex-wrap: wrap; }
  .pbody { padding: 16px 16px 40px; gap: 16px; }
  .pq { flex-wrap: wrap; gap: 12px 14px; }
  .pq__date { margin-left: 48px; }
  .pq__acts { order: 4; flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; padding-left: 48px; }
  .pibar { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px; }
  .pibar__r { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .pq__date, .pq__acts { margin-left: 0; padding-left: 0; }
  .pq__acts .pb { flex: 1; }
  .phist li { flex-direction: column; gap: 0; }
}
/* modal */
/* guided tour: dim everything except the spotlight, card beside / below it, bottom sheet on phones */
.ptour { position: fixed; inset: 0; z-index: 230; }
.ptour[hidden] { display: none; }
.ptour__mask { position: absolute; inset: 0; }
.ptour__mask i { position: fixed; background: rgba(15, 43, 63, .62); }
.ptour__mask--all { background: rgba(15, 43, 63, .62); }
.ptour__mask--all i { display: none; }
.ptour__spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 3px var(--p-red-600), 0 0 0 7px rgba(179, 17, 17, .25); transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.ptour__spot[hidden] { display: none; }
.ptour__card { position: fixed; width: 360px; max-width: calc(100vw - 32px); padding: 18px 20px 16px; background: #fff; border-radius: 12px; box-shadow: 0 18px 48px rgba(15, 43, 63, .35); font-family: var(--p-body); color: var(--p-g800); }
.ptour__card--free { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 440px; }
.ptour__eyebrow { margin: 0 0 6px; font-family: var(--p-display); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--p-red); }
.ptour__title { margin: 0 0 8px; font-family: var(--p-display); font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--p-blue-900); }
.ptour__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--p-g700); }
.ptour__text b { color: var(--p-blue-900); }
.ptour__dots { display: flex; gap: 5px; margin: 14px 0 12px; }
.ptour__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-g200); }
.ptour__dots i.is-done { background: var(--p-blue-200); }
.ptour__dots i.is-on { width: 18px; border-radius: 3px; background: var(--p-red); }
.ptour__acts { display: flex; align-items: center; gap: 6px; }
.ptour__sp { flex: 1; }
body.is-touring { overflow-x: hidden; }
@media (max-width: 719px) {
  .ptour__card, .ptour__card--free { top: auto !important; left: 12px !important; right: 12px; bottom: 12px; width: auto !important; max-width: none; transform: none; }
}

.modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(var(--ink-rgb) / .6); }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(100%, 34rem); max-height: 100%; overflow: auto; padding: 1.75rem 1.75rem 1.5rem; background: var(--bg); border-top: 3px solid var(--red); box-shadow: var(--shadow-lg); }
.modal__box h3 { margin: .2rem 0 1rem; font-size: var(--fs-h3); }
.modal__close { position: absolute; top: .6rem; right: .6rem; width: 36px; height: 36px; border: 1px solid var(--line); background: none; color: var(--fg-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal__close:hover { color: var(--heading); border-color: var(--line-strong); }
.modal__error { margin: 0; }
.modal .form { gap: 1rem; }
.modal .field textarea { min-height: 110px; }
.choices { display: grid; gap: .5rem; margin: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--line); }
.choices legend { padding: 0 .4rem; font-weight: 600; font-size: var(--fs-base-sm); }
.choice { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-base-sm); cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.choices__input { padding-left: 1.65rem; }
.choices__input input { width: 100%; padding: .55rem .8rem; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; color: inherit; }
.choices__input input:disabled { opacity: .5; }
/* ---------- Legal pages (privacy) ---------- */
.legal { max-width: 46rem; }
.legal__updated { margin: 0 0 2rem; font-size: var(--fs-sm); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); }
.legal h2 { font-size: var(--fs-h3-lg); margin: 2.25rem 0 .6rem; }
.legal h3 { font-size: var(--fs-lg); margin: 1.4rem 0 .4rem; color: var(--heading); }
.legal p, .legal li { color: var(--fg-2); line-height: 1.6; }
.legal p { margin: 0 0 .9rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--red-text); font-weight: 600; }
.legal code { font-size: .9em; padding: .05em .35em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }
/* ---------- Website testing panel (alpha / beta testers only; see assets/js/tester.js) ---------- */
.tq-tab { position: fixed; right: 0; top: 40%; z-index: 400; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .5rem; border: 0; border-radius: 6px 0 0 6px; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-ui); text-transform: uppercase; font-size: var(--fs-xs); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tq-tab__t { writing-mode: vertical-rl; transform: rotate(180deg); }
.tq-tab__n { padding: .1rem .4rem; border-radius: 999px; background: #fff; color: var(--red); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-2xs); }
.tq-tab.is-open { right: min(24rem, 100vw); }
.tq { position: fixed; top: 0; right: 0; bottom: 0; z-index: 401; width: min(24rem, 100vw); display: flex; flex-direction: column; background: #fff; color: var(--fg); border-left: 1px solid var(--line-strong); box-shadow: -12px 0 30px rgba(0,0,0,.18); font-family: var(--font-body); font-size: var(--fs-base-sm); }
.tq[hidden] { display: none; }
.tq__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.1rem .9rem; border-bottom: 1px solid var(--line); border-top: 4px solid var(--red); }
.tq__head > div { flex: 1; min-width: 0; }
.tq__eyebrow { margin: 0 0 .45rem; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; font-size: var(--fs-xs); color: var(--red-text); }
.tq__prog { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.tq__prog span { display: block; height: 100%; background: var(--red); transition: width .4s var(--ease-out); }
.tq__sub { margin: .4rem 0 0; font-size: var(--fs-xs); color: var(--fg-3); }
.tq__close { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); background: none; color: var(--fg-2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tq__body { flex: 1; overflow: auto; padding: 1rem 1.1rem 1.5rem; }
.tq__h { margin: 0 0 .4rem; font-size: var(--fs-xl); }
.tq__hint { margin: 0 0 .9rem; color: var(--fg-3); font-size: var(--fs-sm); }
.tq__hint a, .tq__ok a { color: var(--red-text); font-weight: 600; }
.tq__ok { margin: 0 0 .9rem; color: var(--green); font-weight: 600; }
.tq__done { margin: 0 0 1rem; padding: .7rem .9rem; background: rgb(var(--green-rgb) / .1); border-left: 3px solid var(--green); color: var(--fg); }
.tq__qs { margin: 0; padding: 0; list-style: none; counter-reset: tq; }
.tq__q { position: relative; padding: .7rem 0 .7rem 1.9rem; border-top: 1px solid var(--line); counter-increment: tq; }
.tq__q::before { content: counter(tq); position: absolute; left: 0; top: .75rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--heading); color: #fff; font-size: var(--fs-2xs); font-weight: 700; display: grid; place-items: center; }
.tq__q.is-done::before { background: var(--line-strong); }
.tq__q.is-done p { color: var(--fg-3); }
.tq__q p { margin: 0 0 .5rem; line-height: 1.45; }
.tq__row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tq-btn { padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--heading); font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-ui); text-transform: uppercase; font-size: var(--fs-xs); cursor: pointer; }
.tq-btn:hover { border-color: var(--heading); }
.tq-btn--ok { background: var(--green); border-color: var(--green); color: #fff; }
.tq-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.tq-btn:disabled { opacity: .6; cursor: default; }
.tq-link { border: 0; background: none; padding: 0; margin-left: auto; color: var(--fg-3); font: inherit; font-size: var(--fs-xs); text-decoration: underline; cursor: pointer; }
.tq__st { font-size: var(--fs-sm); font-weight: 600; color: var(--fg-3); }
.tq__st--ok { color: var(--green); } .tq__st--bad { color: var(--red-text); }
.tq__acts { display: grid; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tq__acts .tq-btn { padding: .65rem 1rem; }
.tq__pages { margin: 0 0 1rem; padding: 0; list-style: none; }
.tq__pages li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.tq__pages a { color: var(--heading); font-weight: 600; } .tq__pages li.is-done a, .tq__pages li.is-done span { color: var(--fg-3); }
.tq__cnt { color: var(--fg-3); font-size: var(--fs-xs); }
.tq__pages li.is-done .tq__cnt { color: var(--green); font-weight: 700; }
.tq__form, .tq__wrap { display: grid; gap: .4rem; }
.tq__wrap { padding: .7rem 0; border-top: 1px solid var(--line); }
.tq__form label, .tq__wrap label { font-weight: 600; font-size: var(--fs-sm); margin-top: .5rem; }
.tq__req { color: var(--red-text); }
.tq__form textarea, .tq__form select, .tq__form input[type=file], .tq__wrap textarea { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font: inherit; font-size: var(--fs-sm); color: inherit; }
.tq__form textarea:focus, .tq__wrap textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(var(--red-soft-rgb) / .25); }
.tq__opts { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.tq__opt { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-sm); cursor: pointer; }
.tq__opt input { accent-color: var(--red); }
.tq__ctx { margin: 0 0 .6rem; padding: .5rem .7rem; background: var(--bg-2); border-left: 3px solid var(--line-strong); font-size: var(--fs-sm); color: var(--fg-2); }
.tq__err { margin: .3rem 0 0; color: var(--red-text); font-size: var(--fs-sm); font-weight: 600; }
.tq-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 410; transform: translate(-50%, 20px); max-width: min(90vw, 28rem); padding: .8rem 1.1rem; background: var(--heading); color: #fff; border-left: 4px solid var(--red); font-size: var(--fs-sm); box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .3s, transform .3s; }
.tq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
  .tq { top: auto; height: 82vh; width: 100vw; border-left: 0; border-radius: 12px 12px 0 0; }
  .tq-tab { top: auto; bottom: 5.5rem; }
  .tq-tab.is-open { display: none; }
}
/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: repeating-linear-gradient(135deg, #000 0 2px, transparent 2px 18px);
}
.cta-band__inner { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; }
.cta-band .btn--light:focus-visible { outline-color: #fff; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.2fr auto; align-items: center; } }

/* ---------- Cards (generic) ---------- */
.cards { display: grid; gap: 1.25rem; }
.card { background: var(--bg-2); border: 1px solid var(--line); padding: 1.75rem; display: grid; gap: .75rem; align-content: start; }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--fg-2); margin: 0; }
.card--accent { border-top: 3px solid var(--red); }
/* linked cards (related services): lift, shadow, red rule growing along the bottom, arrow nudges */
a.card { position: relative; overflow: hidden; color: inherit; text-decoration: none; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
a.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
a.card:hover, a.card:focus-visible { transform: translateY(var(--lift)); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
a.card:hover::after, a.card:focus-visible::after { transform: scaleX(1); }
a.card:hover h3 { color: var(--red-text); }
a.card:hover .link-arrow svg { transform: translateX(4px); }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cards--5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .cards--4, .cards--5 { grid-template-columns: repeat(2, 1fr); } }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-base-sm); }
.spec th, .spec td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--fg-3); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; width: 40%; }
.spec td { font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: var(--fs-base-sm); }
.field label .req { color: var(--red-text); }
.field .hint { font-size: var(--fs-sm); color: var(--fg-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-text); box-shadow: 0 0 0 3px rgb(var(--red-soft-rgb) / .25); }
.field input[type="file"] { padding: .55rem .9rem; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red-text); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7a8f' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.form__consent { display: flex; gap: .75rem; align-items: start; font-size: var(--fs-base-sm); color: var(--fg-2); }
.form__consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--red); flex: none; }
.form__error { display: none; color: var(--red-text); font-size: var(--fs-sm); }
.form__status { display: none; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--red); background: var(--bg-2); }
.form__status.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Customer reviews on the site ---------- */
.revs { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .revs { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); } }
.rev { margin: 0; display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem 1.5rem 1.4rem; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.rev__stars { display: flex; gap: .15rem; margin: 0; color: var(--red); }
.rev__stars svg { width: 17px; height: 17px; fill: currentColor; }
.rev blockquote { margin: 0; flex: 1; }
.rev blockquote p { margin: 0; color: var(--fg-2); font-size: var(--fs-md); line-height: 1.6; }
.rev blockquote p::before { content: "“"; }
.rev blockquote p::after { content: "”"; }
.rev figcaption { padding-top: .9rem; border-top: 1px solid var(--line); font-size: var(--fs-base-sm); }
.rev figcaption strong { display: block; color: var(--heading); font-family: var(--font-display); font-size: var(--fs-lg); }
.rev figcaption span { display: block; color: var(--fg-3); font-size: var(--fs-sm); }

/* ---------- Customer review page (/review/) ---------- */
.container--narrow { --container: 54rem; }
.rv__who { margin: 0 0 .25rem; font-size: var(--fs-lg); color: var(--fg-2); }
.rv__stars { border: 0; padding: 0; margin: 0; }
.rv__stars legend { font-weight: 600; font-size: var(--fs-base-sm); padding: 0; margin-bottom: .45rem; }
.stars { display: flex; gap: .3rem; }
.star { background: none; border: 0; padding: .2rem; line-height: 0; cursor: pointer; color: var(--line-strong); transition: color var(--dur), transform var(--dur); }
.star svg { width: 32px; height: 32px; fill: currentColor; }
.star:hover { color: var(--red-text); transform: translateY(-1px); }
.star.is-on { color: var(--red); }
.star:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; font-size: var(--fs-base-sm); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--red); }
.note { padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--red); background: var(--bg-2); }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.info { display: grid; gap: 1.5rem; }
.info__item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.info__item svg { width: 24px; height: 24px; color: var(--red-text); margin-top: .1rem; }
.info__item h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); margin-bottom: .3rem; }
.info__item p { margin: 0; }
.info__item a:hover { color: var(--red-text); }
.map { border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16 / 9; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: var(--fs-base-sm); }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand img { height: 46px; width: auto; }
.footer h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer a { color: var(--fg-2); transition: color var(--dur-fast); }
.footer a:hover { color: var(--fg); }
.footer address { font-style: normal; color: var(--fg-2); line-height: 1.7; }
.footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.footer__social a:hover { border-color: var(--fg); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--fg-3); font-size: var(--fs-sm); }
.footer__rev { color: var(--fg-3); opacity: .7; font-variant-numeric: tabular-nums; }
.footer__bottom ul { display: flex; gap: 1.25rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > :nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-in > :nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-in > :nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-in > :nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-in > :nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-in > :nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.is-in > :nth-child(8) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

[id] { scroll-margin-top: 92px; }

/* ---------- Utilities ---------- */
span.lc, .stat span .lc { display: inline; margin: 0; text-transform: none; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Process animation ---------- */
.anim { position: relative; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.anim canvas { display: block; width: 100%; aspect-ratio: 4 / 3; }
.anim__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.25rem 1.1rem; background: linear-gradient(to top, rgb(var(--ink-rgb) / .96) 60%, rgb(var(--ink-rgb) / 0)); pointer-events: none; }
.anim__caption strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--red-text); letter-spacing: var(--ls-text); }
.anim__caption span { display: block; color: var(--fg-2); font-size: var(--fs-base-sm); max-width: 46ch; }
.anim__caption.is-in strong, .anim__caption.is-in span { animation: caption-in .5s var(--ease-out) both; }
.anim__caption.is-in span { animation-delay: 80ms; }
@keyframes caption-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.anim__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.anim__bar span { display: block; height: 100%; width: 0; background: var(--red); }
.anim__controls { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .35rem; align-items: center; }
.anim__controls button { min-width: 36px; height: 36px; padding: 0 .55rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgb(var(--ink-rgb) / .7); color: var(--fg-3); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base-sm); letter-spacing: var(--ls-ui); transition: color var(--dur-fast), border-color var(--dur-fast); }
.anim__controls button:hover { color: var(--fg); border-color: var(--fg-3); }
.anim__controls button[aria-current="step"] { color: var(--fg); border-color: var(--red); background: rgb(var(--red-rgb) / .25); }
.anim__play svg { width: 16px; height: 16px; }
.anim__play .ic-pause { display: none; }
.anim.is-playing .anim__play .ic-pause { display: block; }
.anim.is-playing .anim__play .ic-play { display: none; }
.step { transition: color var(--dur); }
.step.is-active h4 { color: var(--red-text); }
.step.is-active::before { color: var(--fg); }
.split__media--anim { position: relative; }

/* ---------- Comparison (what sets us apart) ---------- */
.compare { display: grid; gap: .6rem; }
.compare__head, .compare__row { display: grid; grid-template-columns: 1fr; }
.compare__head { display: none; }
.compare__row { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgb(var(--navy-rgb) / .03); transition: transform var(--dur), box-shadow var(--dur); }
.compare__row:hover { transform: translateY(var(--lift-sm)); box-shadow: var(--shadow-lg); }
.compare__row > div { padding: 1.1rem 1.25rem; }
.compare__topic { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); color: var(--heading); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.compare__them, .compare__us { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; }
.compare__them p, .compare__us p { margin: 0; }
.compare__them { color: var(--fg-3); }
.compare__them::before { content: "Typical firm"; grid-column: 1 / -1; font-weight: 600; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-3); }
.compare__us { color: var(--fg); font-weight: 500; background: linear-gradient(90deg, rgb(var(--red-rgb) / .07), rgb(var(--red-rgb) / 0) 70%); border-top: 1px solid var(--line); }
.compare__us::before { content: "GIP"; grid-column: 1 / -1; font-weight: 600; font-size: var(--fs-2xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--red-text); }
.compare__ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: .05rem; }
.compare__ico svg { width: 14px; height: 14px; }
.compare__them .compare__ico { background: rgb(var(--red-rgb) / .12); color: var(--red-text); }
.compare__us .compare__ico { background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgb(var(--green-rgb) / .14); }
@media (min-width: 800px) {
  .compare { gap: .5rem; }
  .compare__head { display: grid; }
  .compare__head, .compare__row { grid-template-columns: 1fr 1.25fr 1.45fr; }
  .compare__head > div { padding: 1rem 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: var(--ls-ui); color: var(--fg-3); display: flex; align-items: center; gap: .6rem; }
  .compare__head > div:nth-child(2) { background: var(--bg-2); border-radius: var(--radius) var(--radius) 0 0; }
  .compare__head > div:last-child { color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--heading)); border-radius: var(--radius) var(--radius) 0 0; box-shadow: inset 0 -3px 0 var(--red); }
  .compare__head img { height: 20px; width: auto; box-sizing: content-box; padding: 4px 5px; background: #fff; border-radius: var(--radius); }
  .compare__them::before, .compare__us::before { display: none; }
  .compare__topic { background: transparent; border-bottom: 0; border-right: 1px solid var(--line); display: flex; align-items: center; }
  .compare__them { background: var(--bg-2); }
  .compare__us { border-top: 0; border-left: 3px solid var(--red); }
  .compare__row > div { padding: 1.25rem 1.4rem; }
}


/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-base-sm); }
.spec th, .spec td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--fg-3); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; width: 40%; }
.spec td { font-variant-numeric: tabular-nums; }

/* ============================================================ Portal: branded loading, greeting and colour-coded sections (rev-192)
   A GIP splash covers the first paint of a portal page; inside the app, view switches show skeletons in the shape of the
   content rather than a takeover, so the speed work in rev-186 still reads as instant. */

/* ---- splash: full-screen GIP mark, shown until the first real render ---- */
/* Literal colours, not the --p-* tokens: those live under html.is-app, which is not set yet on a first visit — the
   splash has to paint correctly before any class is applied. Above the site header (z-index 1000) for the same reason. */
.psplash { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; background: #173B56;
  background-image: radial-gradient(120% 90% at 50% 0%, #1D4A6B 0%, #173B56 45%, #0F2B3F 100%); }
.psplash[hidden] { display: none; }
.psplash.is-done { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.psplash__in { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 24px; text-align: center; }
.psplash__mark { width: 62px; height: 73px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
  animation: psplash-mark 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes psplash-mark { 0%, 100% { transform: translateY(0) scale(1); opacity: 1; } 50% { transform: translateY(-7px) scale(1.035); opacity: .82; } }
.psplash__word { font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #fff; }
.psplash__sub { margin: -12px 0 0; font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #BFD4E2; max-width: 34ch; line-height: 1.5; }
.psplash__bar { width: 168px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.psplash__bar i { display: block; width: 40%; height: 100%; border-radius: 999px; background: #B31111; animation: psplash-bar 1.25s ease-in-out infinite; }
@keyframes psplash-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .psplash__mark, .psplash__bar i { animation: none; } .psplash__bar i { width: 100%; } }

/* ---- skeletons: the shape of the content while a view loads ---- */
.pskel { display: flex; flex-direction: column; gap: 24px; }
.psk { background: #fff; border: 1px solid var(--p-g200); border-radius: 5px; box-shadow: var(--p-sh-xs); overflow: hidden; }
.psk__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--p-g200); }
.psk__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.psk__row { display: flex; align-items: center; gap: 14px; }
.pshim { position: relative; overflow: hidden; border-radius: 3px; background: var(--p-g100); }
.pshim::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: pshim 1.15s ease-in-out infinite; }
@keyframes pshim { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .pshim::after { animation: none; } }
.pshim--tile { flex: none; width: 34px; height: 34px; border-radius: 3px; }
.pshim--title { height: 16px; width: 42%; }
.pshim--cap { height: 11px; width: 22%; margin-left: auto; }
.pshim--line { height: 12px; flex: 1 1 auto; }
.pshim--sm { height: 12px; width: 84px; flex: none; }
.pshim--md { height: 12px; width: 140px; flex: none; }

/* ---- the greeting strip on the home and overview headers ---- */
.phello { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; }
.phello__hi { font-family: var(--p-display); font-weight: 700; font-size: 15px; color: var(--p-blue-800); letter-spacing: 0; }
.phello__note { font-size: 14px; color: var(--p-g600); }
.phello__note b { font-weight: 600; color: var(--p-red); }

/* ---- colour-coded cards: one accent per kind, on the rule and the icon tile ---- */
.pc { --acc: var(--p-blue-700); --acc-soft: var(--p-blue-50); }
.pc--est { --acc: var(--c-est); --acc-soft: #FBF0DC; }
.pc--dwg { --acc: var(--c-dwg); --acc-soft: var(--p-blue-50); }
.pc--tx { --acc: var(--c-tx); --acc-soft: #E2F1F3; }
.pc--rfi { --acc: var(--c-rfi); --acc-soft: #EEE9FA; }
.pc--sched { --acc: var(--p-green); --acc-soft: var(--p-green-100); }
.pc--money { --acc: var(--p-amber); --acc-soft: var(--p-amber-100); }
.pc--kind { border-top: 3px solid var(--acc); }
.pc--kind .pc__head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.pc__ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: var(--acc-soft); color: var(--acc); }
.pc__ic .ico { width: 17px; height: 17px; }
.pc--kind .pc__title { flex: 0 1 auto; }
.pc--kind .pc__cap { margin-left: auto; text-align: right; }
.pc--kind .pt th { background: var(--acc-soft); color: var(--acc); border-bottom-color: color-mix(in srgb, var(--acc) 26%, var(--p-g200)); }
.pc--kind .pt__foot { background: var(--p-g50); }

/* "Waiting on you" is the loudest thing on the page */
.pc--act { border-left: 0; border-top: 3px solid var(--p-red); }
.pc--act .pc__head { background: var(--p-red-50); border-bottom-color: var(--p-red-200); justify-content: flex-start; align-items: center; gap: 12px; }
.pc--act .pc__cap { margin-left: auto; text-align: right; }
.pc--act .pc__title { color: var(--p-red-800); }
.pc--act .pc__ic { background: var(--p-red); color: #fff; }
.pc--act .pc__cap { color: var(--p-red-800); }

/* number the eye can find */
.pc__n { flex: none; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px;
  background: var(--acc); color: #fff; font-family: var(--p-display); font-weight: 700; font-size: 12px; }
.pc--act .pc__n { background: var(--p-red); }

/* ============================================================ Portal schedule: timeline (Gantt), calendar, list (rev-223)
   The plan and what actually happened, on one set of axes. A milestone with a Start draws as a bar, one without as a
   diamond; the lane underneath carries the portal's own record. Percent geometry throughout, so the chart is whatever
   width it is given and a phone just scrolls it sideways. */
.psched { display: grid; gap: 14px; }
.pseg { display: inline-flex; align-self: start; border: 1px solid var(--p-g300); border-radius: 6px; overflow: hidden; background: #fff; }
.pseg__b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-right: 1px solid var(--p-g200);
  background: transparent; font: 600 13px/1 var(--p-display); color: var(--p-g600); cursor: pointer; }
.pseg__b:last-child { border-right: 0; }
.pseg__b:hover { background: var(--p-g50); color: var(--p-g800); }
.pseg__b.is-on { background: var(--p-blue-800); color: #fff; }
.pseg__b .ico { width: 14px; height: 14px; }

/* ---- timeline ---- */
.gt__scroll { overflow-x: auto; overflow-y: hidden; }
.gt { display: flex; min-width: 560px; --grow: 30px; }
.gt__names { flex: 0 0 168px; position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--p-g200); }
.gt__name { height: var(--grow); display: flex; align-items: center; gap: 7px; padding-right: 10px; font-size: 13px; color: var(--p-g800); }
.gt__name--h, .gt__name--ev { font: 600 11px/1 var(--p-display); letter-spacing: .08em; text-transform: uppercase; color: var(--p-g500); }
.gt__name--ev { border-top: 1px dashed var(--p-g200); }
.gt__nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt__plot { position: relative; flex: 1 1 auto; min-width: 380px; }
.gt__scale { position: relative; height: var(--grow); border-bottom: 1px solid var(--p-g200); }
.gt__mo { position: absolute; top: 0; height: var(--grow); display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-left: 1px solid var(--p-g200); font: 600 11px/1 var(--p-display); letter-spacing: .04em; color: var(--p-g600); }
.gt__rules { position: absolute; left: 0; right: 0; top: var(--grow); bottom: 0; pointer-events: none; }
.gt__rule { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--p-g100); }
.gt__now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--p-red); opacity: .8; }
.gt__nowl { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 3px;
  background: var(--p-red); color: #fff; font: 600 10px/1 var(--p-display); letter-spacing: .04em; }

.gt__track { position: relative; height: var(--grow); }
.gt__bar, .gt__slip { position: absolute; top: 50%; transform: translateY(-50%); height: 13px; border-radius: 3px; }
.gt__bar { background: var(--p-blue-700); }
.gt__bar--late { background: var(--p-red-600); }
.gt__bar--due { background: var(--p-amber-500); }
.gt__bar--done { background: var(--p-green); }
.gt__bar--unscheduled { background: var(--p-g400); }
.gt__dia { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 2px;
  transform: translateY(-50%) rotate(45deg); background: var(--p-blue-700); }
.gt__dia--late { background: var(--p-red-600); }
.gt__dia--due { background: var(--p-amber-500); }
.gt__dia--done { background: var(--p-green); }
/* the overrun: target to the day it was actually finished */
.gt__slip { background: repeating-linear-gradient(45deg, var(--p-red-100) 0 5px, var(--p-red-200) 5px 10px); border: 1px solid var(--p-red-200); }
.gt__tick { position: absolute; top: 50%; width: 9px; height: 9px; margin-left: -4.5px; transform: translateY(-50%) rotate(45deg);
  background: var(--p-green); box-shadow: 0 0 0 2px #fff; }
.gt__none { position: absolute; top: 50%; left: 4px; transform: translateY(-50%); font-size: 12px; font-style: italic; color: var(--p-g400); }

.gt__lane { position: relative; height: var(--grow); border-top: 1px dashed var(--p-g200); }
.gt__ev { position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 14px; height: 14px; padding: 0 3px;
  border: 0; border-radius: 999px; background: var(--p-g500); color: #fff; font: 700 10px/1 var(--p-display); cursor: pointer; }
.gt__ev--dwg { background: var(--c-dwg); } .gt__ev--tx { background: var(--c-tx); }
.gt__ev--rfi { background: var(--c-rfi); } .gt__ev--est { background: var(--c-est); } .gt__ev--mix { background: var(--p-g600); }
.gt__ev:hover, .gt__ev.is-on { box-shadow: 0 0 0 3px var(--p-blue-200); }

.gt__key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: 12px; color: var(--p-g600); }
.gt__ki { display: inline-flex; align-items: center; gap: 6px; }
.gt__k { flex: none; width: 15px; height: 8px; border-radius: 2px; background: var(--p-blue-700); }
.gt__k--dia { width: 10px; height: 10px; transform: rotate(45deg); }
.gt__k--late { background: var(--p-red-600); }
.gt__k--done { background: var(--p-green); }
.gt__k--slip { background: repeating-linear-gradient(45deg, var(--p-red-100) 0 4px, var(--p-red-200) 4px 8px); border: 1px solid var(--p-red-200); }
.gt__k--ev { width: 10px; height: 10px; border-radius: 999px; background: var(--p-g600); }

/* the day that was clicked on the event track */
.gt__day { display: none; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--p-g200); border-left: 3px solid var(--p-blue-700); background: var(--p-g50); }
.gt__day.is-open { display: block; }
.gt__day > b { font: 700 13px/1 var(--p-display); color: var(--p-g800); }
.gt__day ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.gt__day li { display: flex; gap: 9px; align-items: baseline; font-size: 13px; color: var(--p-g700); }
.gt__dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--p-g500); transform: translateY(-1px); }
.gt__dot--dwg { background: var(--c-dwg); } .gt__dot--tx { background: var(--c-tx); }
.gt__dot--rfi { background: var(--c-rfi); } .gt__dot--est { background: var(--c-est); }

/* ---- calendar ---- */
.cal { border: 1px solid var(--p-g200); }
.cal__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--p-g200); background: var(--p-g50); }
.cal__m { flex: none; min-width: 9.5rem; text-align: center; font: 700 15px/1 var(--p-display); color: var(--p-g800); }
.cal__head .pb:last-child { margin-left: auto; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--p-g50); border-bottom: 1px solid var(--p-g200); }
.cal__dow span { padding: 6px 8px; font: 600 11px/1 var(--p-display); letter-spacing: .06em; text-transform: uppercase; color: var(--p-g500); }
.cal__wk { position: relative; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__d { min-height: calc(48px + var(--lanes, 0) * 21px); padding: 4px 6px; border-right: 1px solid var(--p-g100); border-bottom: 1px solid var(--p-g100); }
.cal__d:last-child { border-right: 0; }
.cal__wk:last-child .cal__d { border-bottom: 0; }
.cal__d.is-out { background: var(--p-g50); }
.cal__d.is-out .cal__n { color: var(--p-g400); }
.cal__d.is-today { background: var(--p-blue-50); }
.cal__d.is-today .cal__n { background: var(--p-red); color: #fff; border-radius: 999px; }
.cal__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; font: 600 12px/1 var(--p-display); color: var(--p-g600); }
/* the bands are an overlay, so the day's own dots start below however many lanes this week needs */
.cal__evs { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: calc(3px + var(--lanes, 0) * 21px); padding: 2px; border: 0; background: transparent; cursor: pointer; }
.cal__evs:hover { background: var(--p-g100); border-radius: 4px; }
.cal__more { font: 600 10px/1 var(--p-display); color: var(--p-g500); }
.cal__bands { position: absolute; top: 26px; left: 0; right: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; pointer-events: none; }
.cal__band { pointer-events: auto; margin: 0 3px; padding: 3px 6px; border-radius: 3px; background: var(--p-blue-700); color: #fff;
  font: 600 11px/1.3 var(--p-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__band--late { background: var(--p-red-600); }
.cal__band--due { background: var(--p-amber-500); }
.cal__band--done { background: var(--p-green); }
.cal__band--unscheduled { background: var(--p-g400); }
.cal__band.is-cut0 { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal__band.is-cut1 { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal__dia { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #fff; transform: rotate(45deg); }

@media (max-width: 700px) {
  .cal__dow span { padding: 5px 3px; font-size: 10px; letter-spacing: 0; }
  .cal__d { padding: 3px; min-height: calc(42px + var(--lanes, 0) * 19px); }
  .cal__evs { margin-top: calc(3px + var(--lanes, 0) * 19px); }
  .cal__band { margin: 0 1px; padding: 2px 4px; font-size: 10px; }
  .cal__bands { top: 24px; }
  .cal__m { min-width: 7.5rem; font-size: 14px; }
  .pseg__b { padding: 7px 10px; font-size: 12px; }
}
.cal__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.cal__list li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--p-g700); }
.cal__ln { flex: 1 1 auto; min-width: 0; color: var(--p-g800); }
.cal__ld { flex: none; font-size: 12px; color: var(--p-g500); }
.cal__none { margin: 12px 0 0; font-size: 13px; color: var(--p-g500); }

/* ---- file formats: a filter bar above a table, and the format pill on each row (rev-224) ---- */
.pt__tools { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--p-g50); border-bottom: 1px solid var(--p-g200); }
.pt__tools + .ptw .pt th { border-top: 0; }
[data-filter-list] .pempty.chips__empty { padding: 18px 20px; margin: 0; border-top: 1px solid var(--p-g200); }
.pext { display: inline-block; min-width: 40px; padding: 2px 7px; border: 1px solid var(--p-g300); border-radius: 3px;
  background: var(--p-g50); color: var(--p-g600); font: 700 10px/1.6 var(--p-display); letter-spacing: .06em; text-align: center; }
.pext--pdf { border-color: var(--p-red-200); background: var(--p-red-50); color: var(--p-red-800); }
.pext--cad { border-color: var(--p-blue-200); background: var(--p-blue-50); color: var(--p-blue-700); }
.pext--model { border-color: #BFE0E4; background: #E2F1F3; color: #12626F; }
tr.is-old .pext { opacity: .6; }

/* ---- dependency links: the lines between the bars (rev-225) ---- */
.gl__layer { position: absolute; inset: 0; pointer-events: none; }
.gl { position: absolute; background: var(--p-g400); }
.gl--h { height: 2px; margin-top: -1px; }
.gl--v { width: 2px; margin-left: -1px; }
.gl__a { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 7px solid var(--p-g400);
  background: none; transform: translate(-100%, -50%); pointer-events: auto; }
.gl--bad { background: var(--p-red-600); }
.gl__a.gl--bad { background: none; border-left-color: var(--p-red-600); }
.gt__k--dep { height: 2px; background: var(--p-g400); }
.psel--sm { padding: 3px 5px; font-size: 12px; max-width: 11rem; }

.is-hidden { display: none !important; }
#m-newcust { margin-top: 8px; }

/* ============================================================ Job board, design handoff 6a (rev-233)
   A dark header carrying the pipeline strip, then one collapsible group per phase. The restraint is the point: red
   means AA priority or an overdue finish and nothing else, and the phase is the group rather than a chip on every row.
   Set in Barlow throughout — the handoff asked for IBM Plex Mono on the data columns and Ethan kept the no-mono rule. */
.jbhead { background: var(--gradient-brand-panel, linear-gradient(160deg, var(--p-blue-800) 0%, var(--p-blue-900) 100%)); color: #fff; padding: 36px 40px 0; }
.jbhead__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jbhead__l { min-width: 0; }
.jbhead__eyebrow { margin: 0; font: 600 12px/1.2 var(--p-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.jbhead__h { margin: 10px 0 0; font: 700 40px/1.1 var(--p-display); letter-spacing: -.02em; color: #fff; }
.jbhead__sum { margin: 14px 0 0; max-width: 640px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .82); text-wrap: pretty; }
.jbhead__r { flex: none; padding-bottom: 4px; }
.pb--ondark { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.pb--ondark:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); color: #fff; }

/* the pipeline: every phase, its live total, and a jump to the group */
.jbstrip { display: grid; grid-template-columns: repeat(var(--jb-cells, 12), 1fr); margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); }
.jbstrip__c { display: block; padding: 16px 12px 18px; border-right: 1px solid rgba(255, 255, 255, .1); text-decoration: none; }
.jbstrip__c:last-child { border-right: 0; }
.jbstrip__c { box-shadow: inset 0 -3px 0 var(--ph, transparent); }
.jbstrip__c:hover { background: rgba(255, 255, 255, .06); }
.jbstrip__n { display: block; font: 400 28px/1 var(--p-body); color: #fff; }
.jbstrip__l { display: block; margin-top: 9px; font: 600 10px/1.35 var(--p-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }

.jbbody { padding: 24px 40px 48px; }
.jbsearch { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.jbsearch__f { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: #fff;
  border: 1px solid var(--p-g300); border-radius: 5px; box-shadow: inset 0 1px 2px rgba(16, 20, 24, .06); }
.jbsearch__f .ico { flex: none; color: var(--p-g500); }
.jbsearch__f input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--p-blue-800); }
.jbsearch__f input:focus { outline: none; }
.jbsearch__f:focus-within { border-color: var(--p-blue-600); }
.jbsearch__n { flex: none; font-size: 12px; color: var(--p-g600); }

/* Job · Project · Customer · Pri. · On it · Timeline · Phase · → */
.jbrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 190px 104px 130px 176px 24px; gap: 16px;
  align-items: center; min-height: 44px; margin: 0 -12px; padding: 0 12px; border-bottom: 1px solid var(--p-g200); border-radius: 3px; font-size: 15px; }
.jbrow--head { min-height: 40px; border-bottom: 1px solid var(--p-g300); font: 600 11px/1.2 var(--p-display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--p-g600); }
.jbgrp__rows .jbrow:hover { background: var(--p-g50); }
.jbrow.is-old { opacity: .6; }
.jbno { font-size: 13px; color: var(--p-g600); }
.jbname { font-weight: 500; color: var(--p-blue-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbcust { color: var(--p-g800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the one number on a row worth reacting to, so it is the one thing that changes colour */
.jbage { font-size: 12px; white-space: nowrap; color: var(--p-g600); }
.jbage.is-slow { color: var(--p-amber); font-weight: 600; }
.jbage.is-late { color: var(--p-red); font-weight: 600; }
.jbgo { text-align: right; }
.jbgo a { color: var(--p-g400); display: inline-flex; }
.jbgo a:hover { color: var(--p-red); }

.jbwho { display: inline-block; margin-right: 4px; padding: 2px 5px; border: 1px solid var(--p-g300); border-radius: 3px;
  font-size: 10.5px; letter-spacing: .02em; color: var(--p-blue-800); background: #fff; }
.jbwho--none { color: var(--p-g400); border-style: dashed; }
/* The handoff has no phase column in 6a — the group is the phase — and shows nothing at all for an unassigned job.
   Both are right at rest and useless when you actually want to move a job, so the controls appear on the row you are
   pointing at (or tabbing through) and the resting board stays as drawn. */
.jbsel { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--p-g200); border-radius: 3px;
  background: #fff; font: inherit; font-size: 13px; color: var(--p-blue-800); }
.jbsel:hover { border-color: var(--p-g400); }
.jbgrp__rows .jbphase .jbsel, .jbgrp__rows .jbwho--none { opacity: 0; transition: opacity .1s ease; }
.jbgrp__rows .jbrow:hover .jbsel, .jbgrp__rows .jbrow:focus-within .jbsel,
.jbgrp__rows .jbrow:hover .jbwho--none, .jbgrp__rows .jbrow:focus-within .jbwho--none { opacity: 1; }
@media (hover: none) { .jbgrp__rows .jbphase .jbsel, .jbgrp__rows .jbwho--none { opacity: 1; } }

.jbgrp { scroll-margin-top: 16px; border-left: 4px solid var(--ph, var(--p-g300)); padding-left: 14px; margin-left: -18px; }
.jbgrp__c { background: color-mix(in srgb, var(--ph) 16%, #fff); color: color-mix(in srgb, var(--ph) 72%, var(--p-g800));
  padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.jbgrp__h { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--p-g200);
  cursor: pointer; user-select: none; }
.jbgrp__h:hover { background: var(--p-g50); }
.jbgrp__h:focus-visible { outline: 2px solid var(--p-blue-600); outline-offset: -2px; }
.jbgrp__caret { flex: none; width: 12px; display: inline-flex; color: var(--p-g500); transition: transform .12s ease; }
.jbgrp:not(.is-shut) .jbgrp__caret { transform: rotate(90deg); }
.jbgrp__n { font: 700 14px/1.2 var(--p-display); letter-spacing: .02em; color: var(--p-blue-800); }
.jbgrp__c { font-size: 12px; }
.jbgrp__note { margin-left: auto; font-size: 13px; color: var(--p-g600); }
.jbempty { margin: 0; padding: 18px 0; font-size: 15px; color: var(--p-g600); }

/* ---- the sidebar folds to an icon rail ---- */
.pside__top { display: flex; align-items: center; gap: 8px; }
.pside__brand { flex: 1; min-width: 0; }
.pside__fold { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; background: none; color: rgba(255, 255, 255, .75); cursor: pointer; }
.pside__fold:hover { background: rgba(255, 255, 255, .12); color: #fff; }
html.pside-shut .pside { width: 58px; padding-left: 8px; padding-right: 8px; gap: 14px; }
html.pside-shut .pside__brand { font-size: 0; gap: 0; justify-content: center; }
html.pside-shut .pside__top { flex-direction: column; gap: 10px; }
html.pside-shut .psearch, html.pside-shut .pnav__n { display: none; }
/* the nav labels are bare text nodes beside the icon, not spans, so they are collapsed by zeroing the type and
   giving it back to the glyph — the icons carry their own width and height, so they are untouched */
html.pside-shut .pnav a, html.pside-shut .pside__help, html.pside-shut .pside__foot { font-size: 0; gap: 0; justify-content: center; padding-left: 0; padding-right: 0; }
html.pside-shut .pnav a .ico, html.pside-shut .pside__help .ico { font-size: 16px; }
html.pside-shut .pside__fold { transform: rotate(180deg); }
html.pside-shut .pside__who, html.pside-shut .pside__out { display: none; }
@media (max-width: 900px) { html.pside-shut .pside { width: auto; } }

@media (max-width: 1100px) {
  .jbstrip { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .jbhead { padding: 28px 24px 0; }
  .jbbody { padding: 20px 24px 40px; }
  .jbhead__h { font-size: 32px; }
}
@media (max-width: 900px) {
  .jbrow { grid-template-columns: 64px minmax(0, 1fr) 58px 150px; grid-auto-rows: min-content; gap: 8px 12px; padding: 10px 12px; }
  .jbrow > .jbcust { grid-column: 2 / 5; font-size: 13px; color: var(--p-g600); }
  .jbrow > .jbon, .jbrow > .jbtime { grid-column: span 2; }
  .jbrow--head { display: none; }
}
/* the "on it" popover, carried over from rev-229: four names, checkboxes, saved on change */
.bassign { display: inline-block; position: relative; }
.bassign > summary { list-style: none; cursor: pointer; }
.bassign > summary::-webkit-details-marker { display: none; }
.bassign__menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 4px); min-width: 12rem; padding: 8px;
  border: 1px solid var(--p-g300); background: #fff; box-shadow: var(--p-sh-md); display: grid; gap: 4px; text-align: left; }
.bassign__menu label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 13px; color: var(--p-g800); cursor: pointer; }
.bassign__menu label:hover { background: var(--p-g50); }

/* sidebar: small headings instead of one run of ten links */
.pnav__lab { margin: 14px 0 2px; padding: 0 10px; font: 600 10px/1 var(--p-display); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .42); }
html.pside-shut .pnav__lab { display: none; }
html.pside-shut .pnav { gap: 2px; }

/* ---- People: time off (rev-237). A balance reads as a shape before it reads as a number. ---- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 14px; }
.tmeter__l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tmeter__l span { font: 600 11px/1.2 var(--p-display); letter-spacing: .12em; text-transform: uppercase; color: var(--p-g600); }
.tmeter__l b { font-family: var(--p-display); font-size: 21px; color: var(--p-blue-800); }
.tmeter__track { height: 8px; margin: 8px 0 5px; border-radius: 999px; background: var(--p-g100); overflow: hidden; }
.tmeter__fill { height: 100%; border-radius: 999px; background: var(--p-blue-700); }
.tmeter--pto .tmeter__fill { background: var(--p-green); }
.tmeter--sick .tmeter__fill { background: var(--p-amber-500); }
.tmeter__c { font-size: 12px; color: var(--p-g500); }
.tnote { margin: 0 0 12px; font-size: 13px; color: var(--p-amber); }
/* the People calendar: a band per person, the days GIP is shut, and the non-working end of the week shaded */
.cal__band--who { background: var(--ph, var(--p-blue-700)); }
.cal__band--who.is-pending { background: repeating-linear-gradient(45deg, var(--ph) 0 6px, color-mix(in srgb, var(--ph) 55%, #fff) 6px 12px); }
.cal__d.is-off { background: var(--p-g50); }
.cal__d.is-off.is-out { background: var(--p-g100); }
.cal__d.is-holiday { background: var(--p-red-50); }
.cal__hol { display: block; margin-top: 2px; font: 600 10px/1.25 var(--p-display); color: var(--p-red-800);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__wd, .cal__hd { flex: none; width: 10px; height: 10px; border-radius: 2px; align-self: center; }
.cal__hd { background: var(--p-red-200); border: 1px solid var(--p-red); }

/* --- People: the calendar reads as the GIP week, and the logs colour their own standing --------------------------- */
/* Four numbers over the month, the same idea as the board's pipeline strip: colour that counts something. */
.calstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 12px;
  background: var(--p-g200); border: 1px solid var(--p-g200); border-radius: 5px; overflow: hidden; }
.calstrip__c { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; background: #fff; border-top: 3px solid var(--tone, var(--p-g300)); }
.calstrip__c b { font: 700 20px/1 var(--p-display); color: var(--tone, var(--p-g700)); }
.calstrip__c span { font: 600 10px/1.2 var(--p-display); letter-spacing: .1em; text-transform: uppercase; color: var(--p-g500); }
.calstrip__c.is-none { border-top-color: var(--p-g200); }
.calstrip__c.is-none b { color: var(--p-g400); }
.calstrip__c--who { --tone: #4A82A9; }
.calstrip__c--hrs { --tone: var(--p-blue-700); }
.calstrip__c--hol { --tone: var(--p-red-600); }
.calstrip__c--pend { --tone: var(--p-amber-500); }

/* Monday to Thursday is the week that counts, so it carries the weight; Friday to Sunday steps back. */
.cal__dow span:nth-child(n+2):nth-child(-n+5) { color: var(--p-g700); background: #fff; }
.cal__head { background: linear-gradient(180deg, #fff, var(--p-g50)); }
.cal__m { font-size: 16px; letter-spacing: -.01em; }
.cal__d.is-today { background: var(--p-blue-50); box-shadow: inset 0 2px 0 var(--p-blue-700); }
.cal__d.is-holiday { background: var(--p-red-50); box-shadow: inset 3px 0 0 var(--p-red-600); }

/* A day you can ask for is a button, and says so when you point at it. */
.cal__d.is-pick { cursor: pointer; transition: background .12s ease; }
.cal__d.is-pick:hover, .cal__d.is-pick:focus-visible { background: var(--p-blue-100); outline: 0; }
.cal__d.is-pick:focus-visible { box-shadow: inset 0 0 0 2px var(--p-blue-700); }
.cal__d.is-pick:hover .cal__n::after { content: "+"; margin-left: 4px; font-weight: 700; color: var(--p-blue-700); }
.cal__d.is-pick .cal__n { padding: 0 3px; }

/* Where a request stands, readable down a long log without reading the words. */
.tst { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.5 var(--p-display); white-space: nowrap; }
.tst--ok { background: var(--p-green-100); color: var(--p-green); }
.tst--wait { background: var(--p-amber-100); color: var(--p-amber); }
.tst--no { background: var(--p-red-100); color: var(--p-red-800); }
.tst--gone { background: var(--p-g100); color: var(--p-g600); }
.tpos { color: var(--p-green); font-weight: 600; }
.tneg { color: var(--p-red-600); font-weight: 600; }
.tnote--fix { color: var(--p-g600); }

@media (max-width: 720px) { .calstrip { grid-template-columns: repeat(2, 1fr); } }

/* --- Job board: who is carrying what ----------------------------------------------------------------------------- */
/* The phase strip in the header says where the work is; this says who has it. Unassigned is the loud cell on purpose. */
.jbload { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.jbload__c { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: #fff; cursor: pointer;
  border: 1px solid var(--p-g200); border-left: 3px solid var(--p-blue-700); border-radius: 4px; text-align: left; }
.jbload__c b { font: 700 17px/1 var(--p-display); color: var(--p-blue-800); }
.jbload__c span { font: 600 11px/1.3 var(--p-display); letter-spacing: .04em; color: var(--p-g600); }
.jbload__c:hover { border-color: var(--p-g300); background: var(--p-g50); }
.jbload__c.is-on { background: var(--p-blue-700); border-color: var(--p-blue-700); }
.jbload__c.is-on b, .jbload__c.is-on span { color: #fff; }
.jbload__c--none { border-left-color: var(--p-amber-500); }
.jbload__c--none b { color: var(--p-amber); }
.jbload__c--none.is-on { background: var(--p-amber-500); border-color: var(--p-amber-500); }
.jbload__c--off { border-left-color: var(--p-red-600); border-left-style: dashed; }
.jbload__c--off b { color: var(--p-red-600); }
.jbload__clr { align-self: center; padding: 6px 10px; border: 0; background: none; cursor: pointer;
  font: 600 12px/1 var(--p-display); color: var(--p-blue-700); text-decoration: underline; }

/* --- RFI follow-ups ---------------------------------------------------------------------------------------------- */
/* These were being written to the RFI's Notes and never shown, so a client who followed up saw nothing at all. */
.rfi__thread { margin: 12px 0 0; display: grid; gap: 8px; }
.rfi__cmt { padding: 9px 12px; background: var(--p-g50); border-left: 3px solid var(--p-g300); border-radius: 0 4px 4px 0; font-size: 14px; color: var(--p-g800); }
.rfi__cmt p { margin: 0 0 3px; }
.rfi__cmt.is-reopen { background: var(--p-amber-100); border-left-color: var(--p-amber-500); }

/* ============================================================ Portal: soft glass dashboard (rev-260)
   Ethan's reference: a pale gradient ground, a floating light sidebar with a filled pill for the current page, frosted
   cards with generous corners, stat tiles that lead with a coloured icon chip, and a large title under a greeting with
   search and the signed-in person top right. GIP navy plays the reference's teal and red stays the one alarm colour.
   Everything here is scoped to html.is-app and sits last, so it overrides the older shell rules rather than editing them. */
html.is-app {
  --s-ink: #14273A; --s-accent: #245C86; --s-accent-2: #173B56;
  --s-fill: linear-gradient(135deg, #2D6A97 0%, #173B56 100%);
  --s-glass: rgba(255, 255, 255, .68); --s-glass-hi: rgba(255, 255, 255, .86); --s-edge: rgba(255, 255, 255, .9);
  --s-line: rgba(20, 39, 58, .08); --s-line-2: rgba(20, 39, 58, .14);
  --s-shadow: 0 1px 2px rgba(20, 39, 58, .04), 0 14px 36px -12px rgba(20, 39, 58, .16);
  --s-shadow-hi: 0 2px 4px rgba(20, 39, 58, .05), 0 20px 44px -14px rgba(20, 39, 58, .24);
  --s-r: 20px; --s-r-md: 14px; --s-r-sm: 10px;
}
html.is-app body {
  background:
    radial-gradient(1100px 680px at -5% -10%, #D5E5F0 0%, rgba(213, 229, 240, 0) 62%),
    radial-gradient(900px 620px at 105% -5%, #E3E2F1 0%, rgba(227, 226, 241, 0) 58%),
    radial-gradient(900px 700px at 100% 105%, #F3E3E3 0%, rgba(243, 227, 227, 0) 55%),
    #EDF2F6;
  background-attachment: fixed;
}

/* ---- sidebar: a floating frosted panel, not a navy wall ---- */
html.is-app .pside { margin: 16px 0 16px 16px; top: 16px; height: calc(100vh - 32px); padding: 22px 14px 16px; gap: 18px; color: var(--s-ink);
  background: var(--s-glass); border: 1px solid var(--s-edge); border-radius: 24px; box-shadow: var(--s-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
html.is-app .pside__brand { color: var(--s-ink); font-size: 15px; letter-spacing: -.01em; }
html.is-app .pside__fold { border-color: var(--s-line-2); color: var(--p-g600); border-radius: var(--s-r-sm); }
html.is-app .pside__fold:hover { background: rgba(20, 39, 58, .06); color: var(--s-ink); }
html.is-app .psearch { background: rgba(255, 255, 255, .7); border: 1px solid var(--s-line-2); border-radius: 12px; }
html.is-app .psearch input { color: var(--s-ink); padding: 9px 12px; }
html.is-app .psearch input::placeholder { color: var(--p-g500); }
html.is-app .psearch button { color: var(--p-g500); }
html.is-app .psearch button:hover { color: var(--s-accent); }
html.is-app .psearch:focus-within { background: #fff; border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .12); }
html.is-app .pside__proj { background: rgba(255, 255, 255, .6); border: 1px solid var(--s-line); border-radius: var(--s-r-md); }
html.is-app .pside__proj .mono { color: var(--p-g500); }
html.is-app .pside__name { color: var(--s-ink); }
html.is-app .pside__co { color: var(--p-g600); }
html.is-app .pside__co a { color: var(--s-accent); }
html.is-app .pnav { gap: 4px; }
html.is-app .pnav a { height: 42px; padding: 0 14px; gap: 12px; border: 0; border-radius: var(--s-r-md); color: var(--p-g700); font-weight: 500;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
html.is-app .pnav .ico { color: var(--s-accent); }
html.is-app .pnav a:hover { background: rgba(36, 92, 134, .08); color: var(--s-ink); }
html.is-app .pnav a.is-active { padding-left: 14px; background: var(--s-fill); color: #fff; font-weight: 600; box-shadow: 0 10px 22px -10px rgba(23, 59, 86, .7); }
html.is-app .pnav a.is-active .ico { color: #fff; }
html.is-app .pnav__n { color: var(--p-g500); }
html.is-app .pnav a.is-active .pnav__n { color: rgba(255, 255, 255, .75); }
html.is-app .pnav__n--red, html.is-app .pnav a.is-active .pnav__n--red { min-width: 22px; height: 22px; border-radius: 999px; background: var(--p-red-600); color: #fff; box-shadow: 0 4px 10px -4px rgba(155, 0, 0, .6); }
html.is-app .pnav__lab { margin: 16px 0 4px; padding: 0 14px; color: var(--p-g500); }
html.is-app .pside__help { padding: 0 14px; color: var(--p-g600); }
html.is-app .pside__help .ico { color: var(--p-g500); }
html.is-app .pside__help:hover, html.is-app .pside__help:hover .ico { color: var(--s-accent); }
html.is-app .pside__foot { border-top: 1px solid var(--s-line); }
html.is-app .pav { border-radius: 999px; background: var(--s-fill); }
html.is-app .pside .pav { background: var(--s-fill); }
html.is-app .pside__who strong { color: var(--s-ink); }
html.is-app .pside__who span { color: var(--p-g500); }
html.is-app .pside__out { color: var(--p-g500); border-radius: var(--s-r-sm); }
html.is-app .pside__out:hover { color: var(--p-red); background: var(--p-red-50); }
html.is-app .pside__lab { color: var(--p-g500); }
html.is-app .pside__lab span { color: var(--p-g400); }
html.is-app .pside__q { background: #fff; border-color: var(--s-line-2); color: var(--s-ink); }
html.is-app .pcust__a { color: var(--p-g700); border-radius: var(--s-r-sm); }
html.is-app .pcust__a:hover { background: rgba(36, 92, 134, .08); }
html.is-app .pcust__a.is-active { background: var(--s-fill); color: #fff; }
html.is-app .pcust__m { color: var(--p-g500); }
html.is-app .pcust__sub a { color: var(--p-g600); }
html.is-app .pcust__sub a:hover { color: var(--s-accent); }
html.is-app.pside-shut .pside { width: 74px; padding-left: 10px; padding-right: 10px; }
html.is-app.pside-shut .pnav a { padding: 0; }

/* ---- the page header: greeting, a big title, and search + who you are on the right ---- */
html.is-app .ph { align-items: flex-start; padding: 34px 40px 10px; background: none; border-bottom: 0; }
@media (min-width: 1625px) { html.is-app .ph { padding-inline: calc((100% - 1560px) / 2 + 40px); } }
html.is-app .ph h1 { margin-top: 6px; font-weight: 700; font-size: 38px; line-height: 1.12; letter-spacing: -.025em; color: var(--s-ink); }
html.is-app .ph .peyebrow { margin-top: 2px; color: var(--p-g500); letter-spacing: .14em; }
html.is-app .ph__cap { font-size: 14px; color: var(--p-g600); }
html.is-app .phello { margin: 0 0 2px; }
html.is-app .phello__hi { font-size: 15px; font-weight: 600; color: var(--s-accent); }
html.is-app .phello__note { color: var(--p-g500); }
.ph__r { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: 0 1 auto; min-width: 0; }
.ptools { display: flex; align-items: center; gap: 14px; }
.ptools__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--s-edge, #fff); border-radius: 999px;
  background: var(--s-glass-hi, #fff); color: var(--s-accent, #245C86); box-shadow: var(--s-shadow); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.ptools__btn:hover { transform: translateY(-1px); box-shadow: var(--s-shadow-hi); }
.ptools__me { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--s-glass-hi, #fff);
  border: 1px solid var(--s-edge, #fff); box-shadow: var(--s-shadow); }
.ptools__me .pav { width: 34px; height: 34px; font-size: 12px; box-shadow: 0 0 0 2px #fff; }
.ptools__name { font-family: var(--p-display); font-weight: 600; font-size: 13px; color: var(--s-ink, #14273A); white-space: nowrap; }
@media (max-width: 700px) { .ptools__name { display: none; } .ptools__me { padding-right: 4px; } }
html.is-app .pbody { padding: 18px 40px 56px; gap: 24px; }
html.is-app .pback { color: var(--p-g500); }
html.is-app .pback:hover { color: var(--s-accent); }

/* ---- cards: frosted, rounded, no coloured rules; the accent lives in the icon chip ---- */
html.is-app .pc, html.is-app .psk, html.is-app .pnotice, html.is-app .pj {
  background: var(--s-glass); border: 1px solid var(--s-edge); border-radius: var(--s-r); box-shadow: var(--s-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
html.is-app .pc--pad, html.is-app .pc--kind, html.is-app .pc--act, html.is-app .pc--pad.pc--internal { border-top: 1px solid var(--s-edge); }
html.is-app .pc--internal { background: rgba(236, 244, 250, .72); }
html.is-app .pc__head, html.is-app .pc--act .pc__head { padding: 20px 24px 16px; background: none; border-bottom: 1px solid var(--s-line); }
html.is-app .pc--pad { padding: 22px 24px; }
html.is-app .pc--kind > .pc--pad { padding: 18px 24px 22px; }
html.is-app .pc__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--s-ink); }
html.is-app .pc__cap { color: var(--p-g500); }
html.is-app .pc__ic { width: 38px; height: 38px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 72%, #fff) 0%, var(--acc) 100%); box-shadow: 0 8px 16px -8px var(--acc); }
html.is-app .pc__ic .ico { width: 18px; height: 18px; }
html.is-app .pc--act .pc__ic { background: linear-gradient(135deg, #D33A3A 0%, var(--p-red) 100%); box-shadow: 0 8px 16px -8px var(--p-red); }
html.is-app .pc--act .pc__title { color: var(--s-ink); }
html.is-app .pc--act .pc__cap { color: var(--p-red-800); }
html.is-app .pc__n { border-radius: 999px; }
html.is-app .prule { width: 36px; height: 3px; border-radius: 999px; background: var(--s-accent); }
html.is-app .pempty { color: var(--p-g500); }
html.is-app .pnotice .ico { color: var(--s-accent); }
html.is-app .pj { border-left: 1px solid var(--s-edge); }
html.is-app .pj:hover { box-shadow: var(--s-shadow-hi); border-color: var(--s-edge); transform: translateY(-1px); }
html.is-app .pj--act { box-shadow: inset 4px 0 0 var(--p-red), var(--s-shadow); }
html.is-app .pj__stats { border-color: var(--s-line); }
html.is-app .pj__v { color: var(--s-ink); }
html.is-app .pj__t a { color: var(--s-ink); }

/* ---- tables: the reference's standings table — quiet uppercase heads, hairline rows, a soft hover ---- */
html.is-app .pt th, html.is-app .pc--kind .pt th { padding: 12px 10px 10px; background: none; border-bottom: 1px solid var(--s-line); color: var(--p-g500); letter-spacing: .12em; }
html.is-app .pt td { padding: 11px 10px; border-top: 1px solid var(--s-line); }
html.is-app .pt th:first-child, html.is-app .pt td:first-child { padding-left: 24px; }
html.is-app .pt th:last-child, html.is-app .pt td:last-child { padding-right: 24px; }
html.is-app .pt tbody tr:hover td { background: rgba(36, 92, 134, .05); }
html.is-app .pc--kind .pt__foot { background: none; }
html.is-app .pt td.mono a, html.is-app .plink { color: var(--s-ink); }
html.is-app .pt td.mono a:hover, html.is-app .plink:hover { color: var(--s-accent); }

/* ---- the action queue ---- */
html.is-app .pq { padding: 16px 24px; border-top: 1px solid var(--s-line); }
html.is-app .pq:first-child { border-top: 0; }
html.is-app .pq__ic { width: 38px; height: 38px; border-radius: 12px; }
html.is-app .pq__id .mono { color: var(--s-ink); }

/* ---- buttons, chips, badges: rounder, and the main action carries the navy fill ---- */
html.is-app .pb { border-radius: var(--s-r-sm); transition: background .15s ease, box-shadow .15s ease, transform .1s ease; }
html.is-app .pb--primary { background: linear-gradient(135deg, #C21E1E 0%, var(--p-red) 100%); box-shadow: 0 8px 18px -10px rgba(155, 0, 0, .8); }
html.is-app .pb--primary:hover { background: var(--p-red-800); }
html.is-app .pb--secondary { background: var(--s-fill); box-shadow: 0 8px 18px -10px rgba(23, 59, 86, .8); }
html.is-app .pb--secondary:hover { background: var(--s-accent-2); }
html.is-app .pb--outline { background: rgba(255, 255, 255, .8); border-color: var(--s-line-2); color: var(--s-ink); }
html.is-app .pb--outline:hover { background: #fff; border-color: var(--s-accent); color: var(--s-accent); }
html.is-app .pb--ghost { color: var(--s-accent); }
html.is-app .pb:disabled { box-shadow: none; }
html.is-app .pchip, html.is-app .pbadge { border-radius: 999px; padding: 3px 10px; }
html.is-app .pval { border-radius: 8px; }

/* ---- modals and the preview ---- */
html.is-app .modal { background: rgba(20, 39, 58, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.is-app .modal__box { border-radius: 22px; padding: 26px 30px; box-shadow: 0 30px 70px -20px rgba(20, 39, 58, .45); }
html.is-app .modal__box::before { border-radius: 999px; background: var(--s-accent); }
html.is-app .modal__box h3 { color: var(--s-ink); }
html.is-app .modal__close { border-radius: 999px; }
html.is-app .modal .field input, html.is-app .modal .field textarea, html.is-app .modal .choices__input input, html.is-app .modal select { border-radius: var(--s-r-sm); }
html.is-app .pradio { border-radius: var(--s-r-md); }

/* ---- the job board: the dark band becomes the light header, and the pipeline becomes a row of stat tiles ---- */
html.is-app .jbhead { padding: 34px 40px 0; background: none; color: var(--s-ink); }
html.is-app .jbhead__top { align-items: flex-start; }
html.is-app .jbhead__eyebrow { color: var(--p-g500); }
html.is-app .jbhead__h { margin-top: 6px; font-size: 38px; letter-spacing: -.025em; color: var(--s-ink); }
html.is-app .jbhead__sum { margin-top: 10px; font-size: 15px; color: var(--p-g600); }
html.is-app .jbhead__r { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding: 0; }
html.is-app .jbstrip { grid-template-columns: repeat(var(--jb-cols, 4), minmax(0, 1fr)); gap: 14px; margin-top: 26px; border-top: 0; }   /* eight phases sit as two rows of four, not six and an orphaned two */
@media (max-width: 1100px) { html.is-app .jbstrip { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
html.is-app .jbstrip__c { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic l" "ic n"; align-items: center; column-gap: 12px; row-gap: 2px;
  padding: 16px; border: 1px solid var(--s-edge); border-radius: var(--s-r-md); background: var(--s-glass); box-shadow: var(--s-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .15s ease, box-shadow .15s ease; }
html.is-app .jbstrip__c:last-child { border-right: 1px solid var(--s-edge); }
html.is-app .jbstrip__c:hover { background: var(--s-glass-hi); box-shadow: var(--s-shadow-hi); transform: translateY(-2px); }
.jbstrip__ic { grid-area: ic; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ph) 65%, #fff) 0%, var(--ph) 100%); box-shadow: 0 8px 16px -8px var(--ph); }
html.is-app .jbstrip__l { grid-area: l; margin: 0; color: var(--p-g500); font-size: 10px; }
html.is-app .jbstrip__n { grid-area: n; font: 700 26px/1.05 var(--p-display); letter-spacing: -.02em; color: var(--s-ink); }
html.is-app .jbbody { margin: 22px 40px 48px; padding: 22px 24px 18px; background: var(--s-glass); border: 1px solid var(--s-edge); border-radius: var(--s-r);
  box-shadow: var(--s-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html.is-app .jbsearch__f { height: 46px; border-radius: 12px; border-color: var(--s-line-2); background: rgba(255, 255, 255, .8); box-shadow: none; }
html.is-app .jbsearch__f:focus-within { background: #fff; border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .12); }
html.is-app .jbload__c { border-radius: 999px; border: 1px solid var(--s-line-2); background: rgba(255, 255, 255, .75); }
html.is-app .jbload__c:hover { background: #fff; }
html.is-app .jbload__c.is-on { background: var(--s-fill); border-color: transparent; }
html.is-app .jbload__c--none.is-on { background: var(--p-amber-500); }
html.is-app .jbrow { border-bottom: 1px solid var(--s-line); border-radius: 10px; }
html.is-app .jbrow--head { border-bottom: 1px solid var(--s-line); color: var(--p-g500); }
html.is-app .jbgrp__rows .jbrow:hover, html.is-app .jbgrp__h:hover { background: rgba(36, 92, 134, .05); }
html.is-app .jbgrp { border-left: 0; margin-left: 0; padding-left: 0; }
html.is-app .jbgrp__h { border-bottom: 1px solid var(--s-line); border-radius: 10px; }
html.is-app .jbgrp__h::before { content: ""; flex: none; order: 1; width: 10px; height: 10px; border-radius: 999px; background: var(--ph); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ph) 18%, transparent); }
html.is-app .jbgrp__caret { order: 0; }
html.is-app .jbgrp__n { order: 2; color: var(--s-ink); }
html.is-app .jbgrp__c { order: 3; }
html.is-app .jbgrp__note { order: 4; }
html.is-app .jbname { color: var(--s-ink); }
html.is-app .jbsel { border-radius: 8px; border-color: var(--s-line-2); }
html.is-app .jbwho { border-radius: 999px; padding: 2px 8px; }
html.is-app .bassign__menu { border-radius: var(--s-r-md); border-color: var(--s-line-2); box-shadow: var(--s-shadow-hi); }
@media (max-width: 1100px) {
  html.is-app .jbhead { padding: 26px 24px 0; }
  html.is-app .jbbody { margin: 18px 24px 40px; padding: 18px; }
  html.is-app .ph { padding: 26px 24px 8px; }
  html.is-app .pbody { padding: 16px 24px 48px; }
  html.is-app .jbhead__h, html.is-app .ph h1 { font-size: 32px; }
}

/* ---- People: the calendar stats as tiles, the calendar on the same glass ---- */
html.is-app .calstrip { gap: 12px; background: none; border: 0; }
html.is-app .calstrip__c { position: relative; min-height: 64px; justify-content: center; padding: 14px 16px 14px 60px; border: 1px solid var(--s-edge);
  border-radius: var(--s-r-md); background: rgba(255, 255, 255, .72); box-shadow: var(--s-shadow); }
html.is-app .calstrip__c::before { content: ""; position: absolute; left: 14px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 60%, #fff) 0%, var(--tone) 100%); box-shadow: 0 6px 14px -8px var(--tone); }
html.is-app .calstrip__c.is-none::before { background: var(--p-g200); box-shadow: none; }
html.is-app .calstrip__c b { order: 2; font-size: 22px; color: var(--s-ink); }
html.is-app .calstrip__c span { order: 1; }
html.is-app .calstrip__c.is-none b { color: var(--p-g400); }
html.is-app .tmeter__l b { color: var(--s-ink); }
html.is-app .cal__head { background: rgba(255, 255, 255, .6); border-bottom-color: var(--s-line); }
html.is-app .cal__dow { background: none; border-bottom-color: var(--s-line); }
html.is-app .cal__dow span:nth-child(n+2):nth-child(-n+5) { background: none; }
html.is-app .cal__d { border-color: var(--s-line); }
html.is-app .cal__d.is-out, html.is-app .cal__d.is-off { background: rgba(20, 39, 58, .03); }
html.is-app .cal__d.is-today { background: rgba(36, 92, 134, .07); box-shadow: inset 0 2px 0 var(--s-accent); }
html.is-app .cal__band { border-radius: 6px; }

/* ---- the client's own list of projects: the navy top bar becomes a frosted one ---- */
html.is-app .ptop { margin: 16px 16px 0; height: 60px; padding: 0 22px; border-radius: 18px; color: var(--s-ink); background: var(--s-glass);
  border: 1px solid var(--s-edge); box-shadow: var(--s-shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html.is-app .ptop__brand { color: var(--s-ink); }
html.is-app .ptop__who { color: var(--p-g600); }
html.is-app .ptop__link { color: var(--s-accent); }
html.is-app .pav--top { background: var(--s-fill); }
html.is-app .plist__h { font-size: 36px; letter-spacing: -.025em; color: var(--s-ink); }
html.is-app .plist__sub { color: var(--p-g500); }

/* ---- the internal bar sits on the lighter ground as a pill rather than a full-width strip ---- */
html.is-app .pibar { margin: 16px 16px 0; border-radius: 14px; background: var(--s-fill); }
@media (max-width: 900px) {
  html.is-app .pside { margin: 12px 12px 0; top: 0; height: auto; border-radius: 20px; }
  html.is-app .pnav a.is-active { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html.is-app .jbstrip__c:hover, html.is-app .pj:hover, .ptools__btn:hover { transform: none; } }
html.is-app .pside { scrollbar-width: thin; scrollbar-color: rgba(20, 39, 58, .16) transparent; }
html.is-app .pside > .pside__brand { flex: none; }   /* the fold row gives the brand flex:1; on the client sidebar it sits straight in the column and grew downwards */
html.is-app .jbstrip__l { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  html.is-app .ptools { display: none; }   /* the sidebar already carries the search box and the person on a phone */
  html.is-app .ph__r, html.is-app .jbhead__r { align-items: flex-start; gap: 0; }
  html.is-app .jbstrip__ic { width: 34px; height: 34px; border-radius: 10px; }
}

/* ============================================================ Portal: the glass theme carried to every control, plus motion (rev-261)
   rev-260 restyled the surfaces and left the controls on the old system: shouting uppercase status tags, square "Open"
   links, the marketing site's .btn in the older cards and modals, square selects and segmented tabs. One button family
   now (filled red / filled navy / white outline / soft-tint ghost, all 10px corners and one height scale), one tag style
   (sentence case, soft pill), one input style, and movement that says something: views rise in, numbers count up,
   bars fill, dialogs scale in, arrows lean the way they go. All of it switches off under prefers-reduced-motion. */

/* ---- tags: sentence case, the way a person would write it — "Awaiting acceptance", not AWAITING ACCEPTANCE ---- */
html.is-app .pchip, html.is-app .pbadge { gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--p-display); font-weight: 600; font-size: 12px;
  letter-spacing: 0; text-transform: none; line-height: 1.45; }
html.is-app .pchip::before { width: 6px; height: 6px; }
html.is-app .pbadge--brand { background: rgba(36, 92, 134, .08); border-color: rgba(36, 92, 134, .18); color: var(--s-accent); }
html.is-app .pbadge--accent { background: var(--p-red-50); border-color: var(--p-red-200); }
html.is-app .pbadge--neutral { background: rgba(20, 39, 58, .05); border-color: var(--s-line-2); }
html.is-app .pbadge.mono { font-size: 12px; }
html.is-app .prev { min-width: 30px; padding: 2px 9px; border-radius: 999px; background: var(--s-fill); font-family: var(--p-display); font-size: 11px; }
html.is-app .prev--none { background: rgba(20, 39, 58, .06); color: var(--p-g500); }
html.is-app .pnav__n, html.is-app .pc__n, html.is-app .jbstrip__n, html.is-app .calstrip__c b, html.is-app .pj__v { font-variant-numeric: tabular-nums; }

/* ---- one button family ---- */
html.is-app .pb, html.is-app .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-height: 0; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--s-r-sm); font-family: var(--p-display); font-weight: 600; font-size: 13px; line-height: 1;
  letter-spacing: 0; text-transform: none; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease; }
html.is-app .pb--sm, html.is-app .btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
html.is-app .pb--md { height: 40px; padding: 0 18px; font-size: 14px; }
html.is-app .pb:hover, html.is-app .btn:hover { transform: translateY(-1px); }
html.is-app .pb:active, html.is-app .btn:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
html.is-app .pb .ico, html.is-app .btn svg { flex: none; transition: transform .2s cubic-bezier(.3, .7, .3, 1); }
html.is-app .btn:hover svg { transform: none; }
/* white: the quieter choice beside one of those */
html.is-app .pb--outline, html.is-app .btn, html.is-app .btn--outline, html.is-app .btn--light { background: rgba(255, 255, 255, .85); border-color: var(--s-line-2); color: var(--s-ink); }
html.is-app .pb--outline:hover, html.is-app .btn:not(.btn--primary):not(.btn--ghost):hover { background: #fff; border-color: rgba(36, 92, 134, .45); color: var(--s-accent); box-shadow: var(--s-shadow); }
/* red: the action the page exists for */
html.is-app .pb--primary, html.is-app .btn--primary { background: linear-gradient(135deg, #C42020 0%, var(--p-red) 100%); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(155, 0, 0, .8); }
html.is-app .pb--primary:hover, html.is-app .btn--primary:hover { background: linear-gradient(135deg, #B31111 0%, var(--p-red-800) 100%); color: #fff; box-shadow: 0 12px 22px -10px rgba(155, 0, 0, .85); }
/* navy: the firm's own moves — nudge, approve, add */
html.is-app .pb--secondary { background: var(--s-fill); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(23, 59, 86, .8); }
html.is-app .pb--secondary:hover { background: linear-gradient(135deg, #245C86 0%, #0F2B3F 100%); color: #fff; box-shadow: 0 12px 22px -10px rgba(23, 59, 86, .85); }
/* soft tint: "Open", "PDF", "Back" — clearly a button, never louder than the row it sits in */
html.is-app .pb--ghost, html.is-app .btn--ghost { background: rgba(36, 92, 134, .08); border-color: transparent; color: var(--s-accent); }
html.is-app .pb--ghost:hover, html.is-app .btn--ghost:hover { background: rgba(36, 92, 134, .15); border-color: transparent; color: var(--s-accent-2); box-shadow: none; }
html.is-app .pb--go:hover .ico { transform: translateX(3px); }
html.is-app .pb--block { width: 100%; }
html.is-app .pb:disabled, html.is-app .btn:disabled, html.is-app .btn[disabled] { background: rgba(20, 39, 58, .06); border-color: transparent; color: var(--p-g500); box-shadow: none; transform: none; cursor: not-allowed; }
html.is-app .pb:focus-visible, html.is-app .btn:focus-visible, html.is-app .pseg__b:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--s-accent); }
html.is-app .pt__acts .pb--sm, html.is-app .pt .pt__acts .pb--sm { padding: 0 11px; }
/* the Active / Closed / Archived switch: the current one is filled, the way the sidebar marks the current page */
html.is-app .statusctl .btn.is-on, html.is-app .statusctl .btn.is-on:disabled { background: var(--s-fill); color: #fff; border-color: transparent; opacity: 1; box-shadow: 0 8px 18px -10px rgba(23, 59, 86, .8); }
html.is-app .statusctl__label { font-family: var(--p-display); color: var(--p-g500); }

/* ---- segmented tabs (Timeline / Calendar / List): a tray with a filled pill ---- */
html.is-app .pseg { gap: 3px; padding: 4px; border: 0; border-radius: 13px; background: rgba(20, 39, 58, .06); overflow: visible; }
html.is-app .pseg__b { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; color: var(--p-g600); transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
html.is-app .pseg__b:hover { background: rgba(255, 255, 255, .7); color: var(--s-ink); }
html.is-app .pseg__b.is-on { background: var(--s-fill); color: #fff; box-shadow: 0 6px 14px -8px rgba(23, 59, 86, .8); }

/* ---- inputs and selects: the same 10px corners and the same focus glow as the search boxes ---- */
html.is-app .psel, html.is-app .pdate, html.is-app .padd input, html.is-app .padd select, html.is-app .pval, html.is-app .jbsel,
html.is-app .statusctl__sel, html.is-app .pmain .field input, html.is-app .pmain .field select, html.is-app .pmain .field textarea,
html.is-app .modal .field input, html.is-app .modal .field textarea, html.is-app .modal .choices__input input, html.is-app .modal select {
  border: 1px solid var(--s-line-2); border-radius: var(--s-r-sm); background-color: rgba(255, 255, 255, .9); color: var(--s-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
html.is-app .psel, html.is-app .pdate, html.is-app .padd input, html.is-app .padd select { min-height: 36px; padding: 6px 10px; }
html.is-app .psel--sm { min-height: 30px; padding: 3px 8px; border-radius: 8px; }
html.is-app .psel:hover, html.is-app .pdate:hover, html.is-app .padd input:hover, html.is-app .padd select:hover, html.is-app .pval:hover, html.is-app .jbsel:hover { border-color: rgba(36, 92, 134, .4); }
html.is-app .psel:focus, html.is-app .pdate:focus, html.is-app .padd input:focus, html.is-app .padd select:focus, html.is-app .pval:focus, html.is-app .jbsel:focus,
html.is-app .statusctl__sel:focus, html.is-app .pmain .field input:focus, html.is-app .pmain .field select:focus, html.is-app .pmain .field textarea:focus,
html.is-app .modal .field input:focus, html.is-app .modal .field textarea:focus, html.is-app .modal select:focus {
  outline: 0; border-color: var(--s-accent); background-color: #fff; box-shadow: 0 0 0 4px rgba(36, 92, 134, .13); }
html.is-app .pval.is-saved { border-color: var(--p-green); box-shadow: 0 0 0 4px rgba(31, 107, 69, .12); }
html.is-app input[type=checkbox], html.is-app input[type=radio], html.is-app .choice input, html.is-app .pradio input[type=radio] { accent-color: var(--s-accent); }
html.is-app .pradio:hover, html.is-app .pradio:has(input:checked) { border-color: var(--s-accent); }
html.is-app .pradio:has(input:checked) { box-shadow: inset 0 0 0 1px var(--s-accent), var(--s-shadow); background: #fff; }
html.is-app .modal .field label, html.is-app .modal .choices legend { color: var(--s-ink); }

/* ---- notices, tour and the preview bar on the same footing ---- */
html.is-app .portal__alert { border-left: 0; border-radius: var(--s-r-md); box-shadow: inset 4px 0 0 var(--p-red), var(--s-shadow); background: rgba(253, 245, 245, .9); color: var(--s-ink); padding: 14px 18px; }
html.is-app .portal__alert--ok { box-shadow: inset 4px 0 0 var(--p-green), var(--s-shadow); background: rgba(236, 247, 241, .92); }
html.is-app .ptour__card { border-radius: 20px; padding: 20px 22px 18px; box-shadow: 0 30px 70px -20px rgba(20, 39, 58, .5); }
html.is-app .ptour__title, html.is-app .ptour__text b { color: var(--s-ink); }
html.is-app .ptour__dots i { transition: width .25s ease, background .25s ease; }
html.is-app .ptour__dots i.is-on { border-radius: 999px; }
html.is-app .ptour__spot { border-radius: 14px; }
html.is-app .pv__close { border-radius: 999px; }

/* ---- movement ---- */
@keyframes s-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes s-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes s-pop { 0% { opacity: 0; transform: scale(.5); } 65% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes s-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes s-dialog { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes s-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.is-app { --s-ease: cubic-bezier(.2, .75, .25, 1); }
/* a view new to the screen: the header first, then the cards in reading order, each a beat after the last */
html.p-enter .ph, html.p-enter .jbhead__top { animation: s-rise .5s var(--s-ease) both; }
html.p-enter .pbody > *, html.p-enter .pcol > *, html.p-enter .jbstrip__c, html.p-enter .jbbody, html.p-enter .plist > *, html.p-enter .tgrid > * { animation: s-rise .55s var(--s-ease) both; }
html.p-enter .pbody > :nth-child(1), html.p-enter .pcol > :nth-child(1), html.p-enter .plist > :nth-child(1), html.p-enter .jbstrip__c:nth-child(1) { animation-delay: .06s; }
html.p-enter .pbody > :nth-child(2), html.p-enter .pcol > :nth-child(2), html.p-enter .plist > :nth-child(2), html.p-enter .jbstrip__c:nth-child(2) { animation-delay: .11s; }
html.p-enter .pbody > :nth-child(3), html.p-enter .pcol > :nth-child(3), html.p-enter .plist > :nth-child(3), html.p-enter .jbstrip__c:nth-child(3) { animation-delay: .16s; }
html.p-enter .pbody > :nth-child(4), html.p-enter .pcol > :nth-child(4), html.p-enter .plist > :nth-child(4), html.p-enter .jbstrip__c:nth-child(4) { animation-delay: .21s; }
html.p-enter .pbody > :nth-child(5), html.p-enter .pcol > :nth-child(5), html.p-enter .plist > :nth-child(5), html.p-enter .jbstrip__c:nth-child(5) { animation-delay: .26s; }
html.p-enter .pbody > :nth-child(n+6), html.p-enter .pcol > :nth-child(n+6), html.p-enter .plist > :nth-child(n+6), html.p-enter .jbstrip__c:nth-child(n+6) { animation-delay: .31s; }
html.p-enter .pgrid > .pcol, html.p-enter .pbody > .pgrid { animation: none; }   /* the columns are layout, their cards do the moving */
html.p-enter .jbbody { animation-delay: .34s; }
/* numbers and bars arrive with the view */
html.p-enter .pnav__n--red, html.p-enter .pc__n { animation: s-pop .45s var(--s-ease) .35s both; }
html.p-enter .tmeter__fill { transform-origin: left center; animation: s-grow .9s var(--s-ease) .3s both; }
html.p-enter .pc__ic, html.p-enter .jbstrip__ic { animation: s-pop .5s var(--s-ease) .2s both; }
/* things that open: dialogs scale in over a fading veil, the preview fades, the tour card rises, a menu drops */
html.is-app .modal:not([hidden]) { animation: s-fade .2s ease both; }
html.is-app .modal:not([hidden]) .modal__box { animation: s-dialog .32s var(--s-ease) both; }
html.is-app .pv:not([hidden]) { animation: s-fade .22s ease both; }
html.is-app .ptour__card { animation: s-dialog .35s var(--s-ease) both; }
html.is-app .bassign[open] .bassign__menu { animation: s-drop .18s var(--s-ease) both; }
html.is-app .portal__alert { animation: s-rise .4s var(--s-ease) both; }
html.is-app .jbgrp:not(.is-shut) .jbgrp__rows { animation: s-fade .25s ease both; }
/* small responses under the pointer */
html.is-app .pside { transition: width .24s var(--s-ease), padding .24s var(--s-ease); }
html.is-app .pnav a .ico { transition: transform .2s var(--s-ease), color .15s ease; }
html.is-app .pnav a:hover .ico { transform: translateX(2px); }
html.is-app .pnav a.is-active .ico { transform: none; }
html.is-app .pt tbody tr td, html.is-app .jbrow, html.is-app .pq { transition: background .15s ease; }
html.is-app .pq:hover { background: rgba(36, 92, 134, .04); }
html.is-app .pj, html.is-app .pc__ic { transition: transform .2s var(--s-ease), box-shadow .2s ease; }
html.is-app .pc:hover > .pc__head .pc__ic { transform: translateY(-1px) rotate(-4deg); }
html.is-app .ptools__me { transition: box-shadow .2s ease, transform .2s var(--s-ease); }
html.is-app .ptools__me:hover { box-shadow: var(--s-shadow-hi); }
html.is-app .cal__d.is-pick { transition: background .15s ease, box-shadow .15s ease; }
@media (prefers-reduced-motion: reduce) {
  html.is-app *, html.is-app *::before, html.is-app *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  html.is-app .pb:hover, html.is-app .btn:hover, html.is-app .pnav a:hover .ico, html.is-app .pc:hover > .pc__head .pc__ic { transform: none; }
}
html.is-app .pstatus .pb--secondary:disabled { background: var(--s-fill); color: #fff; cursor: default; box-shadow: 0 8px 18px -10px rgba(23, 59, 86, .8); }   /* the current status is disabled because it is current, not because it is unavailable */
/* checkbox options: the explanation sits under its title instead of running straight on from it ("client portalCreates") */
html.is-app .choice { align-items: flex-start; }
html.is-app .choice input { margin-top: 3px; }
html.is-app .choice__h { display: block; margin-top: 1px; font-size: 13px; line-height: 1.45; color: var(--p-g600); }
html.is-app .choices { border: 1px solid var(--s-line-2); border-radius: var(--s-r-md); background: rgba(255, 255, 255, .6); }
html.is-app .modal__box .eyebrow { color: var(--s-accent); }

/* ============================================================ Sidebar: the edge handle and the folded rail (rev-262)
   The fold used to be a square button in the admin sidebar's top corner and nowhere else, so a project page opened
   with the menu folded had no way to unfold it, and several rev-260 rules outranked the folded ones (the brand kept
   its words, the project card squeezed into 54px, a sideways scrollbar). Now one round handle sits on the panel's
   right edge, halfway down, on every sidebar, and the folded rail is icons only. */
html.is-app { --side-w: 228px; --side-l: 16px; }
html.is-app.pside-shut { --side-w: 74px; }
html.is-app .pside { width: var(--side-w); overflow-x: hidden; }
.pside__handle { position: fixed; z-index: 40; top: 50%; left: calc(var(--side-l, 16px) + var(--side-w, 228px) - 15px); width: 30px; height: 30px; margin-top: -15px;
  display: grid; place-items: center; padding: 0; border: 1px solid rgba(20, 39, 58, .1); border-radius: 999px; background: #fff; color: var(--s-accent, #245C86);
  box-shadow: 0 6px 16px -6px rgba(20, 39, 58, .45), 0 0 0 4px rgba(255, 255, 255, .55); cursor: pointer;
  transition: left .24s cubic-bezier(.2, .75, .25, 1), background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pside__handle:hover { background: var(--s-fill, #173B56); color: #fff; border-color: transparent; transform: scale(1.1); }
.pside__handle:active { transform: scale(.95); }
.pside__handle:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--s-accent, #245C86); }
.pside__handle svg { transition: transform .24s cubic-bezier(.2, .75, .25, 1); }
html.pside-shut .pside__handle svg { transform: rotate(180deg); }
.app--list .pside__handle, .pside:empty + .pside__handle { display: none; }
@media (max-width: 900px) { .pside__handle { display: none; } }

/* the folded rail: the mark, the icons, a dot where a red count was, and the avatar */
html.is-app.pside-shut .pside { padding: 20px 10px 14px; gap: 14px; scrollbar-width: none; }
html.is-app.pside-shut .pside::-webkit-scrollbar { display: none; }
html.is-app.pside-shut .pside__top { flex-direction: column; gap: 0; }
html.is-app.pside-shut .pside__brand { justify-content: center; gap: 0; font-size: 0; }
html.is-app.pside-shut .pside__brand img { height: 28px; }
html.is-app.pside-shut .psearch, html.is-app.pside-shut .pside__proj, html.is-app.pside-shut .pnav__lab, html.is-app.pside-shut .pnav__n,
html.is-app.pside-shut .pside__who, html.is-app.pside-shut .pside__out, html.is-app.pside-shut .pside__lab, html.is-app.pside-shut .pside__fold { display: none; }
html.is-app.pside-shut .pnav { gap: 6px; }
html.is-app.pside-shut .pnav a { position: relative; justify-content: center; height: 44px; padding: 0; gap: 0; font-size: 0; }
html.is-app.pside-shut .pnav a:hover .ico { transform: scale(1.1); }
html.is-app.pside-shut .pnav__n--red, html.is-app.pside-shut .pnav a.is-active .pnav__n--red { display: block; position: absolute; top: 8px; right: 10px; width: 9px; height: 9px;
  min-width: 0; padding: 0; font-size: 0; border-radius: 999px; box-shadow: 0 0 0 2px #fff; }
html.is-app.pside-shut .pside__help { justify-content: center; height: 34px; padding: 0; gap: 0; font-size: 0; }
html.is-app.pside-shut .pside__foot { justify-content: center; }

/* ============================================================ Project header tiles and the sign-in page (rev-263) */
/* the facts under a project title: one tile each instead of a grey run-on line */
html.is-app .ph--proj { flex-wrap: wrap; row-gap: 22px; }
html.is-app .ph--proj .ph__l { flex: 1 1 420px; min-width: 0; }
.phm { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.phm__i { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--s-edge); border-radius: var(--s-r-md);
  background: var(--s-glass); box-shadow: var(--s-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.phm__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(36, 92, 134, .1); color: var(--s-accent); }
.phm__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.phm__k { font: 600 10px/1.2 var(--p-display); letter-spacing: .12em; text-transform: uppercase; color: var(--p-g500); }
.phm__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.phm__v .plink { color: var(--s-ink); }
.phm__v .plink:hover { color: var(--s-accent); }
.phm__v .pbadge { padding: 2px 9px; font-size: 12px; }
.phm__d { margin-left: 3px; font-weight: 500; color: var(--p-g500); }
.phm__none { font-weight: 500; color: var(--p-g500); }
.phm__i.is-quiet .phm__ic { background: rgba(20, 39, 58, .06); color: var(--p-g500); }
html.p-enter .phm__i { animation: s-rise .5s var(--s-ease) both; }
html.p-enter .phm__i:nth-child(2) { animation-delay: .04s; } html.p-enter .phm__i:nth-child(3) { animation-delay: .08s; }
html.p-enter .phm__i:nth-child(4) { animation-delay: .12s; } html.p-enter .phm__i:nth-child(5) { animation-delay: .16s; } html.p-enter .phm__i:nth-child(6) { animation-delay: .2s; }

/* sign in: the portal ground, a frosted card, and what the portal does as tiles in their document colours */
html.is-login .login { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 20px clamp(16px, 4vw, 48px) 56px; overflow: hidden; color: var(--s-ink); }
html.is-login .login::before, html.is-login .login::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
html.is-login .login::before { width: 620px; height: 620px; top: -220px; right: -160px; background: radial-gradient(circle, rgba(45, 106, 151, .22) 0%, rgba(45, 106, 151, 0) 68%); }
html.is-login .login::after { width: 560px; height: 560px; bottom: -260px; left: -180px; background: radial-gradient(circle, rgba(155, 0, 0, .12) 0%, rgba(155, 0, 0, 0) 68%); }
.login__top { display: none; }
html.is-login .login__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 10px 12px 10px 18px; border: 1px solid var(--s-edge); border-radius: 18px; background: var(--s-glass); box-shadow: var(--s-shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.login__brand { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--p-display); color: var(--s-ink); text-decoration: none; }
.login__brand img { width: auto; height: 26px; }
.login__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(36, 92, 134, .08);
  font: 600 13px/1 var(--p-display); color: var(--s-accent); text-decoration: none; transition: background .15s ease; }
.login__back:hover { background: rgba(36, 92, 134, .15); }
.login__back svg { transition: transform .2s ease; }
.login__back:hover svg { transform: translate(2px, -2px); }
html.is-login .login__grid { position: relative; z-index: 1; flex: 1; display: grid; gap: 40px; align-items: center; width: 100%; max-width: 1180px; margin: 0 auto; padding-top: clamp(28px, 6vh, 72px); }
@media (min-width: 960px) { html.is-login .login__grid { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: 64px; } }
.login__hi { margin: 0; font: 600 15px/1.3 var(--p-display); color: var(--s-accent); }
html.is-login .login__intro h1 { max-width: 14ch; margin: 10px 0 16px; font: 700 clamp(34px, 4.4vw, 52px)/1.08 var(--p-display); letter-spacing: -.03em; color: var(--s-ink); }
html.is-login .login__intro .lede { max-width: 46ch; margin: 0; font-size: 17px; line-height: 1.55; color: var(--p-g600); }
html.is-login .login__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 30px 0 0; padding: 0; list-style: none; }
@media (max-width: 600px) { html.is-login .login__points { grid-template-columns: 1fr; } }
html.is-login .login__pt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--s-edge); border-radius: var(--s-r-md);
  background: var(--s-glass); box-shadow: var(--s-shadow); font-size: 13.5px; line-height: 1.45; color: var(--p-g600); }
html.is-login .login__pt strong { display: block; margin-bottom: 2px; font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.login__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--k) 62%, #fff) 0%, var(--k) 100%); box-shadow: 0 8px 16px -8px var(--k); }
html.is-login .login__points .login__ic svg { width: 18px; height: 18px; margin: 0; color: #fff; }
.login__pt--est { --k: var(--c-est); } .login__pt--dwg { --k: var(--c-dwg); } .login__pt--tx { --k: var(--c-tx); } .login__pt--rfi { --k: var(--c-rfi); }
html.is-login .login__card { position: relative; padding: 34px 32px 26px; border: 1px solid var(--s-edge); border-radius: 26px; background: rgba(255, 255, 255, .8);
  box-shadow: 0 30px 70px -30px rgba(20, 39, 58, .45), var(--s-shadow); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
@media (max-width: 600px) { html.is-login .login__card { padding: 26px 20px 20px; border-radius: 22px; } }
.login__badge { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; background: var(--s-fill); color: #fff; box-shadow: 0 10px 22px -10px rgba(23, 59, 86, .8); }
.login__badge--ok { background: linear-gradient(135deg, #3E9970 0%, var(--p-green) 100%); box-shadow: 0 10px 22px -10px rgba(31, 107, 69, .8); }
.login__eb { margin: 0; font: 600 11px/1.2 var(--p-display); letter-spacing: .14em; text-transform: uppercase; color: var(--p-g500); }
html.is-login .login__card h2 { margin: 6px 0 10px; font: 700 26px/1.2 var(--p-display); letter-spacing: -.02em; color: var(--s-ink); }
.login__sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--p-g600); }
.login__form { display: grid; gap: 8px; margin-top: 22px; }
.login__lab { font: 600 12.5px/1.2 var(--p-display); color: var(--s-ink); }
.login__field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 1px solid var(--s-line-2); border-radius: 14px; background: rgba(255, 255, 255, .95);
  color: var(--p-g500); transition: border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.login__field:focus-within { border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .13); color: var(--s-accent); }
.login__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 500 15.5px/1 var(--p-body); color: var(--s-ink); outline: 0; }
html.is-app .login__go { width: 100%; height: 50px; margin-top: 10px; border-radius: 14px; font-size: 15px; }
.login__note { margin: 14px 0 0; font-size: 13px; color: var(--p-g500); }
html.is-login .login__alt { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--s-line); }
html.is-login .login .portal__alert { margin-bottom: 18px; }
/* it arrives the way the app views do: the words rise, the card scales in */
html.is-login .login__top { animation: s-fade .4s ease both; }
html.is-login .login__intro > * { animation: s-rise .55s var(--s-ease) both; }
html.is-login .login__intro > :nth-child(2) { animation-delay: .06s; } html.is-login .login__intro > :nth-child(3) { animation-delay: .12s; } html.is-login .login__intro > :nth-child(4) { animation-delay: .18s; }
html.is-login .login__card { animation: s-dialog .55s var(--s-ease) .1s both; }
/* the project header in rows: title with search and you, then the actions, then the facts */
html.is-app .ph--proj .ph__acts--row { flex: 1 1 100%; justify-content: flex-start; padding-top: 0; margin-top: -8px; }
.phm__v { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.phm__d { display: block; margin: 1px 0 0; font-size: 12.5px; }
.phm__k { white-space: nowrap; letter-spacing: .1em; }
@media (max-width: 900px) {
  html.is-app .ph--proj .ph__l { flex: none; width: 100%; }   /* the header stacks into a column here, where a 420px basis became 420px of height */
  html.is-app .ph--proj .ph__r { display: none; }
  html.is-app .ph--proj .ph__acts--row { margin-top: 0; }
  .phm { align-self: stretch; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .phm__i { padding: 10px 12px; gap: 10px; }
  .phm__ic { width: 30px; height: 30px; }
}
.phm__k { overflow: hidden; text-overflow: ellipsis; }
.login__back svg { flex: none; }
@media (max-width: 959px) { html.is-login .login__card { order: -1; } html.is-login .login__grid { gap: 28px; padding-top: 24px; } }   /* on a phone the thing you came to do comes first; what the portal is follows it */
html.is-login .login__points[hidden] { display: none; }   /* staff sign-in hides the client tour of features */

/* ============================================================ Staff Portal: two workspaces, and the Policies page (rev-264) */
/* Projects | My GIP — a tray with the current one filled, the way the schedule tabs read; a dot says the other has news */
.pws { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border-radius: 13px; background: rgba(20, 39, 58, .06); }
.pws__b { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 8px; border-radius: 10px;
  font: 600 13px/1 var(--p-display); color: var(--p-g600); text-decoration: none; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.pws__b:hover { background: rgba(255, 255, 255, .75); color: var(--s-ink); }
.pws__b.is-on { background: var(--s-fill); color: #fff; box-shadow: 0 8px 16px -9px rgba(23, 59, 86, .8); }
.pws__b .ico { flex: none; }
.pws__dot { position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--p-red-600); box-shadow: 0 0 0 2px #fff; }
html.is-app.pside-shut .pws { grid-template-columns: 1fr; padding: 3px; }
html.is-app.pside-shut .pws__b { height: 34px; padding: 0; gap: 0; }
html.is-app.pside-shut .pws__b span { display: none; }
html.is-app.pside-shut .pws__dot { top: 4px; right: 6px; }
@media (max-width: 900px) { .pws { width: 100%; } }

/* Policies: quick tiles, then a sticky contents column beside the articles */
button.phm__i { font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
button.phm__i:hover { transform: translateY(-2px); box-shadow: var(--s-shadow-hi); }
.pol__quick { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pol { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.pol__side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); padding: 14px; border: 1px solid var(--s-edge);
  border-radius: var(--s-r); background: var(--s-glass); box-shadow: var(--s-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pol__q { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--s-line-2); border-radius: 12px; background: rgba(255, 255, 255, .9); color: var(--p-g500); }
.pol__q:focus-within { border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .13); color: var(--s-accent); }
.pol__q input { flex: 1; min-width: 0; border: 0; background: none; font: 500 14px/1 var(--p-body); color: var(--s-ink); outline: 0; }
.pol__hits { margin: 0; font-size: 12.5px; color: var(--p-g600); }
.pol__toc { overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.pol__toc ul { margin: 0; padding: 0; list-style: none; }
.pol__toc ul ul { margin: 2px 0 8px; }
.pol__toc button { display: flex; gap: 8px; width: 100%; padding: 5px 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
  font: 500 13px/1.35 var(--p-body); color: var(--p-g700); }
.pol__toc button:hover { background: rgba(36, 92, 134, .08); color: var(--s-ink); }
.pol__toc button span { flex: none; min-width: 2.2em; color: var(--p-g500); }
.pol__toc .pol__art { margin-top: 6px; font: 600 13px/1.3 var(--p-display); color: var(--s-ink); }
.pol__toc .pol__art span { color: var(--s-accent); }
.pol__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pol__a { scroll-margin-top: 16px; }
.pol__a[hidden], .hb__s[hidden] { display: none; }
.pol__n { display: block; margin-bottom: 2px; font: 600 10.5px/1.2 var(--p-display); letter-spacing: .12em; text-transform: uppercase; color: var(--p-g500); }
.pol__notice summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.pol__notice summary .ico { color: var(--p-amber); }
.pol__notice[open] summary { margin-bottom: 10px; }
/* the handbook text */
.hb { font-size: 15px; line-height: 1.65; color: var(--p-g700); }
.hb p { margin: 0 0 12px; }
.hb ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.hb li { position: relative; padding-left: 18px; }
.hb li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 6px; height: 6px; border-radius: 999px; background: var(--s-accent); opacity: .7; }
.hb__s { padding: 18px 0 6px; border-top: 1px solid var(--s-line); scroll-margin-top: 16px; border-radius: 10px; }
.hb__s:first-child { padding-top: 0; border-top: 0; }
.hb h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 600 17px/1.3 var(--p-display); letter-spacing: -.01em; color: var(--s-ink); }
.hb h3 span, .hb h4 span { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(36, 92, 134, .1); font-size: 12px; color: var(--s-accent); }
.hb h4 { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; font: 600 15px/1.3 var(--p-display); color: var(--s-ink); scroll-margin-top: 16px; }
.hb__note { padding: 12px 16px; border-radius: 12px; background: rgba(217, 146, 38, .1); box-shadow: inset 3px 0 0 var(--p-amber-500); color: var(--s-ink); }
@keyframes s-flash { 0%, 100% { background: transparent; } 20% { background: rgba(36, 92, 134, .1); } }
.is-flash { animation: s-flash 1.6s ease; }
@media (max-width: 1000px) { .pol { grid-template-columns: 1fr; } .pol__side { position: static; max-height: 320px; } }
.pws__dot { top: 3px; right: 4px; }
/* the carryover warning (Handbook 4.1.3) */
.tnote--carry { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(217, 146, 38, .1); box-shadow: inset 3px 0 0 var(--p-amber-500); color: var(--s-ink); }
.tnote--carry .ico { flex: none; margin-top: 2px; color: var(--p-amber); }
.tcarry { color: var(--p-amber); font-weight: 600; white-space: nowrap; }
.pws__b { gap: 6px; padding: 0 6px; font-size: 12.5px; } .pws__b span { white-space: nowrap; }
/* T&Cs: the box in the accept dialog, the agree line, the terms page (rev-265) */
.pterms { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--s-line-2, #dfe4e8); border-radius: 14px; background: rgba(36, 92, 134, .05); }
.pterms__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--s-fill, #173B56); color: #fff; }
.pterms__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--p-g600); }
.pterms__t b { font: 600 14px/1.3 var(--p-display); color: var(--s-ink, #14273A); }
.pterms__agree { margin: 12px 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(155, 0, 0, .04); font-size: 14px; color: var(--s-ink, #14273A); }
.pterms__sel { display: block; margin-top: 6px; max-width: 11.5rem; }
.pterms__sel.is-saved { border-color: var(--p-green); box-shadow: 0 0 0 4px rgba(31, 107, 69, .12); }
.plist--wide { max-width: 1100px; }
.pterms-page { display: flex; flex-direction: column; gap: 18px; }
.pterms-page .pseg, html.is-app .pbody > .pseg { align-self: flex-start; flex-wrap: wrap; }
.hb--terms { font-size: 14.5px; }
.hb--terms h3 { margin: 22px 0 8px; } .hb--terms h3:first-child { margin-top: 0; }
.hb--terms h4 { margin: 14px 0 6px; font-size: 14.5px; }
.hb--terms p b:first-child { color: var(--s-ink, #14273A); }
.hb__sub { font-style: italic; color: var(--p-g500); }
.hb__foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--s-line, #e5e9ee); font-size: 12.5px; color: var(--p-g500); }
@media print { html.is-app .pside, html.is-app .ptop, html.is-app .pseg, html.is-app .pnotice, html.is-app .ptools, html.is-app .pb, .pside__handle { display: none !important; } html.is-app body { background: #fff; } html.is-app .pc { box-shadow: none; border: 0; backdrop-filter: none; } }
html.is-app .pc__head:has(> .pc__ic) { justify-content: flex-start; align-items: center; gap: 12px; }
html.is-app .pc__head:has(> .pc__ic) .pc__cap { margin-left: auto; }
/* Releases card (rev-266) */
.prel { display: flex; flex-direction: column; }
.prel__bar { padding: 14px 24px; border-bottom: 1px solid var(--s-line); }
.prel__all { margin: 0; }
.prel__f { padding: 14px 24px; border-bottom: 1px solid var(--s-line); }
.prel__f.is-hold { background: rgba(217, 146, 38, .06); }
.prel__h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.prel__t { display: flex; flex-direction: column; gap: 1px; min-width: 9rem; }
.prel__t b { font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.prel__t .pmuted { font-size: 12px; }
.prel__acts { display: flex; gap: 6px; margin-left: auto; }
.prel__files { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.prel__file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); font-size: 13.5px; }
.prel__file .ico { flex: none; color: var(--s-accent); }
.prel__file.is-held { background: rgba(20, 39, 58, .04); color: var(--p-g600); }
.prel__file.is-held .ico { color: var(--p-g500); }
.prel__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--s-ink); }
.prel__w { flex: none; font-size: 12px; color: var(--p-g500); }
.prel .pempty { display: flex; align-items: center; gap: 8px; padding: 16px 24px; }
.prel__clear { margin: 0; padding: 10px 24px 14px; font-size: 12.5px; }
.prel .portal__alert { margin: 12px 24px 0; }
.phm--card { padding: 16px 20px 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.phm--card .phm__i { background: rgba(255, 255, 255, .75); box-shadow: none; border-color: var(--s-line); }

/* ============================================================ The bell (rev-267) */
.ptools__bell { position: relative; }
.ptools__n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px;
  background: var(--p-red-600); color: #fff; font: 700 10.5px/1 var(--p-display); box-shadow: 0 0 0 2px #fff; animation: s-pop .4s var(--s-ease, ease) both; }
.ptools__n[hidden] { display: none; }
html.is-app .ptop .ptools__bell { width: 36px; height: 36px; }
.pbell { position: fixed; z-index: 260; width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column;
  border: 1px solid var(--s-edge, #fff); border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 30px 70px -24px rgba(20, 39, 58, .45), var(--s-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); animation: s-drop .2s var(--s-ease, ease) both; overflow: hidden; }
.pbell__h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--s-line); }
.pbell__h b { font: 700 15px/1 var(--p-display); color: var(--s-ink); }
.pbell__c { padding: 3px 9px; border-radius: 999px; background: var(--p-red-50); color: var(--p-red-600); font: 600 12px/1.3 var(--p-display); }
.pbell__l { margin: 0; padding: 6px; list-style: none; overflow-y: auto; scrollbar-width: thin; }
.pbell__i { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s ease; }
.pbell__i:hover { background: rgba(36, 92, 134, .07); }
.pbell__i.is-new { background: rgba(36, 92, 134, .06); }
.pbell__i.is-new .pbell__t b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 999px; background: var(--p-red-600); vertical-align: middle; }
.pbell__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(36, 92, 134, .1); color: var(--s-accent); }
.pbell__i--act .pbell__ic { background: rgba(217, 146, 38, .14); color: var(--p-amber); }
.pbell__i--good .pbell__ic { background: rgba(31, 107, 69, .12); color: var(--p-green); }
.pbell__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--p-g600); }
.pbell__t b { font: 600 13.5px/1.35 var(--p-display); color: var(--s-ink); }
.pbell__t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbell__m { font-size: 11.5px; color: var(--p-g500); }
.pbell__e { display: flex; align-items: center; gap: 8px; margin: 0; padding: 22px 18px; font-size: 14px; color: var(--p-g600); }
@media (max-width: 900px) { html.is-app .ptools { display: flex; } html.is-app .ptools > :not(.ptools__bell) { display: none; } }
/* Stage 2 phases (rev-268): the suggestion under the phase, and the reason when evidence moved it */
.jbsug { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 9px; border: 1px dashed rgba(36, 92, 134, .45); border-radius: 999px; background: rgba(36, 92, 134, .06); font: 600 11.5px/1.3 var(--p-display); color: var(--s-accent); cursor: pointer; white-space: nowrap; }
.jbsug:hover { background: var(--s-fill); border-style: solid; border-color: transparent; color: #fff; }
.jbwhy { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: var(--p-green); white-space: nowrap; }
.jbphase { display: flex; flex-direction: column; align-items: flex-start; }
.jbmoved { margin-bottom: 14px; }
/* Drawing packages (rev-269) */
.ppk { padding: 12px 0; border-bottom: 1px solid var(--s-line); }
.ppk:first-child { padding-top: 0; }
.ppk__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ppk__h b { font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.ppk__h span { font-size: 12.5px; color: var(--p-g600); white-space: nowrap; }
.ppk__bar { display: flex; height: 10px; border-radius: 999px; background: rgba(20, 39, 58, .08); overflow: hidden; }
.ppk__bar i { display: block; height: 100%; transition: width .6s var(--s-ease, ease); }
.ppk__ifc { background: linear-gradient(90deg, #3E9970, var(--p-green)); }
.ppk__iss { background: linear-gradient(90deg, #6FA3C8, var(--s-accent)); }
html.p-enter .ppk__bar i { transform-origin: left center; animation: s-grow .9s var(--s-ease) .3s both; }
.ppk__key { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: 12px 0 0; font-size: 12px; color: var(--p-g500); }
.ppk__dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 999px; background: rgba(20, 39, 58, .15); vertical-align: middle; }
.ppk__dot.is-ifc { background: var(--p-green); } .ppk__dot.is-iss { background: var(--s-accent); }
.ppk__list { margin-top: 8px; font-size: 13px; }
.ppk__list summary { cursor: pointer; color: var(--s-accent); font-weight: 500; }
.ppk__list ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ppk__list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; }
.ppk__list li:hover { background: rgba(36, 92, 134, .05); }
.ppk__list li span:not(.ppk__dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-g600); }
.ppk__add { margin-top: 16px; display: grid; gap: 8px; }
.ppk__add textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--s-line-2); border-radius: 12px; font: 13.5px/1.5 var(--p-body); background: rgba(255, 255, 255, .9); resize: vertical; }
.ppk__add textarea:focus { outline: 0; border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .13); }
.ppk__addb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ppk__addb .pmuted { font-size: 12px; }
/* Team calendar: project dates beside who is out (rev-270) */
.cal__band--job { background: rgba(36, 92, 134, .14); color: var(--s-ink); border: 1px solid rgba(36, 92, 134, .35); }
.cal__band--job.cal__band--late { background: rgba(179, 17, 17, .12); border-color: rgba(179, 17, 17, .45); color: var(--p-red-800); }
.cal__band--job.cal__band--done { background: rgba(31, 107, 69, .12); border-color: rgba(31, 107, 69, .4); color: var(--p-green); }
.cal__jd { flex: none; width: 10px; height: 10px; border-radius: 3px; align-self: center; background: rgba(36, 92, 134, .25); border: 1px solid var(--s-accent); }
.cal__jd.is-late { background: rgba(179, 17, 17, .2); border-color: var(--p-red-600); } .cal__jd.is-done { background: rgba(31, 107, 69, .2); border-color: var(--p-green); }
.cal__jobs { margin: 0 0 12px; }
/* the header search: a magnifier that opens into the field (rev-272) */
.ptools__find { display: inline-flex; align-items: center; height: 42px; border: 1px solid var(--s-edge, #fff); border-radius: 999px; background: var(--s-glass-hi, #fff); box-shadow: var(--s-shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.ptools__find input { width: 0; min-width: 0; height: 100%; padding: 0; border: 0; background: none; opacity: 0; font: 500 14px/1 var(--p-body); color: var(--s-ink, #14273A); outline: 0;
  transition: width .28s cubic-bezier(.2, .75, .25, 1), padding .28s cubic-bezier(.2, .75, .25, 1), opacity .2s ease; }
.ptools__find input::placeholder { color: var(--p-g500); }
.ptools__find input::-webkit-search-cancel-button { cursor: pointer; }
.ptools__find .ptools__btn { flex: none; width: 40px; height: 40px; border: 0; box-shadow: none; background: none; }
.ptools__find .ptools__btn:hover { transform: none; box-shadow: none; color: var(--s-accent-2, #173B56); }
.ptools__find.is-open { border-color: var(--s-accent, #245C86); box-shadow: 0 0 0 4px rgba(36, 92, 134, .13), var(--s-shadow); }
.ptools__find.is-open input { width: min(300px, 38vw); padding: 0 4px 0 18px; opacity: 1; }
@media (max-width: 900px) { html.is-app .ptools > .ptools__find { display: inline-flex; } .ptools__find.is-open input { width: min(220px, 52vw); } }
@media (prefers-reduced-motion: reduce) { .ptools__find input { transition: none; } }

/* ============================================================ My GIP: Expenses (rev-273) */
html.is-app .modal__box--wide { width: min(100%, 50rem); }
.xrules summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.xrules summary .ico { color: var(--s-accent); }
.xrules[open] summary { margin-bottom: 12px; }
.xrules .hb { font-size: 14px; }
.xreps { display: flex; flex-direction: column; }
.xrep { border-bottom: 1px solid var(--s-line); }
.xrep:last-child { border-bottom: 0; }
.xrep summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 24px; cursor: pointer; list-style: none; transition: background .15s ease; }
.xrep summary::-webkit-details-marker { display: none; }
.xrep summary:hover { background: rgba(36, 92, 134, .04); }
.xrep__no { font: 600 13px/1 var(--p-display); color: var(--s-accent); }
.xrep__who { font: 600 14px/1.3 var(--p-display); color: var(--s-ink); }
.xrep__m { flex: 1; min-width: 12rem; font-size: 13px; color: var(--p-g600); }
.xrep__t { font: 700 16px/1 var(--p-display); color: var(--s-ink); font-variant-numeric: tabular-nums; }
.xlate { color: var(--p-amber); font-weight: 600; }
.xitems { margin: 0; padding: 0 24px 10px; list-style: none; display: grid; gap: 4px; }
.xitems li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto 6rem; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); font-size: 13.5px; }
.xitems__d { color: var(--p-g500); font-size: 12.5px; }
.xitems__t b { font-weight: 600; color: var(--s-ink); }
.xitems__r { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.xitems__a { text-align: right; font-weight: 600; color: var(--s-ink); font-variant-numeric: tabular-nums; }
.xrep__note { margin: 0 24px 10px; padding: 8px 12px; border-radius: 10px; background: rgba(20, 39, 58, .04); font-size: 13px; }
.xrep__acts { display: flex; gap: 8px; padding: 0 24px 14px; }
@media (max-width: 700px) { .xitems li { grid-template-columns: 1fr auto; } .xitems__d, .xitems__r { grid-column: 1 / -1; } }
/* the form */
#xlines { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 10px; }
.xline { padding: 14px; border: 1px solid var(--s-line-2); border-radius: 16px; background: rgba(246, 248, 249, .7); }
.xline__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.xline__h b { font: 600 13px/1 var(--p-display); color: var(--s-ink); }
.xline__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xf { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.xf > span:first-child { font: 600 11.5px/1.2 var(--p-display); color: var(--s-ink); }
.xf input, .xf select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--s-line-2); border-radius: 10px; background: #fff; font: 14px/1.3 var(--p-body); color: var(--s-ink); }
.xf input:focus, .xf select:focus { outline: 0; border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .13); }
.xf input[type=file] { padding: 6px; font-size: 12.5px; }
.xf--wide { grid-column: 1 / -1; }
.xf--mi { display: none; }
.xline.is-mileage .xf--mi { display: flex; }
.xline.is-mileage .xf--amt, .xline.is-mileage .xf--rcpt { display: none; }
.xf--rcpt { grid-column: span 2; }
.xf__st { font-size: 12px; color: var(--p-g500); }
.xf__st.is-busy { color: var(--s-accent); } .xf__st.is-ok { color: var(--p-green); font-weight: 600; } .xf__st.is-bad { color: var(--p-red-600); font-weight: 600; }
.xline__note { margin: 8px 0 0; font-size: 12.5px; color: var(--p-g500); }
.xline__note:empty, .xline__amt:empty { display: none; }
.xline__amt { margin: 6px 0 0; font-size: 13px; color: var(--p-g700); }
.xsum { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 4px; padding: 12px 16px; border-radius: 14px; background: rgba(36, 92, 134, .07); }
.xsum span { font: 600 13px/1 var(--p-display); color: var(--p-g600); }
.xsum b { font: 700 22px/1 var(--p-display); color: var(--s-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .xline__g { grid-template-columns: 1fr 1fr; } .xf--rcpt { grid-column: 1 / -1; } }
/* My GIP records (rev-274) */
.hrf { margin: 14px 0 16px; }
.xf textarea { width: 100%; min-height: 76px; padding: 8px 10px; border: 1px solid var(--s-line-2); border-radius: 10px; background: #fff; font: 14px/1.45 var(--p-body); color: var(--s-ink); resize: vertical; }
.xf textarea:focus { outline: 0; border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(36, 92, 134, .13); }
.xf__h { font-size: 12px; color: var(--p-g500); }
.hrf__check { grid-column: 1 / -1; align-items: flex-start; margin: 0; }
.hrf__check .xf__h { display: block; }
.hrdl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; margin: 0; padding: 4px 24px 12px; }
.hrdl div { min-width: 0; }
.hrdl dt { font: 600 10.5px/1.3 var(--p-display); letter-spacing: .1em; text-transform: uppercase; color: var(--p-g500); }
.hrdl dd { margin: 2px 0 0; font-size: 14px; color: var(--s-ink); overflow-wrap: anywhere; white-space: pre-line; }
.xrep__k { padding: 2px 9px; border-radius: 999px; background: rgba(36, 92, 134, .1); font: 600 11px/1.4 var(--p-display); color: var(--s-accent); }
.pnotice--warn { box-shadow: inset 4px 0 0 var(--p-amber-500), var(--s-shadow); } .pnotice--warn .ico { color: var(--p-amber); }
.pnotice--ok { box-shadow: inset 4px 0 0 var(--p-green), var(--s-shadow); } .pnotice--ok .ico { color: var(--p-green); }
.ack { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--p-display); }
.ack--done { color: var(--p-green); }
.ackp { display: grid; gap: 10px; }
.ackp__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ackp__h b { font: 700 16px/1.3 var(--p-display); color: var(--s-ink); } .ackp__h span { font-size: 13px; color: var(--p-g600); }
.ackp .pmuted { margin: 0; }
.ackp__sign { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(36, 92, 134, .05); }
.ackp__sign p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--s-ink); }
.ackp__sign .pb { justify-self: start; }
.cal__band--remote { background: repeating-linear-gradient(135deg, rgba(42, 160, 168, .22) 0 6px, rgba(42, 160, 168, .12) 6px 12px); color: #11666C; border: 1px solid rgba(42, 160, 168, .5); }
/* My GIP home (rev-275) */
.phome__q { text-decoration: none; color: inherit; }
.phome__q:hover .phome__go { color: var(--s-accent-2); transform: translateX(2px); }
.phome__go { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font: 600 12.5px/1 var(--p-display); color: var(--s-accent); white-space: nowrap; transition: transform .15s ease; }
.phome__l { margin: 0; padding: 6px; list-style: none; }
.phome__l a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--p-g700); font-size: 14px; }
.phome__l a:hover { background: rgba(36, 92, 134, .06); }
.phome__l b { color: var(--s-ink); font-weight: 600; }
.phome__w { margin: 0; padding: 6px; list-style: none; }
.phome__d { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; }
.phome__d > b { min-width: 4.2rem; font: 600 13px/1 var(--p-display); color: var(--s-ink); }
.phome__d.is-today { background: rgba(36, 92, 134, .07); box-shadow: inset 3px 0 0 var(--s-accent); }
.phome__d.is-off > b { color: var(--p-g500); }
.phome__p { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(36, 92, 134, .1); font-weight: 600; color: var(--s-ink); }
.phome__p i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--p-g600); }
.phome__p--remote { background: rgba(42, 160, 168, .14); }
.phome__p--hol { background: rgba(179, 17, 17, .08); color: var(--p-red-800); }
.phome__a { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 20px; }
/* HR requests, directory, benefits, checklists (rev-277) */
.hrg__b { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hrg__i { margin: 0; padding: 14px 24px 16px; font-size: 13.5px; line-height: 1.55; color: var(--p-g600); border-bottom: 1px solid var(--s-line); }
.dirme { display: grid; gap: 12px; }
.dirme .xline__g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dirme__go { display: flex; align-items: flex-end; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.dir__p { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--s-line); border-radius: 16px; background: rgba(255, 255, 255, .7); }
.dir__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.dir__t b { font: 600 15px/1.3 var(--p-display); color: var(--s-ink); }
.dir__t > span { color: var(--p-g500); font-size: 13px; }
.dir__t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir__em { display: inline-flex !important; align-items: center; gap: 5px; margin-top: 4px; color: var(--p-amber) !important; font-size: 12.5px !important; }
.bnfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }
.bnf { display: flex; flex-direction: column; gap: 10px; }
.bnf__h { display: flex; align-items: center; gap: 12px; }
.bnf .hb { margin: 0; font-size: 14px; } .bnf__s { margin-top: auto; font-size: 13px; }
.chk { padding: 0; }
.chk__h { display: flex; align-items: center; gap: 12px; padding: 18px 24px; cursor: pointer; list-style: none; }
.chk__h::-webkit-details-marker { display: none; }
.chk__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chk__t b { font: 600 16px/1.3 var(--p-display); color: var(--s-ink); } .chk__t span { font-size: 12.5px; color: var(--p-g500); }
.chk__n { font: 700 15px/1 var(--p-display); color: var(--s-ink); white-space: nowrap; }
.chk__bar { margin: 0 24px 6px; }
.chk__l { margin: 0; padding: 6px 14px 10px; list-style: none; display: grid; gap: 2px; }
.chk__l li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.chk__l li:hover { background: rgba(36, 92, 134, .04); }
.chk__l label { flex: 1; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.chk__l input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.chk__l label span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--s-ink); }
.chk__l label b { font-weight: 500; }
.chk__l li.is-done label b { color: var(--p-g500); text-decoration: line-through; text-decoration-color: rgba(20, 39, 58, .3); }
.chk__l em { font-style: normal; font-size: 12px; color: var(--p-g500); } .chk__l em.is-auto { color: var(--p-green); }
.chk__s { flex: none; font-size: 12px; }
.chk__f { padding: 4px 24px 18px; }
.chk__new { display: grid; gap: 10px; }
.chk__new > b { font: 600 15px/1.3 var(--p-display); color: var(--s-ink); }
.chk__new .pb { justify-self: start; } .chk__new .pmuted { margin: 0; font-size: 12.5px; }
@media (max-width: 800px) { .dirme .xline__g { grid-template-columns: 1fr 1fr; } }

/* rev-280: the employment record under each person in the Directory (Admins only) */
.dir__emp { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--s-line); color: var(--p-g600) !important; font-size: 12.5px !important; }
.dir__t .dir__eb { align-self: flex-start; margin-top: 4px; }
.xf__hint { margin-top: 3px; font-style: normal; font-size: 12px; color: var(--p-g500); }

/* rev-283: the release-stage badge (bottom-right of every portal page) and the notice it opens */
.pstage { position: fixed; right: 14px; bottom: 14px; z-index: 150; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border: 1px solid rgba(23, 59, 86, .14); border-radius: 999px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(15, 43, 63, .12); color: #173B56; font: 700 11.5px/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pstage:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 43, 63, .16); }
.pstage:focus-visible { outline: 2px solid #245C86; outline-offset: 2px; }
.pstage i { width: 8px; height: 8px; border-radius: 50%; background: #D9902A; box-shadow: 0 0 0 3px rgba(217, 144, 42, .2); }
.pstage span { font-weight: 600; letter-spacing: .02em; text-transform: none; color: #5D6873; }
body.is-touring .pstage { display: none; }
@media (max-width: 640px) { .pstage { right: 10px; bottom: 10px; padding: 5px 10px 5px 8px; font-size: 10.5px; } .pstage span { display: none; } }
@media print { .pstage { display: none; } }
.pstagen p { margin: 0 0 .8rem; }
.pstagen h4 { margin: 1.1rem 0 .4rem; font: 700 15px/1.3 "Montserrat", sans-serif; color: #173B56; letter-spacing: 0; text-transform: none; }
.pstagen ol { margin: 0 0 1.1rem; padding-left: 1.3rem; list-style: decimal; }
.pstagen li { display: list-item; margin: .3rem 0; padding-left: .2rem; }
.pstagen__go { display: flex; flex-wrap: wrap; gap: .6rem; }

/* rev-285: jobs off the board (search finds them, Re-open puts them back) and the Project folders page */
.jboff__hint { display: flex; align-items: center; gap: 8px; margin: 18px 4px 4px; color: var(--p-g500); font-size: 13px; }
.jboff { margin-top: 22px; border: 1px dashed rgba(23, 59, 86, .22); border-radius: 18px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.jboff__h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--s-line); color: #173B56; }
.jboff__h span { color: var(--p-g500); font-size: 13px; }
.jboff__r { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--s-line); }
.jboff__r:last-child { border-bottom: 0; }
.jboff__no { font: 700 13px "Montserrat", sans-serif; color: #173B56; }
.jboff__t { display: flex; flex-direction: column; min-width: 0; }
.jboff__t b { font-weight: 600; color: var(--s-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jboff__t span { color: var(--p-g500); font-size: 12.5px; }
.jboff__go .psel { min-width: 170px; }
@media (max-width: 640px) { .jboff__r { grid-template-columns: 1fr; gap: 6px; } .jboff__go .psel { width: 100%; } }
.fldsw { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.fldsw__l { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 420px; }
.fldsw__l p { margin: 4px 0 0; }
.fldsw__dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #8A96A3; box-shadow: 0 0 0 4px rgba(138, 150, 163, .18); }
.fldsw__dot.is-on { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .18); }
.fldany p { margin: 4px 0 10px; }
.fldany__go { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.fldres__l { max-height: 320px; overflow: auto; margin: 6px 0 12px; padding-left: 1.1rem; font-size: 13px; color: var(--p-g600); }
.fldres__l li { margin: 2px 0; word-break: break-word; }

/* rev-286: a phase card in the board's strip filters the board to that phase */
html.is-app .jbstrip__c.is-on { border-color: var(--ph, #245C86); box-shadow: 0 0 0 2px var(--ph, #245C86), var(--s-shadow-hi); background: var(--s-glass-hi); }
html.is-app .jbstrip__c.is-dim { opacity: .55; }
html.is-app .jbstrip__c.is-dim:hover { opacity: 1; }
.jbonly { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; padding: 10px 14px; border: 1px solid var(--s-line); border-radius: 14px; background: rgba(255, 255, 255, .7); font-size: 14px; color: var(--s-ink); }
.jbonly__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ph, #245C86); }
.jbonly__clr { margin-left: auto; padding: 6px 12px; border: 1px solid var(--s-line); border-radius: 999px; background: #fff; color: #173B56; font: 600 13px "Barlow", sans-serif; cursor: pointer; }
.jbonly__clr:hover { border-color: #245C86; }

/* rev-287: the board header stays one row while the header search opens, so the tools and New project do not drop below the title */
@media (min-width: 901px) { html.is-app .jbhead__top { flex-wrap: nowrap; } html.is-app .jbhead__l { flex: 1 1 auto; } }
