/* ==========================================================================
   Components — reusable across every page. BEM naming, no IDs, no raw colours.
   ========================================================================== */

@layer components {

  /* ------------------------------------------------------------------------
     Header: floating cream nav pill near the page edges (UCI 2026-10-27 reference; was a full-width bar,
     Figma 1127:776). The page shows through around the pill, so only the pill itself takes clicks.
     ------------------------------------------------------------------------ */
  .site-header {
    position: fixed;
    inset-inline: 0;
    top: var(--header-top);
    z-index: 50;
    pointer-events: none;
    transition: transform var(--dur-base) var(--ease-in-out);
  }
  /* fill-mode "backwards" (not "both"): once finished, no transform remains on the header.
     A lingering transform would make it the containing block for the fixed-position drawer. */
  .js-motion .site-header { animation: header-in var(--dur-slow) var(--ease-out) backwards; }
  @keyframes header-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
  }

  /* Pill spans the page content width (1370px at the Figma grid); logo at its left end, menu + button at its right end */
  .nav-bar {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding: 0 clamp(0.5rem, 1.4vw, 1.5rem);
    background: var(--color-nav);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-nav);
  }
  /* Stronger shadow once the page scrolls: a faded layer, so box-shadow itself never animates */
  .nav-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 10px 30px var(--color-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .site-header.is-scrolled .nav-bar::after { opacity: 1; }
  /* Sticky header (UCI 2026-10-21): the bar never shrinks or hides on scroll */

  .brand { display: inline-flex; flex-shrink: 0; margin-left: 6px; border-radius: 6px; }
  /* Sharp 3× logo mark (64×47, Figma image 4 shows the mark at x 284–352, y 12–59) */
  .brand img { width: 64px; height: auto; }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    color: var(--color-primary);
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-in-out), opacity var(--dur-fast);
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu (default; also at high browser zoom): a panel that drops down under the nav pill, as wide as the
     pill, scrolling inside if it is taller than the screen (UCI 2026-11-19, Accela reference; was a drawer sliding
     in from the right). Becomes the inline menu ≥ 1024px (1100px on uci-website). */
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h) - var(--header-top) - 1.75rem);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
    border-radius: var(--radius-card);
    background: var(--color-nav);
    box-shadow: var(--shadow-mega);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s linear var(--dur-base);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s;
  }
  /* Menu rows divided by thin rules, like the reference */
  .nav-list > .nav-item:not(.nav-cta) { border-bottom: 1px solid var(--color-mega-rule); }
  .nav-list > .nav-item:not(.nav-cta) > .nav-trigger { min-height: 56px; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-in-out);
    z-index: -2;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .nav-list { display: flex; flex-direction: column; gap: 0.25rem; }

  .nav-link,
  .nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    width: 100%;
    min-height: 48px;
    padding: 0.5rem 0.25rem;
    font-size: var(--fs-nav);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-link:hover, .nav-trigger:hover { color: var(--color-primary-strong); }

  .nav-trigger__chev {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .nav-trigger[aria-expanded="true"] .nav-trigger__chev { transform: rotate(180deg); }

  /* ---- Mega menu (reference: user-supplied screenshot) ----
     White panel, uppercase group headings with a grey rule, "+" items in columns,
     a side group split off by a vertical divider, and a caret pointing at the trigger. */
  .mega[hidden] { display: none; }
  .mega {
    display: grid;
    gap: 1.25rem;
    padding: 0.25rem 0 1rem 0.5rem;
  }
  .mega__heading {
    padding-bottom: 0.625rem;
    border-bottom: 4px solid var(--color-mega-rule);
    color: var(--color-primary);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .mega__list { margin-top: 0.5rem; display: grid; gap: 0.125rem; }
  .mega__link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 10px;
    color: var(--color-primary);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  }
  .mega__plus {
    width: 14px; height: 14px;
    flex-shrink: 0;
    margin-top: 0.22em;
    color: var(--color-accent);
    transition: transform var(--dur-base) var(--ease-out);
  }
  .mega__link:hover, .mega__link:focus-visible { background: var(--color-nav-active); color: var(--color-primary); }
  .mega__link:hover .mega__plus, .mega__link:focus-visible .mega__plus { transform: rotate(90deg); }
  .mega__link[aria-current="page"] { color: var(--color-primary); background: var(--color-nav-active); }

  .nav-cta { margin-top: 1rem; }

  @media (min-width: 1024px) {
    .nav-toggle, .nav-backdrop { display: none; }

    .site-nav {
      position: static;
      width: auto;
      max-height: none;
      padding: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
      overflow: visible;
      opacity: 1;
      transform: none;
      visibility: visible;
      transition: none;
      z-index: auto;
    }
    .nav-list > .nav-item:not(.nav-cta) { border-bottom: 0; }
    .nav-list > .nav-item:not(.nav-cta) > .nav-trigger { min-height: 40px; }
    .nav-cta .btn { width: auto; }
    /* Figma 1131:850: 20px medium labels, 5px to the arrow, 38px between items */
    .nav-list { flex-direction: row; align-items: center; gap: clamp(1rem, 2vw, 2.375rem); }
    .nav-link, .nav-trigger {
      position: relative;
      width: auto;
      min-height: 40px;
      padding: 0.25rem 0;
      gap: 5px;
    }
    /* Open menu only: a plain underline under the label, no pill; it goes away when the menu closes (UCI, 2026-10-14) */
    .nav-trigger::after {
      content: "";
      position: absolute;
      left: 0;
      right: 1.5rem;                     /* under the label, not the arrow */
      bottom: 0.25rem;
      height: 2px;
      border-radius: 1px;
      background: var(--color-primary);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform var(--dur-base) var(--ease-out);
    }
    .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }

    /* Panel spans the whole nav bar; caret sits under the open trigger (--caret-x set by nav.js) */
    .mega {
      position: absolute;
      top: calc(100% + 18px);
      left: 0;
      right: 0;
      grid-template-columns: 1fr auto;
      gap: 0;
      padding: 2.25rem 2.5rem 2.5rem;
      background: var(--color-mega-bg);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-mega);
      cursor: default;
    }
    .mega::before {
      content: "";
      position: absolute;
      top: -10px;
      left: calc(var(--caret-x, 50%) - 11px);
      width: 22px; height: 22px;
      background: var(--color-mega-bg);
      border-radius: 4px 0 0 0;
      transform: rotate(45deg);
    }
    .js-motion .mega { animation: menu-in var(--dur-base) var(--ease-out); }
    @keyframes menu-in {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: none; }
    }
    .mega__group { min-width: 0; padding-right: 2.5rem; }
    .mega__group--side {
      min-width: 16rem;
      padding: 0 0 0 2rem;
      border-left: 1px solid var(--color-mega-rule);
    }
    .mega__heading { font-size: 1.25rem; padding-bottom: 0.875rem; }
    .mega__group:not(.mega__group--side) .mega__list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: 2rem;
    }
    .mega__list { margin-top: 1.5rem; row-gap: 0.75rem; }
    .mega__link { font-size: 1.125rem; padding: 0.375rem 0.5rem; }
    .mega__plus { width: 16px; height: 16px; }

    .nav-cta { margin: 0; }
    /* Figma 1131:831: 196 × 40 navy pill, 18px semibold white */
    .nav-cta .btn { min-width: 196px; font-size: 1.125rem; font-weight: 600; }
  }

  /* ------------------------------------------------------------------------
     Buttons
     ------------------------------------------------------------------------ */
  .btn {
    --btn-bg: var(--color-cta);
    --btn-bg-hover: var(--color-cta-hover);
    --btn-fg: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.625rem 2rem;
    border-radius: var(--radius-btn);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: var(--fs-btn);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
      background-color var(--dur-fast) var(--ease-out),
      transform var(--dur-fast) var(--ease-out);
  }
  .btn:hover { background: var(--btn-bg-hover); }
  .btn:active { transform: scale(0.97); }
  .btn--lg { min-height: var(--btn-lg-h); }

  .btn__arrow {
    width: 32px; height: 16px;
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }

  .btn--pill {
    min-height: 45px;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-body);
  }

  .btn--navy {
    --btn-bg: var(--color-primary);
    --btn-bg-hover: var(--color-primary-strong);
    --btn-fg: var(--color-text-on-dark);
    min-height: 40px;
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-body);
    font-weight: 500;
    white-space: nowrap;
  }

  /* ------------------------------------------------------------------------
     Section tag — outlined amber pill label
     ------------------------------------------------------------------------ */
  .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 227px;
    min-height: 45px;
    padding: 0.25rem 1.25rem;
    border: 2px solid var(--color-cta);
    border-radius: var(--radius-pill);
    color: var(--color-primary);
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.3;
  }
  .on-dark .tag { color: var(--color-cta); }
  /* Hover: the pill fills amber (fill is a fading/scaling layer: transform + opacity only) */
  .tag { position: relative; isolation: isolate; transition: color var(--dur-base) var(--ease-out); }
  .tag::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: var(--color-cta);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .tag:hover::before { opacity: 1; transform: none; }
  .tag:hover { color: var(--color-primary); }

  /* ------------------------------------------------------------------------
     Hero
     ------------------------------------------------------------------------ */
  /* "Headline strips" banner (round 2 pick 4, UCI 2026-10-27). Five full-width New York photos cross-fade with the
     text slides. Each slide's text sits on solid strips over the photo: amber eyebrow, navy title (one strip per line,
     box-decoration-break), white sub. Controls = counter + five bars; the current bar fills over the 6 s interval. */
  /* The photo runs up behind the floating nav pill; --hero-nav is the space the pill takes at the top */
  .hero { --hero-nav: calc(var(--header-top) + var(--header-h)); }
  .hero__stage {
    position: relative;
    display: grid;
    align-items: center;
    min-height: calc(34rem + var(--hero-nav));
    overflow: hidden;
    background: var(--color-hero-card-start);
  }
  /* From 1280px the banner keeps the old Figma 1127:449 height: 1920 × 730 scaled to the viewport (38.02vw) */
  @media (min-width: 1280px) {
    .hero__stage { min-height: calc(38.0208vw + var(--hero-nav)); }
  }
  .hero__media { position: absolute; inset: 0; }
  .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
  }
  .hero__photo.is-active { opacity: 1; }
  /* Slides 1–2: UCI's 2048 × 768 photos (banner shape), filling the banner at its normal size (UCI 2026-11-02) */
  .hero__photo:nth-child(1) { object-position: 50% 50%; }   /* State Capitol */
  .hero__photo:nth-child(2) { object-position: 50% 50%; }   /* City Hall */
  .hero__photo:nth-child(3) { object-position: 50% 60%; }   /* sunset skyline */
  .hero__photo:nth-child(4) { object-position: 50% 55%; }   /* Midtown */
  .hero__photo:nth-child(5) { object-position: 50% 55%; }
  /* Slow zoom on the visible photo (transform only) */
  .js-motion .hero__photo { transform: scale(1.06); transition: opacity 1.2s var(--ease-out), transform 7s linear; }
  .js-motion .hero__photo.is-active { transform: none; }

  /* More space below than above, so the text sits a little above the middle (UCI 2026-10-27) */
  .hero__inner { position: relative; padding-block: calc(var(--hero-nav) + clamp(1.25rem, 3vw, 2.5rem)) clamp(5rem, 10vw, 9rem); }
  .hero__text { max-width: 66rem; }

  /* Slides share one grid cell, so the hero is as tall as the tallest slide (no jump on change) */
  .hero__slides { display: grid; }
  .hero__slide {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
  }
  .hero__slide.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur-slow) var(--ease-out), visibility 0s;
  }

  .hero__eyebrow {
    display: table;
    padding: 0.4em 0.75em;
    background: var(--color-cta);
    color: var(--color-primary);
    font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.9375rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
  }
  .hero__title {
    margin-top: clamp(0.5rem, 0.8vw, 0.875rem);
    font-size: clamp(1.75rem, 0.9rem + 2.9vw, 3.75rem);
    font-weight: 800;
    line-height: 1.42;
  }
  .hero__title span {
    padding: 0.02em 0.25em;
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .hero__sub {
    display: table;
    margin-top: clamp(0.5rem, 0.8vw, 0.875rem);
    padding: 0.4em 0.7em;
    background: var(--color-text-on-dark);
    color: var(--color-primary);
    font-size: clamp(1rem, 0.85rem + 0.45vw, 1.375rem);
    font-weight: 500;
    line-height: 1.45;
  }

  /* From 1280px every size and gap scales with the viewport like the banner, so the text always fits the 38.02vw
     height (px at 1920: eyebrow 15, title 40, sub 22, controls 64 tall) */
  @media (min-width: 1280px) {
    .hero__inner { padding-block: var(--hero-nav) 7vw; }
    .hero__eyebrow { font-size: max(0.75rem, 0.78vw); }
    .hero__title { margin-top: 0.6vw; font-size: 2.0833vw; line-height: 1.38; }  /* 40px at 1920 (UCI, 2026-10-27) */
    .hero__sub { margin-top: 0.6vw; font-size: max(1rem, 1.1458vw); }
    .hero__text { max-width: 56vw; }
  }
  /* Tighter strips (UCI 2026-10-27): less padding inside each text background and less space between them */
  /* Text strips rise in order each time a slide becomes active (eyebrow → title → sub) */
  .js-motion .hero__slide.is-active [data-hero-line] {
    animation: hero-line var(--dur-slow) var(--ease-out) both;
    animation-delay: calc(150ms + var(--i, 0) * var(--stagger));
  }
  .hero [data-hero-line]:nth-child(2) { --i: 1; }
  .hero [data-hero-line]:nth-child(3) { --i: 2; }
  .hero [data-hero-line]:nth-child(4) { --i: 2; }
  .js-motion .hero__controls { animation: hero-line var(--dur-slow) var(--ease-out) calc(200ms + 3 * var(--stagger)) both; }
  @keyframes hero-line {
    from { opacity: 0; transform: translateY(var(--reveal-distance)); }
    to { opacity: 1; transform: none; }
  }

  /* Controls: previous / next arrows, each in a navy circle (replaced the five progress bars and their box, UCI 2026-10-30).
     Hover / focus: the circle fills amber, the arrow turns navy and nudges outward. */
  .hero__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: clamp(1rem, 2vw, 1.75rem);
  }
  .hero__controls[hidden] { display: none; }
  @media (min-width: 1280px) {
    .hero__controls { margin-top: 1.2vw; }
  }
  .hero__arrow {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--color-glass-border);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  }
  .hero__arrow svg { width: 18px; height: 9px; transition: transform var(--dur-fast) var(--ease-out); }
  .hero__arrow--prev svg { transform: scaleX(-1); }
  .hero__arrow:hover, .hero__arrow:focus-visible { border-color: var(--color-cta); background: var(--color-cta); color: var(--color-primary); }
  .hero__arrow:hover svg { transform: translateX(3px); }
  .hero__arrow--prev:hover svg { transform: scaleX(-1) translateX(3px); }

  /* ------------------------------------------------------------------------
     Card grid helper
     ------------------------------------------------------------------------ */
  .grid { display: grid; gap: 1.5rem; }
  @media (min-width: 640px) {
    .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
    .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
  }
  @media (min-width: 1440px) {
    .grid--3-wide { gap: 3.6rem; }
  }

  /* Hover lift shared by cards: transform + fading shadow layer */
  .lift {
    position: relative;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .lift::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-card-hover);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .lift:hover, .lift:focus-within { transform: translateY(-6px); }
  .lift:hover::after, .lift:focus-within::after { opacity: 1; }

  /* ------------------------------------------------------------------------
     Service card — navy card with inverted-corner notch holding the button
     ------------------------------------------------------------------------ */
  .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.75rem 5.75rem;
    border-radius: var(--radius-card);
    background: var(--color-card);
    color: var(--color-text-on-dark);
  }
  /* No lift/shadow on service cards: a shadow traces the card's full rectangle and
     shows up as a box around the cream notch (the artefact in the review screenshot).
     Hover feedback lives on the icon and the button instead. */
  .service-card__icon {
    width: 55px; height: 55px;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .service-card:hover .service-card__icon,
  .service-card:focus-within .service-card__icon { transform: rotate(-8deg) scale(1.08); }
  .btn__chev { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
  .btn:hover .btn__chev, .btn:focus-visible .btn__chev { transform: translateX(4px); }
  .service-card__title {
    margin-top: 1.25rem;
    color: var(--color-text-on-dark);
    font-size: var(--fs-card-title);
    line-height: 2;
  }
  .service-card__text { margin-top: 1rem; }
  .service-card__list {
    margin-top: 1rem;
    padding-left: 1.1rem;
    font-weight: 600;
  }
  .service-card__list { list-style-type: disc; }          /* nested list would default to hollow circles; Figma uses dots */
  .service-card__list li::marker { font-size: 0.8em; }

  /* The cream notch at bottom-left (matches Figma vector "Rectangle 14") */
  /* The cream pieces overlap the card edges and each other by 1px: flush edges left
     hairline seams of navy at fractional pixel positions (125%/150% screen scaling, and
     during the hover lift). The extra 1px padding keeps the button where it was. */
  .service-card__foot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    padding: 0.75rem 0.75rem 1px 1px;
    background: var(--color-page);
    border-top-right-radius: var(--notch);
  }
  .service-card__foot::before,
  .service-card__foot::after {
    content: "";
    position: absolute;
    width: calc(var(--notch) + 1px);
    height: calc(var(--notch) + 1px);
    background: radial-gradient(
      circle at 100% 0,
      transparent calc(var(--notch) - 0.5px),
      var(--color-page) var(--notch)
    );
    pointer-events: none;
  }
  /* Both pseudo-elements paint cream outside a quarter-circle so the navy
     reads as a convex rounded corner: ::before above the notch, ::after to its right. */
  .service-card__foot::before { left: 0; bottom: calc(100% - 1px); }
  .service-card__foot::after { left: calc(100% - 1px); bottom: 0; }

  /* ------------------------------------------------------------------------
     Stats (track record)
     ------------------------------------------------------------------------ */
  .stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 5rem;
    margin-top: clamp(3rem, 6vw, 5.5rem);
  }
  @media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }

  /* dt (label) comes first in the markup for valid <dl>; the value is shown first visually */
  .stat {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
  }
  .stat::before,
  .stat::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 3px;
  }
  .stat::before { right: 0; background: var(--color-line); }
  .stat::after {
    width: var(--bar, 30%);
    background: var(--color-accent);
    transform-origin: left center;
  }
  /* Figma bar lengths: 70/108/146/184 of 282px */
  .stat:nth-child(1) { --bar: 25%; }
  .stat:nth-child(2) { --bar: 38%; }
  .stat:nth-child(3) { --bar: 52%; }
  .stat:nth-child(4) { --bar: 65%; }
  .js-motion .stat::after { transform: scaleX(0); transition: transform 1.2s var(--ease-out) 150ms; }
  .js-motion .stat.is-visible::after { transform: scaleX(1); }

  .stat__value {
    order: -1;
    margin: 0;
    color: var(--color-accent-text);
    font-size: var(--fs-stat);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
  }
  .stat__label {
    display: block;
    max-width: 17rem;
    margin-top: 0.25rem;
    color: var(--color-primary);
    font-weight: 500;
  }

  /* ------------------------------------------------------------------------
     Photo band (founder, credentials) — image + multiply navy overlay
     ------------------------------------------------------------------------ */
  .band {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3rem, 5vw, 3rem);
    color: var(--color-text-on-dark);
    background: var(--color-primary);
    overflow: hidden;
  }
  .band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-band-overlay);
    mix-blend-mode: multiply;
  }
  .band h2, .band h3 { color: var(--color-text-on-dark); }

  /* ------------------------------------------------------------------------
     Impact card
     ------------------------------------------------------------------------ */
  .impact-card {
    height: 100%;
    padding: 2rem 1.625rem 2.25rem;
    position: relative;
    isolation: isolate;
    border-radius: var(--radius-card);
    background: var(--color-primary);
    color: var(--color-text-on-dark);
  }
  /* Hover (UCI 2026-10-21): the diagonal Figma gradient (1089:377) fades in over the resting fill */
  .impact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--gradient-navy-diagonal);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .impact-card:hover::before, .impact-card:focus-within::before { opacity: 1; }
  .impact-card__value {
    display: block;
    color: var(--color-cta);
    font-size: var(--fs-impact);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .impact-card__title {
    margin-top: 1.25rem;
    color: var(--color-text-on-dark);
    font-size: var(--fs-h3);
  }
  .impact-card__text { margin-top: 1.25rem; }

  /* ------------------------------------------------------------------------
     Logo tiles (partners on cream, credentials on glass)
     ------------------------------------------------------------------------ */
  .logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.2rem; }
  .logo-tile {
    display: grid;
    place-items: center;
    aspect-ratio: 268 / 130;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-card);
    background: var(--color-page);
    overflow: hidden;
  }
  /* Figma shows partner logos in full colour, so no grayscale-at-rest (deviation from §9A, see README) */
  .logo-tile img { width: 100%; height: 100%; object-fit: contain; }

  /* Credentials logo carousel (homepage, UCI 2026-10-29). Fallback (no JS / reduced motion): the tiles wrap in a grid.
     Running: one row of fixed-width tiles; the track holds the set + a hidden copy and slides left by one set + one gap. */
  .cred-marquee { --cred-gap: clamp(1rem, 2.4vw, 2.4rem); --cred-tile-w: clamp(9.5rem, 14.6vw, 15.1875rem); }
  .cred-marquee__set { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  @media (min-width: 768px) { .cred-marquee__set { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1024px) { .cred-marquee__set { grid-template-columns: repeat(5, 1fr); gap: 2.4rem; } }
  .cred-marquee.is-running {
    overflow: hidden;
    margin-block: -6px;
    padding-block: 6px;                      /* room for the 4px hover lift inside the clip */
    -webkit-mask-image: var(--mask-edge-fade);
    mask-image: var(--mask-edge-fade);
  }
  .cred-marquee__track {
    display: flex;
    gap: var(--cred-gap);
    width: max-content;
    animation: cred-marquee var(--cred-marquee-duration, 40s) linear infinite;
  }
  .cred-marquee.is-paused .cred-marquee__track { animation-play-state: paused; }
  .is-running .cred-marquee__set { display: flex; gap: var(--cred-gap); }
  .is-running .cred-tile { flex: 0 0 var(--cred-tile-w); }
  @keyframes cred-marquee { to { transform: translateX(calc(-50% - var(--cred-gap) / 2)); } }
  .cred-tile {
    aspect-ratio: 243 / 130;
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    background: var(--color-glass);
    overflow: hidden;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .cred-tile img { width: 100%; height: 100%; object-fit: cover; }

  /* ------------------------------------------------------------------------
     Industry card — image top, navy body
     ------------------------------------------------------------------------ */
  .industry-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-card);
    background: var(--color-primary);
    color: var(--color-text-on-dark);
  }
  .industry-card__media { aspect-ratio: 418 / 190; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .industry-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .industry-card:hover .industry-card__media img,
  .industry-card:focus-within .industry-card__media img { transform: scale(1.05); }
  .industry-card__body { padding: 1.75rem 1.375rem 2.5rem; }
  .industry-card__title { color: var(--color-cta); font-size: var(--fs-h3); }
  .industry-card__text { margin-top: 1rem; }

  /* ------------------------------------------------------------------------
     Feature (Data & AI) — outlined card on the navy band
     ------------------------------------------------------------------------ */
  /* Figma 871:543 (UCI 2026-10-29): 1px amber outline, 20px radius, transparent on the gradient;
     43px white line icon 25px from the top → 27px → title 30/40 → 32px → text 18/32, both cream.
     Hover: the card lifts (.lift), a faint fill fades in and a soft amber halo appears behind the icon. */
  .feature {
    position: relative;
    padding: 1.5625rem 1.6875rem 1.6875rem;
    border: 1px solid var(--color-cta);
    border-radius: var(--radius-card);
    background: transparent;
    transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
  }
  .feature:hover, .feature:focus-within { background-color: var(--color-card-glass-hover); }
  .feature__badge { position: relative; display: block; width: 43px; height: 43px; }
  .feature__badge::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: var(--color-feature-halo);
    transform: scale(0.6);
    opacity: 0;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  }
  .feature__icon { position: relative; display: block; width: 43px; height: 43px; }   /* Figma's white line icons (dai-*-white-3x.png) */
  .feature__title {
    margin-top: 1.6875rem;                 /* 27px */
    color: var(--color-faq);
    font-size: var(--fs-h3-lg);            /* 30px */
    line-height: 1.3333;                   /* 40px */
  }
  .feature__text { margin-top: 2rem; color: var(--color-faq); } /* 32px; 18/32 */

  /* Hover / focus: halo only, the icon itself stays still (UCI 2026-10-21; dashed order line removed too) */
  .feature:hover .feature__badge::before,
  .feature:focus-within .feature__badge::before { transform: scale(1); opacity: 1; }

  /* ------------------------------------------------------------------------
     Back to top (request #6)
     ------------------------------------------------------------------------ */
  .to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 40;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    box-shadow: var(--shadow-to-top);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s linear var(--dur-base),
      background-color var(--dur-fast) var(--ease-out);
  }
  .to-top svg { width: 24px; height: 24px; transition: transform var(--dur-fast) var(--ease-out); }
  .to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s,
      background-color var(--dur-fast) var(--ease-out);
  }
  .to-top:hover { background: var(--color-primary-strong); }
  .to-top:hover svg { transform: translateY(-3px); }
  .to-top:focus-visible { outline: 3px solid var(--color-cta); outline-offset: 3px; }
  /* No JS: the button is a plain #top link and always visible */
  html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

  /* ------------------------------------------------------------------------
     Case (success story) card — full-bleed photo with gradient + title
     ------------------------------------------------------------------------ */
  .case-card {
    position: relative;
    display: block;
    aspect-ratio: 423 / 493;
    border-radius: var(--radius-card);
    color: var(--color-text-on-dark);
    text-decoration: none;
    isolation: isolate;
  }
  /* Photo lives in a clipping wrapper so the zoom stays inside the rounded card
     while the card itself keeps overflow visible for the .lift shadow */
  .case-card__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    overflow: hidden;
  }
  .case-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
  }
  .case-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    z-index: -1;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: linear-gradient(
      180deg,
      rgb(40 80 120 / 0) 0%,
      rgb(40 80 120 / 0.7) 47%,
      var(--color-primary) 100%
    );
  }
  .case-card__title {
    position: absolute;
    left: 2.25rem; right: 2rem; bottom: 2.4rem;
    color: var(--color-text-on-dark);
    font-size: var(--fs-h3);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  /* Figma 256:381: cream box #f7f3ea, radius 8, 370×207 inside the 423-wide card */
  .case-card__text {
    position: absolute;
    left: 6.3%; right: 6.3%; bottom: 10.5%;
    padding: 1.5rem 1.2rem;
    border-radius: 8px;
    background: var(--color-nav);
    color: var(--color-text);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .case-card:hover img, .case-card:focus-visible img { transform: scale(1.06); }
  .case-card:hover .case-card__title, .case-card:focus-visible .case-card__title { opacity: 0; transform: translateY(-8px); }
  .case-card:hover .case-card__text, .case-card:focus-visible .case-card__text { opacity: 1; transform: none; }
  /* Touch screens have no hover: title moves to the top and the description shows permanently */
  @media (hover: none) {
    .case-card__title { bottom: auto; top: 1.75rem; }
    .case-card__text { opacity: 1; transform: none; }
  }

  /* ------------------------------------------------------------------------
     FAQ accordion — native <details>; JS adds height animation
     ------------------------------------------------------------------------ */
  .faq { display: grid; gap: 2rem; }
  .faq__item {
    border-radius: var(--radius-card);
    background: var(--color-faq);
    box-shadow: var(--shadow-faq);
  }
  .faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
    padding: 0.875rem 1.5rem 0.875rem 2rem;
    color: var(--color-primary);
    font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    border-radius: inherit;
  }
  .faq__q::-webkit-details-marker { display: none; }
  .faq__icon {
    width: 24px; height: 24px;
    flex-shrink: 0;
    transition: transform var(--dur-base) var(--ease-in-out);
  }
  .faq__item[open] .faq__icon { transform: rotate(45deg); }
  .faq__item.is-closing .faq__icon { transform: none; }

  .faq__panel {
    display: grid;
    grid-template-rows: 1fr;
  }
  .js-motion .faq__panel {
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-base) var(--ease-in-out);
  }
  .js-motion .faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
  .faq__panel > div { overflow: hidden; }
  .faq__a {
    padding: 0 2rem 1.5rem;
    color: var(--color-text);
  }
  .js-motion .faq__a { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
  .js-motion .faq__item.is-open .faq__a { opacity: 1; }

  /* ------------------------------------------------------------------------
     CTA band
     ------------------------------------------------------------------------ */
  .cta-band {
    padding-block: clamp(3rem, 5vw, 3.5rem);
    background: var(--color-band-cta);
    color: var(--color-text-on-dark);
  }
  .cta-band__inner { display: grid; gap: 2.5rem; align-items: center; }
  @media (min-width: 1024px) {
    .cta-band__inner { grid-template-columns: 1fr 466px; gap: 4rem; }
  }
  .cta-band h2 { color: var(--color-text-on-dark); font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem); }
  .cta-band__text { max-width: 40rem; margin-top: 1.5rem; }
  .cta-band .btn { margin-top: 2.25rem; }
  .cta-band__media img { width: 100%; border-radius: var(--radius-card); }
  /* Centred variant (homepage, no photo, UCI 2026-10-14): heading, text and button on the centre line */
  .cta-band--center .cta-band__inner { display: block; text-align: center; }
  .cta-band--center .cta-band__text { max-width: 46rem; margin-inline: auto; }
  /* Split variant (homepage, UCI 2026-10-15): big heading left | rule, short text, full-width light button right */
  .cta-band--split { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
  .cta-band--split .cta-band__title {
    max-width: 13ch;
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  @media (min-width: 1024px) { .cta-band--split .cta-band__title { margin-left: 2.5rem; } }
  .cta-band__aside { padding-top: 1.75rem; border-top: 1px solid var(--color-text-on-dark); }
  .cta-band--split .cta-band__text { margin-top: 0; }
  .cta-band .cta-band__btn {
    --btn-bg: var(--color-text-on-dark);
    --btn-bg-hover: var(--color-page);
    --btn-fg: var(--color-primary);
    width: 100%;
    margin-top: 1.75rem;
    padding-inline: 1rem;
    justify-content: space-between;
    font-size: var(--fs-body);
  }
  .cta-band__btn .btn__arrow { width: 20px; }

  /* ------------------------------------------------------------------------
     Footer
     ------------------------------------------------------------------------ */
  /* Figma Group 301 (1127:449 → 1131:1003, UCI 2026-10-22): blue gradient band, white text, amber headings.
     Columns: brand | Explore | Industries | Services | Contact Us */
  .site-footer {
    padding-block: 2.5rem 3rem;
    background: linear-gradient(90deg, var(--color-footer-start) 0%, var(--color-footer-mid) 54.327%, var(--color-footer-end) 100%);
    color: var(--color-text-on-dark);
  }
  .footer-grid {
    display: grid;
    gap: 2.5rem 2rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  /* Column starts at 1920: 276 / 644 / 802 / 1072 / 1357 → widths 368 · 158 · 270 · 285 · rest */
  @media (min-width: 1280px) {
    .site-footer { padding-block: 3.625rem 3.25rem; }          /* logo 58px below the band top, 52px under the last link */
    .footer-grid { grid-template-columns: 368fr 158fr 270fr 285fr 289fr; column-gap: 0; }
    .footer-col { margin-top: 0.875rem; padding-right: 1.5rem; } /* headings sit 14px below the logo top */
  }
  /* White 3× logo (Figma image 33, 146 × 110 at x 326 = 49px in from the column) */
  .footer-brand__logo { width: 146px; height: auto; margin-left: 3.0625rem; }
  .footer-brand__name {
    max-width: 15.75rem;               /* 252px box, centred text */
    margin-top: 1rem;
    color: var(--color-cta);
    font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);
    font-weight: 700;
    line-height: 1.33;
    text-align: center;
  }
  .footer-brand__text { max-width: 18rem; margin-top: 0.4rem; }
  .footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 500;
  }
  .footer-social__link { display: inline-flex; border-radius: 50%; }
  .footer-social__link img { width: 26px; height: 26px; transition: transform var(--dur-base) var(--ease-out); }
  .footer-social__link:hover img, .footer-social__link:focus-visible img { transform: scale(1.18) rotate(-8deg); }

  .footer-col h2 { color: var(--color-cta); font-size: var(--fs-h3); line-height: 1.66; }
  .footer-col ul { max-width: 15.2rem; margin-top: 1.5rem; display: grid; gap: 1rem; } /* Figma text boxes ≤ 243px */
  .footer-col a, .footer-col address {
    color: var(--color-text-on-dark);
    font-weight: 400;                  /* Figma says Medium, but Kumbh Sans 500 renders heavier than the Figma render */
    font-style: normal;
    text-decoration: none;
  }
  /* Link hover: an underline draws in from the left (transform only) */
  .footer-col ul a { position: relative; display: inline-block; }
  .footer-col ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .footer-col ul a:hover, .footer-col ul a:focus-visible { color: var(--color-cta); }
  .footer-col ul a:hover::after, .footer-col ul a:focus-visible::after { transform: scaleX(1); }

  .footer-contact.footer-contact { max-width: 19rem; gap: 0.75rem; }
  .footer-contact li { display: grid; grid-template-columns: 25px 1fr; column-gap: 0.5rem; align-items: start; }
  .footer-contact img { justify-self: center; margin-top: 4px; }
  .footer-contact .footer-contact__mail { margin-top: 8px; }   /* envelope level with the lowercase text (x-height sits below the line box centre; UCI 2026-10-30) */
  .footer-contact strong { font-weight: 600; }
}

/* ==========================================================================
   Components added for Company Overview
   ========================================================================== */
@layer components {

  /* ---- Inner-page hero: photo + grey overlay (Figma 42:37 rgba(92,93,94,.8)), centred title ---- */
  .page-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(420px, 35.5vw, 681px);
    padding-block: var(--header-h) 2rem; /* title centred near Figma y≈354 */
    overflow: hidden;
    isolation: isolate;
    text-align: center;
  }
  .page-hero__media { position: absolute; inset: 0; z-index: -2; }
  .page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .js-motion .page-hero__media img { animation: hero-zoom 1.2s var(--ease-out) both; }
  .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-hero-overlay); }
  .page-hero__title {
    color: var(--color-text-on-dark);
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
    line-height: 1.2;
  }
  .js-motion .page-hero [data-hero-line] { animation: hero-line var(--dur-slow) var(--ease-out) 200ms both; }

  /* Photo bands whose image already includes the navy tint (exported composite) */
  .band--baked::before { content: none; }

  /* ---- Purpose card: icon circle overlapping the top edge ---- */
  .purpose-card {
    position: relative;
    padding: 3.4375rem 1.25rem 2rem;   /* Figma 42:279: title 55px below the top, 4 text lines, 32px below */
    border-radius: var(--radius-card);
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    text-align: center;
  }
  .purpose-card__icon {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 64px; height: 64px;
    translate: -50% 0;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .purpose-card:hover .purpose-card__icon { transform: rotate(-10deg) scale(1.08); }
  .purpose-card__title { color: var(--color-cta); font-size: var(--fs-h3); }
  .purpose-card p { margin-top: 1rem; }

  /* ---- Expertise card (Functional / Technical) ---- */
  .expertise-card {
    padding: 1.5rem 2rem 2rem;
    border-radius: var(--radius-card);
    background: var(--color-card);
    color: var(--color-text-on-dark);
  }
  .expertise-card__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-cta);
    font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  }
  .expertise-card__title img { width: 44px; height: 44px; flex-shrink: 0; }
  .expertise-card__list { margin-top: 1rem; padding-left: 1.75rem; }
  .expertise-card__list li::marker { font-size: 0.8em; }
  .expertise-card__list strong { font-weight: 700; }

  /* ---- UCI Difference card: photo, gradient, title; description box on hover/focus ---- */
  .diff-card {
    position: relative;
    display: block;
    aspect-ratio: 333 / 409;
    border-radius: var(--radius-card);
    overflow: hidden;
    isolation: isolate;
    color: var(--color-text-on-dark);
  }
  .diff-card img {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
  }
  .diff-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    z-index: -1;
    background: linear-gradient(180deg, rgb(40 80 120 / 0) 0%, rgb(40 80 120 / 0.6) 18%, rgb(40 80 120 / 0.9) 51%, var(--color-primary) 100%);
  }
  .diff-card__title {
    position: absolute;
    left: 1.875rem; right: 1.5rem; bottom: 2.75rem;   /* Figma 71:13: title box 301px below a 409px card's top */
    color: var(--color-text-on-dark);
    font-size: var(--fs-h3);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .diff-card__text {
    position: absolute;
    left: 6%; right: 6%; bottom: 6%;
    padding: 1.5rem 0.75rem;
    border-radius: 8px;
    background: var(--color-nav);
    color: var(--color-text);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .diff-card:hover img, .diff-card:focus-visible img { transform: scale(1.06); }
  .diff-card--has-text:hover .diff-card__title,
  .diff-card--has-text:focus-visible .diff-card__title { opacity: 0; transform: translateY(-8px); }
  .diff-card--has-text:hover .diff-card__text,
  .diff-card--has-text:focus-visible .diff-card__text { opacity: 1; transform: none; }
  /* Touch: no hover, so show the description under the title permanently */
  @media (hover: none) {
    .diff-card--has-text .diff-card__title { bottom: auto; top: 1.5rem; }
    .diff-card--has-text .diff-card__text { opacity: 1; transform: none; }
  }

  /* ---- Timeline (Our Journey) ---- */
  .timeline { display: grid; gap: 3rem 2rem; text-align: center; }
  @media (min-width: 640px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
  /* Desktop: Figma 42:28 column widths (text centres at x 407 / 745 / 1110 / 1476 of 1920),
     circles sit 12.5px left of their column centre like the Figma groups */
  @media (min-width: 1280px) {
    .timeline { grid-template-columns: 264fr 347fr 340fr 338fr; column-gap: 1.6875rem; }
    .timeline__media { margin-right: 1.5625rem; }
    /* Figma groups are not identical: circle 2 sits 6.5px right of its column centre,
       and the number badge overlaps each circle by a different amount (x −10 / −4 / 0 / −9) */
    .timeline__step:nth-child(2) .timeline__media { margin-right: 0; margin-left: 0.8125rem; }
    .timeline__step:nth-child(2) .timeline__num { left: -4px; }
    .timeline__step:nth-child(3) .timeline__num { left: 0; }
    .timeline__step:nth-child(4) .timeline__num { left: -9px; }
  }
  .timeline__step { position: relative; }
  .timeline__media { position: relative; display: inline-block; }
  .timeline__media img { width: 131px; height: 131px; transition: transform var(--dur-base) var(--ease-out); }
  .timeline__step:hover .timeline__media img { transform: scale(1.06); }
  .timeline__num {
    position: absolute;
    top: -18px; left: -10px;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-cta);
    color: var(--color-primary);
    font-size: var(--fs-h3);
    font-weight: 700;
  }
  .timeline__title {
    max-width: 20rem;
    margin: 0.8125rem auto 0;   /* Figma: title box 23px below the circle */
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
    line-height: 1.33;
  }
  .timeline__step p { max-width: 21rem; margin: 1.125rem auto 0; }
  .timeline__step p strong { color: var(--color-text); font-weight: 700; }
  /* Arrows between steps (desktop): drawn left → right when the row reveals */
  @media (min-width: 1280px) {
    .timeline__title { max-width: none; margin-inline: -0.84375rem; }
    .timeline__step p { max-width: none; margin-inline: -0.84375rem; }   /* text may use half the gap on each side */
    .timeline__step:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 58px;   /* line on the circle's centre line (Figma y 3009 = circle top + 64) */
      /* Figma 42:28 arrows (172px at 1920): 482→654, 836→1008, 1190→1362.
         --x = start, measured from the column centre; --r = distance between column centres as a
         share of this column (columns are 264/347/340/338fr); --k = circle radii, gaps and centre offsets */
      left: calc(50% + var(--x));
      width: calc(100% * var(--r) - var(--k));
      height: 12px;
      background:
        linear-gradient(var(--color-primary), var(--color-primary)) left center / calc(100% - 2px) 2px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1 1l6 5-6 5' fill='none' stroke='%23285078' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 8px 12px no-repeat;
      transform-origin: left center;
    }
    .timeline__step:nth-child(1) { --r: 1.1572; --x: 75px; --k: 134px; }   /* r = (1 + 347/264) / 2 */
    .timeline__step:nth-child(2) { --r: 0.9899; --x: 96px; --k: 171px; }   /* r = (1 + 340/347) / 2 */
    .timeline__step:nth-child(3) { --r: 0.9971; --x: 80px; --k: 167px; }   /* r = (1 + 338/340) / 2 */
    .js-motion .timeline .timeline__step:not(:last-child)::after {
      transform: scaleX(0);
      transition: transform 600ms var(--ease-out) calc(var(--i, 0) * 150ms + 350ms);
    }
    .js-motion .timeline.is-visible .timeline__step.is-visible:not(:last-child)::after { transform: scaleX(1); }
  }

  /* ---- Policies accordion variant: chevron, two independent columns ---- */
  .faq__item--policy .faq__q { min-height: 75px; padding-left: 2.375rem; }
  .faq__item--policy .faq__icon { width: 20px; height: 20px; }
  .faq__item--policy[open] .faq__icon { transform: rotate(180deg); }
  .faq__item--policy.is-closing .faq__icon { transform: none; }
  /* Policy text (UCI 2026-10-19): aligned with the question, 16px between paragraphs */
  .faq__item--policy .faq__a { padding-left: 2.375rem; }
  .faq__item--policy .faq__a:not(:last-child) { padding-bottom: 1rem; }
  .policy-link { color: var(--color-primary); font-weight: 700; text-underline-offset: 0.15em; }
}

/* ==========================================================================
   Motion — hover / focus / press feedback for every button and card.
   Only transform and opacity animate (shadows and rings are faded pseudo-elements).
   Reduced motion is handled globally in base.css.
   ========================================================================== */
@layer components {

  /* ---- Buttons: lift 2px + soft shadow, arrow nudges, press shrinks ---- */
  .btn { position: relative; isolation: isolate; }
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: var(--shadow-btn-hover);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .btn:hover, .btn:focus-visible { transform: translateY(-2px); }
  .btn:hover::after, .btn:focus-visible::after { opacity: 1; }
  .btn:active { transform: translateY(0) scale(0.97); }
  .btn:active::after { opacity: 0.4; }

  /* ---- Section tag: pill pops in when its block reveals ---- */
  .js-motion [data-reveal] .tag {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) cubic-bezier(0.34, 1.56, 0.64, 1),
      color var(--dur-base) var(--ease-out);
  }
  .js-motion [data-reveal].is-visible .tag { opacity: 1; transform: none; }

  /* ---- Nav: menu items cascade in, links slide (the logo stays still on hover, UCI 2026-10-21) ---- */
  @media (min-width: 1024px) {
    .mega__group:not(.mega__group--side) .mega__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .js-motion .mega__list > li { animation: menu-item-in var(--dur-base) var(--ease-out) both; }
    .mega__list > li:nth-child(2) { animation-delay: 40ms; }
    .mega__list > li:nth-child(3) { animation-delay: 80ms; }
    .mega__list > li:nth-child(4) { animation-delay: 120ms; }
    .mega__list > li:nth-child(5) { animation-delay: 160ms; }
    .mega__list > li:nth-child(6) { animation-delay: 200ms; }
    @keyframes menu-item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  }
  .mega__link {
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
      transform var(--dur-fast) var(--ease-out);
  }
  .mega__link:hover, .mega__link:focus-visible { transform: translateX(4px); }

  /* ---- Service card: lifts (no shadow: it would outline the cream notch), title turns amber ---- */
  .service-card { transition: transform var(--dur-base) var(--ease-out); }
  .service-card:hover, .service-card:focus-within { transform: translateY(-6px); }
  .service-card__title { transition: color var(--dur-base) var(--ease-out); }
  .service-card:hover .service-card__title, .service-card:focus-within .service-card__title { color: var(--color-cta); }

  /* ---- Stats: number rises, green bar fills the whole track ---- */
  .stat__value { transition: transform var(--dur-base) var(--ease-out); }
  .stat:hover .stat__value { transform: translateY(-4px); }
  .stat:nth-child(1):hover::after { transform: scaleX(4); }
  .stat:nth-child(2):hover::after { transform: scaleX(2.632); }
  .stat:nth-child(3):hover::after { transform: scaleX(1.923); }
  .stat:nth-child(4):hover::after { transform: scaleX(1.538); }

  /* ---- Impact card: number grows a touch ---- */
  .impact-card__value { transform-origin: left bottom; transition: transform var(--dur-base) var(--ease-out); }
  .impact-card:hover .impact-card__value { transform: scale(1.08); }

  /* ---- Photos beside copy: gentle zoom inside their rounded frame ---- */
  .split__media, .founder__photo, .cta-band__media { border-radius: var(--radius-card); overflow: hidden; }
  .split__media img, .founder__photo img, .cta-band__media img { display: block; transition: transform 700ms var(--ease-out); }
  .split__media:hover img, .founder__photo:hover img, .cta-band__media:hover img { transform: scale(1.04); }

  /* ---- Partner logos (cream) and credentials (glass): lift, logo zooms, ring fades in ---- */
  .logo-tile, .cred-tile { position: relative; }
  .logo-tile:hover, .cred-tile:hover { transform: translateY(-4px); }
  .logo-tile img, .cred-tile img { transition: transform var(--dur-base) var(--ease-out); }
  .logo-tile:hover img { transform: scale(1.06); }
  .cred-tile:hover img { transform: scale(1.05); }
  .logo-tile::after, .cred-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .logo-tile::after { box-shadow: inset 0 0 0 2px var(--color-cta); }
  .cred-tile::after { box-shadow: inset 0 0 0 2px var(--color-glass-border), inset 0 0 40px var(--color-glass); }
  .logo-tile:hover::after, .cred-tile:hover::after { opacity: 1; }

  /* ---- Industry card: title nudges along with the photo zoom ---- */
  .industry-card__title { transition: transform var(--dur-base) var(--ease-out); }
  .industry-card:hover .industry-card__title,
  .industry-card:focus-within .industry-card__title { transform: translateX(6px); }

  /* ---- FAQ / policy items: lift, deeper shadow layer, icon turns ---- */
  .faq__item { position: relative; }
  .faq__item:hover { transform: translateY(-2px); }
  .faq__item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-faq-hover);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .faq__item:hover::before { opacity: 1; }
  .faq__item:not([open]) .faq__q:hover .faq__icon { transform: rotate(90deg) scale(1.2); }
  .faq__item--policy:not([open]) .faq__q:hover .faq__icon { transform: translateY(3px); }

  /* ---- Company Overview cards ---- */
  .expertise-card:hover, .expertise-card:focus-within { transform: translateY(-6px); }
  .expertise-card__title img { transition: transform var(--dur-base) var(--ease-out); }
  .expertise-card:hover .expertise-card__title img { transform: rotate(-10deg) scale(1.1); }
  .diff-card { transition: transform var(--dur-base) var(--ease-out); }
  .diff-card:hover, .diff-card:focus-visible { transform: translateY(-6px); }
  .timeline__num { transition: transform var(--dur-base) cubic-bezier(0.34, 1.56, 0.64, 1); }
  .timeline__step:hover .timeline__num { transform: rotate(-12deg) scale(1.12); }
  .story__photo, .ahead__collage img { transition: transform 700ms var(--ease-out); }
  .story__photo:hover, .ahead__collage img:hover { transform: scale(1.03); }
}

/* ==========================================================================
   Components added for Technology Services
   ========================================================================== */
@layer components {

  /* ---- Challenge item (on a dark band): amber rule, title, text ----
     Figma 276:428 — 71×4 amber line above each title. The rule draws in on reveal
     and stretches on hover; the title nudges right. */
  .challenge { position: relative; padding-top: 4px; }
  .challenge::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 71px; height: 4px;
    background: var(--color-cta);
    transform-origin: left center;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .challenge__title {
    margin-top: 1.25rem;
    color: var(--color-text-on-dark);
    font-size: var(--fs-h3);
    line-height: 1.33;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .challenge p { max-width: 24.25rem; margin-top: 0.8rem; } /* Figma text boxes ≤ 388px */
  /* Figma 215:23 sets two challenge titles at 27px (the rest 24px); line box kept at 32px so
     the descriptions below still start on the same line */
  @media (min-width: 1024px) { .challenge__title--figma-27 { font-size: 1.6875rem; line-height: 2rem; } }
  .js-motion .challenge::before { transform: scaleX(0); }
  .js-motion .challenge.is-visible::before {
    transform: scaleX(1);
    transition: transform 600ms var(--ease-out) calc(var(--i, 0) * var(--stagger) + 250ms);
  }
  .challenge:hover::before,
  .js-motion .challenge.is-visible:hover::before { transform: scaleX(1.6); transition-delay: 0s; }
  .challenge:hover .challenge__title { transform: translateX(6px); }

  /* ---- Line-fitted text (data-lines → js/fit-lines.js): balanced line breaks, no one-word last line ---- */
  [data-lines] { text-wrap: balance; }
}

/* ==========================================================================
   Components added for Contract Vehicles, Certifications & Awards (Figma 608:70)
   ========================================================================== */
@layer components {

  /* ---- Contract list: cream panel, items in 2 columns, dashed rules (numbers removed, UCI 2026-10-26) ----
     Figma 613:401 at 1920: panel 1367 wide, columns 621 · 42 · 621 (39px left / 44px right inset),
     rows 33 + 55 + 34 + 1px rule = 123, vertical rule 27px after the left column. */
  .contracts {
    --rule: linear-gradient(90deg, var(--color-rule-dashed) 50%, transparent 0);
    position: relative;
    display: grid;
    max-width: 1367px;
    padding: 0 1.5rem;
    border-radius: var(--radius-card);
    background: var(--color-faq);
    box-shadow: var(--shadow-panel);
    color: var(--color-text);
    font-weight: 700;
    font-variant-ligatures: no-common-ligatures; /* Figma: "liga" 0 */
  }
  .contract {
    display: block;
    padding: 1.25rem 0 1.3125rem 1px;
    font-size: 1.25rem;
    line-height: 1.4;
    background: var(--rule) left bottom / 8px 1px repeat-x;  /* 4px dash, 4px gap */
  }
  .contract:last-child { background: none; }
  .contract__name { display: block; transition: transform var(--dur-base) var(--ease-out); }
  .contract:hover .contract__name { transform: translateX(6px); }

  @media (min-width: 1024px) {
    .contracts {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 42px;
      padding: 0 44px 0 39px;
    }
    /* Figma: 33px above the first row, 34px around every rule, 34px below the last row */
    /* Names stay on one line like Figma: the text scales with the column so the longest name
       ("Project-Based Information Technology Services", Figma box 556px at 24px) fits on one
       line; Figma's 24/26px from a 621px column. cqi = the panel's content width (2 columns + gap). */
    .contracts { container-type: inline-size; }
    .contract {
      padding-block: 34px;
      font-size: clamp(1.125rem, 2.158cqi - 2.892px, 1.5rem);   /* Figma 24 */
      line-height: 55px;
    }
    /* if a name ever has to wrap (narrowest desktops), its lines stay tight inside the 55px row */
    .contract__name { line-height: 1.3; padding-block: calc((55px - 1.3em) / 2); }
    .contract:nth-child(-n + 2) { padding-top: 33px; }
    /* 2-row panels are 243/244px in Figma */
    .contracts--2rows .contract, .contracts--odd .contract { padding-bottom: 33.5px; }
    .contracts--2rows .contract:nth-child(n + 3), .contracts--odd .contract:nth-child(n + 3) { padding-top: 33.5px; padding-bottom: 34px; }
    .contracts--2rows .contract:nth-child(n + 3) { padding-bottom: 33px; }
    .contract:nth-child(even) { padding-left: 30px; }
    /* no rule under the last row */
    .contract:nth-last-child(2):nth-child(odd) { background: none; }
    .contracts--odd .contract:nth-last-child(2) { background: var(--rule) left bottom / 8px 1px repeat-x; }
    /* vertical dashed rule between the columns */
    .contracts::before {
      content: "";
      position: absolute;
      top: 31px; bottom: 31px;
      left: calc(39px + (100% - 125px) / 2 + 26px);
      width: 1px;
      background: linear-gradient(180deg, var(--color-rule-dashed) 50%, transparent 0) left top / 1px 8px repeat-y;
    }
    /* Figma 613:402 / 613:403: the rule sits 5px further left and is shorter in the 2-row panels */
    .contracts--2rows::before, .contracts--odd::before { left: calc(39px + (100% - 125px) / 2 + 21px); }
    .contracts--2rows::before { top: 29px; bottom: 29px; }
    .contracts--odd::before { top: 25px; bottom: 18px; }
  }

  /* ---- Certification tile: the credential glass tile with a centred logo at its Figma size ---- */
  .cert-tile {
    display: grid;
    place-items: center;
    aspect-ratio: 243 / 130.43;
    background: var(--color-glass-grey);
  }
  .cert-tile--light { background: var(--color-glass); }
  .cred-tile .cert-tile__logo { height: auto; object-fit: contain; }
  /* logo widths = Figma box / 243px tile */
  .cred-tile .cert-tile__logo--esd    { width: 92.59%; }
  .cred-tile .cert-tile__logo--seal   { width: 44.86%; }
  .cred-tile .cert-tile__logo--panynj { width: 96.3%; }
  .cred-tile .cert-tile__logo--nmsdc  { width: 74.07%; }
  .cred-tile .cert-tile__logo--wbenc  { width: 72.02%; }
  .cred-tile .cert-tile__logo--mdot   { width: 77.78%; }
  .cred-tile .cert-tile__logo--round  { width: 43.21%; }
  .cred-tile .cert-tile__logo--nyc    { width: 62.96%; }

  /* ---- Award card (cream): title, source + description, optional logo at the bottom ---- */
  .award-card {
    display: flex;
    flex-direction: column;
    padding: 1.875rem 2.125rem 2rem;
    border-radius: var(--radius-card);
    background: var(--color-faq);
    box-shadow: var(--shadow-panel);
  }
  .award-card__title {
    max-width: 17.25rem;            /* Figma 276px text box */
    color: var(--color-primary);
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: 2rem;              /* Figma 24/32 */
  }
  .award-card__text { margin-top: 1.0625rem; }
  .award-card__text strong, .badge-award__text strong { font-weight: 600; }
  .award-card__logo { width: min(335px, 100%); margin-top: auto; padding-top: 2rem; transition: transform var(--dur-base) var(--ease-out); }
  .award-card:hover .award-card__logo { transform: scale(1.04); }

  /* ---- Badge award (navy): amber medallion overlapping the top edge, centred copy ---- */
  /* Text sizes and text-box widths scale with the card (container units), so every line breaks
     where Figma breaks it at any width: design values at Figma's 326px card, smaller below.
     Scale = (card − 22px) / 303px, where 303px is the widest Figma text box (card 4 title). */
  .badge-award {
    position: relative;
    container-type: inline-size;
    padding: 3.875rem 0 2rem;        /* 62px: medallion overhang + gap to the title */
    border-radius: var(--radius-card);
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    text-align: center;
  }
  @media (min-width: 640px) { .badge-award { min-height: 378px; } }  /* Figma card 326 × 378 */
  .badge-award__icon {
    position: absolute;
    top: -38px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 74.78px;
    height: 78.42px;                 /* Figma ellipse 74.78 × 78.42 */
    border-radius: 50%;
    background: var(--color-cta);
    translate: -50% 0;
  }
  .badge-award__icon img { width: 53px; height: 53px; }   /* laurel stays still on hover (UCI 2026-10-30) */
  .badge-award__title {
    margin-inline: auto;
    color: var(--color-cta);
    font-size: min(1.5rem, 7.921cqi - 1.743px);          /* Figma 24 */
    font-weight: 700;
    line-height: min(29.76px, 9.822cqi - 2.161px);      /* Figma "normal" = 1.24 */
  }
  .badge-award__text {
    margin: min(20px, 6.601cqi - 1.452px) auto 0;
    font-size: min(1.125rem, 5.941cqi - 1.307px);       /* Figma 18/32 */
    line-height: min(32px, 10.561cqi - 2.323px);
  }
  /* Figma text boxes: titles 200 / 228 / 250 / 303, descriptions 259 / 280 / 265 / 280 */
  .badge-award:nth-child(1) .badge-award__title { max-width: min(200px, 66.007cqi - 14.521px); }
  .badge-award:nth-child(2) .badge-award__title { max-width: min(228px, 75.248cqi - 16.554px); }
  .badge-award:nth-child(3) .badge-award__title { max-width: min(250px, 82.508cqi - 18.152px); }
  .badge-award:nth-child(4) .badge-award__title { max-width: min(303px, 100cqi - 22px); }
  .badge-award:nth-child(1) .badge-award__text { max-width: min(259px, 85.479cqi - 18.805px); }
  .badge-award:nth-child(2) .badge-award__text,
  .badge-award:nth-child(4) .badge-award__text { max-width: min(280px, 92.409cqi - 20.33px); }
  .badge-award:nth-child(3) .badge-award__text { max-width: min(265px, 87.459cqi - 19.24px); }
}

/* ==========================================================================
   Component added for Leadership Team (Figma 711:17)
   ========================================================================== */
@layer components {

  /* ---- Leader card: 319 × 424 portrait, navy fade over the bottom 156px, name + role ----
     Inside sizes use container units, so the card keeps Figma's proportions (and line breaks)
     when it is narrower than 319px; at 319px and wider they are Figma's values. */
  .leader { aspect-ratio: 319 / 424; border-radius: var(--radius-card); }
  .leader__card {
    position: relative;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    container-type: inline-size;
    background: var(--color-primary);
  }
  .leader__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
  }
  .leader:hover .leader__photo, .leader:focus-within .leader__photo { transform: scale(1.04); }
  .leader__body {
    position: absolute;
    inset: auto 0 0;
    height: min(156px, 48.903cqi);
    padding: min(46px, 14.42cqi) min(22px, 6.897cqi) 0;
    background: linear-gradient(180deg, var(--color-fade-navy-0) 0%, var(--color-fade-navy-70) 38.942%, var(--color-primary) 100%);
    color: var(--color-text-on-dark);
  }
  .leader__name {
    color: var(--color-text-on-dark);
    font-size: min(1.5625rem, 7.837cqi);        /* Figma 25/32 */
    font-weight: 700;
    line-height: min(32px, 10.031cqi);
  }
  .leader__role {
    margin-top: min(11.5px, 3.605cqi);           /* 8px gap + half-leading of a 32px line */
    font-size: min(1.25rem, 6.27cqi);            /* Figma 20 */
    font-weight: 500;
    line-height: 1.25;                           /* "Director- Resource / Management" wraps as in Figma */
    transition: transform var(--dur-base) var(--ease-out);
  }
  .leader:hover .leader__role { transform: translateX(4px); }
  /* LinkedIn (UCI 2026-10-22): the whole card is the link to the person's profile */
  .leader__card--link { display: block; color: inherit; text-decoration: none; }
  .leader__card--link:focus-visible { outline: 3px solid var(--color-cta); outline-offset: 3px; }
}

/* ==========================================================================
   Area card (Health & Human Services "Areas We Support", Figma 724:819 …)
   ========================================================================== */
@layer components {
  /* Figma: 333×278 cream panel, title 22px at +22, text 18/32 at +87,
     navy 6px bar (Figma vector "Rectangle 66") along the bottom, inset 5.7px */
  .area-card {
    display: flex;
    flex-direction: column;
    min-height: 278px;
    padding: 1.375rem 1rem 1.9375rem 1.25rem;   /* text boxes run to 16px from the right edge (Integrated Eligibility: 297px) */
    border-radius: var(--radius-card);
    background: var(--color-faq);
    box-shadow: var(--shadow-panel);
  }
  .area-card::before {
    content: "";
    position: absolute;
    left: 1.72%;
    right: 1.72%;
    bottom: 0;
    height: 6px;
    background: url("../assets/icons/card-bar.svg") 0 0 / 100% 100% no-repeat;
    transform-origin: 50% 100%;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .area-card:hover::before { transform: scaleY(1.5); }
  .area-card__title {
    color: var(--color-primary);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 55px;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .area-card:hover .area-card__title { transform: translateX(4px); }
  .area-card__text { max-width: 18.125rem; margin-top: 0.625rem; }   /* 290px box */
  .area-card__text--240 { max-width: 15rem; }
  .area-card__text--253 { max-width: 15.8125rem; }
  .area-card__text--263 { max-width: 16.4375rem; }
  .area-card__text--297 { max-width: 18.5625rem; }
  /* Hover (UCI 2026-10-26, as .icon-card--wash): the Real-World Impact diagonal navy gradient fades in on the
     .lift::after shadow layer (same timing), title and text turn white, the navy bottom bar fades out */
  .area-card { isolation: isolate; }
  .area-card::after { z-index: -1; background: var(--gradient-navy-diagonal); }
  .area-card :is(.area-card__title, .area-card__text) {
    transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .area-card:is(:hover, :focus-within) :is(.area-card__title, .area-card__text) { color: var(--color-text-on-dark); }
  .area-card::before { transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
  .area-card:is(:hover, :focus-within)::before { opacity: 0; }
}

/* ==========================================================================
   Icon card (homepage Industry Expertise, laid out like UCI's capability-card screenshot)
   ========================================================================== */
@layer components {
  /* Cream panel: line icon → title (room for 2 lines so texts align) → text,
     with the same navy bottom bar as the area card */
  .icon-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.5rem 2.5rem;
    border-radius: var(--radius-card);
    background: var(--color-faq);
    box-shadow: var(--shadow-panel);
    text-decoration: none;   /* homepage industry cards are links */
  }
  .icon-card::before {
    content: "";
    position: absolute;
    left: 1.72%;
    right: 1.72%;
    bottom: 0;
    height: 6px;
    background: url("../assets/icons/card-bar.svg") 0 0 / 100% 100% no-repeat;
    transform-origin: 50% 100%;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .icon-card__icon {
    display: block;
    width: 48px;
    height: 48px;
    color: var(--color-primary);
  }
  .icon-card__title {
    margin-top: 1.5rem;
    color: var(--color-primary);
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: 1.33;
    transition: transform var(--dur-base) var(--ease-out);
  }
  @media (min-width: 1024px) { .icon-card__title { min-height: 2.66em; } }
  .icon-card__text { margin-top: 1.25rem; color: var(--color-text); }

  /* Hover: card lifts (.lift), title nudges, bar thickens; the icon stays still (no tilt, UCI 2026-10-14) */
  .icon-card:hover::before, .icon-card:focus-within::before { transform: scaleY(1.5); }
  .icon-card:hover .icon-card__title, .icon-card:focus-within .icon-card__title { transform: translateX(6px); }

  /* --wash (UCI 2026-10-21; homepage industries, Technology Services, Strategic Consulting and Strategic Staffing capabilities): on hover/focus the
     Real-World Impact diagonal navy gradient fades in, carried by the .lift::after shadow layer (same
     timing); title, text and icon turn white. Colour/filter transitions are a deliberate exception. */
  .icon-card--wash { isolation: isolate; }
  .icon-card--wash::after { z-index: -1; background: var(--gradient-navy-diagonal); }
  .icon-card--wash :is(.icon-card__title, .icon-card__text) {
    transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .icon-card--wash .icon-card__icon { transition: filter var(--dur-base) var(--ease-out); }
  .icon-card--wash:is(:hover, :focus-within) :is(.icon-card__title, .icon-card__text) { color: var(--color-text-on-dark); }
  .icon-card--wash:is(:hover, :focus-within) .icon-card__icon { filter: brightness(0) invert(1); }
  /* The navy bottom bar shows at rest and fades out while the gradient is on (UCI 2026-10-21) */
  .icon-card--wash::before { transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
  .icon-card--wash:is(:hover, :focus-within)::before { opacity: 0; }

  /* --fill (Technology Services capabilities, UCI 2026-11-02): "navy fill with icon spin and card lift".
     At rest: cream card, thin navy bar along the bottom edge, white icon in a dark blue circle. On hover/focus the card
     lifts 6px (.lift), the bar rises to fill the whole card, the badge turns amber and spins 360°, and the title
     and text turn white. Everything eases back when the pointer leaves. */
  .icon-card--fill { isolation: isolate; }
  .icon-card--fill::before {
    inset: 0;
    z-index: -1;
    height: auto;
    border-radius: inherit;
    background: var(--color-primary);
    clip-path: inset(calc(100% - 6px) 0 0 0);   /* the bottom 6px of a card-shaped navy layer = the bar */
    transform: none;
    transition: clip-path 450ms var(--ease-out);
  }
  .icon-card--fill:is(:hover, :focus-within)::before { clip-path: inset(0 0 0 0); transform: none; }
  .icon-card__badge {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--color-primary);         /* dark blue circle, white icon (UCI 2026-11-02) */
    transition: background-color var(--dur-base) var(--ease-out), transform 600ms var(--ease-out);
  }
  .icon-card__badge .icon-card__icon { filter: brightness(0) invert(1); transition: filter var(--dur-base) var(--ease-out); }
  .icon-card--fill:is(:hover, :focus-within) .icon-card__badge .icon-card__icon { filter: none; }   /* navy icon on the amber circle */
  .icon-card--fill:is(:hover, :focus-within) .icon-card__badge { background: var(--color-cta); transform: rotate(360deg); }
  .icon-card--fill :is(.icon-card__title, .icon-card__text) { transition: color var(--dur-base) var(--ease-out); }
  .icon-card--fill:is(:hover, :focus-within) :is(.icon-card__title, .icon-card__text) { color: var(--color-text-on-dark); transform: none; }
}

/* ==========================================================================
   Public-sector nav (UCI 2026-11-18, updated 2026-11-27): Public Sector, Solutions, Capabilities, Solution Platform,
   Insights, About Us, then the navy Contact Us button; no Home item. Inline menu from 1024px (drawer below; js/nav.js
   uses the same breakpoint) so the menu stays visible at 125% browser zoom on 1280–1440px laptops (UCI 2026-11-19).
   Labels 14px at 1024px (so "Solution Platform" fits), 16px at 1152px, 17px at 1280px, 18px from 1440px, and uci-website's 20px from 1600px.
   ========================================================================== */
@layer components {
  @media (min-width: 1024px) {
    .nav-bar { gap: 0.75rem; }
    .nav-list { gap: 0.5rem; }
    .nav-link, .nav-trigger { gap: 0.25rem; font-size: 0.875rem; font-weight: 500; }
    .nav-trigger__chev { width: 16px; height: 16px; }
    .nav-trigger::after { right: calc(16px + 0.25rem); }
    .nav-cta .btn { min-width: 0; min-height: 40px; padding-inline: 1.125rem; font-size: 0.9375rem; font-weight: 600; }
    .brand img { width: 56px; }
  }
  @media (min-width: 1152px) {
    .nav-list { gap: 0.625rem; }
    .nav-link, .nav-trigger { font-size: 1rem; }
    .nav-trigger__chev { width: 18px; height: 18px; }
    .nav-trigger::after { right: calc(18px + 0.25rem); }
    .nav-cta .btn { padding-inline: 1.25rem; font-size: 1rem; }
  }
  @media (min-width: 1280px) {
    .nav-bar { gap: 1rem; }
    .nav-link, .nav-trigger { gap: 5px; }
    .nav-trigger__chev { width: 20px; height: 20px; }
    .nav-trigger::after { right: 1.5rem; }
    .brand img { width: 64px; }
    .nav-list { gap: 1rem; }
    .nav-link, .nav-trigger { font-size: 1.0625rem; font-weight: 500; }
    .nav-cta .btn { min-width: 0; padding-inline: 1.5rem; font-size: 1.0625rem; font-weight: 600; }
  }
  @media (min-width: 1440px) {
    .nav-list { gap: 1.75rem; }
    .nav-link, .nav-trigger { font-size: 1.125rem; }
    .nav-cta .btn { padding-inline: 1.75rem; font-size: 1.125rem; }
  }
  @media (min-width: 1600px) {
    .nav-list { gap: clamp(1.75rem, 2vw, 2.375rem); }
    .nav-link, .nav-trigger { font-size: var(--fs-nav); }
    .nav-cta .btn { min-width: 196px; }
  }
}

/* Public-sector footer, Figma 1546:139 (UCI 2026-11-23). Full-width band (60px side margins at 1920): brand column
   (logo, name, text, LinkedIn), then Public Sector + Education stacked, Solutions, Capabilities, Insights, About Us,
   Contact Us. Column starts at 1920: 60 / 378 / 646 / 910 / 1189 / 1397 / 1605 (to 1860).
   Headings 24/40 amber, links 18/32 white with 14px between, brand text 16/32; type scales down to 1280. */
@layer components {
  .site-footer--ps { padding-block: 2.875rem 2.5rem; }   /* equal space above and below the content (UCI 2026-11-23) */
  /* Columns size to their content and spread edge to edge, so the left and right space match at every width */
  .footer-grid--ps { gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, auto); justify-content: center; column-gap: clamp(1.5rem, 5vw, 4rem); }   /* centred: equal side space */
  .footer-grid--ps .footer-brand, .footer-grid--ps .footer-col--contact { grid-column: 1 / -1; }
  @media (min-width: 640px) {
    .footer-grid--ps { grid-template-columns: repeat(3, auto); }
    .footer-grid--ps .footer-col--contact { grid-column: auto; }
  }
  .footer-grid--ps .footer-brand__logo { width: 146px; margin-left: 49px; }      /* centred over the 244px text */
  /* Name and text share the left edge; the text keeps Figma's 244px box at 16px (15.25em) so it always wraps to the
     same 4 lines (UCI 2026-11-23) */
  .footer-grid--ps .footer-brand__name { max-width: none; margin-top: 1.3rem; font-size: clamp(1.375rem, 0.25rem + 1.4vw, 1.875rem); line-height: 1.33; text-align: left; white-space: nowrap; }
  .footer-grid--ps .footer-brand__text { width: 16.75em; max-width: none; margin-top: 0.75rem; font-size: clamp(0.875rem, 0.625rem + 0.3125vw, 1rem); font-weight: 500; line-height: 2; }
  .footer-grid--ps .footer-social { margin-top: 0.85rem; font-size: clamp(1rem, 0.75rem + 0.3125vw, 1.125rem); }

  .footer-stack { display: grid; gap: 2.8rem; align-content: start; }              /* Education heading 45px below */
  @media (min-width: 1280px) { .footer-stack { gap: 2.55rem; } }                  /* + the 4px heading offset */
  .footer-grid--ps .footer-col { margin-top: 0; padding-right: 0; }
  .footer-grid--ps .footer-col h2 { font-size: clamp(1.125rem, 0.375rem + 0.9375vw, 1.5rem); line-height: 1.66; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .footer-grid--ps .footer-col--platform h2 { white-space: nowrap; }                /* "Solution Platform" on one line (UCI 2026-11-27) */
  .footer-grid--ps .footer-col ul { max-width: 15.2rem; margin-top: 1.5rem; gap: 0.875rem; }
  @media (max-width: 1279px) { .footer-grid--ps .footer-col ul { max-width: 13rem; } .footer-grid--ps .footer-contact.footer-contact { max-width: none; } }
  .footer-grid--ps :is(.footer-col a, .footer-col address, .footer-contact span) { font-size: clamp(0.875rem, 0.25rem + 0.625vw, 1.125rem); line-height: 1.78; }   /* 14px at 1280 → 18px at 1920 */
  .footer-grid--ps .footer-contact.footer-contact { max-width: 16rem; gap: 0.875rem; }
  /* Figma text boxes (at 18px): Public Sector 232, Solutions 198, Capabilities 212, Insights / About Us 170, so links
     break where Figma breaks them */
  @media (min-width: 1280px) {
    .footer-stack ul a { max-width: 13em; }
    .footer-col--solutions ul a { max-width: 11em; }
    .footer-col--tech ul a { max-width: 11.8em; }
    :is(.footer-col--insights, .footer-col--about) ul a { max-width: 9.5em; }
  }
  .footer-grid--ps .footer-contact li { grid-template-columns: 20px 1fr; column-gap: 10px; }
  .footer-grid--ps .footer-contact img { margin-top: 6px; }
  .footer-grid--ps .footer-contact .footer-contact__mail { margin-top: 0; align-self: center; }

  @media (min-width: 1280px) {
    .site-footer--ps { padding-block: 3.25rem 2.875rem; }   /* 52px above the logo and below the last link (UCI 2026-11-23) */
    .footer-ps__container > .footer-grid--ps { grid-column: full; padding-inline: 3.125vw; }   /* 60px at 1920 */
    /* Up to 1365px the one-line "Solution Platform" heading widens the first column, so the side space shrinks
       to keep the other links wrapping as before (UCI 2026-11-27) */
    @media (max-width: 1365px) { .footer-ps__container > .footer-grid--ps { padding-inline: 2vw; } }
    /* Columns take their content's width and spread edge to edge, so the space left of the logo column equals the
       space right of Contact Us (UCI 2026-11-23) */
    .footer-grid--ps { grid-template-columns: repeat(7, auto); justify-content: space-between; column-gap: 1rem; }
    .footer-grid--ps .footer-brand, .footer-grid--ps .footer-col--contact { grid-column: auto; }
    .footer-grid--ps .footer-col { margin-top: 0.25rem; }   /* headings 72px below the band top */
    .footer-grid--ps > * { min-width: auto; }   /* columns never shrink below their content */
    .footer-grid--ps .footer-contact.footer-contact { max-width: none; }
    .footer-grid--ps .footer-brand__logo { width: clamp(110px, 7.6vw, 146px); margin-left: clamp(30px, 2.55vw, 49px); }
  }
}

/* ==========================================================================
   Public-sector site additions (2026-11-18): outline button, testimonial card
   ========================================================================== */
@layer components {
  /* Secondary CTA beside an amber .btn: navy outline, fills navy on hover */
  .btn--outline {
    --btn-bg: transparent;
    --btn-bg-hover: var(--color-primary);
    --btn-fg: var(--color-primary);
    box-shadow: inset 0 0 0 2px var(--color-primary);
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }
  .btn--outline:hover, .btn--outline:focus-visible { color: var(--color-text-on-dark); }
  .btn-row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 2rem; }

  /* Icon / number badges on the --fill cards stay still on hover (UCI 2026-11-18: "the logo should be sticky");
     the card still lifts, fills navy and the badge still turns amber */
  .icon-card--fill:is(:hover, :focus-within) .icon-card__badge { transform: none; }

  /* Testimonial: cream panel, amber quote mark, centred quote (copy pending on every page) */
  .testimonial { padding-block: clamp(1rem, 2vw, 2rem) var(--section-gap); }
  .testimonial__card {
    max-width: 62rem;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4.5rem);
    border-radius: var(--radius-card);
    background: var(--color-faq);
    box-shadow: var(--shadow-panel);
    text-align: center;
  }
  .testimonial__mark { display: block; width: 48px; height: 36px; margin-inline: auto; color: var(--color-cta); }
  .testimonial__text { margin-top: 1.75rem; color: var(--color-primary); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 500; line-height: 1.6; }
  .testimonial__cite { display: grid; gap: 0.25rem; margin-top: 2rem; }
  .testimonial__name { color: var(--color-primary); font-size: var(--fs-body); font-weight: 700; }
  .testimonial__role { font-size: var(--fs-small); }
}
