/* E-CON Group design system
   Brand: navy #21355A + steel #A6ABAB (from the logo). Accent: hi-vis site orange, used sparingly.
   Type: Barlow (body) + Barlow Semi Condensed (display). Mono for spec-sheet metadata. */

:root {
  --navy: #21355A;
  --navy-2: #1B2D4E;
  --navy-3: #111B2D;
  --ink: #0F1626;
  --slate: #4A5567;
  --slate-2: #606977; /* darkened from #6B7585 (QA nice-to-have #8): 4.20:1 on --paper / 3.84:1 on --paper-2 -> 5.00:1 / 4.57:1, clears 4.5:1 everywhere it's used */
  --steel: #A6ABAB;
  --mist: #D9DDE3;
  --paper: #F5F3EE;
  --paper-2: #ECE9E1;
  --white: #FFFFFF;
  --line: #DDD8CE;
  --line-2: #C6C0B3;
  --accent: #F0812D;
  --accent-2: #D9691B;
  --accent-soft: #FBE3D0;
  --ok: #1F7A4D;
  --err: #B3261E;

  --font: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Semi Condensed', 'Barlow', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease: ease;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(17, 27, 45, .06), 0 12px 32px -12px rgba(17, 27, 45, .18);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.12; }
h4 { font-family: var(--font); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
/* .h4: apply the h4 look to an element promoted to h3 for a correct heading outline (QA should-fix #3).
   A class, so it overrides h3's own font-size/line-height by specificity without touching real h4 elements. */
.h4 { font-family: var(--font); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--slate); max-width: 60ch; }
.measure { max-width: 62ch; }
.muted { color: var(--slate-2); }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--dark { background: var(--navy-3); color: #E9ECF2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede, .section--dark .muted { color: #B8C0CF; }
.section--navy { background: var(--navy); color: #E9ECF2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: #C9D1DF; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2));
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section--dark .eyebrow, .section--navy .eyebrow { color: #C9D1DF; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; } .section-head--split .lede { margin: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; min-height: 48px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--navy-2); --bd: var(--navy-2); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--primary { --bg: var(--accent); --fg: var(--ink); --bd: var(--accent); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { --bg: var(--accent-2); --bd: var(--accent-2); --fg: var(--ink); } }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { --bg: var(--navy); --fg: #fff; } }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
@media (hover: hover) and (pointer: fine) { .btn--ghost-light:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; } }
.btn--sm { padding: 10px 16px; min-height: 40px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(4px); } .link-arrow:hover { text-decoration: underline; } }
.section--dark .link-arrow, .section--navy .link-arrow { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 238, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.header.compact { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(17,27,45,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height .3s var(--ease-out); }
.header.compact .header__inner { min-height: 66px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img, .logo svg { height: 46px; width: auto; transition: height .3s var(--ease-out); }
.header.compact .logo img { height: 40px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; border-radius: 4px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__actions { display: none; align-items: center; gap: 10px; }
.header__phone { font-family: var(--mono); font-size: .86rem; color: var(--slate); text-decoration: none; padding: 8px 10px; }
.header__phone:hover { color: var(--navy); }
.burger { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line-2); border-radius: 4px; padding: 10px 14px; min-height: 44px; font-weight: 600; }
.burger span.lines { position: relative; width: 20px; height: 14px; }
.burger span.lines i { position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
.burger span.lines i:nth-child(1) { top: 0; } .burger span.lines i:nth-child(2) { top: 6px; } .burger span.lines i:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .nav, .header__actions { display: flex; } .burger { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 90; background: var(--navy-3); color: #fff; padding: calc(var(--header-h) + 16px) var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s; }
.drawer.open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease-out), transform .3s var(--ease-out); }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a { font-family: var(--display); font-size: 2rem; font-weight: 600; color: #fff; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; }
.drawer nav a[aria-current="page"] { color: var(--accent); }
.drawer nav a svg { width: 24px; height: 24px; flex: none; }
.drawer .drawer__meta { display: grid; gap: 12px; color: #B8C0CF; }
.drawer .drawer__meta a { color: #fff; }
body.drawer-open { overflow: hidden; }
body.drawer-open .header { background: var(--navy-3); }
body.drawer-open .burger { border-color: rgba(255,255,255,.35); color: #fff; }
body.drawer-open .burger i { background: #fff; }
body.drawer-open .logo img { filter: brightness(0) invert(1); }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-3); overflow: clip; min-height: min(88svh, 860px); display: grid; align-items: end; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.06); animation: hero-zoom 9s var(--ease-out) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(17,27,45,.55) 0%, rgba(17,27,45,.15) 35%, rgba(17,27,45,.75) 75%, rgba(17,27,45,.95) 100%),
  linear-gradient(90deg, rgba(17,27,45,.6) 0%, rgba(17,27,45,0) 60%); }
.hero__inner { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); display: grid; gap: 36px; align-items: end; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); } }
.hero h1 { color: #fff; max-width: 12ch; text-wrap: balance; }
.hero .eyebrow { color: #D6DCE8; }
.hero .lede { color: #DCE1EA; margin-top: 22px; max-width: 52ch; }
.hero .btn-row { margin-top: 30px; }
.hero__card { justify-self: end; width: 100%; max-width: 380px; background: rgba(17,27,45,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 20px 22px; color: #fff; text-decoration: none; display: grid; gap: 12px; transition: border-color .25s, transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero__card:hover { border-color: rgba(255,255,255,.4); transform: translateY(-3px); } }
.hero__card .mono { color: #B8C0CF; }
.hero__card strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.05; }
.hero__card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.hero__card dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9AA4B7; }
.hero__card dd { margin: 2px 0 0; font-weight: 600; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 20px; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #9AA4B7; writing-mode: vertical-rl; display: none; }
@media (min-width: 1200px) { .hero__scroll { display: block; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.ticker__inner { display: flex; align-items: center; gap: 0; }
.ticker__label { flex: none; padding: 14px var(--gutter); font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #B8C0CF; border-right: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.ticker__track { display: flex; overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__list { display: flex; flex: none; gap: 0; list-style: none; margin: 0; padding: 0; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__list { animation-play-state: paused; }
.ticker__list li { padding: 14px 32px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; display: flex; align-items: center; gap: 32px; }
.ticker__list li::after { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 30px 24px 30px 0; border-right: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; padding-left: 24px; }
@media (min-width: 900px) { .stat:nth-child(2n) { border-right: 1px solid var(--line); padding-left: 0; } .stat:last-child { border-right: 0; } .stat + .stat { padding-left: 28px; } }
.stat__value { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__value sup { font-size: .5em; vertical-align: top; color: var(--accent); margin-left: 2px; }
.stat__label { margin-top: 8px; color: var(--slate); font-weight: 500; }
.section--dark .stats, .section--navy .stats { border-color: rgba(255,255,255,.14); }
.section--dark .stat, .section--navy .stat { border-color: rgba(255,255,255,.14); }
.section--dark .stat__value, .section--navy .stat__value { color: #fff; }
.section--dark .stat__label, .section--navy .stat__label { color: #B8C0CF; }

/* ---------- Doorways ---------- */
.doorways { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .doorways { grid-template-columns: repeat(3, 1fr); } }
.doorway { background: var(--white); padding: clamp(24px, 3vw, 36px); display: grid; align-content: start; gap: 14px; text-decoration: none; color: var(--ink); position: relative; transition: background-color .25s var(--ease); min-height: 260px; }
.doorway__idx { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--slate-2); }
.doorway h3 { font-size: 1.6rem; }
.doorway p { color: var(--slate); margin: 0; }
.doorway .link-arrow { margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .doorway:hover { background: var(--paper); } .doorway:hover .link-arrow svg { transform: translateX(4px); } }
.doorway::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .doorway:hover::after { transform: scaleY(1); } }

/* ---------- Split / media + text ---------- */
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split .media { position: relative; }
.split .media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split .media .tag { position: absolute; left: 16px; bottom: 16px; background: rgba(17,27,45,.85); color: #fff; padding: 8px 12px; border-radius: 4px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 1.05rem; }
.checklist li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* ---------- Services list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding-left .3s var(--ease-out); position: relative; }
@media (min-width: 800px) { .svc-row { grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; align-items: center; gap: 24px; padding: 26px 0; } }
.svc-row__num { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--slate-2); padding-top: 6px; }
@media (min-width: 800px) { .svc-row__num { padding-top: 0; } }
.svc-row h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); grid-column: 2; }
.svc-row p { margin: 6px 0 0; color: var(--slate); grid-column: 2; }
@media (min-width: 800px) { .svc-row p { margin: 0; grid-column: 3; } }
.svc-row .arrow { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); align-items: center; justify-content: center; transition: background-color .25s, border-color .25s, color .25s; }
.svc-row .arrow svg { width: 18px; height: 18px; }
@media (min-width: 800px) { .svc-row .arrow { display: inline-flex; } }
@media (hover: hover) and (pointer: fine) {
  .svc-row:hover { padding-left: 10px; }
  .svc-row:hover .arrow { background: var(--navy); border-color: var(--navy); color: #fff; }
  .svc-row:hover h3 { color: var(--navy-2); }
}

/* ---------- Project cards ---------- */
.projects-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } .projects-grid--feature > :first-child { grid-column: span 2; grid-row: span 2; } }
.pcard { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.pcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); position: relative; }
.projects-grid--feature > :first-child .pcard__media { aspect-ratio: 16 / 11; }
@media (min-width: 1100px) { .projects-grid--feature > :first-child .pcard__media { height: 100%; aspect-ratio: auto; } .projects-grid--feature > :first-child { grid-template-rows: 1fr auto; } }
.pcard__media picture { height: 100%; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard__status { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 3px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(17,27,45,.85); color: #fff; }
.pcard__status--live { background: var(--accent); color: var(--ink); }
.pcard__body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.pcard__owner { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); }
.pcard h3 { font-size: 1.45rem; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: .9rem; color: var(--slate); }
.pcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard__meta b { color: var(--navy); font-weight: 600; }
.pcard .muted { color: var(--slate-2); }
@media (hover: hover) and (pointer: fine) { .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); } .pcard:hover .pcard__media img { transform: scale(1.04); } }
/* Card-only projects ("detail": false) render as a <div>: same card, no link affordance */
.pcard:not([href]) { cursor: default; }
/* Field updates (approved rows from the project-update Google Form, see scripts/sync_updates.py) */
.phase { display: inline-block; padding: 3px 8px; border-radius: 3px; background: var(--accent-soft); color: var(--ink); font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.pcard__update { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.pcard__update-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pcard__update time { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.pcard__update p { margin: 0; font-size: .95rem; color: var(--slate); }
.field-feed { padding-bottom: 0; }
.field-feed h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 8px; }
.feed { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feed__item { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feed__item time { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); padding-top: 3px; }
.feed__project { margin: 0; font-weight: 600; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.feed__text { margin: 2px 0 0; color: var(--slate); max-width: 70ch; }
@media (min-width: 720px) { .feed__item { grid-template-columns: 140px 1fr; gap: 24px; } }
@media (hover: hover) and (pointer: fine) { .pcard:not([href]):hover { transform: none; box-shadow: none; } .pcard:not([href]):hover .pcard__media img { transform: none; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 16px; min-height: 40px; font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]):not([aria-current="page"]) { border-color: var(--navy); } }
.filters__count { align-self: center; margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--slate-2); }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--slate); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-3); color: #fff; position: relative; isolation: isolate; overflow: clip; }
.page-hero__inner { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); display: grid; gap: 20px; }
@media (min-width: 960px) { .page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; } }
.page-hero h1 { color: #fff; text-wrap: balance; max-width: 16ch; }
.page-hero .lede { color: #C9D1DF; margin-top: 18px; }
.page-hero .eyebrow { color: #C9D1DF; }
.page-hero .media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.page-hero--bg .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero--bg .page-hero__media picture { height: 100%; }
.page-hero--bg .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,27,45,.94) 0%, rgba(17,27,45,.75) 55%, rgba(17,27,45,.35) 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #9AA4B7; }
.crumbs a { color: #C9D1DF; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #5C687F; }

/* ---------- Spec sheet ---------- */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
@media (min-width: 720px) { .spec { grid-template-columns: repeat(3, 1fr); } }
.spec dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); }
.spec dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.spec dd.big { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.section--dark .spec { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.section--dark .spec dd { color: #fff; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button { padding: 0; border: 0; background: var(--mist); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery button:hover img { transform: scale(1.03); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; width: auto; }
.lightbox::backdrop { background: rgba(17,27,45,.94); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 4px; }
.lightbox figcaption { color: #C9D1DF; font-size: .92rem; text-align: center; max-width: 70ch; }
.lightbox__bar { display: flex; justify-content: center; gap: 10px; }
.lightbox__bar button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; min-width: 44px; min-height: 44px; padding: 0 14px; font-weight: 600; }
.lightbox__bar button:hover { background: rgba(255,255,255,.2); }

/* ---------- Content blocks ---------- */
.two-col { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } .two-col--even { grid-template-columns: 1fr 1fr; } }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.impact { display: grid; gap: 22px; }
@media (min-width: 720px) { .impact { grid-template-columns: repeat(2, 1fr); } }
.impact article { padding-top: 16px; border-top: 2px solid var(--navy); }
.impact .h4 { margin-bottom: 6px; color: var(--navy); } /* was ".impact h4"; the impact item titles are now h3.h4 elements (heading-order fix) */
.impact p { margin: 0; color: var(--slate); }
.points { display: grid; gap: 24px; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.point__idx { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; }
.point h4 { color: var(--navy); font-size: 1.15rem; }
.point .h4 { color: var(--navy); font-size: 1.15rem; } /* same look for the point-title elements promoted h4->h3 (heading-order fix); real h4s above (job Key responsibilities/Qualifications/What we offer) are untouched */
.point p { margin: 0; color: var(--slate); }
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { background: var(--white); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
.value svg { width: 30px; height: 30px; color: var(--accent); }
.value h3 { font-size: 1.35rem; }
.value p { margin: 0; color: var(--slate); }
.quote { border-left: 3px solid var(--accent); padding-left: 22px; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0; }
.quote cite { display: block; font-family: var(--mono); font-style: normal; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); margin-top: 14px; }
.awards { display: grid; gap: 20px; }
@media (min-width: 700px) { .awards { grid-template-columns: repeat(2, 1fr); } }
.award { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.award img { width: 120px; height: auto; }
.award .h4 { color: var(--navy); } /* was ".award h4"; award titles are now h3.h4 (heading-order fix, no other h4 lived in .award) */
.award .mono { color: var(--slate-2); }
.mv { display: grid; gap: 20px; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv article { padding: 28px; background: var(--navy); color: #fff; border-radius: var(--radius-lg); }
.mv article:nth-child(2) { background: var(--navy-3); }
.mv h3 { color: var(--accent); font-size: 1.2rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.mv p { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }

/* ---------- Team ---------- */
.team-group { margin-bottom: clamp(32px, 4vw, 56px); }
.team-group h3 { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }
.person { display: grid; gap: 10px; justify-items: start; }
.person img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: var(--mist); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }
.person h4 { font-size: 1.05rem; color: var(--navy); margin-top: 6px; }
.person p { margin: 0; color: var(--slate); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.1rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--slate); max-width: 70ch; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); font-weight: 500; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 3px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); color: var(--slate); }
.badge--open { background: var(--accent-soft); color: var(--accent-2); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.steps .h4 { color: var(--navy); } /* was ".steps h4"; step titles are now h3.h4 (heading-order fix, no other h4 lived in .steps) */
.steps p { margin: 0; color: var(--slate); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field label .req { color: var(--accent-2); }
.field .hint { font-size: .86rem; color: var(--slate-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(33,53,90,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .error { display: none; font-size: .86rem; color: var(--err); }
.field.invalid .error { display: block; }
.field input[type="file"] { padding: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.field--check label { font-weight: 400; color: inherit; }
.field--check.invalid input[type="checkbox"] { outline: 2px solid var(--err); outline-offset: 2px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 600; color: var(--navy); padding: 0 6px; }
.form__note { font-size: .88rem; color: var(--slate-2); }
.section--dark .field label { color: #fff; }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.section--dark .field input::placeholder, .section--dark .field textarea::placeholder { color: #8F99AC; }
.section--dark .field input:focus, .section--dark .field textarea:focus, .section--dark .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,129,45,.25); }
.section--dark .form__note, .section--dark .field .hint { color: #9AA4B7; }
.section--dark .check { color: #C9D1DF; }
.section--dark .check input { accent-color: var(--accent); }
.section--dark legend { color: #fff; } /* QA blocker #1: legend inherited navy-on-navy3 (1.41:1); span.req inside it inherits this too */
.hp { position: absolute; left: -9999px; }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); } }
.contact-card { display: grid; gap: 22px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #9AA4B7; }
.contact-card dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; }
.contact-card dd a { color: #fff; text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }
.map-card { display: grid; grid-template-columns: 1fr; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.04); transition: border-color .25s; }
.map-card:hover { border-color: rgba(255,255,255,.45); }
.map-card__art { height: 150px; position: relative; background:
  radial-gradient(circle at 60% 40%, rgba(240,129,45,.35), transparent 30%),
  linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px; }
.map-card__art::before { content: ""; position: absolute; left: 60%; top: 40%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(240,129,45,.3); transform: translate(-50%, -50%); }
.map-card__art::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 2px; background: rgba(255,255,255,.25); transform: rotate(-8deg); }
.map-card__body { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-card__body strong { display: block; }
.map-card__body span { color: #B8C0CF; font-size: .92rem; }
.map-card__body svg { width: 22px; height: 22px; flex: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { display: grid; gap: 24px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D1DF; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: #C9D1DF; }
.footer__top { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 80px) 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #9AA4B7; font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #E9ECF2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 38ch; color: #9AA4B7; }
.footer address { font-style: normal; display: grid; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 22px; font-size: .88rem; color: #8F99AC; }
.footer__bottom a { color: #B8C0CF; }
.footer__bottom .legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- AI tab + mobile bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); transition: transform .3s var(--ease-out); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; background: var(--paper); color: var(--navy); font-weight: 600; text-decoration: none; }
.mobile-bar a.primary { background: var(--accent); color: var(--ink); }
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar.hide { transform: translateY(110%); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 60px; } }

/* ---------- Reveal system (content is visible without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal--fade { transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose p { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose ul { max-width: 68ch; display: grid; gap: 6px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; animation: none; }
  .ticker__list { animation: none; flex-wrap: wrap; }
  .ticker__track { mask-image: none; }
}
@media print {
  .header, .footer, .mobile-bar, .drawer, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Assistant (robot with a hardhat) ---------- */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: grid; justify-items: end; gap: 12px; }
@media (max-width: 1023px) { .assistant { right: 14px; bottom: calc(60px + 14px + env(safe-area-inset-bottom)); } }
.assistant__btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; min-height: 52px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(17,27,45,.6); cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s; }
.assistant__btn svg { width: 34px; height: 34px; flex: none; }
.assistant__btn:hover { background: var(--navy-2); transform: translateY(-2px); }
.assistant__btn:active { transform: scale(.97); }
.assistant__btn .label { white-space: nowrap; }
@media (max-width: 480px) { .assistant__btn .label { display: none; } .assistant__btn { padding: 9px; } }
.assistant.open .assistant__btn { display: none; }
.assistant__panel { width: min(380px, calc(100vw - 28px)); max-height: min(640px, calc(100vh - 120px)); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(17,27,45,.45); display: none; grid-template-rows: auto 1fr auto; overflow: hidden; transform-origin: bottom right; }
.assistant.open .assistant__panel { display: grid; animation: assistant-in .25s var(--ease-out); }
@keyframes assistant-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.assistant__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--navy-3); color: #fff; }
.assistant__head svg { width: 36px; height: 36px; flex: none; }
.assistant__head strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.assistant__head span { font-size: .78rem; color: #B8C0CF; }
.assistant__close { margin-left: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.assistant__close:hover { background: rgba(255,255,255,.18); }
.assistant__log { overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--paper); min-height: 240px; }
.assistant__msg { display: grid; gap: 8px; max-width: 92%; }
.assistant__msg--user { justify-self: end; }
.assistant__bubble { padding: 10px 13px; border-radius: 12px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; }
.assistant__msg--bot .assistant__bubble { background: var(--white); border: 1px solid var(--line); border-top-left-radius: 4px; }
.assistant__msg--user .assistant__bubble { background: var(--navy); color: #fff; border-top-right-radius: 4px; }
.assistant__links { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant__link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--navy); color: var(--navy); font-size: .85rem; font-weight: 600; text-decoration: none; }
.assistant__link:hover { background: var(--navy); color: #fff; }
.assistant__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant__chip { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); font-size: .86rem; font-weight: 500; }
.assistant__chip:hover { border-color: var(--navy); }
.assistant__typing .assistant__bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.assistant__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-2); animation: assistant-dot 1s infinite ease-in-out; }
.assistant__typing span:nth-child(2) { animation-delay: .15s; } .assistant__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assistant-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.assistant__ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--white); }
.assistant__ask input { flex: 1; min-width: 0; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--white); font-size: 16px; }
.assistant__ask input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(33,53,90,.15); }
.assistant__ask button { padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 600; min-height: 44px; }
.assistant__ask button:hover { background: var(--accent-2); }
.assistant__handoff { display: grid; gap: 8px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.assistant__handoff label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.assistant__handoff input, .assistant__handoff textarea { padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 6px; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white); }
.assistant__handoff textarea { resize: vertical; }
.assistant__handoff-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.assistant__send { padding: 9px 14px; border: 0; border-radius: 6px; background: var(--accent); color: var(--ink); font-weight: 600; min-height: 40px; }
.assistant__send:hover { background: var(--accent-2); }
.assistant__alt { font-size: .85rem; color: var(--navy); }
.assistant__note { padding: 6px 12px 10px; font-size: .72rem; color: var(--slate-2); background: var(--white); text-align: center; }
@media (prefers-reduced-motion: reduce) { .assistant.open .assistant__panel { animation: none; } .assistant__typing span { animation: none; opacity: .6; } }
@media print { .assistant { display: none !important; } }
