/* Metric-matched fallbacks. Without these the swap from the system font to the
   web font changes text metrics and reflows the block, which is what produced
   a 0.045 layout shift in the hero. Values measured against the real fonts. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  size-adjust: 100.86%;
  ascent-override: 87.25%;
  descent-override: 20.82%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost Fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  size-adjust: 104.72%;
  ascent-override: 102.18%;
  descent-override: 36.29%;
  line-gap-override: 0%;
}

/* Self-hosted web fonts. Served from this origin, so there is no DNS
   lookup, TLS handshake or extra round trip to a third-party host
   before text can paint. Latin and Latin Extended only. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plexmono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plexmono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Integrated Technologies site stylesheet
   Design tokens, layout primitives, components, motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand navy, sampled from the INTECH mark (#20317F) */
  --navy:        #20317f;
  --navy-600:    #2b3f9b;
  --navy-700:    #1b2a6d;
  --navy-800:    #172457;
  --navy-900:    #111b41;
  --navy-950:    #0c1330;

  --accent:      #c08a34;
  --accent-soft: #e0ac54;

  --paper:       #ffffff;
  --paper-2:     #f6f7fb;
  --paper-3:     #edf0f8;

  --line:        #e3e7f1;
  --line-2:      #cfd6e6;

  --text:        #1a2033;
  --text-2:      #414b64;
  --muted:       #68718a;

  --on-dark:     #eef1fa;
  --on-dark-mut: #9aa5c4;

  /* Type */
  --font-sans: "Archivo", "Archivo Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* geometric face matching the INTECH logo lettering, hero headline only */
  --font-logo: "Jost", "Jost Fallback", "Century Gothic", var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Space */
  --gutter:    clamp(20px, 5vw, 56px);
  --container: 1200px;
  --wide:      1400px;
  --section-y: clamp(72px, 9vw, 132px);

  /* Shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Elevation, navy-tinted so shadows sit in the palette */
  --sh-1: 0 1px 2px rgba(16, 26, 64, .06), 0 2px 8px rgba(16, 26, 64, .04);
  --sh-2: 0 2px 6px rgba(16, 26, 64, .06), 0 12px 28px rgba(16, 26, 64, .08);
  --sh-3: 0 4px 12px rgba(16, 26, 64, .08), 0 26px 60px rgba(16, 26, 64, .14);

  /* Motion */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --dur:      .5s;
  /* one dial for reveal timing; short and crisp reads faster than long and soft */
  --reveal-dur: .46s;

  --nav-h:      88px;
  --nav-h-slim: 70px;
}

/* --------------------------------------------------------------------------
   1b. Cross-document view transitions
   Turns a full page load into a short crossfade instead of a white flash.
   Ignored by browsers that don't support it; navigation just works as before.
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .26s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

/* the bar is identical on every page, so let it stay put instead of fading */
.nav { view-transition-name: site-nav; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h-slim) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Pinned rather than merely overflow-hidden, so the page behind the drawer
   cannot be swiped on iOS. site.js stores and restores the scroll offset. */
body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; border: 0; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.15em; padding-left: 1.15em; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: clamp(38px, 5vw, 64px) 0;
}

::selection { background: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   Touch behaviour
   Mobile browsers paint a translucent blue box over whatever you tap and can
   select the label text on a quick double tap. On navigation that flash shows
   for the whole time the next page is loading. Suppress it on controls only,
   never on body copy, which must stay selectable.
   -------------------------------------------------------------------------- */
a, button, input, select, textarea, [role="button"], summary {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.nav__link,
.nav__brand,
.nav__burger,
.drawer__link,
.skip-link,
.totop,
.btn {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  /* also drops the 300ms double-tap-zoom wait, so taps register immediately */
  touch-action: manipulation;
}

/* keyboard users must still get a clear ring */
.nav__link:focus-visible,
.drawer__link:focus-visible,
.nav__burger:focus-visible,
.totop:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}


:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: var(--wide); }

.section { padding-block: var(--section-y); }

/* Let the browser skip layout and paint for sections still below the fold.
   contain-intrinsic-size keeps the scrollbar honest so nothing jumps. */
.section--defer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section--tight { padding-block: clamp(56px, 6vw, 84px); }
.section--paper2 { background: var(--paper-2); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-xs);
  font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Small mono eyebrow rule: a decorative mark, never a text label */
.mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.mark::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}
.mark::after {
  content: "";
  height: 1px;
  width: clamp(48px, 9vw, 120px);
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.mark--light::after { background: linear-gradient(90deg, rgba(255,255,255,.34), transparent); }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.t-display {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.t-h2 {
  font-size: clamp(1.95rem, 3.7vw, 3.05rem);
  letter-spacing: -.03em;
  line-height: 1.08;
}

.t-lede {
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.68;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: -.005em;
}

.measure { max-width: 68ch; }

/* --------------------------------------------------------------------------
   5. Scroll progress
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--navy), var(--accent-soft));
  will-change: transform;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: height .4s var(--ease), background-color .4s var(--ease),
              box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* solid by default (inner pages) */
.nav--solid,
.nav.is-stuck {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav.is-stuck {
  height: var(--nav-h-slim);
  box-shadow: 0 1px 24px rgba(16, 26, 64, .08);
}

/* transparent over the hero on the home page */
.nav--overlay:not(.is-stuck) { border-bottom-color: rgba(255, 255, 255, .14); }

.nav__inner {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand img {
  width: clamp(132px, 13vw, 168px);
  transition: width .4s var(--ease), opacity .3s var(--ease);
}
.nav.is-stuck .nav__brand img { width: clamp(118px, 11vw, 142px); }

/* two logo files: colour for light bars, knockout for the transparent state */
.nav__logo--light { display: none; }
.nav--overlay:not(.is-stuck) .nav__logo--light { display: block; }
.nav--overlay:not(.is-stuck) .nav__logo--dark { display: none; }

/* menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 14px);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  border-radius: var(--r-xs);
  transition: color .3s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--navy); }

.nav--overlay:not(.is-stuck) .nav__link { color: rgba(255, 255, 255, .82); }
.nav--overlay:not(.is-stuck) .nav__link:hover,
.nav--overlay:not(.is-stuck) .nav__link[aria-current="page"] { color: #fff; }

/* sliding indicator that tracks hover / current page */
.nav__pointer {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  /* fixed base width. The real width is applied with scaleX, so the indicator
     glides on the compositor instead of relaying out on every frame */
  width: 100px;
  background: var(--navy);
  opacity: 0;
  transform: translateX(0) scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease), opacity .22s var(--ease),
              background-color .3s var(--ease);
  pointer-events: none;
  will-change: transform;
}
.nav__pointer.is-on { opacity: 1; }
.nav--overlay:not(.is-stuck) .nav__pointer { background: var(--accent-soft); }

/* --------------------------------------------------------------------------
   Solutions dropdown (desktop)
   -------------------------------------------------------------------------- */
.nav__has-sub { position: relative; }

.nav__caret {
  width: 9px;
  height: 6px;
  margin-left: 7px;
  vertical-align: middle;
  transition: transform .3s var(--ease);
}
.nav__has-sub:hover .nav__caret,
.nav__has-sub:focus-within .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  min-width: 264px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  z-index: 5;
}
/* keeps the pointer from falling through the gap under the trigger */
.nav__has-sub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.nav__sublink {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-xs);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: -.008em;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__sublink:hover,
.nav__sublink:focus-visible { background: var(--paper-3); color: var(--navy); }
.nav__sublink[aria-current="page"] { color: var(--navy); background: var(--paper-3); }

/* burger */
.nav__burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav__burger span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .42s var(--ease), opacity .25s var(--ease), background-color .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 22.5px; }
.nav__burger span:nth-child(3) { top: 28px; }

.nav--overlay:not(.is-stuck) .nav__burger { border-color: rgba(255, 255, 255, .34); }
.nav--overlay:not(.is-stuck) .nav__burger span { background: #fff; }

.nav__burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* While the drawer is open the bar always sits on the dark overlay, whatever
   the scroll position was, so force the knockout treatment. */
body.is-locked .nav,
body.is-locked .nav.is-stuck {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: rgba(255, 255, 255, .12);
}
body.is-locked .nav .nav__logo--light { display: block; }
body.is-locked .nav .nav__logo--dark  { display: none; }
body.is-locked .nav__burger { border-color: rgba(255, 255, 255, .34); }
body.is-locked .nav__burger span { background: #fff; }

/* --------------------------------------------------------------------------
   7. Mobile drawer
   Compact rows rather than oversized display type, so the whole menu including
   both expanded groups fits on one phone screen without scrolling.
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--navy-950);
  display: block;
  padding: calc(var(--nav-h) + 8px) 0 max(28px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .34s var(--ease), transform .38s var(--ease), visibility .38s;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* faint blueprint grid, echoing the page headers */
.drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 80% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 80% 0%, #000 10%, transparent 70%);
}

.drawer nav { position: relative; }

.drawer__list {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .25s var(--ease);
  transition-delay: var(--d, 0ms);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover,
.drawer__link[aria-current="page"] { color: var(--accent-soft); }

.drawer__group { display: block; }

/* Expandable groups inside the drawer */
.drawer__toggle {
  background: none;
  border: 0;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.drawer__caret {
  width: 13px;
  height: 8px;
  flex: none;
  opacity: .75;
  transition: transform .35s var(--ease);
}
.drawer__toggle[aria-expanded="true"] .drawer__caret {
  transform: rotate(180deg);
  opacity: 1;
}

.drawer__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .42s var(--ease);
}
.drawer__sub.is-open { max-height: 520px; }

.drawer__sublink {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0 10px 18px;
  margin-left: 2px;
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: -.005em;
  text-transform: none;
  color: rgba(255, 255, 255, .72);
  border-left: 2px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.drawer__sublink:hover,
.drawer__sublink:focus-visible {
  color: #fff;
  border-left-color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -6% 0 -6% 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.06);
  animation: kenburns 26s var(--ease-io) forwards;
}

@keyframes kenburns {
  from { transform: scale(1.13) translate3d(0, 1.2%, 0); }
  to   { transform: scale(1.0)  translate3d(0, 0, 0); }
}

/* layered scrim: keeps the nav legible up top, the headline legible at the base */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(9, 14, 40, .66) 0%,
      rgba(9, 14, 40, .26) 24%,
      rgba(9, 14, 40, .46) 54%,
      rgba(9, 14, 40, .93) 100%),
    /* weighted to the lower-left so the headline always has a dark ground,
       while the right-hand side of the photograph stays open */
    linear-gradient(100deg,
      rgba(10, 16, 44, .90) 0%,
      rgba(10, 16, 44, .62) 34%,
      rgba(10, 16, 44, .18) 68%,
      rgba(10, 16, 44, .04) 100%);
}

/* fine grain, stops the gradient from banding on wide screens */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero__body {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(72px, 11vh, 128px);
  position: relative;
}

/* Hero lockup: the wordmark, a rule, then the tagline, echoing the logo. */
.hero__title {
  margin: 0;
  color: #fff;
  display: block;
  text-shadow: 0 2px 30px rgba(6, 10, 30, .34);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.hero__line > span {
  display: block;
  transform: translateY(115%);
  transition: transform .78s var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero.is-revealed .hero__line > span { transform: translateY(0); }

.hero__brand {
  display: block;
  color: #fff;
}
/* the real wordmark, traced from the logo artwork into vector paths */
.hero__brand svg {
  display: block;
  width: clamp(164px, 37vw, 470px);
  height: auto;
}

.hero__lockrule {
  display: block;
  width: 0;
  height: 2px;
  margin: clamp(12px, 1.7vh, 20px) 0 clamp(11px, 1.5vh, 18px);
  background: linear-gradient(90deg, var(--accent-soft), rgba(224, 172, 84, 0));
  transition: width 1s var(--ease) .52s;
}
.hero.is-revealed .hero__lockrule { width: min(430px, 66vw); }

.hero__tag {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(.78rem, 2.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .9);
}

/* --------------------------------------------------------------------------
   8b. Anniversary seal
   Struck onto the photograph after the lockup settles: press, overshoot, rest.
   It runs once and then holds; nothing loops.
   -------------------------------------------------------------------------- */
.hero__seal {
  position: relative;
  width: clamp(122px, 13.8vw, 180px);
  aspect-ratio: 1;
  margin-bottom: clamp(16px, 2.4vh, 28px);
  transform-origin: 50% 50%;
  opacity: 0;
  transform: scale(1.85) rotate(-17deg);
  filter: blur(3px);
}

.hero__seal svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(5, 9, 26, .55));
}

.hero__seal::after {
  content: "";
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  border: 2px solid rgba(240, 214, 154, .6);
  opacity: 0;
  pointer-events: none;
}

.hero.is-revealed .hero__seal {
  animation: seal-press .66s cubic-bezier(.2, .86, .3, 1) .8s forwards;
}
.hero.is-revealed .hero__seal::after {
  animation: seal-wave .7s ease-out 1.14s forwards;
}

@keyframes seal-press {
  0%   { opacity: 0; transform: scale(1.85) rotate(-17deg); filter: blur(3px); }
  52%  { opacity: 1; transform: scale(.93)  rotate(-7.6deg); filter: blur(0); }
  72%  { transform: scale(1.035) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); filter: blur(0); }
}

@keyframes seal-wave {
  0%   { opacity: .8; transform: scale(.9); }
  100% { opacity: 0;  transform: scale(1.55); }
}

/* word-by-word reveal (spans injected by site.js) */
/* The reveal needs overflow:hidden, which otherwise crops descenders (the "g"
   in Maximizing). Pad the clipping box below the baseline and pull the same
   amount back with a negative margin, so nothing moves but descenders fit. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .26em;
  margin-bottom: -.26em;
}
.word__i {
  display: inline-block;
  /* must exceed the padded box height so the word starts fully out of sight */
  transform: translateY(145%);
  transition: transform .72s var(--ease);
  transition-delay: var(--d, 0ms);
}
.is-revealed .word__i { transform: translateY(0); }

.hero.is-revealed /* scroll cue: a line that drains downward, no words */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
  z-index: 2;
}
.hero__cue::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: #fff;
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}

/* --------------------------------------------------------------------------
   9. Page header (inner pages)
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(48px, 6vw, 84px);
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* faint blueprint grid, reads as engineering rather than decoration for its own sake */
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 100% at 15% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 15% 0%, #000 20%, transparent 78%);
}
.pagehead::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 63, 155, .55), transparent 66%);
  filter: blur(20px);
}

.pagehead__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  letter-spacing: -.035em;
  line-height: 1.04;
}

/* --------------------------------------------------------------------------
   10. Statement block (home intro copy)
   -------------------------------------------------------------------------- */
.statement { position: relative; }

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
}

@media (min-width: 900px) {
  .statement__grid { grid-template-columns: minmax(0, .3fr) minmax(0, 1fr); }
}

.statement__aside { display: flex; flex-direction: column; }
.statement__aside .mark { margin-bottom: 18px; }

.statement__stem {
  display: block;
  width: 1px;
  height: clamp(48px, 13vw, 190px);
  margin-left: 4px;
  background: linear-gradient(var(--line-2), transparent);
}

.statement__copy p {
  font-size: clamp(1.14rem, 1.62vw, 1.46rem);
  line-height: 1.64;
  letter-spacing: -.014em;
  color: var(--text);
  max-width: 46ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   11. Service cards
   Each card carries the illustration of the solution it leads to, so the two
   pages read as one family.
   -------------------------------------------------------------------------- */
.servgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  counter-reset: card;
}

.servgrid > li {
  counter-increment: card;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 32px);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* decorative index, generated by CSS, not page copy */
.servgrid > li::before {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: clamp(24px, 2.6vw, 32px);
  right: clamp(24px, 2.6vw, 32px);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--accent);
}

.servgrid > li::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.servgrid > li:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}
.servgrid > li:hover::after { transform: scaleX(1); }

.servcard__art { display: block; margin-bottom: 18px; }
.servcard__art img {
  width: 100%;
  max-width: 132px;
  height: auto;
  transition: transform .4s var(--ease);
}
.servgrid > li:hover .servcard__art img { transform: translateY(-3px); }

.servcard__text {
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.64;
  color: var(--text-2);
  text-wrap: pretty;
}

.servcard__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
}
.servcard__go svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.servcard__go:hover { color: var(--navy-600); }
.servcard__go:hover svg,
.servgrid > li:hover .servcard__go svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   12. Partner logo wall
   -------------------------------------------------------------------------- */
.logos {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.logo-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.logo-cell img {
  width: 100%;
  max-height: 62px;
  object-fit: contain;
  /* partners show in their own brand colour; hover just adds presence */
  opacity: .88;
  transform: scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.logo-cell:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}
.logo-cell:hover img {
  opacity: 1;
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   12b. Clientele: logo above, name beneath
   -------------------------------------------------------------------------- */
.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.clients li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 2.4vw, 30px) clamp(16px, 1.8vw, 22px) clamp(20px, 2.2vw, 26px);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* fixed optical box keeps wordmarks and round emblems on the same baseline */
.clients .client__mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 74px;
}

.clients .client__mark img {
  max-width: 100%;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .92;
  transform: scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.clients .client__name {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.008em;
  color: var(--text-2);
  text-wrap: balance;
}

.clients li:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}
.clients li:hover .client__mark img { opacity: 1; transform: scale(1.04); }
.clients li:hover .client__name { color: var(--text); }

/* --------------------------------------------------------------------------
   12c. Solutions
   -------------------------------------------------------------------------- */
.solgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.5vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.solcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: inherit;
  overflow: hidden;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.solcard::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.solcard:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.solcard:hover::after { transform: scaleX(1); }

.solcard__art {
  display: block;
  margin-bottom: 18px;
}
.solcard__art img {
  width: 100%;
  max-width: 150px;
  height: auto;
  transition: transform .4s var(--ease);
}
.solcard:hover .solcard__art img { transform: translateY(-3px); }

.solcard__title {
  display: block;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.solcard__text {
  display: block;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 20px;
}
.solcard__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.solcard__go svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.solcard:hover .solcard__go svg { transform: translateX(4px); }

/* detail page header */
.pagehead--sol .shell { position: relative; }

.pagehead__art {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: clamp(96px, 15vw, 168px);
  height: auto;
  opacity: .5;
  filter: brightness(0) invert(1);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
}
.crumb a {
  color: var(--accent-soft);
  /* padded so the breadcrumb is a comfortable tap target, negative margin
     keeps the row sitting exactly where it did */
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
}
.crumb a:hover { color: #fff; }
.crumb span[aria-hidden] { opacity: .5; }

.notebox {
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}
.notebox p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.68;
  color: var(--text);
}

.solnav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
}
.solnav a {
  flex: 1 1 200px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-weight: 500;
  color: var(--text);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.solnav a:hover { border-color: var(--line-2); background: var(--paper-2); transform: translateY(-2px); }
.solnav a span {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.solnav__next { text-align: right; }

@media (max-width: 700px) {
  .pagehead__art { display: none; }
  .solnav__next, .solnav__prev { text-align: left; }
}

/* --------------------------------------------------------------------------
   13. Article (about page)
   -------------------------------------------------------------------------- */
.article-wrap {
  display: grid;
  gap: clamp(18px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .article-wrap { grid-template-columns: minmax(0, .3fr) minmax(0, 1fr); }
}
.article-rail { display: flex; flex-direction: column; }
.article-rail .mark { margin-bottom: 18px; }

.article { max-width: 74ch; }

.article h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  letter-spacing: -.028em;
  margin-top: 0;
  margin-bottom: .5em;
}

.article p { color: var(--text-2); }

.article__lede {
  font-size: clamp(1.16rem, 1.7vw, 1.5rem);
  line-height: 1.6;
  letter-spacing: -.015em;
  color: var(--text) !important;
  margin-bottom: 1.1em;
}

.article ul { list-style: none; padding: 0; margin: 0 0 1.6em; }

.article ul li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 1em;
  color: var(--text-2);
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* the source uses <br> after these headings; neutralise the extra gap */
.article h2 + br { display: none; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
/* Contact, map and footer share ONE painted surface. The ambient glow lives on
   the wrapper as a background-image that fades to transparent, so it can never
   be clipped at a section edge, which is what produced a visible seam. */
.darkzone {
  position: relative;
  /* Glow centres and radii are absolute lengths measured from the top, so both
     gradients reach full transparency (~1350px in) long before the wrapper
     ends. Nothing is clipped, so the footer below continues the same flat
     navy with no visible join. */
  background:
    radial-gradient(900px 720px at 6% 380px, rgba(43, 63, 155, .38), transparent 68%),
    radial-gradient(680px 520px at 94% 980px, rgba(32, 49, 127, .24), transparent 70%),
    var(--navy-950);
}

.darkzone .contact,
.darkzone .map,
.darkzone .footer { background: transparent; }

.contact {
  background: var(--navy-950);
  color: var(--on-dark);
  position: relative;
}
.contact .t-h2 { color: #fff; }

.contact__grid {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}

/* --- form card --- */
.formcard {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 44px);
  box-shadow: var(--sh-3);
}

.field { position: relative; margin-bottom: 20px; }

.field__input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 26px 16px 10px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
  appearance: none;
}
textarea.field__input {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}

.field__label {
  position: absolute;
  left: 17px;
  top: 18px;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .28s var(--ease), color .28s var(--ease);
}

/* float the label once the field has focus or content */
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-11px) scale(.74);
  color: var(--navy);
}

/* the original placeholder text is kept, but only surfaces on focus so it
   never collides with the floating label */
.field__input::placeholder { color: transparent; transition: color .25s var(--ease); }
.field__input:focus::placeholder { color: var(--muted); }

.field__input:hover { border-color: var(--line-2); }
.field__input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(43, 63, 155, .14);
}

/* only flag invalid fields the user has actually touched */
.field__input:not(:placeholder-shown):invalid { border-color: #c4453f; }
.field__input:not(:placeholder-shown):invalid:focus { box-shadow: 0 0 0 3px rgba(196, 69, 63, .14); }

/* --- submit --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 17px 34px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, var(--navy-600), var(--navy));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(32, 49, 127, .3); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn[data-state="sending"] { pointer-events: none; }
.btn[data-state="sending"] .btn__arrow { display: none; }
.btn[data-state="sending"]::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- form messages --- */
.formmsg {
  display: none;
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: .95rem;
  line-height: 1.55;
  border: 1px solid transparent;
  animation: msgin .45s var(--ease);
}
.formmsg.success,
.formmsg.error { display: flex; align-items: flex-start; gap: 14px; }
.formmsg.success { background: #eaf7f0; border-color: #bfe5d1; color: #17603c; }
.formmsg.error   { background: #fdeceb; border-color: #f5c9c6; color: #932a24; }

.formmsg__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.formmsg__title { font-weight: 600; letter-spacing: -.01em; }
.formmsg__note { opacity: .82; font-size: .9rem; }

@keyframes msgin {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* animated confirmation tick: circle draws, then the check */
.formmsg__icon { flex: none; width: 34px; height: 34px; margin-top: 1px; }

.tick__ring,
.tick__check {
  fill: none;
  stroke: #2f9e63;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick__ring  { stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: tick-draw .55s var(--ease) forwards; }
.tick__check { stroke-width: 4; stroke-dasharray: 36;  stroke-dashoffset: 36;  animation: tick-draw .38s var(--ease) .42s forwards; }

.formmsg.error .tick__ring,
.formmsg.error .tick__check { stroke: #c4453f; }

@keyframes tick-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tick__ring, .tick__check { stroke-dashoffset: 0; animation: none; }
}

/* --- contact info --- */
.info { padding-top: clamp(6px, 1vw, 14px); }

.info__org {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  color: #fff;
  letter-spacing: -.015em;
  margin: 0;
}

.info__block { margin-top: clamp(26px, 3vw, 40px); }

.info__block h3 {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 16px;
}

.info address {
  font-style: normal;
  margin: 0;
  color: var(--on-dark-mut);
}

.info address p {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 14px;
  line-height: 1.6;
}
.info address p:last-child { margin-bottom: 0; }

.info__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent-soft);
  stroke: currentColor;
}
.info a { color: var(--on-dark); }
.info a:hover { color: var(--accent-soft); }

/* The phone and email links were only 27px tall, below a comfortable thumb
   target. Padding grows the hit area; the matching negative margin keeps the
   visual spacing of the address block exactly as it was. */
.info address a {
  display: inline-block;
  padding-block: 9px;
  margin-block: -9px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
}

/* open-hours rows with dotted leaders */
.info--hours p {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.info--hours p span:first-child {
  color: var(--on-dark);
  font-weight: 500;
  flex: none;
}
.info--hours p::after { content: none; }

.hours-fill {
  flex: 1;
  align-self: center;
  border-bottom: 1px dotted rgba(154, 165, 196, .38);
}

/* --------------------------------------------------------------------------
   15. Map
   -------------------------------------------------------------------------- */
.map { background: var(--navy-950); padding-bottom: clamp(56px, 7vw, 96px); }

.map__frame {
  position: relative;
  height: clamp(360px, 46vw, 520px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--sh-3);
  background: #e8eaed;
}

.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  color: var(--on-dark-mut);
  padding-block: clamp(40px, 5vw, 60px);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo { width: 148px; opacity: .92; }

.footer p { margin: 0; font-size: .92rem; }
.footer a { color: var(--on-dark-mut); }
.footer a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 100;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px rgba(16, 26, 64, .26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background-color .3s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--navy-600); color: #fff; }
.totop svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .info { padding-top: 0; }
}

@media (max-width: 860px) {
  :root { --nav-h: 74px; --nav-h-slim: 64px; }

  /* blurring a full-width bar every frame is costly on mobile GPUs;
     an opaque bar looks the same here and scrolls noticeably cheaper */
  .nav--solid,
  .nav.is-stuck {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
  }
  .nav__menu, .nav__pointer { display: none; }
  .nav__burger { display: block; }
  .hero { height: clamp(520px, 86vh, 720px); }
  .footer__inner { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   Phone layout for the partner wall and clientele.
   The auto-fit grids fell back to a single 233px-tall column on a 390px
   screen, which turned this page into nearly nine screens of scrolling.
   Fixed column counts and compact tiles bring it back to about three.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .logo-cell {
    aspect-ratio: auto;
    min-height: 92px;
    padding: 16px 14px;
    border-radius: 12px;
  }
  .logo-cell img { max-height: 44px; }

  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .clients li { gap: 10px; padding: 16px 10px 14px; border-radius: 10px; }
  .clients .client__mark, .clients .client__mark img { height: 44px; max-height: 44px; }
  .clients .client__name { font-size: .76rem; line-height: 1.35; }
}

@media (max-width: 560px) {
  .formcard { padding: 24px 20px 28px; }
  .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   19b. Lite mode
   Applied by a small inline script when the device reports little memory, few
   cores, or data saver. Drops the effects that cost the most per frame while
   leaving the design intact.
   -------------------------------------------------------------------------- */
.perf-lite .hero__grain { display: none; }

.perf-lite .hero__media img {
  animation: none;
  transform: scale(1.02);
}

.perf-lite .nav--solid,
.perf-lite .nav.is-stuck {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, .97);
}

.perf-lite .pagehead::after,
.perf-lite .contact::before { filter: none; }

.perf-lite .hero__seal svg { filter: none; }

/* the grain layer is a filtered SVG composited with a blend mode, which is
   costly to rasterise on phone GPUs regardless of available memory */
@media (max-width: 860px) {
  .hero__grain { display: none; }
}

/* --------------------------------------------------------------------------
   20. Motion preferences & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .word__i { transform: none; }
  .hero__seal { opacity: 1; transform: rotate(-6deg); filter: none; animation: none; }
  .hero__seal::after { display: none; }
  .hero__media img { animation: none; transform: scale(1); }
  .hero.is-revealed }

@media print {
  .nav, .drawer, .totop, .progress, .map, .hero__cue { display: none !important; }
  body { color: #000; }
  .contact, .footer, .pagehead { background: #fff !important; color: #000 !important; }
}
