/* ==========================================================================
   SNSS – custom stylesheet
   --------------------------------------------------------------------------
   Tailwind (assets/vendor/tailwind.min.js) does the layout work in the HTML.
   This file only holds the handful of things that are clearer as real CSS:
   design tokens, the fixed page skeleton, and reusable components.

   CONTENTS
     1. Tokens
     2. Page skeleton (the "one screen, any monitor, no scroll" rules)
     3. Header + navigation
     4. Mega menu
     5. Home page
     5b. Home page — the sections under the fold
     5c. Home page — the colour of each band, and the map behind Products
     6. Detail (product / solution / service) page
     6f. Video player (site-wide)
     7. Contact page
     8. Footer
     9. Small screens fallback
   ========================================================================== */

/* -------------------------------------------------------------- 1. Tokens */
:root {
  --design-w: 1366;         /* the canvas this design was drawn on           */
  --design-h: 768;
  --gutter: 27px;           /* space left of the logo — never grows          */
  --shell: 1760px;          /* upper bound, only reached on ultra-wide       */
  --header-h: 64px;         /* height of the top bar                         */
  --footer-h: 51px;         /* and of the bottom one                         */
  --radius-card: 10px;
  --radius-panel: 24px;

  --navy-700: #104B7D;
  --navy-800: #0D3F69;
  --mint: #95F9FB;
  --teal: #00BFB0;
  --ice: #F7FAFE;
  --line: #DCE8F4;
}

/* ---------------------------------------------------- 2. Page skeleton */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

/* ---- one design, every monitor ------------------------------------------
   The whole page is drawn at 1366 x 768 and then scaled to the window, so a
   14" laptop and a 25" desktop get the identical view — same proportions,
   same line breaks — just larger or smaller type. Scaling by the *smaller*
   of the two ratios is what guarantees the page never scrolls.

   `zoom` (unlike transform: scale) re-runs layout, so text stays crisp and
   position:fixed still works. assets/js/fit.js sets the same number for
   browsers that can't divide a length by a length inside calc().           */
html {
  zoom: max(.7, calc(min(100vw / var(--design-w), 100vh / var(--design-h)) / 1px));
}

body {
  font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--ice);
  color: #0A0A0A;
  overflow: hidden;               /* the whole site fits one screen         */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The centred content column used by the header and every page section.

   A browser window is never a clean 16:9 — tabs and the address bar eat into
   the height — so the scale above is normally decided by the height, which
   leaves the canvas *wider* than 1366. The column fills that extra width
   instead of banking it as margin: the gutter beside the logo stays at its
   design value on every screen, and only the content columns grow.         */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Vertical stack: header, page, footer — exactly one viewport tall. */
.page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ------------------------------------------------- 3. Header + navigation */
.site-header {
  position: relative;
  z-index: 40;
  height: var(--header-h);
  flex: 0 0 var(--header-h);
  display: flex;
  align-items: center;
}

/* Home page: the bar floats on top of the hero photo. */
.site-header[data-header="transparent"] { background: transparent; }
.site-header[data-header="solid"]       { background: var(--ice); }

/* ---- the bar stays put while the page scrolls --------------------------
   Only the home page scrolls on a desktop, and only there does this apply.
   `sticky` would not do: the bar's containing block is .page, which is
   exactly one screen tall, so it would come unstuck at the first band.
   Fixed takes it out of the flow instead, which the hero pays for by
   dropping the negative margin that used to slide it under the bar — the
   two cancel out, so every row below lands exactly where it did before.

   Over the hero the bar is transparent by design. Once the page has moved
   it sits over the cards and needs a ground of its own; assets/js/layout.js
   turns that on with .is-stuck. */
@media (min-width: 961px) {
  html[data-scroll] .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  html[data-scroll] .hero { margin-top: 0; }

  html[data-scroll] .site-header.is-stuck {
    background: rgba(247, 250, 254, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px -14px rgba(9, 42, 74, .55);
  }
}

.site-header .logo img { height: 24px; width: auto; display: block; }
.site-header .logo { transition: transform .3s ease; }
.site-header .logo:hover { transform: scale(1.04); }

/* Plain links on the bar, no tray behind them. The current page is marked
   by colour and by a thin teal underline; the same underline glides to
   whichever link the pointer is over and settles back when it leaves
   (layout.js moves it). */
.nav-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; z-index: 1; }

.nav-glide {
  position: absolute;
  left: 0;
  bottom: 3px;                     /* just under the words, clear of the photo */
  width: 0;
  height: 2px;
  z-index: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #00A99C 0%, #1F7FC4 100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1),
              width .4s cubic-bezier(.16, 1, .3, 1),
              opacity .25s ease;
}
.nav-glide.is-on { opacity: 1; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .005em;
  color: #34506B;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--navy-800); }

/* Current page + open mega menu: the deep navy, the underline under it. */
.nav-item.is-active > .nav-link,
.nav-item.is-open   > .nav-link {
  color: var(--navy-800);
  font-weight: 700;
}

/* The small chevron on a dropdown item — the cue that it opens something,
   so a visitor doesn't have to hover every link to find out. It eases down
   a touch on hover and flips to meet the panel once it's open. */
.nav-chevron {
  display: inline-flex;
  width: 13px;
  height: 13px;
  color: #5E7893;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}
.nav-chevron svg { width: 100%; height: 100%; }
.nav-link:hover .nav-chevron { color: var(--navy-800); transform: translateY(1px); }
.nav-item.is-open > .nav-link .nav-chevron { color: var(--navy-800); transform: rotate(180deg); }

/* Home page: the bar drops in with the hero. */
@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
html[data-scroll] .site-header > .shell { animation: header-in .7s cubic-bezier(.16, 1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  html[data-scroll] .site-header > .shell { animation: none; }
  .nav-glide { transition: none; }
}

/* ----------------------------------------------------------- 4. Mega menu */
/* Lightly dim everything behind the open panel. */
.mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(6, 32, 56, .30);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.mega-backdrop.is-visible { opacity: 1; visibility: visible; }

/* A white panel, rounded, on a soft shadow. */
.mega-panel {
  position: fixed;
  z-index: 45;
  top: 56px;                       /* set precisely by JS                    */
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(13, 63, 105, .08);
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(9, 42, 74, .40),
              0 2px 6px rgba(9, 42, 74, .06);
  padding: 22px 22px 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  transition: opacity .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1), visibility .22s ease;
}
.mega-panel.is-open { opacity: 1; visibility: visible; transform: none; }

/* The heading carries the same teal bar as the band labels. */
.mega-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6C86A0;
}
.mega-heading::before {
  content: "";
  width: 4px;
  height: 13px;
  border-radius: 2px;
  background: var(--teal);
  flex: none;
}

.mega-grid { display: grid; column-gap: 10px; row-gap: 16px; }

/* One row: the icon on a tile, the name and its line, an arrow at the end. */
.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.mega-item:hover { background: #F2F7FC; }

.mega-item .icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #EAF3FB;
  color: #1F6FB5;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.mega-item .icon svg { width: 22px; height: 22px; display: block; }
.mega-item:hover .icon {
  background: linear-gradient(135deg, #0D3F69 0%, #1A68A3 100%);
  color: #FFFFFF;
  transform: scale(1.04);
}

.mega-item .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-item .label {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #0F2E4C;
}
.mega-item .desc {
  max-width: 230px;
  font-size: 12px;
  line-height: 1.45;
  color: #6B8299;
}
.mega-item:hover .label { color: var(--navy-700); }

.mega-item .go {
  flex: none;
  display: flex;
  margin-left: auto;
  padding-left: 6px;
  color: var(--navy-700);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .25s ease;
}
.mega-item .go svg { width: 15px; height: 15px; stroke-width: 2.2; }
.mega-item:hover .go { opacity: 1; transform: none; }

/* The rows settle in one after another as the panel opens. */
@keyframes mega-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.mega-panel.is-open .mega-item {
  animation: mega-in .35s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(.04s + var(--i, 0) * .035s);
}
@media (prefers-reduced-motion: reduce) {
  .mega-panel.is-open .mega-item { animation: none; }
}

/* ---------------------------------------------------------- 5. Home page */
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 379px;               /* 443px total minus the 64px header      */
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(180deg, #F4FAFD 0%, #E7F2FA 100%);
}

/* Sits bottom-right at its natural size so the photo is never upscaled. */
.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 95%;
  height: 88%;
  object-fit: cover;
  object-position: center bottom;
}

/* Wash so the headline stays readable over the photo — in the page's own
   off-white (--ice), so where it meets the page below there is no edge. */
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #F7FAFE 0%,
      rgba(247, 250, 254, .95) 24%,
      rgba(247, 250, 254, .55) 36%,
      rgba(247, 250, 254, .12) 46%,
      rgba(247, 250, 254, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, .60) 0%, rgba(255, 255, 255, 0) 22%);
}

.hero-title {
  font-size: 43px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.012em;
  color: #0A0A0A;
  margin: 0;
}
.hero-title .accent { color: var(--navy-700); }

.hero-text {
  margin: 20px 0 0;
  max-width: 496px;
  font-size: 14px;
  line-height: 21px;
  color: #53535D;
}

/* Shared pill button (navy fill, white label). */
.btn-navy,
.btn-mint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-navy svg,
.btn-mint svg { width: 15px; height: 15px; }

.btn-navy { background: var(--navy-800); color: #FFFFFF; }
.btn-navy:hover { background: #0A3457; transform: translateY(-1px); }

/* Same button, aqua fill — used on the dark detail-page banner. Sized a
   step up from the home-page one to sit with the larger banner type; the
   home page keeps .btn-navy at its original scale, matched to the hero. */
.btn-mint {
  background: var(--mint);
  color: #06283F;
  gap: 11px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 16px;
}
.btn-mint svg { width: 18px; height: 18px; }
.btn-mint:hover { background: #B4FBFC; transform: translateY(-1px); }

/* The three navy panels under the hero. */
.info-card {
  background: linear-gradient(180deg, #17537F 0%, #103F66 100%);
  border-radius: var(--radius-card);
  color: #FFFFFF;
  padding: 20px 22px;
  overflow: hidden;               /* never let copy spill past the card     */
}

.card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #DFE4EB;
  margin: 0 0 11px;
}
.card-label::before {
  content: "";
  width: 5px;
  height: 15px;
  border-radius: 3px;
  background: var(--mint);
  flex: none;
}

.stat-value    { font-size: 21px; font-weight: 700; line-height: 1.1; }
.stat-value.sm { font-size: 17px; }
.stat-name     { font-size: 12.5px; color: #C9DCEC; margin-top: 2px; }
.stat-rule     { height: 1px; background: rgba(255, 255, 255, .22); }

.about-title { font-size: 17px; font-weight: 700; margin: 0 0 9px; }
.nowrap { white-space: nowrap; }
.about-copy p {
  font-size: 14px;
  line-height: 1.55;           /* the panel is wide now the team has its own band */
  color: #DCE9F5;
  margin: 0 0 10px;
}
.about-copy p:last-child { margin-bottom: 0; }

/* ---- the fold, brought to life ------------------------------------------
   Everything here is transform and opacity only, so none of it moves the
   layout: the fold still measures exactly one screen. All of it stands
   still for anyone who has asked their system for less motion (end of
   this block). */

/* The headline, the line under it and the button rise in one after the
   other. The two panels below are on screen from the start. */
@keyframes fold-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { animation: fold-rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero-inner > :nth-child(1) { animation-delay: .10s; }
.hero-inner > :nth-child(2) { animation-delay: .28s; }
.hero-inner > :nth-child(3) { animation-delay: .44s; }

/* "Smart Software": a navy-to-teal gradient that slowly runs through it. */
@keyframes accent-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
.hero-title .accent {
  background: linear-gradient(90deg, #104B7D 0%, #1F7FC4 25%, #00A99C 50%, #1F7FC4 75%, #104B7D 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: accent-flow 9s linear infinite;
}

/* ---- the hero button ----
   Near-black ink, the colour of the headline — darker than the navy panels
   under it, so it stands apart from them — the colour slowly
   drifting through it; the arrow rides in its own small round chip. At
   rest it keeps a calm 4.5s rhythm — a band of light glides across, the
   arrow nudges forward, a faint ring breathes out and fades. On hover the
   rhythm pauses and the button answers properly: it lifts, its shadow
   deepens, the colour brightens, and the arrow chip turns white and steps
   forward. The ring is drawn with `outline`, so it never fights the
   shadow; the entrance fills only backwards, so it never pins the lift. */
.hero .btn-navy {
  position: relative;
  overflow: hidden;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 9px;
  font-size: 13px;
  letter-spacing: .01em;
  background: linear-gradient(110deg, #08182A 0%, #12304C 45%, #1A3E5E 75%, #12304C 100%);
  background-size: 220% 100%;
  box-shadow: 0 12px 26px -14px rgba(8, 24, 42, .7),
              inset 0 1px 0 rgba(255, 255, 255, .14);
  outline: 2px solid rgba(18, 48, 76, 0);
  outline-offset: 0;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, filter .3s ease;
  animation: fold-rise .8s cubic-bezier(.16, 1, .3, 1) .44s backwards,
             cta-drift 9s ease-in-out 1.6s infinite alternate,
             cta-halo 4.5s ease-out 1.6s infinite;
}
.hero .btn-navy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .32), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  pointer-events: none;
  animation: cta-shine 4.5s ease-in-out 1.6s infinite;
}
.hero .btn-navy svg {
  box-sizing: content-box;
  width: 13px;
  height: 13px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(127, 240, 241, .16);
  color: var(--mint);
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
  animation: cta-arrow 4.5s ease-in-out 1.6s infinite;
}

.hero .btn-navy:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 20px 34px -14px rgba(8, 24, 42, .8),
              inset 0 1px 0 rgba(255, 255, 255, .2);
}
.hero .btn-navy:hover svg {
  background: #FFFFFF;
  color: #0B1F33;
  transform: translateX(3px);
}
.hero .btn-navy:hover,
.hero .btn-navy:hover::after,
.hero .btn-navy:hover svg { animation-play-state: paused; }
.hero .btn-navy:hover svg { animation: none; }
.hero .btn-navy:active { transform: translateY(-1px); }

@keyframes cta-drift {
  from { background-position: 0% 0; }
  to   { background-position: 60% 0; }
}
@keyframes cta-shine {
  0%, 55%   { left: -60%; }
  80%, 100% { left: 120%; }
}
@keyframes cta-arrow {
  0%, 60%, 74%, 88%, 100% { transform: translateX(0); }
  67% { transform: translateX(4px); }
  81% { transform: translateX(3px); }
}
@keyframes cta-halo {
  0%   { outline-color: rgba(18, 48, 76, .35); outline-offset: 0; }
  45%  { outline-color: rgba(18, 48, 76, 0);   outline-offset: 9px; }
  100% { outline-color: rgba(18, 48, 76, 0);   outline-offset: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .btn-navy, .hero .btn-navy::after, .hero .btn-navy svg { animation: none; }
}

/* The two panels: a mint glow breathing in the top corner, a hairline of
   light along the top edge, and a lift on hover. */
.home-grid > .info-card {
  position: relative;
  isolation: isolate;
  box-shadow: 0 18px 36px -24px rgba(9, 42, 74, .65);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}
.home-grid > .info-card > * { position: relative; z-index: 1; }
.home-grid > .info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(127, 240, 241, 0), rgba(127, 240, 241, .55), rgba(127, 240, 241, 0)) top / 100% 1px no-repeat,
    radial-gradient(360px 220px at 100% 0%, rgba(127, 240, 241, .16), rgba(127, 240, 241, 0) 70%);
  animation: card-glow 7s ease-in-out infinite alternate;
}
@keyframes card-glow {
  from { opacity: .55; }
  to   { opacity: 1; }
}
.home-grid > .info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -24px rgba(9, 42, 74, .8);
}

/* A compass rose turning very slowly in the corner of About Us — the
   panel is wide and its last lines short, so it fills the quiet space. */
.about-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  z-index: 0;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: .14;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-width='1.2'><circle cx='100' cy='100' r='94'/><circle cx='100' cy='100' r='76' stroke-dasharray='2 5'/><circle cx='100' cy='100' r='30'/><path d='M100 6 111 89 194 100 111 111 100 194 89 111 6 100 89 89Z' fill='white' fill-opacity='.25'/><g transform='rotate(45 100 100)'><path d='M100 34 106 94 166 100 106 106 100 166 94 106 34 100 94 94Z'/></g></svg>") no-repeat center / contain;
  animation: compass-turn 120s linear infinite;
}
@keyframes compass-turn { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .hero-title .accent,
  .home-grid > .info-card::before,
  .about-card::after { animation: none !important; }
}

/* ---- the fold, premium finish -------------------------------------------
   Visual refinement only — same words, same image, same layout, same
   height. Every value here changes how a thing looks, never where it sits
   in the one-screen fold. */

/* Hero type: a deep navy-ink instead of flat black, tighter tracking, and
   a calmer slate for the paragraph. */
.hero-title { color: #0B1F33; letter-spacing: -.022em; }
.hero-text  { color: #4A5D71; }

/* The photo: a touch richer, and its lower edge dissolving into the page
   instead of stopping on a hard line. */
.hero-photo { filter: saturate(1.06) contrast(1.03); }
.hero-inner { z-index: 2; }
/* The photo itself fades out over its lowest stretch along an eased
   curve, so it melts into the page instead of a white veil being laid
   over it; the hero ends in exactly the page colour, so there is no seam. */
.hero { background: linear-gradient(180deg, #F4FAFD 0%, var(--ice) 100%); }
.hero-photo {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,.92) 78%, rgba(0,0,0,.74) 84%, rgba(0,0,0,.48) 90%, rgba(0,0,0,.22) 95%, rgba(0,0,0,.06) 98.5%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,.92) 78%, rgba(0,0,0,.74) 84%, rgba(0,0,0,.48) 90%, rgba(0,0,0,.22) 95%, rgba(0,0,0,.06) 98.5%, transparent 100%);
}

/* The two panels: a deeper diagonal navy, a hairline of light around the
   edge, rounder corners and a softer, longer shadow. */
.home-grid > .info-card {
  border-radius: 16px;
  background: linear-gradient(155deg, #1B5B8C 0%, #134B79 45%, #0D3B64 100%);
  box-shadow: 0 24px 48px -28px rgba(9, 42, 74, .75),
              inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.home-grid > .info-card:hover {
  box-shadow: 0 30px 56px -28px rgba(9, 42, 74, .85),
              inset 0 0 0 1px rgba(127, 240, 241, .18);
}

/* Key numbers: larger, in white running into mint; names in small spaced
   capitals; dividers that fade at both ends. */
.stats-card .stat-value {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, #BDF7F8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.stats-card .stat-value.sm { font-size: 17px; letter-spacing: 0; }
.stats-card .stat-name {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(201, 220, 236, .78);
}
.stats-card .stat-rule {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .24), rgba(255, 255, 255, 0));
}
/* The class societies keep their own spelling. */
.stats-card > div:last-child .stat-name { text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* About Us: a stronger title, and copy held to a comfortable measure
   with the compass rose in the clear space beside it. */
.about-card .about-title { font-size: 19px; font-weight: 800; letter-spacing: -.005em; }
.about-card .about-copy p { max-width: 1180px; color: rgba(220, 233, 245, .9); }

/* ------------------------------ 5b. Home page — sections under the fold */
/* Products, Solutions and AI & Innovation sit below the first screen. They
   are the only reason any page in this site is taller than the canvas, so
   the permission to scroll is written on the home page alone — index.html
   carries data-scroll on its <html> tag. Every other page still fits one
   screen exactly, which is the whole point of section 2.

   The markup is written by assets/js/home.js from the same menus the
   header uses; the headings come from SITE.home in site-config.js.        */
html[data-scroll] body { overflow-y: auto; }

/* The footer has moved to the foot of the whole document, so the fold would
   otherwise gain the 51px the footer used to hold and the three panels
   would sit hard against the bottom edge. Handing that height back as
   padding keeps the hero and the panels exactly where they were drawn, and
   leaves a gutter that reads as the start of the next band. */
html[data-scroll] .page { padding-bottom: var(--footer-h); }

/* The ground under the whole run. Each band paints its own field of colour
   over this (section 5c), so all this has to do is make sure no white edge
   shows through at the seams. */
.home-sections {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

.home-section {
  position: relative;
  padding: 42px 0 46px;
  scroll-margin-top: calc(var(--header-h) + 14px);   /* clear the fixed bar */

  /* The accent a card lights up in. Each band overrides these with its own
     colour in section 5c, so a card always answers in the colour of the
     ground it sits on. These are the fallback, for a band with no colour
     of its own. */
  --accent:       var(--navy-700);
  --accent-2:     var(--teal);
  --accent-glow:  rgba(0, 191, 176, .13);
  --accent-tint:  #F7FCFE;
  --accent-ring:  rgba(16, 75, 125, .14);
  --accent-cast:  rgba(16, 75, 125, .30);
}

/* The bands and the footer below them sit in a column of their own, narrower
   than the page column the header and the fold use, with real air either
   side. Every band is measured the same way, so the cards line up down the
   whole run. */
.home-section > .shell,
.site-footer[data-footer="full"] .shell {
  max-width: 1280px;
  padding-inline: 48px;
}

/* Landing on a band from another page: the page stays hidden until
   home.js has scrolled it into place, then fades in (see index.html). */
html[data-jump] body { opacity: 0; }
body { transition: opacity .28s ease; }

/* A click on a band's link from the home page itself glides there. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* One band per screen, always — whether it is reached from the nav or by
   scrolling. Each band fills the window under the fixed bar with its
   content centred in it, so the spacing between bands is the same however
   you arrive, and a nav link lands with nothing of the next band showing.
   --view-h is the window height in design pixels, written by home.js; a
   band with more to show than that simply grows. Phones keep the natural
   flow — see section 10. */
@media (min-width: 961px) {
  .home-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(var(--view-h, 100vh) - var(--header-h));
    scroll-margin-top: var(--header-h);
  }
  .home-section > .shell { width: 100%; }
}
.home-section .shell { position: relative; z-index: 1; }

/* ---- the centred heading over each band ----
   The block is as wide as its widest line and the two pieces of type inside
   it set their own measure: the heading takes the full width, which is what
   holds each of the three to one line, and the sentence under it is pulled
   back in to keep every blurb to two. Both are centred, so the block reads
   as one narrowing shape. */
.section-head {
  max-width: 960px;
  margin: 0 auto 26px;
  text-align: center;
}
/* The label over each band: its name between two short rules. The name is
   set large and spaced in a teal-to-blue gradient that flows slowly
   through it (the same movement as "Smart Software" in the hero); a point
   of light travels out along each rule and fades, again and again. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow-text {
  padding-left: .22em;               /* balances the spacing after the last letter */
  background: linear-gradient(90deg, #00A99C 0%, #1F7FC4 25%, #00BFB0 50%, #1F7FC4 75%, #00A99C 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: accent-flow 6s linear infinite;
}
.eyebrow-rule {
  position: relative;
  flex: none;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 169, 156, 0) 0%, rgba(0, 169, 156, .55) 100%);
}
.eyebrow-rule:last-child {
  background: linear-gradient(270deg, rgba(0, 169, 156, 0) 0%, rgba(0, 169, 156, .55) 100%);
}
/* The travelling light: inwards on the left rule, outwards on the right. */
.eyebrow-rule::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(127, 240, 241, 0), #7FF0F1, rgba(127, 240, 241, 0));
  animation: rule-light 3s ease-in-out infinite;
}
.eyebrow-rule:first-child::after { animation-direction: reverse; }
/* On the way in, each rule draws outward from the name. */
.eyebrow-rule:first-child { transform-origin: right center; }
.eyebrow-rule:last-child  { transform-origin: left center; }
@keyframes rule-light {
  0%   { left: -16px; opacity: 0; }
  20%  { opacity: 1; }
  70%  { left: 48px; opacity: 1; }
  100% { left: 48px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-text, .eyebrow-rule::after { animation: none; }
}
/* Every few seconds a soft band of light glides across the name, left to
   right — a copy of the words laid exactly over them, painted only where
   the band is. */
.eyebrow-text { position: relative; }
.eyebrow-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding-left: .22em;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 58%) no-repeat;
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  pointer-events: none;
  animation: label-sweep 4.5s ease-in-out infinite;
}
@keyframes label-sweep {
  0%        { background-position: 150% 0; }
  45%, 100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-text::after { animation: none; display: none; }
}

.section-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.012em;
  color: #0A0A0A;
}
/* What the band is for, in one sentence, under its heading. The measure is
   set so the longest of the three sentences — the Products one — comes to
   two lines; narrow it further and that one falls to three. */
.section-blurb {
  max-width: 860px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5A7186;
  /* Two lines of near-equal length, nearly as wide as the heading above,
     so the paragraph sits under it as one even block. */
  text-wrap: balance;
}

/* The map drifts behind the Products heading; a soft clearing behind the
   words keeps its dots and routes from running through the type. */
#products-section .section-head {
  position: relative;
}
#products-section .section-head::before {
  content: "";
  position: absolute;
  inset: -18px -40px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(240, 245, 252, .92), rgba(240, 245, 252, 0));
  pointer-events: none;
}

/* ---- the bands come in as they are reached ----------------------------
   home.js sets .reveal-on (only when motion is welcome) and adds .is-in to
   a band each time it scrolls into view (and takes it off once the band
   has left the window, so it plays again). Order: the label's bar
   grows, the label settles in from wide letter-spacing, the heading and
   the line under it rise, then the cards follow one after another (--i is
   each card's place, written by home.js). Cards use `backwards` fill so
   that once in, their own hover lift works as before. */

/* The slow shimmer used on the teal bars elsewhere (footer, labels). */
@keyframes eyebrow-shimmer {
  from { background-position: 50% 0%; }
  to   { background-position: 50% 200%; }
}

@keyframes band-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes eyebrow-in {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes rule-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.reveal-on .home-section:not(.is-in) .section-eyebrow,
.reveal-on .home-section:not(.is-in) .section-title,
.reveal-on .home-section:not(.is-in) .section-blurb,
.reveal-on .home-section:not(.is-in) .cell-grid > .cell,
.reveal-on .home-section:not(.is-in) .group-list > .group,
.reveal-on .home-section:not(.is-in) .team-grid > .person { opacity: 0; }

.reveal-on .home-section.is-in .section-eyebrow {
  animation: eyebrow-in .7s cubic-bezier(.16, 1, .3, 1) backwards;
}
.reveal-on .home-section.is-in .eyebrow-rule {
  animation: rule-grow .7s cubic-bezier(.16, 1, .3, 1) .25s backwards;
}
.reveal-on .home-section.is-in .section-title {
  animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) .08s backwards;
}
.reveal-on .home-section.is-in .section-blurb {
  animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) .16s backwards;
}
.reveal-on .home-section.is-in .cell-grid > .cell,
.reveal-on .home-section.is-in .group-list > .group,
.reveal-on .home-section.is-in .team-grid > .person {
  animation: band-rise .6s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(.22s + var(--i, 0) * .06s);
}


/* ---- the card grid ----
   data-cols is written by home.js from `cols` in site-config.js: three
   roomy cards for the six products, four tighter ones for the twelve
   solutions and the four AI modules. */
.cell-grid {
  display: grid;
  gap: 16px;
  grid-auto-rows: 1fr;             /* a short label never makes a short card */
}
.cell-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.cell-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); gap: 14px; }

.cell {
  --mx: 80%;                       /* pointer position, written by home.js  */
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 19px 15px;
  border: 1px solid rgba(13, 63, 105, .10);
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  box-shadow: 0 1px 2px rgba(9, 42, 74, .05);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;              /* keeps the glow below the card's text  */
  transition: transform .3s ease,
              box-shadow .3s ease,
              border-color .3s ease, background .4s ease;
}
.cell-grid[data-cols="4"] .cell { padding: 17px 16px 13px; gap: 12px; border-radius: 12px; }

/* The accent that lights along the top of a card on hover.
   It runs the full width and is left to the card's own `overflow: hidden`
   to trim, so the corner radius cuts its ends and it reads as part of the
   card's edge. Inset short of the corners instead — which is what this
   used to do — and the ends hang in the air beside a top edge that has
   already curved away from them. */
.cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}
/* The light that follows the pointer. Negative z-index puts it over the
   card's own background but under everything written on the card. */
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(280px circle at var(--mx) var(--my),
                              var(--accent-glow), transparent 72%);
  opacity: 0;
  transition: opacity .4s ease;
}
/* A measured response: a slight lift, a crisper border and a soft neutral
   shadow. No glow, no sweep, no colour wash. */
.cell:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 63, 105, .22);
  box-shadow: 0 14px 30px -18px rgba(9, 42, 74, .28);
}
/* The faintest tint of the band's own colour (--accent-tint, section 5c)
   fades in towards the foot of the card — the layer
   that used to carry the pointer glow, now a flat wash. */
.cell::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--accent-tint) 100%);
  transition: opacity .3s ease;
}
.cell:hover::after { opacity: 1; }
.cell:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.cell-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cell-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #E8F1F9;
  color: var(--navy-800);
  transition: background .45s cubic-bezier(.16, 1, .3, 1), color .3s ease,
              transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease;
}
.cell-icon svg { width: 19px; height: 19px; }
.cell:hover .cell-icon {
  background: #0D3F69;
  color: #FFFFFF;
}

/* Which part of the suite a card belongs to. Only the Solutions band shows
   these — the other two menus have no column headings to draw them from. */
.cell-tag {
  flex: none;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #EDF3F9;
  color: #5D7B96;
}
.cell-tag[data-tag="operations"] { background: rgba(16, 75, 125, .10);  color: #104B7D; }
.cell-tag[data-tag="compliance"] { background: rgba(0, 191, 176, .16);  color: #007F76; }
.cell-tag[data-tag="crew"]       { background: rgba(13, 63, 105, .10);  color: #0D3F69; }
.cell-tag[data-tag="business"]   { background: rgba(201, 138, 44, .16); color: #A8701C; }

.cell-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: #0A0A0A;
}
.cell-grid[data-cols="4"] .cell-name { font-size: 13.5px; }

/* One line saying what the module does. It sits directly under the name,
   so the gap the card would otherwise open between them is closed here. */
.cell-desc {
  margin-top: -9px;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 400;
  color: #5A7186;
}
.cell-grid[data-cols="4"] .cell-desc { margin-top: -6px; font-size: 11.5px; }
.cell:hover .cell-desc { color: #46607A; }

.cell-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #6E8399;
  transition: border-color .35s ease;
}
.cell-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 9.5px; }
.cell-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;               /* stays right whether or not a kicker   */
  transition: color .35s ease, gap .35s ease;
}
.cell-go svg { width: 12px; height: 12px; transition: transform .35s ease; }
.cell:hover .cell-foot { border-color: var(--accent-ring); }
.cell:hover .cell-go { color: #0D3F69; }
.cell:hover .cell-go svg { transform: translateX(2px); }

/* ---- a band drawn as collapsible groups (`grouped` in site-config.js) ----
   Each group is a native <details>: closed by default, opened by its row.
   The bar down the left of a row takes the colour that group's tag uses on
   the cards, so the three read apart before they are read. */
.group-list { display: flex; flex-direction: column; gap: 14px; }

.group {
  --group: #104B7D;
  border: 1px solid rgba(13, 63, 105, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 2px rgba(9, 42, 74, .05);
  transition: box-shadow .35s ease, border-color .3s ease;
}
.group[data-tag="compliance-crew"] { --group: #00A396; }
.group[data-tag="business"]        { --group: #C98A2C; }
.group:hover,
.group[open] { border-color: var(--accent-ring); box-shadow: 0 10px 28px -18px var(--accent-cast); }

.group-head {
  position: relative;
  display: flex;
  align-items: flex-start;          /* count and arrow sit level with the name */
  gap: 18px;
  padding: 20px 22px 20px 30px;
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}
.group-head::-webkit-details-marker { display: none; }
.group-head::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 3px;
  background: var(--group);
}
.group-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.group-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.group-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.005em;
  color: #0A0A0A;
}
.group-desc { font-size: 13px; line-height: 1.5; color: #5A7186; }

/* The modules inside a closed group, as a row of chips. Opened, the cards
   below say the same thing, so the chips step aside. */
.group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.group[open] .group-chips { display: none; }
.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(13, 63, 105, .10);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  color: #24486B;
  white-space: nowrap;
}
.group-chip .icon { display: flex; color: var(--group); }
.group-chip .icon svg { width: 15px; height: 15px; display: block; }

.group-count {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(13, 63, 105, .12);
  background: #F3F7FB;
  color: #3A5670;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
/* Opened, the count takes the navy of the panels. */
.group[open] .group-count {
  border-color: transparent;
  background: #0D3F69;
  color: #FFFFFF;
}
.group-chevron { flex: none; display: flex; margin-top: -1px; color: #7C99B4; transition: transform .25s ease, color .25s ease; }
.group-chevron svg { width: 22px; height: 22px; stroke-width: 2; display: block; }
.group:hover .group-chevron { color: var(--accent); }
.group[open] .group-chevron { transform: rotate(180deg); color: var(--accent); }

.group-body { padding: 4px 22px 22px; }
.group[open] .group-body { animation: group-in .3s ease both; }
@keyframes group-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .group[open] .group-body { animation: none; }
}
@media (max-width: 640px) {
  .group-head { gap: 12px; padding: 16px 16px 16px 26px; }
  .group-head::before { left: 12px; top: 16px; bottom: 16px; }
  .group-count { display: none; }
  .group-body { padding: 2px 14px 16px; }
}



/* ============== 5c. What each band is made of behind its cards ===========
   The three bands are told apart by colour before they are read: Products
   is the cool blue of open water, Solutions the lavender of the shoreside
   office, AI & Innovation the mint the brand uses for anything intelligent.
   Each field is a couple of soft corner tints over a vertical wash, mixed
   so the middle of the band stays near white and the cards keep their
   contrast wherever they land.

   Products alone also carries a drawing — the stippled world map from
   assets/js/scenes.js. That is the only movement left on this page.
   ------------------------------------------------------------------------ */

/* Bands meet without a line anywhere on this page: the foot of each one
   converges, over its last few centimetres, on the exact colour the next
   one opens with. That closing layer is written first because the first
   layer in a `background` list is the one painted on top.

   The chain, top to bottom:
     Products  -> #F0EAFA, the lavender Solutions opens with
     Solutions -> #F3FBF8, which is also the fill of the wave at its foot
                  and the first stop of AI & Innovation
     AI        -> #DFF3EA, where the footer begins
   Change one end of a pair and you must change the other. */

/* ---- Products: open water ---- */
#products-section {
  background:
    linear-gradient(180deg, rgba(240, 234, 250, 0) calc(100% - 130px), #F0EAFA 100%),
    radial-gradient(1000px 640px at 4% 0%,   #D2DEF2 0%, rgba(210, 222, 242, 0) 60%),
    radial-gradient(900px 620px at 100% 12%, #DDE7F5 0%, rgba(221, 231, 245, 0) 58%),
    radial-gradient(760px 520px at 0% 100%,  #D8E3F4 0%, rgba(216, 227, 244, 0) 62%),
    linear-gradient(180deg, #EEF3FB 0%, #FAFCFE 52%, #F7FAFD 100%);

  --accent:      #104B7D;
  --accent-2:    #3E8FD0;
  --accent-glow: rgba(16, 75, 125, .14);
  --accent-tint: #F4F8FD;
  --accent-ring: rgba(16, 75, 125, .18);
  --accent-cast: rgba(16, 75, 125, .34);
}

/* ---- Solutions: lavender ---- */
#solutions-section {
  background:
    linear-gradient(180deg, rgba(243, 251, 248, 0) calc(100% - 150px), #F3FBF8 100%),
    radial-gradient(1000px 700px at 0% 8%,   #E4D9F7 0%, rgba(228, 217, 247, 0) 58%),
    radial-gradient(820px 560px at 96% 4%,   #DFF1EA 0%, rgba(223, 241, 234, 0) 56%),
    radial-gradient(700px 520px at 22% 100%, #EBE3FA 0%, rgba(235, 227, 250, 0) 60%),
    linear-gradient(180deg, #F0EAFA 0%, #F8F6FD 46%, #FDFDFE 100%);

  --accent:      #5B3FBF;
  --accent-2:    #9B7BE8;
  --accent-glow: rgba(107, 63, 201, .14);
  --accent-tint: #F8F5FE;
  --accent-ring: rgba(107, 63, 201, .20);
  --accent-cast: rgba(91, 63, 191, .34);
}

/* The one seam that is drawn rather than left to fade: a wave carries the
   lavender band down into the mint one. Its fill is the pale mint both
   bands have converged on by the time they meet. */
#solutions-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0 30c120 20 240 20 360 6s240-26 360-20 240 24 360 18 240-22 360-10v36H0z' fill='%23f3fbf8'/></svg>") no-repeat center / 100% 100%;
}



/* ---- Management team: back to the navy of the panels under the hero ----
   It opens on the mint AI & Innovation closes with and returns to it at the
   foot, which is what the footer's wave expects to sit on. Between the two
   it cools to the pale blue of the page, so the navy cards stand out. */
#team-section {
  background:
    radial-gradient(900px 560px at 0% 30%,   #DCE8F5 0%, rgba(220, 232, 245, 0) 60%),
    radial-gradient(900px 600px at 100% 70%, #D9E6F3 0%, rgba(217, 230, 243, 0) 58%),
    linear-gradient(180deg, #DFF3EA 0%, #EEF4FA 22%, #F4F8FC 50%, #EEF4FA 78%, #DFF3EA 100%);

  --accent:      #104B7D;
  --accent-2:    var(--mint);
  --accent-ring: rgba(16, 75, 125, .18);
  --accent-cast: rgba(16, 75, 125, .34);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* One person: the photo on a pale mat down the left, the words on navy to
   the right — the same navy, label bar and type as the panels on the fold. */
.person {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 26px;
  padding: 26px 28px 26px 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, #17537F 0%, #103F66 100%);
  color: #FFFFFF;
  box-shadow: 0 22px 44px -26px rgba(9, 42, 74, .55);
  overflow: hidden;
}
/* A soft mint glow in the corner behind the name, to lift the navy. */
.person::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127, 240, 241, .16), rgba(127, 240, 241, 0));
  pointer-events: none;
}

.person-side { position: relative; }
.person-photo {
  display: block;
  width: 168px;
  height: 206px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  background: #FFFFFF;
  border: 4px solid rgba(255, 255, 255, .92);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
}

.person-main { position: relative; min-width: 0; }
.person-name {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.person-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
}
.person-role::before {
  content: "";
  width: 5px;
  height: 13px;
  border-radius: 3px;
  background: var(--mint);
  flex: none;
}
.person-bio {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.person-bio p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #DCE9F5;
}
.person-bio p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .person-bio p { font-size: 14.5px; }
}
@media (max-width: 640px) {
  .person { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .person-photo { width: 132px; height: 162px; }
}

/* ---- the team band as glass ---------------------------------------------
   The cards are white frosted glass over the band's pale ground, with the
   type turned dark to read on it. */
#team-section .person {
  background: linear-gradient(145deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .62) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
          backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 24px 50px -30px rgba(9, 42, 74, .45),
              inset 0 1px 0 rgba(255, 255, 255, .95);
  color: #0F2E4C;
}
/* The corner glow turns from mint-on-navy to a white sheen on the glass. */
#team-section .person::before {
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}
#team-section .person-photo {
  border-color: #FFFFFF;
  box-shadow: 0 14px 30px -16px rgba(9, 42, 74, .55);
}
#team-section .person-name { color: #0A2540; }
#team-section .person-role { color: #00897E; }
#team-section .person-role::before { background: var(--teal); }
#team-section .person-bio { border-top-color: rgba(13, 63, 105, .14); }
#team-section .person-bio p { color: #3A5670; }

/* ---- the world map behind the Products heading -------------------------
   The scene is a strip across the open head of its band, not a wash behind
   the whole of it: the cards are opaque, so anything drawn under them is
   drawn for nobody, and a strip of known height also fixes how large the
   map is scaled — bands are of very different heights. Its foot fades out
   where the first row of cards begins.

   All of it is decoration: it sits under .home-section .shell, takes no
   pointer events and is marked aria-hidden at the source. */
.section-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .85;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.scene-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The land. */
.scene-dots circle { fill: rgba(16, 75, 125, .15); }

/* A shipping lane: dashes travelling along the curve. */
.scene-lane {
  fill: none;
  stroke: rgba(0, 191, 176, .5);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 12;
  animation: scene-flow 6s linear infinite;
  animation-delay: var(--d, 0s);
}

/* A port: a dot with a ring breathing out of it. */
.scene-port-dot  { fill: rgba(0, 191, 176, .62); }
.scene-port-ring {
  fill: rgba(0, 191, 176, .3);
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-pulse 4.6s ease-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes scene-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -68; }
}
@keyframes scene-pulse {
  0%        { transform: scale(.7); opacity: .5; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* Asked for stillness, the map stays — it simply stops moving. */
@media (prefers-reduced-motion: reduce) {
  .section-scene * { animation: none !important; }
}


/* ---- the inner-page content area ---------------------------------------
   Header, content, footer are the three rows of .page. Giving the middle
   row flex:1 (and min-height:0, so it may shrink below its content) is what
   lets a banner say "fill whatever height is left" instead of carrying a
   hard pixel height that only works on the 768 canvas. Every screen scales
   that canvas as a whole, so filling it here means no page ever scrolls. */
.detail-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
}

/* ------------------------------------------------------ 6. Detail page */
/* Product and Solution pages open on one frame: the clip on the left, the
   headline card on the right, sharing a single rounded outline.
   Column widths are fractions of the design (913 : 454 at 1367 wide) so the
   split holds when the shell is wider than the canvas. */
/* Sized so the hero and the cards together fill the 768 canvas. The page
   scale is the same on every page, so growing these boxes — rather than the
   zoom — is what fills a big screen without the shared header changing size
   from one page to the next. */
.product-hero {
  display: grid;
  grid-template-columns: 913fr 454fr;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: 0 10px 30px -18px rgba(9, 42, 74, .35);
}

/* Headline card first, clip second. */
.product-hero.media-right { grid-template-columns: 454fr 913fr; }

.product-clip {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #06131F;
}

/* The still is a button, so the clip opens from the keyboard as well as
   the mouse. The play mark is part of the picture. */
.video-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #06131F;
  cursor: pointer;
}
.video-open img { transition: transform .35s ease; }
.video-open:hover img { transform: scale(1.03); }
.video-open:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }

.detail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #06131F;
  display: block;
}

/* The headline card. Pale, so the clip beside it carries the colour. */
.product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 27px 28px 30px;
  background: linear-gradient(135deg, #FDF8E4 0%, #F8F0CD 55%, #F3E9C2 100%);
}

/* One tint per menu section: cream for Products (the default above),
   aqua-to-sky for Solutions. */
.product-hero.sec-solutions .product-info {
  background: linear-gradient(115deg, #D4ECE4 0%, #DEF1F4 38%, #E9F3FD 100%);
}

/* Names the menu the page hangs off — Products, Solutions, … */
.product-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2A4A66;
}
.product-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7EA0BC;
  flex: none;
}

.product-title {
  position: relative;
  margin: 15px 0 0;
  padding-left: 15px;
  font-size: 29px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.012em;
  color: #0B3A5E;
}
.product-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 2px;
  background: #2E6DA4;
}
/* Teal is too light to read on these pale cards, so the second half of the
   headline takes the mid blue the card rule and the deliver cards use. */
.product-title .accent { color: #2E6DA4; }

/* Scrolls rather than spills on the handful of pages with long copy; the
   canvas height is fixed, so it has nowhere to grow into. */
.product-text {
  margin: 16px 0 0;
  min-height: 0;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.55;
  color: #2E4657;
  scrollbar-width: thin;
}

/* Sits at the foot of the card whatever the copy length. */
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  align-self: flex-start;
  padding: 11px 22px;
  border-radius: 8px;
  background: #104B7D;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-green svg { width: 16px; height: 16px; }
.btn-green:hover { background: #104B7D; transform: translateY(-1px); }

/* Photo layer for the dark banners.
   It is a real element (not a CSS variable) so the src in the HTML stays
   relative to the page — much easier to move files around later. */
.banner-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.detail-title {
  font-size: 37px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.012em;
  margin: 0;
}
.detail-title .accent { color: var(--teal); }

.detail-text {
  margin: 14px 0 0;
  font-size: 17.5px;
  line-height: 1.55;
  color: #E4EFF8;
  max-width: 750px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #374151;
  margin: 0;
}
.section-label::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--navy-700);
  flex: none;
}

/* The card row keeps its size; the clip/banner row above takes what's left. */
.deliver-block { flex: none; }

.deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 21px; }

.deliver-card {
  position: relative;
  overflow: hidden;
  min-height: 215px;              /* fills the canvas under the clip row    */
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  border-radius: 14px;
  border: 1px solid rgba(13, 63, 105, .10);
  box-shadow: 0 1px 2px rgba(9, 42, 74, .05);
  padding: 24px 22px 22px;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
}

/* A teal-to-blue line sweeps along the top edge on hover — the same accent
   the cards on the home page carry. */
.deliver-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, #1F7FC4 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.deliver-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 22px 40px -20px rgba(9, 42, 74, .38);
}
.deliver-card:hover::after { transform: scaleX(1); }

/* Quiet numeral in the corner — it orders the row without competing with
   the sentence under it, and steps forward with the card. */
.deliver-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  color: #C9D3DF;
  transition: color .3s ease;
}
.deliver-card:hover .deliver-num { color: var(--teal); }

.deliver-emoji {
  font-size: 38px;
  line-height: 1;
  display: block;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

/* Line icon from the shared set, on a soft blue tile that turns navy with
   a white mark on hover — as the menus do. */
.deliver-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #EAF3FB;
  color: #1F6FB5;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.deliver-icon svg { width: 30px; height: 30px; display: block; }
.deliver-card:hover .deliver-icon {
  background: linear-gradient(135deg, #0D3F69 0%, #1A68A3 100%);
  color: #FFFFFF;
  transform: scale(1.04);
}

.deliver-text {
  margin: 18px 0 0;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 500;
  color: #0F2E4C;
}

/* ---- product & solution pages: finish and entrance ----
   The section label takes the teal bar the rest of the site uses; the
   headline card's contents rise in one after another, then the four cards
   follow. Transforms and opacity only, so the one-screen layout holds. */
.section-label::before {
  background: linear-gradient(180deg, var(--teal) 0%, #1F7FC4 100%);
}

.product-info > * { animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) backwards; }
.product-info > :nth-child(1) { animation-delay: .05s; }
.product-info > :nth-child(2) { animation-delay: .12s; }
.product-info > :nth-child(3) { animation-delay: .2s; }
.product-info > :nth-child(4) { animation-delay: .28s; }
.deliver-block .section-label { animation: band-rise .6s cubic-bezier(.16, 1, .3, 1) .25s backwards; }
.deliver-grid > .deliver-card { animation: band-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; }
.deliver-grid > .deliver-card:nth-child(1) { animation-delay: .32s; }
.deliver-grid > .deliver-card:nth-child(2) { animation-delay: .39s; }
.deliver-grid > .deliver-card:nth-child(3) { animation-delay: .46s; }
.deliver-grid > .deliver-card:nth-child(4) { animation-delay: .53s; }
.deliver-grid > .deliver-card:nth-child(5) { animation-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  .product-info > *,
  .deliver-block .section-label,
  .deliver-grid > .deliver-card { animation: none; }
}

/* Motion is decoration here — the colour changes still land. */
@media (prefers-reduced-motion: reduce) {
  .deliver-card,
  .deliver-card::after,
  .deliver-icon { transition: none; }
  .deliver-card:hover { transform: none; }
  .deliver-card:hover .deliver-icon { transform: none; }
}

/* --------------------------------------- 6b. AI & Innovation page ------
   These pages carry no video and no cards — one wide dark banner does all
   the talking, so it is built from its own pieces rather than reusing the
   two-up .detail-media grid. */
.ai-banner {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  padding: 34px 44px 34px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  background: #06283F;
  box-shadow: 0 22px 44px -28px rgba(9, 42, 74, .7);
}
/* Deep navy behind the words, opening onto the photo to the right, with a
   soft mint glow in the far corner — the same ground as the About banner. */
.ai-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 280px at 100% 0%, rgba(127, 240, 241, .16), rgba(127, 240, 241, 0) 70%),
    linear-gradient(90deg, rgba(5, 28, 48, .95) 0%, rgba(7, 38, 64, .88) 42%, rgba(9, 48, 80, .6) 70%, rgba(9, 48, 80, .38) 100%);
}
/* The teal bar down the left edge, as on the other page banners. */
.ai-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 5px;
  background: linear-gradient(180deg, var(--teal) 0%, #1F7FC4 100%);
}
.ai-banner > *:not(.banner-photo) { position: relative; z-index: 1; }

/* The module's name, small and mint, with its line icon. */
.ai-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 7px;
  border-radius: 999px;
  background: rgba(127, 240, 241, .1);
  border: 1px solid rgba(127, 240, 241, .28);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
}
.ai-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(127, 240, 241, .16);
}
.ai-badge-icon svg { width: 15px; height: 15px; display: block; }
.ai-badge .emoji {
  font-size: 18px;
  line-height: 1;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.ai-banner .detail-title { margin-top: 18px; font-size: 40px; line-height: 1.15; }
.ai-banner .detail-text {
  max-width: 820px;
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #DCE9F5;
  text-wrap: pretty;
}

/* Four benefits as frosted cards: each one's icon on a mint tile, then the line. */
.ai-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.ai-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #FFFFFF;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.ai-card:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(127, 240, 241, .4);
  transform: translateY(-2px);
}
.ai-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(127, 240, 241, .14);
  color: var(--mint);
}
.ai-card-icon svg { width: 23px; height: 23px; display: block; }

/* Services cards carry a longer line of copy than the AI benefits, so it
   is set lighter and a touch smaller; a headline figure sits in mint
   above its caption. */
.svc-card { font-size: 14px; font-weight: 400; line-height: 1.55; color: #DCE9F5; }
.svc-card .figure {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mint);
}
.svc-card .caption { display: block; margin-top: 6px; color: #C9DCEC; }

/* On hover a card's icon tile fills mint and its icon turns navy. */
.ai-card-icon { transition: background .3s ease, color .3s ease, transform .3s ease; }
.ai-card:hover .ai-card-icon {
  background: var(--mint);
  color: #06283F;
  transform: scale(1.06);
}

/* The banner's contents arrive one after another — badge, title, words,
   the four cards, then the button — all within about a second. The photo
   itself stays still. (band-rise is defined with the home page bands.) */
.ai-banner > .ai-badge,
.ai-banner > .detail-title,
.ai-banner > .detail-text,
.ai-banner > .btn-mint,
.ai-cards > .ai-card { animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) backwards; }
.ai-banner > .ai-badge    { animation-delay: .05s; }
.ai-banner > .detail-title { animation-delay: .12s; }
.ai-banner > .detail-text  { animation-delay: .2s; }
.ai-cards > .ai-card:nth-child(1) { animation-delay: .3s; }
.ai-cards > .ai-card:nth-child(2) { animation-delay: .37s; }
.ai-cards > .ai-card:nth-child(3) { animation-delay: .44s; }
.ai-cards > .ai-card:nth-child(4) { animation-delay: .51s; }
.ai-banner > .btn-mint    { animation-delay: .6s; }

/* ------------------------------------------- 6c. Services page ---------
   The Services pages are built on the AI banner above (.ai-banner, its
   badge and cards, with .svc-card for their longer copy) — see the
   `service` layout in main.js. They need no styles of their own. */

/* ------------------------------------------ 6d. About Us pages ---------
   Two shapes: the profile page (banner + pillars + logo strip) and the
   long-form policy pages, whose banner stays put while the copy scrolls. */
.about-banner {
  position: relative;
  height: 372px;
  border-radius: 20px;
  overflow: hidden;
  padding: 34px 40px 30px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  background: #062033;
  box-shadow: 0 22px 44px -28px rgba(9, 42, 74, .7);
}
/* Deep navy across the words, opening onto the ship to the right, with a
   soft mint glow in the far corner. */
.about-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(127, 240, 241, .16), rgba(127, 240, 241, 0) 70%),
    linear-gradient(90deg, rgba(5, 28, 48, .96) 0%, rgba(7, 38, 64, .9) 40%, rgba(9, 48, 80, .55) 68%, rgba(9, 48, 80, .2) 100%);
}
/* The teal bar down the left edge, as on the other page banners. */
.about-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 5px;
  background: linear-gradient(180deg, var(--teal) 0%, #1F7FC4 100%);
}
.about-banner > *:not(.banner-photo) { position: relative; z-index: 1; }
.about-banner .detail-title { font-size: 34px; line-height: 1.15; }

.about-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.about-kicker::before {
  content: "";
  width: 4px;
  height: 13px;
  border-radius: 2px;
  background: var(--teal);
  flex: none;
}

.about-lead {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #DCE9F5;
  text-wrap: pretty;               /* no single word left on the last line */
}

/* The three pillars as frosted cards along the foot of the banner. */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin-top: 26px;
}
.about-pillar {
  padding: 14px 16px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.about-pillar:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(127, 240, 241, .4);
  transform: translateY(-2px);
}

.pillar-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}
.pillar-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(127, 240, 241, .14);
  color: var(--mint);
}
.pillar-icon svg { width: 17px; height: 17px; display: block; }
.pillar-text { margin: 9px 0 0; font-size: 13px; line-height: 1.5; color: #C9DCEC; }

/* The teal half of a banner title carries a slow gradient running through
   it — teal, mint and a light sea blue, bright enough for the navy ground —
   the same idea as "Smart Software" on the home hero (accent-flow). */
.ai-banner .detail-title .accent,
.about-banner .detail-title .accent,
.page-banner h1 .accent {
  background: linear-gradient(90deg, #00BFB0 0%, #7FF0F1 25%, #4FB3F0 50%, #7FF0F1 75%, #00BFB0 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: accent-flow 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ai-banner .detail-title .accent,
  .about-banner .detail-title .accent,
  .page-banner h1 .accent { animation: none; }
}

/* Same entrance as the AI pages: label, title, words, then the pillars. */
.pillar-icon { transition: background .3s ease, color .3s ease; }
.about-pillar:hover .pillar-icon { background: var(--mint); color: #06283F; }

.about-banner > .about-kicker,
.about-banner > .detail-title,
.about-banner > .about-lead,
.about-pillars > .about-pillar { animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) backwards; }
.about-banner > .about-kicker  { animation-delay: .05s; }
.about-banner > .detail-title  { animation-delay: .12s; }
.about-banner > .about-lead    { animation-delay: .2s; }
.about-pillars > .about-pillar:nth-child(1) { animation-delay: .3s; }
.about-pillars > .about-pillar:nth-child(2) { animation-delay: .37s; }
.about-pillars > .about-pillar:nth-child(3) { animation-delay: .44s; }
.about-pillars > .about-pillar:nth-child(4) { animation-delay: .51s; }

@media (prefers-reduced-motion: reduce) {
  .ai-banner > *, .ai-cards > .ai-card,
  .about-banner > *, .about-pillars > .about-pillar { animation: none !important; }
}

.group-card {
  margin-top: 28px;
  padding: 26px 30px 30px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 12px 34px -20px rgba(9, 42, 74, .30);
}
.group-title {
  margin: 0;
  text-align: center;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.group-title .accent { color: var(--teal); }

.group-logos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 26px;
}
/* Each tile is a link to that company's own site (see `logos` in
   content-pages.js); one without a URL renders as a plain span and simply
   does not respond to the pointer. */
.group-logo {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.group-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(9, 42, 74, .45);
}
a.group-logo:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
}

.group-logos img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---- policy / careers pages ---- */
/* The window never scrolls — this container does, so the header, the nav
   and the rest of the site stay exactly where they are. */
.doc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-top: 28px;
}

/* Sticks to the top of the scroll area, so the copy passes behind it.
   Written with both class names because .page-banner (section 7) sets
   position:relative and is declared further down this file — equal
   specificity would let it win. */
.page-banner.doc-banner {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 110px;
  border-radius: 12px;
}

.doc-body { padding: 24px 0 44px; }

.doc-p, .doc-list {
  margin: 0 0 17px;
  font-size: 17px;
  line-height: 1.62;
  color: #1C3247;
}
/* Sub-headings in the long-form pages carry the teal bar the section labels
   use, so a policy reads with the same marks as the rest of the site. */
.doc-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 10px;
  font-size: 18.5px;
  font-weight: 700;
  color: #0F2E4C;
}
.doc-h::before {
  content: "";
  flex: none;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, #1F7FC4 100%);
}
.doc-body > .doc-h:first-child { margin-top: 0; }
/* Tailwind's reset strips list markers, so put them back by hand. */
.doc-list { list-style: none; padding-left: 14px; }
.doc-list li { position: relative; padding-left: 13px; margin-bottom: 5px; }
.doc-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
}
.doc-links a { color: var(--navy-700); }

/* A slim scrollbar, so the one place the site does scroll doesn't announce
   itself with a chunky native bar over the copy. */
.doc-scroll { scrollbar-width: thin; scrollbar-color: #BCD3E7 transparent; }
.doc-scroll::-webkit-scrollbar { width: 8px; }
.doc-scroll::-webkit-scrollbar-thumb {
  background: #BCD3E7;
  border-radius: 4px;
}

/* ------------------------------------------- 6e. Careers · open roles ---
   The list under the Careers copy. A role writes its whole description
   into the page and hides it with .job-card > .job-body, so find-in-page
   still reaches a collapsed posting. */
.jobs-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 18px;
}
.jobs-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0F2E4C;
  white-space: nowrap;
}
.jobs-rule { flex: 1 1 auto; height: 1px; background: var(--line); }
.jobs-count {
  flex: none;
  padding: 6px 16px;
  border-radius: 999px;
  background: #E4F7F1;
  color: #0E7C5A;
  font-size: 15.5px;
  font-weight: 600;
}

.job-card {
  position: relative;
  border: 2px solid var(--navy-800);
  border-radius: 14px;
  background: #FFFFFF;
  padding: 24px 28px 26px;
  margin-bottom: 20px;
}

.job-title {
  margin: 0;
  padding-right: 60px;            /* clear of the round toggle             */
  font-size: 28px;
  font-weight: 700;
  color: #0F2E4C;
}

.job-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.job-tag {
  padding: 7px 16px;
  border-radius: 999px;
  background: #EEF4FA;
  border: 1px solid #DDE9F4;
  font-size: 15.5px;
  color: #33526E;
}

/* Round open/close control, top-right of the card. */
.job-toggle {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-800);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
}
.job-toggle:hover { background: #0A3457; transform: scale(1.04); }
.job-toggle svg { width: 20px; height: 20px; display: block; }
.job-toggle .mark-close,
.job-card.is-open .job-toggle .mark-plus { display: none; }
.job-card.is-open .job-toggle .mark-close { display: block; }

.job-body { display: none; margin-top: 24px; }
.job-card.is-open .job-body { display: block; }

/* --- the four facts about the role --- */
.job-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #E3EBF3;
  border-radius: 10px;
  overflow: hidden;
}
.job-meta-cell { padding: 16px 20px; border-left: 1px solid #E3EBF3; }
.job-meta-cell:first-child { border-left: 0; }

.job-meta-key {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8A9AA9;
}
.job-meta-val { margin: 0; font-size: 18px; font-weight: 700; color: #0F2E4C; }

/* --- shared section heading inside a posting --- */
.job-label {
  margin: 32px 0 15px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2E5C86;
}

.job-p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.62;
  color: #43617C;
}
.job-p strong { color: #0F2E4C; }

/* --- required / preferred, side by side --- */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; }

.exp-head {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6B8299;
}

.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid #EDF2F7;
  font-size: 18px;
  line-height: 1.5;
  color: #43617C;
}
.exp-list li:last-child { border-bottom: 0; }
.exp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.exp-list.is-required  li::before { background: var(--navy-700); }
.exp-list.is-preferred li::before { background: var(--teal); }

/* --- numbered responsibilities, joined by a hairline --- */
.resp-list { list-style: none; margin: 0; padding: 0; }

.resp-step {
  position: relative;
  padding: 0 0 26px 58px;
  border-left: 1px solid #CFE2F0;
  margin-left: 19px;
}
.resp-step:last-child { border-left-color: transparent; padding-bottom: 0; }

.resp-num {
  position: absolute;
  left: -19px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--navy-700);
  color: var(--navy-700);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Alternate the ring colour so a long list still reads as steps. */
.resp-step:nth-child(odd) .resp-num { border-color: var(--teal); color: #0E7C5A; }

.resp-name {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: #0F2E4C;
}
.resp-text {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.62;
  color: #43617C;
}

/* --- soft skills and what we offer --- */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid #E3EBF3;
  border-radius: 10px;
  background: #FBFDFF;
  font-size: 18px;
  line-height: 1.45;
  color: #33526E;
}
.check-item .tick { flex: none; color: var(--teal); margin-top: 1px; }
.check-item .tick svg { width: 17px; height: 17px; display: block; stroke-width: 2.4; }

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 26px;
  border-radius: 10px;
  background: #2FBF9E;
  color: #062E27;
  font-size: 18.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-apply:hover { background: #37D3AF; transform: translateY(-1px); }
.btn-apply svg { width: 18px; height: 18px; }

/* Shown when a menu entry has no content written for it yet. */
.placeholder-note {
  border: 1px dashed #B9D3EA;
  border-radius: 10px;
  background: #FFFFFF;
  padding: 26px 28px;
  color: #53535D;
  font-size: 14px;
  line-height: 1.6;
}
.placeholder-note code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: var(--navy-700);
  background: #EEF5FC;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ------------------------------------------- 6f. Video player ----------
   Every clip on the site plays here: a 95% × 95% stage over the dimmed
   page, close button in its top-right corner.

   Everything is sized in percentages of the viewport rather than vw/vh,
   because the whole canvas is scaled with `zoom` — a percentage resolves
   against the same scaled box the dialog sits in, so the stage lands at
   95% of the real window on every monitor. */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 18, 32, .84);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.video-modal.is-open { opacity: 1; visibility: visible; }

.video-stage {
  position: relative;
  width: 95%;
  height: 95%;
  border-radius: 14px;
  background: #06131F;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  transform: scale(.985);
  transition: transform .2s ease;
}
.video-modal.is-open .video-stage { transform: scale(1); }

/* contain, not cover: a clip that is not the shape of the window is
   letterboxed rather than cropped. */
.video-player {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  background: #000000;
  object-fit: contain;
}

.video-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 22, 38, .72);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.video-close svg { width: 20px; height: 20px; }
.video-close:hover { background: #0F3C61; transform: scale(1.07); }

/* ------------------------------------------------------- 7. Contact page */
/* The banner over the contact, report and policy pages. Deep navy behind
   the title, opening onto the photo towards the right; a teal bar down the
   left edge; a soft mint glow in the far corner; the title with a small
   one-line tagline under it. */
.page-banner {
  position: relative;
  height: 98px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 32px 0 36px;
  background: #0B375C;
  box-shadow: 0 18px 36px -26px rgba(9, 42, 74, .7);
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(127, 240, 241, .18), rgba(127, 240, 241, 0) 70%),
    linear-gradient(90deg, rgba(9, 42, 74, .97) 0%, rgba(11, 55, 92, .9) 38%, rgba(11, 55, 92, .45) 75%, rgba(11, 55, 92, .25) 100%);
}
/* The teal bar down the left edge. */
.page-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 5px;
  background: linear-gradient(180deg, var(--teal) 0%, #1F7FC4 100%);
}
.page-banner > *:not(.banner-photo) { position: relative; z-index: 1; }

.page-banner h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: #FFFFFF;
  margin: 0;
}
.page-banner h1 .accent { color: var(--teal); }

/* What the page is for, in one line under the title. */
.banner-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(220, 233, 245, .88);
}

.contact-h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--navy-800);
  margin: 0;
}
.contact-sub {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: #37536E;
  max-width: 430px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #E3EBF3;
}
.contact-row:last-child { border-bottom: 0; }

/* A mint-blue tile with a line icon (filled in by main.js from data-icon),
   matching the footer and the menus. */
.contact-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #EAF3FB;
  color: #1F6FB5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, color .3s ease;
}
.contact-icon svg { width: 21px; height: 21px; display: block; }
.contact-row:hover .contact-icon {
  background: linear-gradient(135deg, #0D3F69 0%, #1A68A3 100%);
  color: #FFFFFF;
}
.contact-key {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A9AA9;
  margin: 0 0 3px;
}
.contact-val { font-size: 17px; line-height: 1.5; color: #12283C; margin: 0; }
.contact-val strong { color: var(--navy-800); }

.form-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 18px 50px -18px rgba(9, 42, 74, .28);
  padding: 26px 25px 24px;
}

/* Send Message. Scoped to the form so the home-page hero button, which
   shares .btn-navy, keeps the size it was drawn at. */
.form-card .btn-navy {
  gap: 11px;
  padding: 11px 26px;
  border-radius: 10px;
  font-size: 16px;
}
.form-intro {
  text-align: center;
  font-size: 17px;
  color: #6B7B8B;
  margin: 0 0 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 11px;
  row-gap: 20px;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16.5px;
  line-height: 1.35;
  color: #12283C;
  background: #FFFFFF;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: #93BDE0; }
.field:hover { border-color: #B9D3EA; }
.field:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 191, 176, .14); }
textarea.field { resize: none; height: 78px; }

.form-error {
  display: none;
  margin: 14px 0 0;
  font-size: 15px;
  color: #B4232A;
}
.form-ok {
  display: none;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #0E7C5A;
}

/* --------------------------------------- 7b. Compliance report page -----
   pages/complaint.html reuses the contact page's card, fields and buttons;
   what it adds is a labelled field block, radio groups drawn as pills, and
   the three attachment slots. */
.report-card {
  padding: 18px 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* The grid takes the slack left over inside the card and spreads it between
   the rows, so the card always ends exactly at its bottom padding — no band
   of dead space under the last field, and nothing hanging past the canvas. */
.report-card .form-grid {
  flex: 1 1 auto;
  min-height: 0;
  row-gap: 10px;
  align-content: space-between;
}
/* Shorter than the contact page's box — this card carries more rows. */
.report-card textarea.field { height: 58px; }

/* ---- the footer row: security code, message, submit ----
   All three share one row so that a validation message never adds height to
   a card that is sized to the canvas. */
.report-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.report-msg { flex: 1 1 auto; min-width: 0; }
.report-card .form-error,
.report-card .form-ok { margin: 0; line-height: 1.35; font-size: 14px; }

.captcha-row { display: flex; align-items: center; gap: 9px; flex: none; }

.captcha-canvas {
  display: block;
  width: 112px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #EEF4FA;
}

.captcha-refresh {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--navy-700);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.captcha-refresh:hover { background: #F2F8FE; border-color: #9CC4E4; }

.captcha-input {
  width: 168px;
  padding: 9px 14px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Optional-field aside, riding on the small-caps label. */
.field-label em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: #9FB0BF;
}

.field-block { border: 0; margin: 0; padding: 0; min-width: 0; }

.field-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A9AA9;
}
.field-label .req { color: #B4232A; }

.field-hint {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #6B7B8B;
}

/* ---- radio groups as pills ----
   The native control is kept in the DOM (and focusable) but visually
   replaced by its sibling span, so keyboard and screen-reader behaviour is
   the browser's own. */
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }

.choice { cursor: pointer; }
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  font-size: 15.5px;
  font-weight: 600;
  color: #33526E;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice:hover span { border-color: #9CC4E4; background: #F4F9FD; }

.choice input:checked + span {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #FFFFFF;
}
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(111, 169, 218, .35); }

/* ---- the three attachment slots ---- */
.file-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }

.file-field {
  padding: 8px 10px;
  font-size: 13.5px;
  color: #6B7B8B;
  cursor: pointer;
}
.file-field::file-selector-button {
  margin-right: 11px;
  padding: 6px 13px;
  border: 0;
  border-radius: 6px;
  background: #E9EDF2;
  color: var(--navy-800);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}
.file-field:hover::file-selector-button { background: #DCE4EC; }

/* ------------------------------------------------------------- 8. Footer */
/* Every page ends with the slim bar. The home page — the only one that
   scrolls — puts a tall navy panel above it; assets/js/layout.js draws that
   when the <footer> carries data-footer="full". */
.site-footer {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #5D89AD;
}

.footer-bar {
  display: flex;
  align-items: center;
  height: 100%;
  border-top: 1px solid #EAF1F8;
}
.site-footer a { color: #3F7BAE; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---- the tall footer ----
   One diagonal navy field, kept close in tone from corner to corner; the
   logo on the left and the three lists to the right, each sized to what is
   written in it and evenly spaced. Small capital headings, quiet links,
   and under a hairline the copyright. */
.site-footer[data-footer="full"] { color: rgba(214, 228, 241, .72); }
.footer-panel {
  background: linear-gradient(120deg, #154670 0%, #113D63 45%, #0D3356 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr max-content max-content max-content;
  column-gap: 88px;
  row-gap: 32px;
  align-items: start;
  padding: 52px 0 44px;
}
.footer-brand { max-width: 300px; }
.footer-logo { display: block; height: 26px; width: auto; opacity: .95; }
.footer-blurb {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(214, 228, 241, .7);
}

.footer-col-head {
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(214, 228, 241, .74);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-col a:last-child { margin-bottom: 0; }
.footer-col a:hover { color: #FFFFFF; text-decoration: none; }
.footer-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(214, 228, 241, .74);
}

/* The invitation, as a column of its own. */
.footer-cta-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
}
.footer-col .btn-mint.footer-cta-btn {
  display: inline-flex;
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #06283F;
}
.footer-col .btn-mint.footer-cta-btn:hover { color: #06283F; }
.footer-cta-btn svg { width: 14px; height: 14px; }

/* The hairline and the copyright under it. */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  color: rgba(214, 228, 241, .55);
}

/* ------------------------------------------- 9. Small-screen navigation */
/* The bar carries seven items — still more than fits a phone. Below the
   reflow breakpoint the list is replaced by a hamburger and this drawer,
   built by assets/js/layout.js. Both are hidden until section 10 turns
   them on, so nothing changes on a laptop. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(16, 75, 125, .08);
  color: var(--navy-700);
  cursor: pointer;
  transition: background-color .15s ease;
}
.nav-toggle:hover { background: rgba(16, 75, 125, .16); }
.nav-toggle svg { width: 24px; height: 24px; stroke-width: 1.9; display: block; }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 32, 56, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.mobile-nav-backdrop.is-visible { opacity: 1; visibility: visible; }

.mobile-nav {
  display: none;                  /* -> flex below the breakpoint           */
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(86vw, 360px);
  background: #FFFFFF;
  box-shadow: -18px 0 50px -20px rgba(9, 42, 74, .45);
  transform: translateX(102%);
  /* Parked out of the way *and* out of the document: visibility keeps the
     closed drawer off the tab order and out of the page's scroll width. */
  visibility: hidden;
  transition: transform .24s ease, visibility .24s ease;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: none; visibility: visible; }

/* The page behind a open drawer must not scroll under the finger. */
body.nav-open { overflow: hidden; }

.mobile-nav-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-head .logo img { height: 24px; width: auto; display: block; }

.mobile-nav-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #EEF4FA;
  color: var(--navy-800);
  cursor: pointer;
}
.mobile-nav-close svg { width: 18px; height: 18px; stroke-width: 2.2; }

.mobile-nav-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px 28px;
  -webkit-overflow-scrolling: touch;
}

.m-nav-list { list-style: none; margin: 0; padding: 0; }
.m-nav-item { border-bottom: 1px solid #EEF3F8; }
.m-nav-item:last-child { border-bottom: 0; }

/* One row of the drawer — a link, or the button that folds a section open.
   Both are 48px tall so either can be hit comfortably with a thumb. */
.m-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.m-nav-link.is-active { color: var(--navy-700); background: #EEF5FC; }

.m-chevron { flex: none; display: flex; color: #7C99B4; transition: transform .2s ease; }
.m-chevron svg { width: 20px; height: 20px; stroke-width: 2; display: block; }
.m-nav-item.is-open > .m-nav-fold .m-chevron { transform: rotate(180deg); }

.m-sub { display: none; padding: 2px 0 12px 12px; }
.m-nav-item.is-open > .m-sub { display: block; }

.m-sub-head {
  margin: 12px 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8FA6BC;
}
.m-sub-head:first-child { margin-top: 4px; }

.m-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #1C3247;
  text-decoration: none;
}
.m-sub-link:active { background: #F2F8FE; }
.m-sub-link .icon { flex: none; color: #2F80D6; }
.m-sub-link .icon svg { width: 22px; height: 22px; display: block; }

/* =========================================== 10. Responsive behaviour ====
   Two regimes, one breakpoint:

     above 960px    the fixed 1366 x 768 canvas, scaled whole with `zoom`.
                    A 14" laptop, a 15.6" laptop, a 27" desktop and a tablet
                    held in landscape all show the identical view — only
                    bigger or smaller — and none of them scrolls.

     960px & under  the canvas is abandoned: zoom goes back to 1 and the
                    page becomes an ordinary document that reflows and
                    scrolls. Phones and portrait tablets live here, where a
                    16:9 canvas cannot be shown at a readable size.

   960 comes from the 0.7 zoom floor: 1366 x 0.7 = 956px, the narrowest the
   whole design can be drawn without either overflowing sideways or shrinking
   the navigation past legibility.

   `!important` appears where a rule has to beat a Tailwind utility written
   in the HTML (the CDN injects its stylesheet after this file) or an inline
   grid-template written by assets/js/main.js. It is not decoration.
   ------------------------------------------------------------------------ */
@media (max-width: 960px) {

  /* ---- the canvas stands down ---- */
  html {
    zoom: 1 !important;
    scroll-padding-top: 76px;      /* clear of the sticky bar               */
  }
  body {
    overflow: auto;
    -webkit-text-size-adjust: 100%;
  }
  .page { height: auto; min-height: 100%; }

  :root { --gutter: 20px; }
  .shell { max-width: 100%; }

  /* ---- header: bar becomes logo + hamburger, and follows the page ---- */
  .site-header {
    position: sticky;
    top: 0;
    height: 60px;
    flex: 0 0 60px;
    box-shadow: 0 6px 18px -14px rgba(9, 42, 74, .55);
  }
  .site-header[data-header="transparent"],
  .site-header[data-header="solid"] { background: var(--ice); }

  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: flex; }
  .mobile-nav-backdrop { display: block; }

  /* The hover-driven desktop panels have no place on a touch screen. */
  .mega-panel,
  .mega-backdrop { display: none !important; }

  /* ---- home: hero ----
     The photo stays what it is on the desktop — the background of the whole
     hero, not a band pasted under the words. It is cropped towards the
     right of the frame, which is where the vessel sits, and the wash turns
     vertical so the headline keeps a light field to sit on. */
  .hero {
    position: relative;
    display: block;
    flex: none;
    min-height: clamp(430px, 62vh, 560px);
    margin-top: 0;
    padding: 32px 0 40px;
    overflow: hidden;
  }
  .hero-photo {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
  }
  .hero-wash {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .97) 0%,
      rgba(255, 255, 255, .90) 34%,
      rgba(255, 255, 255, .45) 62%,
      rgba(255, 255, 255, .04) 100%);
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    height: auto !important;
    padding-top: 0 !important;
  }
  .hero-title { font-size: clamp(28px, 5.2vw, 40px); }
  .hero-text {
    max-width: 60ch;
    font-size: 15.5px;
    line-height: 1.6;
  }
  .btn-navy, .btn-mint, .btn-green, .btn-apply { min-height: 44px; }

  /* ---- home: the three panels ---- */
  .home-strip {
    height: auto !important;
    margin-top: 26px !important;
  }
  .home-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    height: auto !important;
  }
  .info-card { padding: 22px 20px; }
  .about-copy p { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
  .about-title { font-size: 19px; }

  /* Three figures in a row, divided by uprights instead of hairlines —
     stacked they would leave the card nearly empty. */
  .stats-card {
    display: grid !important;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: 18px !important;
  }
  .stats-card .stat-rule { width: 1px; height: 100%; min-height: 42px; }

  /* ---- home: the sections under the fold ----
     The canvas is gone here, so the type is sized for a real phone and the
     grids drop to two across whatever they were drawn as. */
  .home-section { padding: 40px 0 44px; }
  .home-section > .shell,
  .site-footer[data-footer="full"] .shell { padding-inline: var(--gutter); }
  .section-head { margin-bottom: 26px; }
  .section-eyebrow { font-size: 14px; letter-spacing: .16em; gap: 12px; }
  .eyebrow-rule { width: 28px; }
  .section-title { font-size: clamp(22px, 4.4vw, 30px); }

  .cell-grid[data-cols="3"],
  .cell-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cell,
  .cell-grid[data-cols="4"] .cell { padding: 18px 16px 14px; gap: 14px; }
  .cell-name,
  .cell-grid[data-cols="4"] .cell-name { font-size: 15px; }
  .cell-desc,
  .cell-grid[data-cols="4"] .cell-desc { font-size: 13px; margin-top: -8px; }
  .cell-foot { font-size: 12px; }
  .cell-tag { font-size: 10px; }
  .section-blurb { font-size: 15px; }

  /* The drawings behind the bands are drawn for a wide frame; on a phone
     they are mostly crop, so they step back further still. */
  .section-scene { opacity: .5; }

  /* Nothing lifts under a finger, and the pointer glow has no pointer. */
  .cell:hover { transform: none; }
  /* ---- the tall footer ----
     Five columns across a phone would leave one word per line; the brand
     takes the full width and the rest follow two across underneath. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding: 40px 0 32px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-blurb, .footer-text { font-size: 14px; }
  .footer-col a { font-size: 14.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* ---- detail pages: the product hero splits into two stacked halves ---- */
  .detail-main { display: block; padding-bottom: 32px; }

  .product-hero,
  .product-hero.media-right {
    display: grid;
    grid-template-columns: 1fr !important;
    flex: none;
  }
  .product-hero.media-right .product-clip { order: -1; }
  .product-clip { aspect-ratio: 16 / 9; }
  .product-info { padding: 24px 22px 26px; }
  .product-title { font-size: clamp(22px, 3.4vw, 29px); }
  .product-text {
    overflow: visible;
    font-size: 16px;
    line-height: 1.6;
  }
  .btn-green { margin-top: 22px; }

  .deliver-block { margin-top: 30px !important; }
  .deliver-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-top: 20px !important;
  }
  .deliver-card { min-height: 0; padding: 22px 18px 18px; }
  .deliver-text { font-size: 16px; margin-top: 14px; }
  .deliver-icon, .deliver-icon svg { width: 44px; height: 44px; }

  /* ---- AI & Innovation / Services banners ---- */
  .ai-banner {
    flex: none;
    min-height: 0;
    padding: 26px 20px 30px 24px;
    border-radius: 16px;
  }
  /* Stacked, the copy runs the full width of the banner and crosses the
     bright parts of the photograph. The desktop's side-to-side wash cannot
     help there, so these two take a flat, darker scrim instead. */
  .ai-banner::after,
  .about-banner::after {
    background: linear-gradient(180deg,
      rgba(4, 24, 40, .88) 0%,
      rgba(5, 31, 51, .80) 52%,
      rgba(5, 31, 51, .86) 100%);
  }

  .ai-banner .detail-title { font-size: clamp(26px, 4.6vw, 40px); margin-top: 18px; }
  .ai-banner .detail-text { font-size: 16px; line-height: 1.6; }
  .ai-badge { font-size: 11.5px; }

  .ai-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 22px;
  }
  .ai-card { min-height: 0; padding: 16px 16px 18px; }
  .ai-banner .btn-mint { margin-top: 26px !important; }
  .ai-banner .btn-mint { margin-top: 26px !important; }

  /* ---- About Us profile ---- */
  .about-banner { height: auto; padding: 28px 20px 30px; border-radius: 16px; }
  .about-lead { font-size: 16.5px; line-height: 1.6; }
  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }
  .pillar-name { font-size: 16.5px; }
  .pillar-text { font-size: 14.5px; }

  .group-card { padding: 22px 18px 24px; }
  .group-title { font-size: clamp(21px, 3.4vw, 31px); }
  .group-logos { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
  .group-logos img { height: 88px; }

  /* ---- policy / careers: the page scrolls, not a box inside it ---- */
  .doc-scroll {
    flex: none;
    overflow: visible;
    margin-top: 20px;
  }
  /* Relative, never static: .banner-photo is absolute: inset 0, so a static
     banner would hand it to the viewport and paint the picture across the
     whole page behind the copy. Only the sticking is being turned off. */
  .page-banner.doc-banner { position: relative; height: auto; }
  .page-banner {
    height: auto;
    min-height: 84px;
    padding: 18px 20px;
  }
  .page-banner h1 { font-size: clamp(23px, 4.4vw, 36px); }
  .doc-body { padding: 20px 0 36px; }
  .doc-p, .doc-list { font-size: 16px; }
  .doc-h { font-size: 17.5px; }

  .jobs-head { flex-wrap: wrap; gap: 12px; margin-top: 26px; }
  .jobs-rule { min-width: 40px; }
  .job-card { padding: 20px 18px 22px; }
  .job-title { font-size: 22px; padding-right: 52px; }
  .job-toggle { top: 18px; right: 18px; width: 38px; height: 38px; }
  .job-tag { font-size: 14px; padding: 6px 13px; }
  .job-meta { grid-template-columns: repeat(2, 1fr); }
  .job-meta-cell { border-top: 1px solid #E3EBF3; padding: 13px 16px; }
  .job-meta-cell:nth-child(-n+2) { border-top: 0; }
  .job-meta-cell:nth-child(odd) { border-left: 0; }
  .job-meta-val { font-size: 16px; }
  .job-p, .exp-list li, .check-item, .resp-text { font-size: 16px; }
  .job-label { margin-top: 26px; }
  .exp-grid { grid-template-columns: 1fr; gap: 18px; }
  .check-grid { grid-template-columns: 1fr; }
  .resp-step { padding: 0 0 22px 48px; }
  .resp-name { font-size: 17px; }
  .btn-apply { font-size: 16.5px; padding: 13px 22px; }

  /* ---- contact + compliance report ---- */
  .contact-grid,
  .complaint-grid {
    display: block !important;
    margin-top: 24px !important;
    padding-inline: 0 !important;
  }
  .contact-h2 { font-size: 23px; }
  .contact-sub { font-size: 15.5px; max-width: none; }
  .contact-val { font-size: 15.5px; }
  .contact-icon { width: 36px; height: 36px; font-size: 17px; }

  .form-card {
    margin-top: 26px;
    padding: 22px 18px 20px;
    border-radius: 14px;
  }
  .form-intro { font-size: 15.5px; }
  .field { font-size: 16px; padding: 11px 14px; }   /* 16px: iOS won't zoom */
  textarea.field { height: 110px; }

  /* A form control carries an intrinsic width of its own (roughly twenty
     characters), and min-width:auto lets it push a grid track or a flex row
     past the screen. These three lines are what keep the forms inside it. */
  .form-grid > *,
  .file-row > *,
  .captcha-row > * { min-width: 0; }

  .report-card { height: auto; }
  .report-card .form-grid { row-gap: 16px; }
  .report-card textarea.field { height: 96px; }
  .field-hint { font-size: 13.5px; }
  .choice span { font-size: 15px; padding: 9px 17px; }

  .report-foot { flex-wrap: wrap; row-gap: 14px; margin-top: 18px; }
  .captcha-input { width: auto; flex: 1 1 140px; }
  .report-msg { flex-basis: 100%; order: 3; }
  .report-foot .btn-navy { order: 2; }

  /* ---- footer ----
     Written for the slim bar, which is all these pages have. The home
     page's tall panel keeps its own padding and its own left edge. */
  .site-footer {
    height: auto !important;
    padding: 14px 0;
    text-align: center;
  }
  .site-footer[data-footer="full"] {
    padding: 0;
    text-align: left;
  }

  /* ---- overlays: anchored to the window rather than to a panel ---- */
  .video-stage {
    width: 94%;
    height: auto;
    max-height: 88%;
    aspect-ratio: 16 / 9;
  }
}

/* ------------------------------------------------- 10b. Tablet portrait */
@media (max-width: 820px) {
  .group-logos { grid-template-columns: repeat(3, 1fr); }
  .deliver-grid { gap: 14px !important; }
}

/* -------------------------------------------------------- 10c. Phones */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .hero { padding-top: 26px; min-height: clamp(400px, 58vh, 500px); }
  .hero-photo { object-position: 72% center; }
  .hero-text { font-size: 15px; }

  /* Below this width three figures across cannot hold their labels. */
  .stats-card {
    grid-template-columns: 1fr;
    gap: 10px !important;
    text-align: center;
  }
  .stats-card .stat-rule { width: 100%; height: 1px; min-height: 0; }
  .stats-card .stat-value { font-size: 21px; }
  .stats-card .stat-value.sm { font-size: 15px; }
  .stats-card .stat-name { font-size: 9.5px; margin-top: 3px; }

  /* One card per row: two across leaves the longer module names on four
     lines apiece. */
  .cell-grid[data-cols="3"],
  .cell-grid[data-cols="4"] { grid-template-columns: 1fr; }

  .product-clip { aspect-ratio: 4 / 3; }
  .deliver-grid { grid-template-columns: 1fr !important; }
  .deliver-card { min-height: 0; }

  .ai-cards { grid-template-columns: 1fr; }

  .about-pillars { grid-template-columns: 1fr; }

  .group-logos { grid-template-columns: repeat(2, 1fr); }
  .group-logos img { height: 78px; }

  /* One field per row, so nothing is typed into a 120px-wide box. */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > .col-span-2 { grid-column: auto; }
  .file-row { grid-template-columns: 1fr; }
  .report-foot .btn-navy,
  .form-card .flex.justify-end .btn-navy { width: 100%; justify-content: center; }
  .captcha-row { width: 100%; }
  .captcha-input { flex: 1 1 auto; }

  .job-meta { grid-template-columns: 1fr; }
  .job-meta-cell { border-left: 0; }
  .job-meta-cell:nth-child(-n+2) { border-top: 1px solid #E3EBF3; }
  .job-meta-cell:first-child { border-top: 0; }
  .job-title { font-size: 20px; }

  .footer-bar .shell {
    flex-direction: column;
    gap: 4px;
    justify-content: center;
  }
  .site-footer[data-footer="full"] .footer-bar .shell { text-align: center; }

  /* One link column per row. */
  .footer-grid { grid-template-columns: 1fr; }

  .video-stage { width: 96%; }
  .video-close { top: 8px; right: 8px; width: 36px; height: 36px; }
}

/* --------------------------------------------------- 10d. Small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .product-title { font-size: 21px; }
  .choice span { padding: 8px 14px; font-size: 14.5px; }
  .job-tag { font-size: 13px; }
  .mobile-nav { width: 100vw; }
}

/* --------------------------------- 10e. Short windows on a real desktop */
/* Above the breakpoint the canvas keeps shrinking to fit the window, so
   nothing scrolls — right down to the 0.7 floor, which needs 768 x 0.7 =
   537px of height. Only below that does the design no longer fit, and only
   then is scrolling allowed. Nothing here may add a min-height: doing so
   would push the page past a window it currently fits exactly. */
@media (min-width: 961px) and (max-height: 537px) {
  body { overflow: auto; }
  .page { height: auto; min-height: 100%; }
}

/* ======================================================= buttons, one feel
   Every filled button on the site — Request a Demo, Learn More, Send
   Message, Submit Report, Apply — answers the pointer the same way: a small
   lift, a deeper shadow, the arrow stepping forward and a soft glint
   crossing it. The home hero button already does this (section 5); this
   brings the rest in line. Their colours and sizes are unchanged. */
.btn-navy,
.btn-mint,
.btn-green,
.btn-apply {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease;
}
.btn-navy::after,
.btn-mint::after,
.btn-green::after,
.btn-apply::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .32), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn-navy:hover::after,
.btn-mint:hover::after,
.btn-green:hover::after,
.btn-apply:hover::after { left: 120%; }

.btn-navy:hover,
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(13, 63, 105, .75);
}
.btn-mint:hover,
.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(0, 150, 150, .6);
}

.btn-navy svg,
.btn-mint svg,
.btn-green svg,
.btn-apply svg { transition: transform .25s ease; }
.btn-navy:hover svg,
.btn-mint:hover svg,
.btn-green:hover svg,
.btn-apply:hover svg { transform: translateX(4px); }

/* Learn More on the product pages: the same navy gradient as the hero's. */
.btn-green {
  background: linear-gradient(135deg, #0D3F69 0%, #17629B 100%);
  box-shadow: 0 10px 22px -14px rgba(13, 63, 105, .8);
}
.btn-green:hover { background: linear-gradient(135deg, #0D3F69 0%, #17629B 100%); }

/* A keyboard focus ring on every button and link that reads on both the
   pale pages and the navy banners. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-navy::after, .btn-mint::after, .btn-green::after, .btn-apply::after { display: none; }
  .btn-navy:hover, .btn-mint:hover, .btn-green:hover, .btn-apply:hover,
  .btn-navy:hover svg, .btn-mint:hover svg, .btn-green:hover svg, .btn-apply:hover svg { transform: none; }
}

/* ======================================== contact & report: entrance ===
   The two halves rise in one after the other; the contact rows follow. */
.contact-grid > *,
.complaint-grid > * { animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) backwards; }
.contact-grid > :nth-child(2),
.complaint-grid > :nth-child(2) { animation-delay: .12s; }
.contact-row { animation: band-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; }
.contact-row:nth-child(1) { animation-delay: .18s; }
.contact-row:nth-child(2) { animation-delay: .25s; }
.contact-row:nth-child(3) { animation-delay: .32s; }
.contact-row:nth-child(4) { animation-delay: .39s; }
.doc-body { animation: band-rise .7s cubic-bezier(.16, 1, .3, 1) .1s backwards; }
@media (prefers-reduced-motion: reduce) {
  .contact-grid > *, .complaint-grid > *, .contact-row, .doc-body { animation: none; }
}

/* ===================================================== touch screens ===
   A phone or tablet has no pointer to hover with: a tap sets :hover and it
   sticks until the next tap elsewhere, leaving a card lifted and tinted.
   Where the main input cannot hover, every card and button keeps its
   resting look — the tap still opens the link as before. */
@media (hover: none) {
  .cell:hover,
  .group:not([open]):hover,
  .person:hover,
  .ai-card:hover,
  .deliver-card:hover,
  .about-pillar:hover,
  .home-grid > .info-card:hover,
  .mega-item:hover,
  .btn-navy:hover, .btn-mint:hover, .btn-green:hover, .btn-apply:hover {
    transform: none;
  }
  .cell:hover { border-color: rgba(13, 63, 105, .10); box-shadow: 0 1px 2px rgba(9, 42, 74, .05); }
  .cell:hover::after { opacity: 0; }
  .cell:hover .cell-icon { background: #E8F1F9; color: var(--navy-800); }
  .cell:hover .cell-go { color: inherit; }
  .cell:hover .cell-go svg,
  .btn-navy:hover svg, .btn-mint:hover svg, .btn-green:hover svg, .btn-apply:hover svg { transform: none; }
  .cell:hover .cell-foot { border-color: var(--line); }
  .cell:hover .cell-desc { color: #5A7186; }

  .group:not([open]):hover { border-color: rgba(13, 63, 105, .10); box-shadow: 0 1px 2px rgba(9, 42, 74, .05); }
  .group:not([open]):hover .group-chevron { color: #7C99B4; }

  .deliver-card:hover { border-color: rgba(13, 63, 105, .10); box-shadow: 0 1px 2px rgba(9, 42, 74, .05); }
  .deliver-card:hover::after { transform: scaleX(0); }
  .deliver-card:hover .deliver-num { color: #C9D3DF; }
  .deliver-card:hover .deliver-icon { background: #EAF3FB; color: #1F6FB5; transform: none; }

  .ai-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
  .ai-card:hover .ai-card-icon { background: rgba(127, 240, 241, .14); color: var(--mint); transform: none; }
  .about-pillar:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
  .about-pillar:hover .pillar-icon { background: rgba(127, 240, 241, .14); color: var(--mint); }
  .contact-row:hover .contact-icon { background: #EAF3FB; color: #1F6FB5; }

  .btn-navy:hover::after, .btn-mint:hover::after, .btn-green:hover::after, .btn-apply:hover::after { left: -60%; }
  .hero .btn-navy:hover { transform: none; filter: none; }
  .hero .btn-navy:hover svg { background: rgba(255, 255, 255, .16); color: inherit; transform: none; }
}
