/* KDE Group — site styles. Light theme only, brand blue #0D488F. */

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --bg: #F2F1F8;
  --card: #FFFFFF;
  --ink: #12172B;
  --ink-2: #545B70;
  --ink-3: #687084;
  --line: rgba(18, 23, 43, .08);
  --blue: #0D488F;
  --blue-700: #0A3A75;
  --blue-50: #E8EFF9;
  --blue-100: #D5E2F4;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 56, .05), 0 4px 14px rgba(16, 24, 56, .06);
  --shadow-md: 0 2px 4px rgba(16, 24, 56, .05), 0 14px 34px rgba(16, 24, 56, .09);
  --shadow-lg: 0 4px 8px rgba(16, 24, 56, .06), 0 22px 48px rgba(16, 24, 56, .14);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --header-h: 72px;
  --gutter: 16px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* service tints (from the site's original icon colours) */
  --t-lw: #E5F1FF;    --i-lw: #1670D2;
  --t-hse: #FDE8EB;   --i-hse: #C8102E;
  --t-qms: #FCE7F2;   --i-qms: #C3126F;
  --t-ems: #E5F4E5;   --i-ems: #1D7A1D;
  --t-aldon: #ECEEF2; --i-aldon: #596071;
  --t-pk: #FAEBEE;    --i-pk: #AE4F5E;
  --t-sds: #FCEFE3;   --i-sds: #AE6220;
  --t-all: var(--blue-50); --i-all: var(--blue);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.1, 1.077 30.6%, 1.012 35.2%, .994 37.8%, .985 40.5%, .988 45.2%, 1.001 52.5%, 1.003 61.8%, 1);
  }
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #3B82F6; outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top .2s var(--ease); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: .01em; margin-bottom: 8px; }
.muted { color: var(--ink-2); }

/* ---------- Buttons & chips ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 14px;
  background: var(--b); color: #fff;
  font-weight: 800; font-size: 16px; letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(13, 72, 143, .2), 0 6px 16px rgba(13, 72, 143, .22);
  transition: transform .35s var(--spring), box-shadow .25s var(--ease), background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13, 72, 143, .2), 0 12px 24px rgba(13, 72, 143, .28); }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn--white { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn--soft { background: var(--blue-50); color: var(--blue); box-shadow: none; }
.btn--soft:hover { background: var(--blue-100); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 14px; line-height: 1.3;
}

/* ---------- Icon tile ---------- */
.ico {
  --t: var(--t-all); --i: var(--i-all);
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--t); color: var(--i);
  transition: transform .5s var(--spring);
}
.ico svg { width: 28px; height: 28px; fill: currentColor; }
.ico--line svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 40px; height: 40px; border-radius: 12px; }
.ico--sm svg { width: 22px; height: 22px; }
[data-s="lw"] { --t: var(--t-lw); --i: var(--i-lw); }
[data-s="hse"] { --t: var(--t-hse); --i: var(--i-hse); }
[data-s="qms"] { --t: var(--t-qms); --i: var(--i-qms); }
[data-s="ems"] { --t: var(--t-ems); --i: var(--i-ems); }
[data-s="aldon"] { --t: var(--t-aldon); --i: var(--i-aldon); }
[data-s="pkware"] { --t: var(--t-pk); --i: var(--i-pk); }
[data-s="sds"] { --t: var(--t-sds); --i: var(--i-sds); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  view-transition-name: site-header;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(16, 24, 56, .06);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin-right: auto; min-height: 44px; }
.brand svg { width: 44px; height: 36px; flex: none; }
.brand-mark { width: 44px; height: 36px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 12px;
  font-weight: 700; font-size: 16px; cursor: pointer; color: inherit;
  transition: background-color .2s var(--ease), transform .3s var(--spring);
}
.nav > a:hover, .nav-drop > button:hover { background: rgba(255, 255, 255, .16); }
.is-solid .nav > a:hover, .is-solid .nav-drop > button:hover { background: var(--blue-50); }
.nav > a[aria-current="page"] { background: rgba(255, 255, 255, .2); }
.is-solid .nav > a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .35s var(--spring); }
.nav-drop.open > button svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: 560px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  color: var(--ink);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.97); transform-origin: top center;
  transition: opacity .2s var(--ease), transform .4s var(--spring), visibility 0s .2s;
}
.nav-drop.open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.drop a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.25; transition: background-color .2s var(--ease); }
.drop a:hover { background: var(--bg); }
.drop a:hover .ico { transform: scale(1.08) rotate(-4deg); }
.drop .drop-all { grid-column: 1 / -1; justify-content: center; background: var(--blue-50); color: var(--blue); min-height: 48px; margin-top: 4px; }
.drop .drop-all:hover { background: var(--blue-100); }
.header-cta { display: none; }
.header-contact { min-height: 40px; padding: 0 14px; font-size: 15px; }
.site-header:not(.is-solid) .header-contact, .site-header:not(.is-solid) .header-cta { background: #fff; color: var(--blue); }
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .18); color: inherit; cursor: pointer;
  transition: transform .3s var(--spring), background-color .2s;
}
.is-solid .menu-btn { background: var(--blue-50); color: var(--blue); }
.menu-btn:active { transform: scale(.92); }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 960px) {
  .nav, .header-cta { display: inline-flex; }
  .menu-btn, .header-contact { display: none; }
}

/* ---------- Phone menu ----------
   A white card that grows out of the menu button: its brand and close button sit exactly
   where the header's brand and menu button are. Big rows, the current page tinted blue,
   Services opens its own list in place. */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 40, .38);
  opacity: 0; visibility: hidden; touch-action: none;
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.sheet {
  position: fixed; z-index: 61;
  top: calc(8px + env(safe-area-inset-top));
  left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right));
  max-width: 520px; margin: 0 auto;
  max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 8px 8px;
  background: var(--card); color: var(--ink); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px) scale(.96); transform-origin: calc(100% - 30px) 28px;
  transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .sheet-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .6s var(--spring), visibility 0s; }
html:has(body.menu-open), body.menu-open { overflow: hidden; }

.sheet-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; margin-bottom: 4px; padding: 0;
  background: var(--card); box-shadow: 0 1px 0 var(--line);
}
.sheet-head .brand { margin: 0; color: var(--ink); min-width: 0; }
.sheet-close {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
  transition: transform .3s var(--spring), background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.sheet-close:hover { background: var(--blue-100); }
.sheet-close:active { transform: scale(.92); }
.sheet-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.m-nav { display: grid; gap: 2px; padding-top: 4px; }
.m-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 8px 12px 8px 8px; border: 0; border-radius: var(--r-md);
  background: none; color: var(--ink); text-align: left; cursor: pointer;
  font-weight: 800; font-size: 18px; line-height: 1.25;
  transition: background-color .2s var(--ease), transform .3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.m-row > span:not(.ico) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.m-row:hover { background: var(--bg); }
.m-row:active { transform: scale(.98); background: var(--bg); }
.m-row .ico { --t: var(--t-all); --i: var(--i-all); }
.m-go { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.m-row[aria-current="page"], .m-row.is-current { background: var(--blue-50); color: var(--blue); }
.m-row[aria-current="page"] .ico, .m-row.is-current .ico { background: #fff; }
.m-row[aria-current="page"] .m-go, .m-row.is-current .m-go { stroke: var(--blue); }
.m-row[aria-expanded="true"] .m-go { transform: rotate(180deg); }

.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.m-sub.is-open { grid-template-rows: 1fr; }
.m-sub-in { min-height: 0; overflow: hidden; }
.m-sub-list { display: grid; gap: 2px; margin: 4px 0 6px; padding: 6px; border-radius: var(--r-lg); background: var(--bg); }
.m-sub a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 14px;
  font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere;
  transition: background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.m-sub a:hover, .m-sub a:active { background: var(--card); }
.m-sub .ico { width: 36px; height: 36px; border-radius: 11px; }
.m-sub .ico svg { width: 20px; height: 20px; }
.m-sub .m-all { justify-content: center; min-height: 48px; margin-top: 4px; padding: 6px 12px; background: var(--card); color: var(--blue); font-weight: 800; box-shadow: var(--shadow-sm); }
.m-sub .m-all:hover, .m-sub .m-all:active { background: var(--blue-50); }

.m-cta { margin-top: 8px; min-height: 56px; font-size: 17px; border-radius: var(--r-md); }

/* rows arrive one after another */
.m-nav > *, .m-cta { opacity: 0; transform: translateY(8px); transition: opacity .15s var(--ease), transform .2s var(--ease), background-color .2s var(--ease); }
.menu-open .m-nav > *, .menu-open .m-cta { opacity: 1; transform: none; transition: opacity .35s var(--ease) var(--md, 0s), transform .55s var(--spring) var(--md, 0s), background-color .2s var(--ease); }
.m-nav > :nth-child(1) { --md: .04s; } .m-nav > :nth-child(2) { --md: .07s; } .m-nav > :nth-child(3) { --md: .1s; }
.m-nav > :nth-child(4) { --md: .13s; } .m-nav > :nth-child(5) { --md: .16s; } .m-cta { --md: .2s; }
.menu-open .m-row:active { transform: scale(.98); transition-delay: 0s; }

/* ---------- Hero / page banners ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  --lift: clamp(88px, 15vh, 150px);
  min-height: clamp(340px, 60vh, 580px);
  padding-bottom: calc(var(--lift) + 40px);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  color: #fff;
  background: #1C2A40;
}
.hero--page { --lift: clamp(72px, 11vh, 120px); min-height: clamp(280px, 44vh, 420px); }
@media (max-width: 639px) {
  .hero { --lift: 72px; min-height: 0; padding-bottom: calc(var(--lift) + 56px); }
  .hero--page { --lift: 56px; min-height: 0; padding-bottom: calc(var(--lift) + 48px); }
  .intro-who p { font-size: 17px; }
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.js .hero-media img.loaded { animation: hero-land 1.6s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 18, 40, .7) 0%, rgba(7, 18, 40, .5) 42%, rgba(7, 18, 40, .12) 68%, rgba(242, 241, 248, 0) 76%, var(--bg) 100%);
}
.hero-inner { padding-top: clamp(24px, 6vh, 64px); }
.hero-inner > * { max-width: 760px; }
.hero--page .hero-inner { padding-top: clamp(16px, 5vh, 56px); }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero .eyebrow { display: inline-block; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
.hero .num { font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@keyframes hero-land { from { transform: scale(1.08); opacity: .6; } to { transform: scale(1); opacity: 1; } }

/* Content that overlaps the bottom of the hero */
.lift { position: relative; z-index: 2; margin-top: calc(-1 * clamp(88px, 15vh, 150px)); }
.hero--page + .lift { margin-top: calc(-1 * clamp(72px, 11vh, 120px)); }
@media (max-width: 639px) { .lift { margin-top: -72px; } .hero--page + .lift { margin-top: -56px; } }

/* ---------- Cards & bento ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 24px;
}
@media (min-width: 640px) { .card { padding: 28px; } }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 640px) { .bento { gap: 16px; } }
@media (min-width: 1024px) { .bento { gap: 20px; } }

.section { padding: clamp(48px, 7vw, 88px) 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { max-width: 22ch; }

a.card, .lift-hover { transition: transform .45s var(--spring), box-shadow .3s var(--ease); }
a.card:hover, .lift-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.card:active, .lift-hover:active { transform: scale(.98); transition-duration: .15s; }
a.card:hover .ico { transform: scale(1.08) rotate(-4deg); }

/* ---------- Home: first screen ---------- */
.intro-who { display: flex; flex-direction: column; justify-content: center; }
.intro-who p { font-size: clamp(18px, 1.1vw + 12px, 22px); line-height: 1.45; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.info-tile { display: flex; flex-direction: column; gap: 12px; }
.info-tile .big { font-size: 19px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.info-tile .small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.info-tile .row { display: flex; align-items: center; gap: 12px; }
.info-tile .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.svc-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.svc {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px;
  font-weight: 800; font-size: 16px; line-height: 1.25;
}
.svc .ico { width: 48px; height: 48px; }
.svc--all { background: var(--blue); color: #fff; }
.svc--all .ico { background: rgba(255, 255, 255, .16); color: #fff; }
.svc--all .ico svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) {
  .svc { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 120px; font-size: 15.5px; }
}
@media (min-width: 640px) { .svc-grid { gap: 16px; } }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }

@media (min-width: 720px) {
  .home-top .intro-who { grid-column: span 12; }
  .home-top .info-tile { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .home-top .intro-who { grid-column: span 5; }
  .home-top .info-tile { grid-column: span 3; }
  .home-top .info-tile:nth-child(2) { grid-column: span 4; }
}

/* About-our-services block */
.about-text p { color: var(--ink-2); }
.about-text p:first-child { color: var(--ink); font-weight: 700; font-size: 19px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.standards { display: flex; flex-direction: column; gap: 14px; background: var(--blue); color: #fff; }
.standards p { color: rgba(255, 255, 255, .9); font-weight: 700; }
.standards .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.standards .etc { color: rgba(255, 255, 255, .75); font-weight: 600; align-self: center; }
@media (min-width: 900px) {
  .about-text { grid-column: span 7; }
  .standards { grid-column: span 5; }
}

/* Industries slider */
.slider { position: relative; padding: 0; overflow: hidden; aspect-ratio: 3 / 2; background: #DCE3EE; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide.is-active img { transform: scale(1); }
.slide figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 10px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 18px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .4s var(--ease) .25s, transform .6s var(--spring) .25s;
}
.slide.is-active figcaption { opacity: 1; transform: none; }
.slider-nav { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.round-btn {
  width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-md);
  transition: transform .35s var(--spring);
}
.round-btn:hover { transform: scale(1.06); }
.round-btn:active { transform: scale(.92); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ind-list { display: flex; flex-direction: column; gap: 6px; }
.ind-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(64px, 1fr); gap: 8px; }
.ind-chip {
  min-height: 44px; padding: 8px 6px; border: 0; border-radius: 16px; cursor: pointer; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  background: var(--bg); color: var(--ink); font-weight: 700; font-size: 15px;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .35s var(--spring);
}
@media (max-width: 639px) {
  .ind-grid { display: flex; overflow-x: auto; gap: 8px; margin: 0 -24px; padding: 2px 24px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .ind-grid::-webkit-scrollbar { display: none; }
  .ind-chip { flex: none; padding: 8px 16px; border-radius: 999px; scroll-snap-align: start; hyphens: manual; }
}
.ind-chip:hover { background: var(--blue-50); color: var(--blue); }
.ind-chip:active { transform: scale(.95); }
.ind-chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
@media (min-width: 900px) {
  .slider { grid-column: span 7; aspect-ratio: auto; min-height: 440px; }
  .ind-list { grid-column: span 5; }
}

/* Expert-in cards */
.expert h3 { margin: 16px 0 10px; }
.expert .lead { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; line-height: 1.5; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: var(--blue-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D488F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks--2 { margin-top: 14px; }
@media (min-width: 640px) { .expert--wide .ticks { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
@media (min-width: 900px) {
  .expert { grid-column: span 6; }
  .expert--wide { grid-column: 1 / -1; }
  .expert--wide .ticks--5 { grid-template-columns: repeat(5, 1fr); }
  .expert--wide .ticks--2 { padding-top: 14px; border-top: 1px solid var(--line); }
}

/* ---------- Services page ---------- */
.svc-card { display: flex; flex-direction: column; gap: 14px; }
.svc-card h3 { font-size: 1.3rem; }
.clamp { position: relative; color: var(--ink-2); overflow: hidden; max-height: calc(1.6em * 4); transition: max-height .6s var(--ease); }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); transition: opacity .3s; }
.clamp.is-open::after { opacity: 0; }
.more-btn { align-self: flex-start; border: 0; background: none; padding: 6px 0; min-height: 36px; color: var(--blue); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.more-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .35s var(--spring); }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.svc-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.cta-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--blue); color: #fff; }
.cta-tile .big { font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: #fff; }
.cta-tile .label { color: rgba(255, 255, 255, .75); }
.cta-tile .mark { width: 64px; height: 54px; background: #fff; border-radius: 16px; padding: 8px; }
@media (min-width: 720px) { .svc-cards > * { grid-column: span 6; } }
@media (min-width: 1024px) {
  .svc-cards > * { grid-column: span 4; }
  .svc-cards > .wide { grid-column: span 8; }
}

.detail { scroll-margin-top: calc(var(--header-h) + 16px); }
.detail-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.detail .prose { max-width: 72ch; color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); font-weight: 800; }
.hl { color: var(--blue); font-weight: 800; }
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card .pad { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #0E1A2E; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease), opacity .3s; }
.video:hover img { transform: scale(1.03); opacity: 1; }
.video .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .4s var(--spring); }
.video:hover .play { transform: scale(1.08); }
.video .play svg { width: 28px; height: 28px; fill: var(--blue); margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.devices { padding: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #F6F8FC, #EAF0F8); }
.features { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 20px 0; }
.feature { background: var(--bg); border-radius: var(--r-md); padding: 16px; color: var(--ink-2); line-height: 1.5; }
.feature b { display: block; color: var(--ink); font-weight: 800; margin-bottom: 4px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.lw-cards .card h3 { color: var(--ink); margin-bottom: 12px; }
.lw-cards .card { color: var(--ink-2); }
.lw-cards ul { padding-left: 20px; margin: 0 0 12px; }
.lw-cards li { margin-bottom: 4px; }
@media (min-width: 900px) {
  .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; }
}

/* ---------- Customers ---------- */
.logos { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 16px; text-align: center; min-height: 176px; }
.logo-tile .logo-box { height: 72px; width: 100%; display: grid; place-items: center; }
.logo-tile img { max-height: 72px; max-width: min(160px, 100%); width: auto; object-fit: contain; }
.logo-tile .label { margin: 0 0 2px; font-size: 13px; }
.logo-tile .ind { font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--ink); }

/* ---------- About ---------- */
.about-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.about-card .photo { aspect-ratio: 3 / 2; overflow: hidden; background: #DCE3EE; }
.about-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-card .pad { padding: 24px; color: var(--ink-2); }
.about-card h3 { margin-bottom: 10px; }
@media (min-width: 900px) {
  .about-card--wide { flex-direction: row; grid-column: 1 / -1; }
  .about-card--wide .photo { flex: 0 0 46%; aspect-ratio: auto; min-height: 320px; }
  .about-card--wide .pad { padding: 40px; display: flex; flex-direction: column; justify-content: center; font-size: 18px; }
  .about-card--half { grid-column: span 6; }
}

/* ---------- Contact ---------- */
.contact-tile { display: flex; align-items: center; gap: 16px; min-height: 112px; }
.contact-tile .big { font-weight: 800; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.3; word-break: break-word; }
@media (min-width: 720px) { .contact-tile { grid-column: span 6; } }
.form-card h2 { margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: 15px; }
.field .err { color: #B42318; font-size: 14px; font-weight: 700; min-height: 0; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid #DADDE8; background: #FBFBFE; color: var(--ink);
  font: 600 17px/1.4 var(--font);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.input:hover { border-color: #C3C8D8; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(13, 72, 143, .14); }
.input[aria-invalid="true"] { border-color: #D92D20; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312172B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
textarea.input { min-height: 148px; resize: vertical; }
.form-card form { position: relative; }
.form-done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; min-height: 360px; }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: flex; }
.done-mark { width: 96px; height: 96px; }
.done-mark circle { fill: none; stroke: var(--blue); stroke-width: 5; stroke-dasharray: 283; stroke-dashoffset: 283; transform: rotate(-90deg); transform-origin: center; }
.done-mark path { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.is-done .done-mark { animation: done-pop .7s var(--spring) .75s both; }
.is-done .done-mark circle { animation: draw .7s var(--ease) forwards; }
.is-done .done-mark path { animation: draw .4s var(--ease) .55s forwards; }
.is-done .form-done h2 { animation: rise .6s var(--spring) .8s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes done-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.btn.is-busy { pointer-events: none; opacity: .75; }
.map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-card .map { position: relative; flex: 1; min-height: 320px; background: #E4E9F1; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card .pad { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 900px) { .form-card { grid-column: span 7; } .map-card { grid-column: span 5; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--card); border-radius: 32px 32px 0 0; box-shadow: 0 -1px 0 var(--line); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot { display: grid; gap: 32px; grid-template-columns: 1fr; }
.foot h2 { font-size: 15px; letter-spacing: 0; color: var(--ink-3); font-weight: 800; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--ink); transition: color .2s; }
.foot ul a:hover { color: var(--blue); }
.foot .brand { color: var(--ink); margin: 0 0 12px; }
.foot .contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-weight: 700; }
.foot .contact-line .ico { width: 40px; height: 40px; border-radius: 12px; }
.foot .contact-line .ico svg { width: 20px; height: 20px; }
.foot .contact-line span { padding-top: 8px; line-height: 1.45; }
@media (min-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot { grid-template-columns: 1.1fr 1.2fr 1.4fr; } }

/* ---------- Phones: nothing wider than the screen ----------
   (big system text, narrow phones: long words used to push cards and the footer past the edge) */
@media (max-width: 959px) {
  html { overflow-x: clip; }
  .site-header .wrap > * { flex-shrink: 0; }
  .site-header .brand { flex-shrink: 1; min-width: 0; }
  .site-header .brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .logo-tile, .contact-tile .big, .info-tile, .card h2, .card h3 { overflow-wrap: anywhere; }
  .svc > span, .detail-title h2, .contact-tile > div, .logo-tile > * { min-width: 0; }
  .detail-title h2 { overflow-wrap: anywhere; }
}
@media (max-width: 719px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot .contact-line span { min-width: 0; overflow-wrap: anywhere; }
}

/* ---------- iPhone Safari 26: its top bar takes its colour from a solid strip at the screen's top edge ----------
   A thin strip in the colour of the top of the page's photo, melting into it; once the header turns white,
   the strip turns white with it. The fade is gone before the page title starts. iPhone/iPad Safari only. */
@supports (-webkit-touch-callout: none) {
  body::before {
    content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: 49; pointer-events: none;
    height: max(18px, env(safe-area-inset-top));
    background-color: var(--edge, #4E5A6A);
  }
  body::after {
    content: ""; position: fixed; left: 0; right: 0; top: max(18px, env(safe-area-inset-top)); z-index: 49; pointer-events: none;
    height: 160px; background: linear-gradient(var(--edge, #4E5A6A), color-mix(in srgb, var(--edge, #4E5A6A) 40%, transparent) 35%, rgba(0, 0, 0, 0) 70%);
    transition: opacity .35s var(--ease);
  }
  body:has(.hero-media img[src*="home-"]) { --edge: #545D6D; }
  body:has(.hero-media img[src*="services-banner"]) { --edge: #455467; }
  body:has(.hero-media img[src*="customers-banner"]) { --edge: #0C2B4C; }
  body:has(.hero-media img[src*="about-banner"]) { --edge: #4E5564; }
  body:has(.hero-media img[src*="contact-banner"]) { --edge: #3F495B; }
  body:has(.site-header.is-solid)::after { opacity: 0; }
}

/* ---------- Image arrival: blurred preview, then the photo fades in ---------- */
.js img.fade { opacity: 0; transition: opacity .6s var(--ease); }
.js img.fade.loaded { opacity: 1; }
.js img.fade.instant { transition: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px) scale(.985); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--spring); transition-delay: var(--d, 0s); }
.js .reveal.in.lift-hover, .js a.card.reveal.in { transition: opacity .7s var(--ease), transform .45s var(--spring), box-shadow .3s var(--ease); }
.js .hero-inner > * { animation: rise .8s var(--spring) both; }
.js .hero-inner > *:nth-child(2) { animation-delay: .08s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .16s; }

/* Page fade-in fallback + view transitions */
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .slide img { transform: none !important; }
}
