/* ============================================================
   EDAP Technology — Prototype design system (v3)
   Inspired by Stripe's layout language: light display type,
   navy ink, gradient ribbon, framed guides, bento cards.
   ============================================================ */

:root {
  --navy: #0A2540;
  --navy-2: #0D2E4F;
  --slate: #425466;
  --slate-2: #6B7C93;
  --muted: #8898AA;
  --line: #E3E8EE;
  --line-2: #EEF2F6;
  --bg: #FFFFFF;
  --bg-2: #F6F9FC;
  --bg-3: #EEF3F8;

  --accent: #5B4FF0;
  --accent-hover: #4A3FE0;
  --accent-soft: #EFEEFF;
  --coral: #FF7A59;
  --ribbon: linear-gradient(110deg, #6AA8FF 0%, #7C6CFF 28%, #C452F0 52%, #FF5E8A 72%, #FF9A3D 90%, #FFC94A 100%);

  --ok: #0E9F6E;
  --warn: #D97706;
  --err: #DF1B41;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;

  --max: 1400px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --r: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --header-h: 66px;
  --shadow-card: 0 2px 5px -1px rgba(50,50,93,.18), 0 1px 3px -1px rgba(0,0,0,.2);
  --shadow-float: 0 30px 60px -12px rgba(50,50,93,.25), 0 18px 36px -18px rgba(0,0,0,.3);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* aliases used by chat.css */
  --ink: var(--navy);
  --ink-3: var(--navy-2);
  --text: var(--navy);
  --text-2: var(--slate);
  --text-3: var(--slate-2);
  --accent-grad: linear-gradient(135deg, #7C6CFF 0%, #5B4FF0 60%, #4A3FE0 100%);
}
.chev { display: inline-block; width: 10px; height: 10px; flex-shrink: 0; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--slate); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.display { font-size: clamp(2.1rem, 4.2vw, 3.25rem); font-weight: 300; line-height: 1.16; letter-spacing: -0.025em; max-width: 21em; }
.display .soft { color: var(--slate-2); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 400; letter-spacing: -0.025em; }
h2 .soft, h1 .soft { color: var(--slate-2); }
h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
h4 { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; font-family: var(--font); }
p { color: var(--slate); }
.lede { font-size: 1.125rem; line-height: 1.6; max-width: 38rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; }
.kicker svg { width: 16px; height: 16px; }
.num { font-variant-numeric: tabular-nums; }
.dark { background: var(--navy); color: #ADBDCC; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: #ADBDCC; }
.dark .soft { color: #6B8AA8; }
.dark .kicker { color: #9C95FF; }

/* ---------- Layout (borderless sections; spacing + background tint separate them) ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.frame { position: relative; }
.inner { padding: 0 clamp(0rem, 2.5vw, 2rem); position: relative; z-index: 2; }
.section { padding: var(--section) 0; position: relative; }
.rule { }
.bg-2 { background: var(--bg-2); }

.head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 3rem; }
.head p { font-size: 1.0625rem; }
.head .actions { margin-top: 1.25rem; }
.head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

.grid { display: grid; gap: 1rem; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  height: 40px; padding: 0 1rem; border-radius: var(--r); font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn .chev { width: 10px; height: 10px; transition: transform .15s var(--ease); }
.btn .chev path:last-child { opacity: 0; transition: opacity .15s; }
.btn:hover .chev { transform: translateX(3px); }
.btn:hover .chev path:last-child { opacity: 1; }
.btn svg:not(.chev) { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: #fff; color: var(--accent); border-color: #D3D8F8; }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { color: var(--slate-2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #F0F3FF; }
.dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.dark .btn-outline:hover { border-color: #fff; }
.btn-sm { height: 34px; padding: 0 0.85rem; font-size: 0.875rem; }
.btn-lg { height: 44px; padding: 0 1.2rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9375rem; font-weight: 500; color: var(--accent); }
.link .chev { width: 10px; height: 10px; transition: transform .15s var(--ease); }
.link .chev path:last-child { opacity: 0; transition: opacity .15s; }
.link:hover .chev, a:hover > .link .chev { transform: translateX(3px); }
.link:hover .chev path:last-child, a:hover > .link .chev path:last-child { opacity: 1; }
.dark .link { color: #9C95FF; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--navy); color: #fff; font-size: 0.8125rem; text-align: center; padding: 0.55rem var(--gutter); }
.announce a { font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
.announce a:hover { color: #C9C4FF; }
.announce b { font-weight: 500; color: #ADBDCC; }
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .25s, border-color .25s, backdrop-filter .25s; }
/* At the top of the page the navbar is transparent and the hero (with its clouds) runs underneath it */
.header:not(.scrolled):not(.mobile-open) { background-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
main > section:first-child { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 0.3rem; height: 38px; padding: 0 0.7rem; border-radius: var(--r); font-size: 0.9375rem; font-weight: 500; color: var(--navy); transition: color .15s; }
.nav-link svg { width: 13px; height: 13px; transition: transform .2s; stroke-width: 2.4; }
.nav-link:hover, .nav-item.open > .nav-link { color: var(--slate-2); }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.header-cta { display: flex; gap: 0.5rem; margin-left: auto; align-items: center; }

.menu {
  position: absolute; top: calc(100% + 20px); left: -0.25rem; width: 320px; background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(10,37,64,.07), 0 16px 40px -12px rgba(10,37,64,.18);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .2s var(--ease), visibility .16s;
}
.menu::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge */
.nav-item.open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); padding: 0 0.65rem 0.5rem; }
.menu-link { display: flex; gap: 0.7rem; padding: 0.55rem 0.65rem; border-radius: 8px; align-items: flex-start; transition: background .12s; }
.menu-link:hover { background: var(--bg-2); }
.menu-link .mi { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; color: var(--slate-2); stroke-width: 1.8; transition: color .12s; }
.menu-link:hover .mi { color: var(--accent); }
.menu-link strong { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--navy); line-height: 1.35; }
.menu-link div > span { display: block; font-size: 0.8125rem; color: var(--slate-2); line-height: 1.4; margin-top: 1px; }
.ai-tag { font-style: normal; font-size: 0.625rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 0.3rem; line-height: 1.5; }

/* Products mega menu: centred, three plain columns, hairline footer */
/* Anchored to the nav (not centred on the header) so it opens right under "Products";
   -0.8rem lines the first column's icons up with the "Products" label. */
.nav { position: relative; }
.nav-item--mega { position: static; }
.mega { left: -0.8rem; right: auto; margin: 0; top: calc(100% + 20px); width: min(880px, calc(100vw - 220px)); padding: 0; }
.mega-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 1.25rem 0.85rem 0.85rem; }
.mega-group { display: grid; gap: 1px; align-content: start; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 1.5rem; padding: 0.85rem 0 1rem; border-top: 1px solid var(--line-2); font-size: 0.8125rem; color: var(--slate-2); }
.mega-foot-links { display: flex; gap: 1.25rem; }
.mega-foot .link { font-size: 0.8125rem; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r); color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; }

/* tones */
.tone-indigo  { --tone-bg: #EFEEFF; --tone-fg: #5B4FF0; }
.tone-teal    { --tone-bg: #E3F8F5; --tone-fg: #0D9488; }
.tone-sky     { --tone-bg: #E6F3FF; --tone-fg: #0B7BD4; }
.tone-rose    { --tone-bg: #FFEBEF; --tone-fg: #DF1B41; }
.tone-amber   { --tone-bg: #FFF4DC; --tone-fg: #C27A00; }
.tone-orange  { --tone-bg: #FFEFE6; --tone-fg: #E5591B; }
.tone-emerald { --tone-bg: #E4F8EE; --tone-fg: #0E9F6E; }
.tone-cyan    { --tone-bg: #E2F7FB; --tone-fg: #0891B2; }
.tone-violet  { --tone-bg: #F3ECFF; --tone-fg: #8B3DFF; }
.tone-fuchsia { --tone-bg: #FCEBFF; --tone-fg: #C026D3; }
.tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--tone-bg, var(--accent-soft)); color: var(--tone-fg, var(--accent)); }
.tile svg { width: 20px; height: 20px; }

/* ---------- Hero + ribbon ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* Vanta.js NET background (hero + page heroes) */
.vanta-bg { position: absolute !important; inset: 0; z-index: -1; }
.vanta-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.4) 38%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0) 85%, #fff 100%);
}
.hero .inner { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.hero .display { margin-bottom: 2.25rem; }
.hero-meta { font-size: 0.875rem; color: var(--slate); margin-bottom: 1.75rem; }
.hero-meta .dot { display: inline-block; margin-right: 0.5rem; vertical-align: 1px; }
.hero-meta b { color: var(--slate-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(14,159,110,.15); }
.ribbon {
  position: absolute; z-index: -1; pointer-events: none; top: -18%; right: -20%; width: min(1100px, 82vw); height: 140%;
  mask-image: linear-gradient(100deg, transparent 26%, #000 52%); -webkit-mask-image: linear-gradient(100deg, transparent 26%, #000 52%);
}
.ribbon svg { width: 100%; height: 100%; }
.ribbon .flow-a { animation: drift 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.ribbon .flow-b { animation: drift 24s ease-in-out infinite alternate-reverse; transform-origin: 40% 60%; }
@keyframes drift { from { transform: rotate(-3deg) translate(-10px, 0); } to { transform: rotate(4deg) translate(20px, 16px); } }
.ribbon--sm { width: min(820px, 70vw); top: -40%; right: -18%; }

/* logo row */
.logo-row { display: grid; grid-template-columns: auto repeat(6, 1fr); align-items: center; background: transparent; backdrop-filter: blur(6px); position: relative; z-index: 2; }
.logo-row > * { height: 84px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo-row .lr-label { font-family: var(--font); font-size: 0.8125rem; font-weight: 500; color: var(--slate-2); padding: 0 1.5rem 0 clamp(0rem, 2.5vw, 2rem); justify-content: flex-start; }
.logo-row img { height: 30px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .8; }
.logo-row svg { width: 20px; height: 20px; color: var(--slate-2); }

/* ---------- Bento cards ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
a.bcard:hover { box-shadow: 0 0 0 1px #D3D8F8, var(--shadow-float); transform: translateY(-2px); }
.bcard--wide { grid-column: span 2; }
.bcard-art { position: relative; flex: 1; min-height: 260px; overflow: hidden; }
.bcard-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.4rem 1.4rem; border-top: 1px solid var(--line-2); }
.bcard-foot h3 { font-size: 1.1875rem; font-weight: 400; max-width: 22ch; }
.bcard-foot p { font-size: 0.875rem; margin-top: 0.25rem; color: var(--slate-2); }
.plus { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; transition: background .15s, color .15s, transform .25s var(--ease); }
.plus svg { width: 15px; height: 15px; stroke-width: 2.4; }
a.bcard:hover .plus { background: var(--accent); color: #fff; transform: rotate(90deg); }

/* gradient art backgrounds */
.art-1 { background: radial-gradient(120% 90% at 0% 100%, #FFD6A8 0%, transparent 55%), radial-gradient(90% 90% at 100% 0%, #C9B8FF 0%, transparent 60%), linear-gradient(135deg, #FFE7F0, #EDE9FF); }
.art-2 { background: radial-gradient(80% 80% at 100% 100%, #A6E1FF, transparent 60%), linear-gradient(160deg, #EEF4FF, #F6F0FF); }
.art-3 { background: radial-gradient(90% 90% at 0% 0%, #FFC7D6, transparent 60%), linear-gradient(160deg, #FFF3EC, #FFE9F2); }
.art-4 { background: radial-gradient(90% 90% at 100% 0%, #B7F0DA, transparent 60%), linear-gradient(160deg, #EFFBF6, #EEF6FF); }
.art-5 { background: radial-gradient(90% 90% at 0% 100%, #D9C9FF, transparent 60%), linear-gradient(160deg, #F5F1FF, #EAF2FF); }
.art-photo { background-size: cover; background-position: center; }

/* floating UI mock cards */
.ui { position: absolute; background: #fff; border-radius: 10px; box-shadow: var(--shadow-float); font-size: 11.5px; color: var(--navy); padding: 0.9rem 1rem; }
.ui small { display: block; color: var(--slate-2); font-size: 10.5px; }
.ui b { font-weight: 600; }
.ui-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 12.5px; margin-bottom: 0.6rem; }
.ui-title .tile { width: 24px; height: 24px; border-radius: 6px; }
.ui-title .tile svg { width: 13px; height: 13px; }
.tree { display: grid; gap: 3px; }
.tree div { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.45rem; border-radius: 5px; }
.tree div.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tree svg { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
.tree div.on svg { color: var(--accent); }
.tree .l1 { padding-left: 1.2rem; } .tree .l2 { padding-left: 2.1rem; } .tree .l3 { padding-left: 3rem; }
.bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; margin-top: 0.35rem; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--ribbon); }
.st { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.st-ok { background: #E4F8EE; color: #0B7A55; }
.st-warn { background: #FFF4DC; color: #9A5B00; }
.st-err { background: #FFEBEF; color: #B3143A; }
.st-info { background: var(--accent-soft); color: var(--accent); }
.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: 58px 1fr auto; gap: 0.5rem; align-items: center; padding: 0.38rem 0; border-top: 1px solid var(--line-2); }
.rows > div:first-child { border-top: 0; }
.rows code { font-family: ui-monospace, monospace; font-size: 10.5px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 58px; margin-top: 0.6rem; }
.spark i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #8B7CFF, #5B4FF0); opacity: .9; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; }
.stat { padding: 0 1.75rem; border-left: 1px solid var(--line); position: relative; }
.stat::before { content: ''; position: absolute; left: -1px; top: 0; height: 28px; width: 1px; background: var(--accent); }
.stat-value { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 300; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: 0.9375rem; color: var(--slate); margin-top: 0.5rem; max-width: 16rem; }
.dark .stat { border-color: rgba(255,255,255,.12); }
.dark .stat::before { background: #9C95FF; }
.dark .stat-value { color: #fff; }

/* Photo cards row */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,37,64,.85)); }
.photo figcaption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 1; color: #fff; }
.photo figcaption strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 400; }
.photo figcaption span { font-size: 0.8125rem; color: #C8D4E0; }

/* Feature list (2 col with icons) */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
.features--3 { grid-template-columns: repeat(3, 1fr); }
.feature svg.fi { width: 22px; height: 22px; color: var(--accent); margin-bottom: 1rem; }
.dark .feature svg.fi { color: #9C95FF; }
.feature h3 { font-size: 1rem; font-weight: 600; font-family: var(--font); margin-bottom: 0.4rem; position: relative; }
.feature h3::before { content: ''; position: absolute; left: calc(-1 * clamp(0rem, 2.5vw, 2rem) - 1px); top: 2px; bottom: 2px; width: 1px; background: var(--accent); display: none; }
.feature p { font-size: 0.9375rem; }

/* Service cards */
.svc { display: grid; grid-template-columns: 1fr; grid-template-rows: 220px 1fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fff; transition: box-shadow .25s; }
.svc:hover { box-shadow: 0 0 0 1px #D3D8F8, var(--shadow-float); }
.svc-img { min-height: 260px; background-size: cover; background-position: center; }
.svc-body { padding: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.svc-body h3 { font-size: 1.5rem; font-weight: 400; }
.svc-body ul { display: grid; gap: 0.4rem; margin: 0.5rem 0 1rem; font-size: 0.9375rem; color: var(--slate); }
.svc-body li { display: flex; gap: 0.5rem; }
.svc-body li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex-shrink: 0; stroke-width: 2.4; }
.svc-body .link { margin-top: auto; }

/* Tech logos */
.tech { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.tech > div { height: 96px; display: grid; place-items: center; background: #fff; border-radius: var(--r-xl); }
.tech img { height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.tech > div:hover img { filter: none; opacity: 1; }

/* CTA (Stripe-style closing) */
.closing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.closing h2 { margin-bottom: 1rem; }
.closing-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.closing-links > div { position: relative; }
.closing-links svg.fi { width: 24px; height: 24px; color: var(--accent); margin-bottom: 0.9rem; }
.closing-links h3 { font-size: 1rem; font-weight: 600; font-family: var(--font); margin-bottom: 0.35rem; }
.closing-links p { font-size: 0.9375rem; margin-bottom: 0.8rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero .inner { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 15em; margin-bottom: 1.25rem; }
.crumbs { display: flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; color: var(--slate-2); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--navy); }
.crumbs svg { width: 13px; height: 13px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }

/* ---------- Accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; text-align: left; font-size: 1.0625rem; font-weight: 500; color: var(--navy); font-family: var(--display); }
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; transition: transform .25s var(--ease); stroke-width: 2.2; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.3rem; max-width: 46rem; font-size: 0.9375rem; }
.faq-a a { color: var(--accent); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.label { font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.label .req { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; height: 42px; padding: 0 0.85rem; background: #fff; border: 0; border-radius: var(--r); font-size: 0.9375rem; color: var(--navy);
  box-shadow: 0 0 0 1px #DCE2EA, 0 1px 1px rgba(0,0,0,.04); transition: box-shadow .15s;
}
.input::placeholder { color: #A3ACB9; }
.input:hover { box-shadow: 0 0 0 1px #C4CCD8, 0 1px 1px rgba(0,0,0,.04); }
.input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(91,79,240,.18); }
textarea.input { height: auto; padding: 0.7rem 0.85rem; resize: vertical; min-height: 120px; }
select.input { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
.form-note { font-size: 0.8125rem; color: var(--slate-2); }
.form-note a { color: var(--accent); }
.captcha-placeholder { height: 78px; width: 304px; max-width: 100%; border: 1px dashed #DCE2EA; border-radius: var(--r); display: grid; place-items: center; font-size: 0.75rem; color: var(--muted); background: var(--bg-2); }
.form-card { background: #fff; border-radius: var(--r-xl); padding: 2rem; box-shadow: 0 0 0 1px rgba(10,37,64,.05), var(--shadow-float); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; padding: 1.75rem 1rem; border: 1px dashed #C4CCD8; border-radius: var(--r-lg); cursor: pointer; background: var(--bg-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop > svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 0.25rem; }
.drop p { font-size: 0.875rem; }
.drop p u { color: var(--accent); text-underline-offset: 2px; }
.drop small { font-size: 0.75rem; color: var(--slate-2); }
.file-chip { display: none; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; border-radius: var(--r); font-size: 0.875rem; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); color: var(--navy); }
.file-chip svg { width: 18px; height: 18px; color: var(--accent); }
.file-chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r); color: var(--slate-2); }
.file-chip button svg { color: inherit; }
.file-chip button:hover { background: var(--bg-3); }

.bullets { display: grid; gap: 1.25rem; margin-top: 2rem; }
.bullets li { display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; }
.bullets li svg { width: 22px; height: 22px; color: var(--accent); }
.bullets strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.9375rem; }
.bullets span { font-size: 0.9375rem; }
.contact-lines { display: grid; gap: 0.25rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.contact-lines a, .contact-lines span { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; color: var(--navy); }
.contact-lines a:hover { color: var(--accent); }
.contact-lines svg { width: 17px; height: 17px; color: var(--slate-2); }
.socials { display: flex; gap: 0.5rem; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); color: var(--slate-2); box-shadow: 0 0 0 1px var(--line); background: #fff; transition: color .15s, box-shadow .15s; }
.socials a:hover { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.socials svg { width: 16px; height: 16px; }

.empty { border-radius: var(--r-xl); padding: 3rem 2rem; text-align: center; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.empty h3 { font-size: 1.35rem; font-weight: 400; }
.empty p { max-width: 32rem; font-size: 0.9375rem; }

.aside-card { border-radius: var(--r-xl); padding: 1.6rem; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.aside-card h4 { margin-bottom: 0.9rem; color: var(--navy); }
.glance { display: grid; gap: 0.6rem; }
.glance li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.9375rem; color: var(--navy); }
.glance svg { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.6; flex-shrink: 0; }
.related { display: grid; }
.related a { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-top: 1px solid var(--line-2); }
.related a:first-child { border-top: 0; padding-top: 0; }
.related b { display: block; color: var(--navy); font-weight: 500; font-size: 0.9375rem; }
.related small { color: var(--slate-2); font-size: 0.8125rem; }
.related .tile { width: 34px; height: 34px; border-radius: 8px; }
.related .tile svg { width: 17px; height: 17px; }
.related a:hover b { color: var(--accent); }

/* ---------- Capabilities content (from EDAP Capabilities & Deliveries 2026) ---------- */
/* What we offer */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.offer { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem; border-radius: var(--r-xl); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.offer:hover { box-shadow: 0 0 0 1px #D3D8F8, var(--shadow-float); transform: translateY(-2px); }
.offer .tile { margin-bottom: 0.75rem; }
.offer h3 { font-size: 1.125rem; }
.offer p { font-size: 0.9375rem; color: var(--slate-2); }
.offer .link { margin-top: auto; padding-top: 0.75rem; }

/* UI mock bits */
.checklist { display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.45rem; border-radius: 6px; background: var(--bg-2); color: var(--slate); }
.checklist li svg { width: 13px; height: 13px; color: var(--muted); }
.checklist li.done { color: var(--navy); }
.checklist li.done svg { color: #fff; background: var(--ok); border-radius: 50%; padding: 2px; stroke-width: 3; }
.ui-btn { margin-top: 0.6rem; text-align: center; padding: 0.45rem; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; font-size: 11px; }
.mini-steps { display: flex; gap: 4px; counter-reset: ms; }
.mini-steps li { flex: 1; counter-increment: ms; text-align: center; font-size: 9.5px; color: var(--slate-2); }
.mini-steps li::before { content: counter(ms); display: grid; place-items: center; width: 20px; height: 20px; margin: 0 auto 4px; border-radius: 50%; background: var(--bg-3); color: var(--slate-2); font-weight: 600; font-size: 10px; }
.mini-steps li.done::before { background: var(--ok); color: #fff; }
.mini-steps li.on { color: var(--accent); font-weight: 600; }
.mini-steps li.on::before { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }

/* Numbered process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: none; position: relative; }
.steps::before { content: ''; position: absolute; left: 22px; right: 22px; top: 21px; height: 1px; background: linear-gradient(90deg, var(--accent), #C9C4FF); opacity: .5; }
.steps li { position: relative; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); font-family: var(--display); font-weight: 500; font-size: 1.05rem; box-shadow: 0 0 0 1px #D3D8F8, 0 6px 16px -8px rgba(91,79,240,.5); margin-bottom: 1rem; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.steps p { font-size: 0.9375rem; color: var(--slate-2); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }

/* AI section */
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-cols > div { padding: 1.5rem; border-radius: var(--r-xl); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ai-cols h4 { color: #fff; margin-bottom: 1rem; font-size: 0.9375rem; }
.ai-list { display: grid; gap: 0.75rem; }
.ai-list li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.9375rem; color: #D5DEE8; }
.ai-list svg { width: 18px; height: 18px; color: #9C95FF; flex-shrink: 0; }

/* Services and people lists */
.svc-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-list { display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--r-xl); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.svc-list .tile { margin-bottom: 1rem; }
.svc-list h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.svc-list ul { display: grid; gap: 0.55rem; margin-bottom: 1.5rem; }
.svc-list li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; color: var(--slate); }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.svc-list .link { margin-top: auto; }

/* Why EDAP */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2rem; }
.why svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 0.8rem; }
.why h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }
.why p { font-size: 0.9375rem; color: var(--slate-2); }
.team-card { border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-float); }
.team-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
.team-meta { display: grid; grid-template-columns: 1fr 1fr; }
.team-meta > div { padding: 1.1rem 1.25rem; }
.team-meta > div + div { box-shadow: inset 1px 0 0 var(--line-2); }
.team-meta b { display: block; color: var(--navy); font-weight: 600; font-size: 0.9375rem; }
.team-meta span { font-size: 0.8125rem; color: var(--slate-2); }

/* ---------- Footer ---------- */
.footer { padding: 4rem 0 2.5rem; font-size: 0.875rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 17rem; margin-bottom: 1.25rem; font-size: 0.875rem; color: var(--slate-2); }
.footer h5 { font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.9rem; }
.footer li { margin-bottom: 0.5rem; }
.footer li a { color: var(--slate); }
.footer li a:hover { color: var(--navy); }
.footer-bottom { margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--slate-2); font-size: 0.8125rem; }
.footer-bottom .iso { display: flex; align-items: center; gap: 0.6rem; }
.footer-bottom .iso img { height: 30px; width: auto; }
.footer-bottom a:hover { color: var(--navy); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 200; display: grid; gap: 0.5rem; }
.toast { display: flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; padding: 0.75rem 1.05rem; border-radius: var(--r-lg); font-size: 0.875rem; box-shadow: var(--shadow-float); animation: toastIn .3s var(--ease); }
.toast svg { width: 17px; height: 17px; }
.toast.ok svg { color: #4ADE80; }
.toast.err svg { color: #FF8BA0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .logo-row .lr-label { grid-column: 1 / -1; height: 44px; justify-content: center; padding: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .offers, .svc-lists { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps::before { display: none; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header.mobile-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header.mobile-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1rem var(--gutter) 5.5rem; overflow-y: auto; }
  .header.mobile-open .header-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0.9rem var(--gutter) 1.1rem; background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -12px 24px -12px rgba(10,37,64,.12); }
  .header.mobile-open .nav { top: var(--menu-top, var(--header-h)); }
  .header.mobile-open .header-cta .btn { flex: 1; }
  .header.mobile-open .header-cta .btn-ghost { box-shadow: 0 0 0 1px var(--line); }
  .header.mobile-open .nav-link { height: 52px; width: 100%; justify-content: space-between; font-size: 1rem; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 0; }
  .header.mobile-open .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0.25rem 0 0.75rem; display: none; width: auto; }
  .header.mobile-open .nav-item.open > .menu { display: block; }
  .header.mobile-open .mega-foot, .header.mobile-open .menu-label { display: none; }
  .header.mobile-open .mega { margin: 0; }
  .header.mobile-open .mega-main { grid-template-columns: 1fr; padding: 0; gap: 0; }
  body.menu-open .ec-fab { display: none; }
  .head, .split, .split-wide, .closing { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard--wide { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .photos { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-img { min-height: 200px; }
  .g-3, .g-4 { grid-template-columns: 1fr 1fr; }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .ribbon { width: 120vw; right: -50%; top: -30%; opacity: .75; }
}
@media (max-width: 640px) {
  .offers, .svc-lists, .ai-cols, .why, .steps, .steps--3, .team-meta { grid-template-columns: 1fr; }

  .bento, .g-2, .g-3, .g-4, .form-row, .features, .closing-links { grid-template-columns: 1fr; }
  .bcard--wide { grid-column: auto; }
  .bcard-art { min-height: 230px; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .logo-row > :last-child { display: none; }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 0 1rem; }
  .form-card { padding: 1.35rem; }
  .actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ui.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* Careers role chips */
.role-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.role-chips span { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 0.9375rem; color: var(--navy); }
.role-chips svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 640px) {
  .steps { gap: 1.25rem; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 1rem; align-items: start; }
  .steps .step-n { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .steps h3 { margin: 0.45rem 0 0.1rem; }
}

/* ============================================================
   Minimal icon system — no coloured tiles, thin monochrome strokes,
   icons only where they aid scanning (overrides earlier rules).
   ============================================================ */
.tile { width: auto; height: auto; border-radius: 0; background: none; color: var(--navy); }
.tile svg { width: 22px; height: 22px; stroke-width: 1.5; }
.offer .tile, .svc-list .tile, .card .tile { margin-bottom: 1.25rem; }
.ui .tile, .ui-title .tile { color: var(--slate-2); }
.ui-title .tile svg { width: 14px; height: 14px; }
.related .tile { width: auto; height: auto; }
.related .tile svg { width: 18px; height: 18px; }
.empty .tile { width: auto; height: auto; margin-bottom: 0.25rem; }
.feature svg.fi, .closing-links svg.fi { stroke-width: 1.5; color: var(--navy); }
.dark .feature svg.fi { color: #C9D3DE; }
.bullets li svg, .contact-lines svg, .glance svg { color: var(--slate-2); }
.glance svg { background: none; padding: 0; stroke-width: 2; }
.menu-link:hover .mi { color: var(--navy); }
.offer:hover, .svc-list:hover { box-shadow: 0 0 0 1px #D9DEE6; transform: none; }
.why > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.why h3 { margin-top: 0; }
.ai-list li { gap: 0; }
.ai-list li::before { content: ''; width: 14px; height: 1px; background: #6B7C93; margin-right: 0.75rem; flex-shrink: 0; }
.role-chips span { padding: 0.55rem 1rem; }
.tile { display: inline-flex; align-self: flex-start; justify-content: flex-start; align-items: center; place-items: initial; }

/* Team photo: no card frame or shadow — rounded photo with plain captions underneath */
.team-card { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.team-card img { border-radius: var(--r-xl); aspect-ratio: 3 / 2; object-position: center 40%; }
.team-meta { grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.team-meta > div { padding: 0.9rem 0 0; border-top: 1px solid var(--line); }
.team-meta > div + div { box-shadow: none; }
.team-meta b { font-family: var(--display); font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.2rem; }
.team-meta span { font-size: 0.875rem; line-height: 1.5; }

/* Hero cloud background: pre-rendered image + compositor-only drift (transform), so it costs
   nothing per frame. ::before holds the image, ::after (above) is the white readability fade. */
.vanta-bg { overflow: hidden; background: linear-gradient(180deg, #A9A2FF 0%, #CFCBFF 45%, #F1F0FF 80%, #FFFFFF 100%); }
.vanta-bg::before {
  content: ''; position: absolute; inset: -6% -6% -6% -6%; z-index: 0;
  background: url("../img/hero-clouds.35d82e97e747.jpg") center 42% / cover no-repeat;
  will-change: transform;
  animation: cloudDrift 60s ease-in-out infinite alternate;
}
@keyframes cloudDrift {
  from { transform: translate3d(-2.5%, 0, 0) scale(1.02); }
  to   { transform: translate3d(2.5%, -1.5%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .vanta-bg::before { animation: none; } }

/* Small sub-headings (semantic h3 styled like the old h4 labels) */
.sub-h { font-family: var(--font); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--navy); }
.ai-cols .sub-h { color: #fff; margin-bottom: 1rem; }
.aside-card .sub-h { margin-bottom: 0.9rem; }

/* ---------- QA fixes ---------- */
/* Header and footer line up with page content (which sits inside .inner padding) */
.header .container, .footer .container { padding-left: calc(var(--gutter) + clamp(0rem, 2.5vw, 2rem)); padding-right: calc(var(--gutter) + clamp(0rem, 2.5vw, 2rem)); }
/* Technology logos: full colour so pale marks (Dart, Firebase, jQuery) stay legible */
.tech img { filter: none; opacity: 1; height: 40px; }
@media (max-width: 1060px) {
  /* Logo row: compact wrapped row instead of a tall grid */
  .logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem; padding: 1.25rem 0; }
  .logo-row > * { height: auto; font-size: 0.95rem; }
  .logo-row .lr-label { flex-basis: 100%; height: auto; justify-content: center; padding: 0 0 0.25rem; }
  .logo-row > :last-child { display: flex; }
}
@media (max-width: 640px) {
  /* Wide bento mock (work order) needs more room so its button isn't cut off */
  .bcard--wide .bcard-art { min-height: 330px; }
}

/* Why EDAP as a single row of four (no photo) */
.why--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .why--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why--4 { grid-template-columns: 1fr; } }

/* Product page helpers (ETAI screenshots, 4-step flows) */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.shot { margin: 0; }
.shot-img { border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 4 / 3; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.shot figcaption { margin-top: 1rem; }
.shot figcaption strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.shot figcaption span { font-size: 0.9375rem; }
@media (max-width: 960px) { .steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps--4, .shots { grid-template-columns: 1fr; } }
