/* Velion v3: "like Square". One stylesheet for the whole site.
   White pages, black type, grey cards, real photos, pill buttons.
   Blue is for text links and accordion plus signs only. No gradient outside the logo,
   no glow, no shadow colour, no monospace, no capitals labels. See README.md. */

/* 0. Metric-matched fallbacks: Arial resized to the metrics of Inter and Space Grotesk, so the swap to the web
   fonts (display=swap) does not move the layout (CLS). Values measured on the font files. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 106.6%; ascent-override: 90.9%; descent-override: 22.7%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 107.7%; ascent-override: 91.4%; descent-override: 27.1%; line-gap-override: 0%; }

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --bg: #FFFFFF;
  --ink: #0B0B0C;
  --ink-2: #5E5E66;
  --card: #F2F2F3;
  --line: #E3E3E6;
  --black: #000000;
  --blue: #2563EB;
  --on-dark: #FFFFFF;
  --on-dark-2: #B4B4BB;

  --f-display: "Space Grotesk", "Space Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Inter", "Inter Fallback", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(44px, 5.4vw + 8px, 88px);
  --fs-h2: clamp(36px, 3.4vw + 12px, 64px);
  --fs-h3: clamp(24px, 1vw + 16px, 32px);
  --fs-h4: 20px;
  --fs-lead: clamp(18px, .35vw + 16px, 21px);
  --fs-body: 17px;
  --fs-small: 14px;

  --maxw: 1200px;
  --gutter: 24px;
  --hdr: 72px;
  --section: clamp(80px, 9vw, 152px);
  --r-card: 24px;
  --r-img: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 640px) { :root { --gutter: 16px; --hdr: 64px; } }

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; } /* build.py wraps photos in <picture> (WebP + JPEG); the <img> keeps its layout */
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--f-display); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.01em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: #DBE6FD; }

.sr-only { position: absolute !important; 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(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* 3. Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section:not(.section-black):not(.section-grey) + .section:not(.section-black):not(.section-grey) { padding-top: 0; }
.section-black { background: var(--black); color: var(--on-dark); }
.section-grey { background: var(--card); }

/* Title on the left, paragraph on the right (square-05, 06, 07) */
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.head-split > p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); padding-top: .4em; max-width: 34em; }
.section-black .head-split > p { color: var(--on-dark-2); }
/* Title on the left, arrows on the right (square-03) */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 640px) { .head-row { flex-wrap: wrap; align-items: flex-start; } .head-row > .link-arrow { order: 2; } }
.head-center { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); }
.head-center > p { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); }
@media (max-width: 860px) {
  .head-split { grid-template-columns: 1fr; gap: 20px; }
  .head-split > p { padding-top: 0; }
}

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); line-height: 1.5; }
.note { font-size: var(--fs-small); color: var(--ink-2); margin-top: 24px; }
.eyebrow { font: 500 18px/1.3 var(--f-text); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 16px; }
.section-black .eyebrow { color: var(--on-dark); }

/* 4. Buttons and links --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2A2E; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--card); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #E9E9EC; }
.btn-line-white { border-color: #fff; color: #fff; }
.btn-line-white:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* "Explore ... ↗": dark text link with a small arrow; .link-blue for the blue version */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: inherit; }
.link-arrow::after { content: ""; width: 10px; height: 10px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3 2h5v5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3 2h5v5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover::after { transform: translate(2px, -2px); }
.link-blue { color: var(--blue); }
.prose a, a.u { color: var(--blue); text-underline-offset: 3px; }

/* Round arrow buttons for carousels */
.arrows { display: flex; gap: 12px; flex: none; }
.arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, opacity .2s;
}
.arrow:hover { background: #E6E6E9; }
.arrow[disabled] { opacity: .35; cursor: default; }
.arrow svg { width: 22px; height: 22px; }
.arrow.on-card { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.08); }

/* Pill links (square-05) */
.pill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.pill-link { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 500; text-align: center; transition: background-color .2s; }
.pill-link:hover { background: var(--card); }
@media (max-width: 860px) { .pill-grid { grid-template-columns: 1fr; gap: 12px; } }

/* 5. Header and menu ----------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); border-bottom: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 40px; padding-inline: clamp(16px, 2.5vw, 40px); }
/* Logo, monochrome (Gaspard 27/10): the square hexagon mark in currentColor, then the wordmark
   "VelionIntelligence" set solid in Space Grotesk, Velion 700 and Intelligence 400, same colour.
   Black on white, white on the photo hero and on black. The favicon keeps the original colours. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; color: inherit; }
.brand svg { width: 30px; height: 30px; flex: none; aspect-ratio: 1; }
.wm { font: 700 19px/1 var(--f-display); letter-spacing: -0.02em; color: inherit; }
.wm b { font-weight: 400; }
.section-black .brand { color: #fff; }
.hdr-nav { display: flex; gap: 28px; }
.hdr-nav a { font-weight: 500; font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.hdr-nav a:hover { border-bottom-color: currentColor; }
.hdr-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.hdr-cta { margin-left: auto; display: flex; gap: 12px; }
.hdr-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.hdr-burger i, .hdr-burger i::before, .hdr-burger i::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.hdr-burger i { top: 21px; }
.hdr-burger i::before, .hdr-burger i::after { content: ""; left: 0; }
.hdr-burger i::before { top: -7px; }
.hdr-burger i::after { top: 7px; }
.hdr-burger[aria-expanded="true"] i { background: transparent; }
.hdr-burger[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1060px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: block; }
}
.menu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.menu[hidden] { display: none; }
.menu-in { display: flex; flex-direction: column; }
.menu-in a { font: 500 clamp(30px, 8vw, 44px)/1.1 var(--f-display); letter-spacing: -0.03em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-in a[aria-current="page"] { color: var(--ink-2); }
.menu-foot { display: grid; gap: 12px; }
html.menu-open { overflow: hidden; }

/* Header over the photo hero (home, Gaspard 27/10, like squareup.com): transparent, white logo, links and
   pills, a dark veil of 35 % on the top 160 px of the photo for legibility. Once the hero is passed,
   site.js sets .is-solid and the white bar comes back (200 ms). Without JavaScript: the white bar. */
.hdr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); opacity: 0; transition: opacity .2s; }
html.js .page-home .hero-photo { margin-top: calc(-1 * var(--hdr)); min-height: max(620px, 100svh); }
html.js .page-home .hero-photo > .wrap { padding-top: calc(72px + var(--hdr)); }
html.js:not(.menu-open) .page-home .hdr:not(.is-solid) { background: transparent; color: #fff; }
html.js:not(.menu-open) .page-home .hdr:not(.is-solid)::before { opacity: 1; }
html.js:not(.menu-open) .page-home .hdr:not(.is-solid) .btn-line { border-color: #fff; color: #fff; }
html.js:not(.menu-open) .page-home .hdr:not(.is-solid) .btn-line:hover { background: rgba(255, 255, 255, .12); }
html.js:not(.menu-open) .page-home .hdr:not(.is-solid) .btn-dark { background: #fff; border-color: #fff; color: var(--ink); }
html.js:not(.menu-open) .page-home .hdr:not(.is-solid) .btn-dark:hover { background: rgba(255, 255, 255, .86); }

/* 6. Hero, full-screen photo (square-01) -------------------------------- */
.hero-photo { position: relative; min-height: max(620px, calc(100svh - var(--hdr))); max-height: 1000px; display: grid; color: #fff; overflow: hidden; background: #2b2b2b; }
.hero-photo > img, .hero-photo > picture > img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .5); }
.hero-photo > .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 72px; padding-bottom: 184px; }
.hero-photo h1 { max-width: 13em; }
.hero-photo .lead { color: rgba(255,255,255,.88); max-width: 38em; margin-top: 24px; }
.hero-photo .btn-row { margin-top: 40px; justify-content: center; }
/* Client logos under the hero, in a slow endless band (Gaspard 27/10, like 1Password and Headspace): the list twice
   side by side, both moving by their own width; grey logos on white; pauses on hover; still and wrapped under
   reduced motion. */
.hero-logos { position: relative; z-index: 1; min-width: 0; padding: 24px 0 calc(32px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .92) 35%); }
.hero-logos li { color: var(--ink); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { flex: none; display: flex; align-items: center; gap: 64px; padding-right: 64px; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.hero-logos li { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font: 500 13px/1.15 var(--f-text); }
.hero-logos img { height: 30px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1) brightness(.78); opacity: 1; }
.hero-logos img.tall { height: 40px; }
.hero-logos img.seal { height: 52px; max-width: 52px; }
.hero-logos li span { max-width: 7.5em; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 20px 48px; padding: 0 var(--gutter); flex-shrink: 1; }
  .marquee-track[aria-hidden] { display: none; }
}
@media (max-width: 900px) {
  .marquee-track { gap: 40px; padding-right: 40px; }
  .hero-logos img { height: 24px; max-width: 90px; }
  .hero-logos img.tall { height: 32px; }
  .hero-logos img.seal { height: 42px; max-width: 42px; }
}
@media (max-width: 520px) { .hero-logos li span { display: none; } .marquee-track { animation-duration: 38s; } }

/* Split hero for inner pages (square-08) */
.hero-split { padding-block: clamp(56px, 7vw, 120px); }
.hero-split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-split h1 { font-size: clamp(40px, 4.4vw + 8px, 76px); }
.hero-split .lead { margin-top: 24px; }
.hero-split .btn-row { margin-top: 36px; }
.hero-split .media { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 7 / 5; background: var(--card); }
.hero-split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-split .wrap { grid-template-columns: 1fr; } }

/* 7. Carousel (square-03, square-10) ------------------------------------- */
.carousel { position: relative; }
.carousel-track {
  position: relative; display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 100%; scroll-snap-align: start; }
@media (max-width: 640px) {
  .carousel-track { gap: 12px; }
  .carousel-track > * { flex-basis: 92%; }
}
/* Arrows on both sides of the card (square-10) */
.carousel .side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.carousel .side.prev { left: max(4px, calc((100% - var(--maxw)) / 2 - 28px)); }
.carousel .side.next { right: max(4px, calc((100% - var(--maxw)) / 2 - 28px)); }
@media (max-width: 860px) { .carousel .side { display: none; } .carousel-foot { display: flex !important; } }
.carousel-foot { display: none; justify-content: flex-end; margin-top: 20px; }

/* Use-case card: grey, text left, product shot right (square-03) */
.uc-card { background: var(--card); border-radius: var(--r-card); display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; overflow: hidden; }
.uc-text { padding: clamp(32px, 4vw, 72px); display: flex; flex-direction: column; }
.uc-text h3 { margin-top: auto; padding-top: 48px; font-size: clamp(26px, 1.6vw + 10px, 36px); max-width: 14em; }
.uc-text p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.uc-text .link-arrow { margin-top: 24px; }
.uc-shot { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 4vw, 64px); }
@media (max-width: 900px) {
  .uc-card { grid-template-columns: 1fr; min-height: 0; }
  .uc-text h3 { margin-top: 32px; padding-top: 0; }
  .uc-shot { padding: 0 16px 24px; }
}

/* 8. Product shots, static (HTML/CSS) ------------------------------------ */
/* A window: .shot > .shot-bar + .shot-body. A phone: .phone > .phone-top + .phone-body. */
.shot { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08); overflow: hidden; font-size: 14px; line-height: 1.45; }
.shot-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.shot-bar small { font-weight: 400; color: var(--ink-2); margin-left: auto; font-size: 13px; }
.app-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 600 12px/1 var(--f-text); flex: none; }
.app-teams { background: #5B5FC7; }
.app-hyland { background: var(--ink); }
.shot-body { padding: 18px; display: grid; gap: 14px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-text); background: #E4E4E8; color: var(--ink); }
.av.agent { background: var(--ink); color: #fff; }
.msg b { display: block; font-weight: 600; font-size: 13px; }
.msg b small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.msg p { margin-top: 2px; }
.mini-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 8px; display: grid; gap: 8px; }
.mini-card .mc-t { margin: 0; font: 600 14px/1.3 var(--f-text); }
.kv { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 13px; }
.kv span:last-child { color: var(--ink); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: #EEF3FE; color: #1E40AF; width: fit-content; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { background: #E8F5EC; color: #166534; }
.doc-ref { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); }
.doc-ref .doc-ico { width: 32px; height: 40px; border-radius: 4px; background: #fff; border: 1px solid var(--line); flex: none; position: relative; }
.doc-ref .doc-ico::after { content: ""; position: absolute; left: 7px; right: 7px; top: 10px; height: 2px; background: var(--line); box-shadow: 0 5px 0 var(--line), 0 10px 0 var(--line), 0 15px 0 var(--line); }
.doc-ref b { display: block; font-size: 13px; font-weight: 600; }
.doc-ref small { color: var(--ink-2); font-size: 12px; }
.ask { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); }

.phone { width: 300px; max-width: 100%; background: #fff; border-radius: 40px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.1); border: 1px solid var(--line); }
.phone-screen { border-radius: 31px; overflow: hidden; background: #EFEAE2; }
.phone-top { background: #fff; padding: 14px 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.phone-top .av { width: 34px; height: 34px; background: #DCE7DE; color: #1F5132; }
.phone-top b { font-size: 14px; display: block; }
.phone-top small { font-size: 12px; color: var(--ink-2); }
.phone-time { display: flex; justify-content: space-between; padding: 10px 22px 0; background: #fff; font: 600 13px/1 var(--f-text); }
.phone-body { padding: 16px 12px 22px; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; min-height: 330px; align-content: start; }
.bubble { max-width: 82%; padding: 8px 12px 8px; border-radius: 12px; background: #fff; justify-self: start; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.bubble.out { justify-self: end; background: #D9FDD3; }
.bubble time { display: block; text-align: right; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.phone-body .status { justify-self: center; margin-top: 8px; background: #fff; color: var(--ink); }
.phone-body .status::before { background: #16A34A; }

/* 9. Sectors, expanding panels on black (square-02) --------------------- */
.panels { display: flex; gap: 16px; height: clamp(480px, 46vw, 640px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: 4px; overflow: hidden; color: #fff; transition: flex-grow .6s var(--ease); background: #222; }
.panel.is-active { flex-grow: 4.2; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); transition: background-color .4s; }
.panel.is-active::after { background: rgba(0,0,0,.38); }
.panel-toggle { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: none; cursor: pointer; padding: 0; text-align: left; }
.panel.is-active .panel-toggle { pointer-events: none; }
.panel-name { position: absolute; z-index: 1; left: 20px; right: 16px; bottom: 28px; font: 500 22px/1.15 var(--f-display); letter-spacing: -0.02em; color: rgba(255,255,255,.82); }
.panel.is-active .panel-name { top: 32px; bottom: auto; left: 32px; right: 32px; color: #fff; font-size: clamp(30px, 2.4vw + 8px, 48px); line-height: 1.05; letter-spacing: -0.03em; max-width: 12em; }
.panel-body { position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.5); opacity: 0; visibility: hidden; transition: opacity .3s; }
.panel.is-active .panel-body { opacity: 1; visibility: visible; transition: opacity .5s .25s; }
.panel-body p { font-size: 18px; line-height: 1.45; max-width: 26em; }
.panel-body .link-arrow { flex: none; }
@media (max-width: 860px) {
  .panels { flex-direction: column; height: auto; gap: 10px; }
  .panel { flex: none; height: 96px; transition: height .5s var(--ease); }
  .panel.is-active { height: 440px; }
  .panel-name { left: 20px; bottom: auto; top: 50%; transform: translateY(-50%); font-size: 24px; }
  .panel.is-active .panel-name { top: 24px; left: 20px; transform: none; font-size: 32px; }
  .panel-body { left: 20px; right: 20px; bottom: 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .panel-body p { font-size: 16px; }
}

/* 10. Grey panel with photo (square-13 / square-08) ---------------------- */
.panel-grey { background: var(--card); border-radius: var(--r-card); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 64px); padding: clamp(28px, 5vw, 80px); align-items: center; }
.panel-grey h2 { font-size: clamp(36px, 3vw + 12px, 60px); }
.panel-grey .lead { margin-top: 24px; }
.panel-grey .btn-row { margin-top: 36px; }
.panel-grey .media { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 5; }
.panel-grey .media img { width: 100%; height: 100%; object-fit: cover; }
.tag-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.tag { display: inline-block; background: var(--ink); color: #fff; font: 600 13px/1 var(--f-text); padding: 7px 9px; border-radius: 4px; }
.tag-row b { font: 500 20px/1.2 var(--f-display); letter-spacing: -0.01em; }
.logo-pair { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.logo-pair .hyland { display: inline-flex; align-items: center; gap: 8px; font: 600 22px/1 var(--f-display); letter-spacing: -0.02em; }
.logo-pair .hyland img { height: 24px; width: auto; }
.logo-pair .nuxeo { height: 18px; width: auto; }
.logo-pair i { width: 1px; height: 28px; background: #C9C9CF; }
@media (max-width: 900px) {
  .panel-grey { grid-template-columns: 1fr; }
  .panel-grey .media { aspect-ratio: 4 / 3; order: -1; }
}

/* 11. Stats (square-09) -------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { border-left: 1px solid var(--line); padding: 8px clamp(20px, 4vw, 64px) 8px clamp(20px, 4vw, 64px); }
.stat-v { font: 500 clamp(64px, 6vw + 8px, 112px)/1 var(--f-display); letter-spacing: -0.045em; }
.stat-l { margin-top: 24px; font: 500 clamp(20px, .6vw + 15px, 26px)/1.3 var(--f-display); letter-spacing: -0.015em; max-width: 15em; }
.stat-n { margin-top: 20px; font-size: var(--fs-small); color: var(--ink-2); max-width: 26em; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; }
}

/* 12. Accordion cards (square-07) ---------------------------------------- */
.acc { display: grid; gap: 24px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.acc-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px clamp(24px, 3vw, 40px); cursor: pointer; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary h3 { font-size: clamp(22px, 1vw + 14px, 30px); }
.plus { position: relative; width: 26px; height: 26px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--blue); border-radius: 2px; transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
.acc-item[open] .plus::after { transform: rotate(0deg); }
.acc-body { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 0 clamp(24px, 3vw, 40px) 40px; margin-top: -8px; }
.acc-body .acc-intro { color: var(--ink-2); max-width: 22em; }
.acc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; padding-right: 50px; }
.acc-links a { font-weight: 600; font-size: 16px; }
.acc-links p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.acc-item summary:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
@media (max-width: 860px) {
  .acc-item summary { padding: 26px 20px; }
  .acc-body { grid-template-columns: 1fr; padding: 0 20px 28px; }
  .acc-links { grid-template-columns: 1fr; padding-right: 0; gap: 20px; }
}

/* 13. Case cards: white text card glued to a photo (square-10) ----------- */
.case-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-card); overflow: hidden; background: #fff; min-height: 540px; }
.case-text { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; }
.case-meta { font-size: 15px; color: var(--ink-2); }
.case-text h3 { margin-top: 16px; font-size: clamp(28px, 1.8vw + 12px, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.case-text > p { margin-top: 20px; color: var(--ink-2); max-width: 32em; }
.case-foot { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.case-client { display: grid; gap: 10px; }
.case-client img { height: 44px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; }
.case-client small { font-size: 13px; color: var(--ink-2); }
.case-photo { position: relative; min-height: 320px; }
.case-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; min-height: 0; }
  .case-photo { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
}

/* 14. Black text section (square-06) ------------------------------------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; }
.about-split .copy { display: grid; gap: 24px; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-2); }
.about-split .copy strong { color: #fff; font-weight: 500; }
.about-split .link-arrow { color: #fff; font-size: 17px; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }

/* The real Velion photo: 5:4, never crop the faces */
.about-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-img); margin-top: 16px; }
.hero-split .media.media-event { aspect-ratio: 5 / 4; }
.hero-split .media.media-event img { object-position: 50% 15%; }

/* Two rounded photos under a centred title (square-11) */
.photo-pair { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: var(--r-img); }
@media (max-width: 760px) { .photo-pair { grid-template-columns: 1fr; } }

/* 15. Cards and grids (square-04, square-12) ----------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
/* Visual on a grey square, then title, sentence, link (square-04) */
.tile .tile-media { background: var(--card); border-radius: var(--r-img); aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; }
.tile .tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile h3 { margin-top: 28px; font-size: clamp(22px, 1vw + 14px, 30px); }
.tile p { margin-top: 12px; color: var(--ink-2); }
.tile .link-arrow { margin-top: 20px; }

/* Partner cards */
.partner { background: var(--card); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; min-height: 260px; }
.partner-logo { height: 72px; display: flex; align-items: center; }
.partner-logo img { max-height: 44px; max-width: 170px; width: auto; height: auto; }
.partner-logo .hyland { display: inline-flex; align-items: center; gap: 8px; font: 600 26px/1 var(--f-display); letter-spacing: -0.02em; }
.partner-logo .hyland img { height: 28px; }
.partner h3 { margin-top: auto; padding-top: 32px; font-size: 22px; letter-spacing: -0.015em; }
.partner p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 640px) { .partner { min-height: 0; padding: 24px; } .partner-logo { height: 56px; } .partner h3 { padding-top: 20px; } }

/* Logo wall on grey cards */
.logo-cell { background: var(--card); border-radius: 16px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 24px; }
.logo-cell img { max-height: 56px; max-width: 70%; width: auto; height: auto; object-fit: contain; }

/* Rows separated by hairlines ("What we deliver") */
.rows { border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows > li :is(h3, h4) { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.rows > li p { color: var(--ink-2); }
@media (max-width: 760px) { .rows > li { grid-template-columns: 1fr; } }

/* Key facts in columns with hairlines (case pages) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 20px 24px 20px 0; }
.facts > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; padding-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Long reading column */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(28px, 1.6vw + 16px, 40px); margin: 56px 0 20px; }
.prose h3 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 20px; color: #2B2B30; }
.prose ul { padding-left: 1.2em; list-style: disc; }

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 16. Final call to action ------------------------------------------------ */
.cta { text-align: center; }
.cta h2 { font-size: clamp(40px, 4vw + 12px, 76px); }
.cta p { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); }
.cta .btn-row { margin-top: 40px; justify-content: center; }

/* 17. Footer --------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 15px; }
.ftr-top { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr .8fr 1.3fr; gap: 40px 32px; }
.ftr-brand p { margin-top: 16px; color: var(--ink-2); max-width: 18em; }
.ftr-col h2 { font: 600 15px/1.3 var(--f-text); letter-spacing: 0; margin-bottom: 16px; }
.ftr-col ul { display: grid; gap: 10px; }
.ftr-col a { text-decoration: none; color: var(--ink-2); }
.ftr-col a.nowrap { white-space: nowrap; }
.ftr-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ftr-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--ink-2); font-size: 13px; }
.ftr-bottom nav { margin-left: auto; display: flex; gap: 20px; }
.ftr-bottom a { color: var(--ink-2); }
@media (max-width: 960px) { .ftr-top { grid-template-columns: repeat(2, 1fr); } .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr-top { gap: 36px 20px; } .ftr-top > .ftr-col:last-child { grid-column: 1 / -1; } .ftr-bottom nav { margin-left: 0; } }

/* 18. Inner pages ---------------------------------------------------------- */
/* Text-only page head (work, contact, privacy) */
.page-head { padding-block: clamp(56px, 7vw, 120px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(44px, 4.4vw + 8px, 76px); max-width: 14em; }
.page-head .lead { margin-top: 24px; max-width: 38em; }
.page-head .filters, .page-head .jump { margin-top: 40px; }
.hero-split .eyebrow a { color: inherit; text-decoration: none; }
.hero-split .eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* In-page links as outline pills */
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; transition: border-color .2s; }
.jump a:hover { border-color: var(--ink); }

/* Capabilities: one section per practice */
.pillar-media { margin: 0; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 2 / 1; background: var(--card); }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; }
.shot-stage { background: var(--card); border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 72px) 16px; }
.deliver { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 64px; margin-top: clamp(48px, 6vw, 88px); }
.deliver > h3 { font-size: clamp(24px, 1vw + 16px, 32px); }
.deliver .rows > li { grid-template-columns: 1fr 1.6fr; gap: 8px 40px; padding: 24px 0; }
.related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-top: 40px; }
.related > span { color: var(--ink-2); }
.section-black .pillar-media { background: #1A1A1A; }
.section-black .rows, .section-black .rows > li { border-color: rgba(255, 255, 255, .22); }
.section-black .rows > li p, .section-black .related > span { color: var(--on-dark-2); }
.panel-grey.on-white, .section-grey .card { background: #fff; }
.card h3 { font-size: clamp(22px, 1vw + 14px, 28px); }
.card p { margin-top: 12px; color: var(--ink-2); }
.card .note { margin-top: 20px; }
@media (max-width: 860px) {
  .deliver { grid-template-columns: 1fr; }
  .deliver .rows > li { grid-template-columns: 1fr; }
  .pillar-media { aspect-ratio: 4 / 3; }
}

/* Work: case grid, featured card, filters, logo wall */
.work-grid { row-gap: 56px; }
.work-grid > .case-card { grid-column: 1 / -1; background: var(--card); min-height: 480px; }
.work-grid > [hidden] { display: none !important; }
.wrap > .uc-card { min-height: 480px; }
.work-grid > .tile, .grid-3 > .tile { display: flex; flex-direction: column; }
.work-grid > .tile > .link-arrow, .grid-3 > .tile > .link-arrow { margin-top: auto; padding-top: 20px; align-self: flex-start; }
.section-grey .logo-cell { background: #fff; }
.tile .tile-media.photo { aspect-ratio: 4 / 3; position: relative; }
.tile .tile-media.photo img, .tile .tile-media.photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .tile-meta { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.tile .tile-meta + h3 { margin-top: 8px; }
.tile .tile-credit { margin-top: 8px; font-size: 14px; }
.page-head + .section, .hero-split + .section:not(.section-black):not(.section-grey) { padding-top: 0; }
.tile .tile-media.logo { aspect-ratio: 4 / 3; }
.tile .tile-media.logo img { width: auto; height: auto; max-width: 52%; max-height: 34%; object-fit: contain; }
html.no-js .filters { display: none; }
.filter:hover { border-color: var(--ink); }
.logo-wall .logo-cell { aspect-ratio: auto; min-height: 210px; grid-template-rows: 1fr auto; gap: 16px; text-align: center; }
.logo-wall .logo-cell img { max-height: 60px; max-width: 64%; }
.logo-wall .logo-cell p { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.logo-wall .logo-cell p b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }

/* Case study article */
.case-id { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; }
.case-id img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.case-id i { width: 1px; height: 40px; background: var(--line); }
.case-id small { font-size: 14px; line-height: 1.4; color: var(--ink-2); max-width: 15em; }
.case-part { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 64px; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.case-part:first-of-type { border-top: 0; }
.case-part h2 { font-size: clamp(28px, 1.6vw + 16px, 40px); }
.case-part .prose p:last-child { margin-bottom: 0; }
.points { border-top: 1px solid var(--line); }
.points > li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.points b { display: block; font-weight: 600; }
.points span { display: block; margin-top: 4px; color: var(--ink-2); }
.case-figure { margin-bottom: 32px; }
.case-figure .stat-v { font-size: clamp(64px, 5vw + 16px, 104px); }
.case-figure .stat-l { margin-top: 12px; }
.case-wrap > .facts { margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) { .case-part { grid-template-columns: 1fr; } }

/* Contact: big grey cards */
.contact-card { background: var(--card); border-radius: var(--r-card); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
@media (min-width: 900px) { .contact-card { min-height: 320px; } }
.contact-card h2 { font-size: clamp(30px, 1.6vw + 18px, 44px); }
.contact-card p { margin-top: 12px; color: var(--ink-2); max-width: 30em; }
.contact-card .big { margin-top: 20px; font: 500 clamp(20px, .8vw + 15px, 26px)/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.contact-card address { margin-top: 20px; line-height: 1.55; }
.contact-card address[lang="ar"] { margin-top: 12px; color: var(--ink-2); }
.contact-card .card-foot { margin-top: auto; padding-top: 32px; }

/* About: four stages */
.step .step-n { font: 500 15px/1 var(--f-text); color: var(--ink-2); margin-bottom: 40px; }
.step .outcome { margin-top: 20px; padding-top: 16px; border-top: 1px solid #DCDCE0; font-size: 15px; color: var(--ink); }

/* Privacy */
.legal { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 64px; }
.legal .prose section + section { margin-top: 8px; }
.legal .prose h2 { margin-top: 48px; }
.legal .prose section:first-child h2 { margin-top: 0; }
.legal .jump { flex-direction: column; align-items: flex-start; position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal .jump { position: static; flex-direction: row; } }

@media (max-width: 640px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-wall .logo-cell { min-height: 168px; padding: 20px 12px; }
  .contact-card .big { font-size: 18px; overflow-wrap: normal; }
  .step .step-n { margin-bottom: 20px; }
}

/* 20. Hero scene, organic version (Gaspard 27/10). The hero is white: text on the left, the AI on the right, a
   living sphere of points in the logo colours (canvas, js/site.js). On scroll (html.scene-on: a sticky 100vh stage
   inside a 340vh section) the sphere glides to the middle and shrinks into the agent, the tools and sectors float
   in around it (.fl, a slow drift that never stops), curved hairlines join them and documents fly into the agent.
   Static without JavaScript or under reduced motion: the hero, then the map. Positions: --x/--y (desktop),
   --mx/--my (phones; .sq-dt hidden there). Nodes are centred with `translate`, `transform` is left to the script. */
.scene { --t: clamp(64px, min(6.6vw, 10.5vh), 100px); --ts: clamp(72px, min(7vw, 11.5vh), 108px); --tc: clamp(150px, min(15vw, 24vh), 230px); --cy: 57%; position: relative; margin-top: calc(-1 * var(--hdr)); }
.scene-stick { position: relative; display: flex; flex-direction: column; }
.scene-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scene-hero { position: relative; z-index: 3; min-height: max(600px, 100svh); display: grid; grid-template-rows: 1fr auto; padding-top: var(--hdr); }
.scene-hero > .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.scene-hero h1 { max-width: 11em; }
.scene-hero .lead { color: var(--ink-2); max-width: 30em; margin-top: 24px; }
.scene-hero .btn-row { margin-top: 36px; }
.scene-orb { justify-self: center; width: min(100%, 62vh, 560px); aspect-ratio: 1; }
.scene-field { position: relative; z-index: 1; height: clamp(640px, 100vh, 960px); height: clamp(560px, 100svh, 960px); }
.scene-core { position: absolute; left: 50%; top: var(--cy); translate: -50% -50%; width: var(--tc); aspect-ratio: 1; }
.scene-core > span { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; font: 500 15px/1.2 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.scene-tiles { position: absolute; inset: 0; }
.fl { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; justify-items: center; gap: 8px; }
.fl-box { width: calc(var(--t) * var(--s, 1)); aspect-ratio: 1; border-radius: 24%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(11, 11, 12, .08); }
.fl-box > img { width: 50%; height: 50%; object-fit: contain; }
.fl[data-node="hyland"] .fl-box > img { width: 66%; height: 66%; }
.fl[data-node="servicenow"] .fl-box > img { width: 74%; height: 74%; }
.fl-sector > img, .fl-sector > picture > img { width: var(--ts); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 34px rgba(11, 11, 12, .12); }
.fl-name { font: 500 13px/1.2 var(--f-text); color: var(--ink-2); white-space: nowrap; }
.fl-short { display: none; }
/* Step 2: the sentence in the middle, big, and two rows of sectors scrolling past (one each way) */
.scene-sectors { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; gap: clamp(24px, 4vh, 48px); padding: var(--section) 0; overflow: hidden; }
.sec-row { min-width: 0; overflow: visible; }
.sec-row ul { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-inline: var(--gutter); }
.sec-card { position: relative; flex: none; width: var(--sc, clamp(140px, min(14vw, 23vh), 220px)); }
.sec-card > img, .sec-card > picture > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.sec-card > span { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 500 14px/1.2 var(--f-text); white-space: nowrap; }
.scene-line { justify-self: center; width: min(15em, 90%); text-align: center; font: 500 clamp(34px, min(3.4vw + 12px, 7.4vh), 76px)/1.04 var(--f-display); letter-spacing: -0.035em; text-wrap: balance; }
@media (max-width: 860px) {
  .scene { --t: 54px; --ts: 64px; --tc: 130px; --cy: 50%; }
  .fl-box > img { width: 60%; height: 60%; }
  .scene-hero > .wrap { grid-template-columns: 1fr; align-content: start; padding-top: 40px; gap: 8px; }
  .scene-hero h1 { max-width: 9em; }
  .scene-hero .lead { margin-top: 16px; font-size: 16px; }
  .scene-hero .btn-row { margin-top: 24px; }
  .scene-orb { width: clamp(110px, calc(100svh - 500px), 76vw); }
  .scene-hero .hero-logos { padding-top: 8px; }
  .fl { left: var(--mx); top: var(--my); }
  .scene-tiles .sq-dt { display: none; }
  .fl-tool .fl-name { display: none; }
  .fl-long { display: none; }
  .fl-short { display: inline; }
  .fl-sector > img, .fl-sector > picture > img { border-radius: 16px; }
  .scene-line { font-size: clamp(30px, 8.4vw, 40px); width: 92%; }
  .scene-sectors { --sc: clamp(132px, 38vw, 170px); }
  .sec-card > img, .sec-card > picture > img { border-radius: 16px; }
  .sec-card > span { left: 8px; bottom: 8px; padding: 4px 10px; }
}
/* short phones in portrait: smaller documents so the card does not cover them */
@media (max-width: 860px) and (max-height: 700px) and (orientation: portrait) { .ans-a { font-size: 14px; } }
@media (min-width: 600px) and (max-width: 860px) { .scene { --t: 64px; --ts: 84px; --tc: 170px; } .scene-sectors { --sc: 170px; } }
@media (max-width: 520px) and (max-height: 700px) {
  .scene-hero h1 { font-size: 36px; }
  .scene-hero .lead { font-size: 15px; margin-top: 12px; }
  .scene-hero > .wrap { padding-top: 24px; }
}
@media (max-width: 520px) {
  .scene-hero .btn-row { flex-wrap: nowrap; gap: 10px; }
  .scene-hero .btn-row > * { flex: 1 1 0; min-width: 0; padding-inline: 12px; justify-content: center; }
}
html.scene-on .scene { height: 780vh; height: 780svh; }
html.scene-on .scene-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; overflow: hidden; }
html.scene-on .scene-hero { position: absolute; inset: 0; min-height: 0; }
html.scene-on .scene-field { position: absolute; inset: 0; height: auto; }
html.scene-on .scene-sectors { position: absolute; inset: 0; padding: var(--hdr) 0 0; }
html.scene-on .fl, html.scene-on .scene-line, html.scene-on .sec-row, html.scene-on .scene-core > span { opacity: 0; will-change: transform, opacity; }

.fl-box { rotate: calc(var(--r, 0deg) * var(--k, 1)); border-radius: calc(50% - 26% * var(--k, 1)); }
/* the liquid membrane between the tools and the agent: metaballs computed by js/site.js on a low resolution canvas,
   smoothed by the browser when it is scaled up (no SVG filter: Safari on iPhone repaints it late and it flickers) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene-goo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; image-rendering: auto; }
html:not(.scene-on) .scene-goo, html:not(.scene-on) .scene-cap { display: none; }
.scene-cap { position: absolute; left: 50%; top: calc(var(--hdr) + 40px); bottom: auto; translate: -50% -50%; z-index: 3; margin: 0; width: min(20em, 90%); text-align: center; font: 500 clamp(24px, min(1.6vw + 10px, 4.4vh), 36px)/1.12 var(--f-display); letter-spacing: -0.02em; opacity: 0; }
@media (max-width: 860px) { .scene-cap { top: calc(var(--hdr) + 44px); font-size: 22px; } }
html.scene-on .scene-canvas, html.scene-on .scene-goo { z-index: 1; }
html.scene-on .scene-field { z-index: 2; }

/* Knowledge step (Gaspard 27/10, option A after Poly, V7 and Notion on Mobbin): the camera pulls back from a contract
   onto a desk of real-looking documents; a question is typed, the two documents that answer it come forward, and an
   answer card with its sources and the actions taken in the tools appears. Positions and timing in js/site.js. */
.scene-desk { display: none; }
html.scene-on .scene-desk::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--hdr) + 150px); z-index: 4; pointer-events: none; background: linear-gradient(#F5F3EF 55%, rgba(245, 243, 239, 0)); }
html.scene-on .scene-desk { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: #F4F2EE; }
.desk-in { position: absolute; inset: 0; will-change: transform; }
.dk { --dw: clamp(150px, min(14vw, 26vh), 220px); position: absolute; left: var(--x); top: var(--y); margin: 0; width: calc(var(--dw) * var(--s)); translate: -50% -50%; rotate: var(--r); display: grid; gap: 8px; will-change: transform, opacity; }
.dk-page { position: relative; aspect-ratio: 1 / 1.32; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 30px rgba(40, 32, 20, .12); padding: 9% 9% 7%; overflow: hidden; font: 400 calc(var(--dw) * var(--s) * .034)/1.45 Georgia, "Times New Roman", serif; color: #2b2b30; display: flex; flex-direction: column; gap: .55em; }
.dk-slide .dk-page { aspect-ratio: 16 / 10; }
.dk-sheet .dk-page { aspect-ratio: 4 / 3; padding: 0; }
.dk figcaption { font: 500 12px/1.2 var(--f-text); color: #6b6b72; text-align: center; white-space: nowrap; }
.dk p { margin: 0; }
.dk-co { font: 600 1.45em/1.15 var(--f-display); color: #111; letter-spacing: -0.01em; }
.dk-small { font-size: .85em; color: #6b6b72; }
.dk-h { font-weight: 700; margin-top: .3em !important; }
.dk-mark { background-image: linear-gradient(rgba(255, 214, 102, .65), rgba(255, 214, 102, .65)); background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .5s var(--ease); }
.dk.is-hit .dk-mark { background-size: 100% 100%; }
.dk-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-top: auto; font-size: .78em; color: #6b6b72; }
.dk-signs > div { display: grid; gap: 2px; align-content: end; }
.dk-sig { width: 90%; height: auto; }
.dk-line { display: block; height: 1px; background: #c9c9cf; margin-top: 2.2em; }
.dk-pg { font-size: .75em; color: #9a9aa2; text-align: center; }
.dk-mail { border-bottom: 1px solid #e6e6ea; padding-bottom: .6em; display: grid; gap: .15em; font-family: var(--f-text); font-size: .9em; }
.dk-mail b { display: inline-block; width: 4.2em; color: #6b6b72; font-weight: 500; }
.dk-lh { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--f-text); }
.dk-lh i { width: 2.4em; height: 2.4em; border-radius: .4em; background: #1f3b73; }
.dk-lh p { text-align: right; color: #6b6b72; } .dk-lh b { color: #111; font-size: 1.3em; }
.dk table { width: 100%; border-collapse: collapse; font-family: var(--f-text); font-size: .9em; }
.dk td { padding: .35em 0; border-bottom: 1px solid #ececf0; } .dk td:last-child { text-align: right; }
.dk-tot td { font-weight: 700; color: #111; border-bottom: 0; }
.dk-stamp { position: absolute; right: 10%; bottom: 14%; rotate: -12deg; border: 2px solid #c0392b; color: #c0392b; font: 700 1.1em/1 var(--f-text); padding: .3em .6em; border-radius: .3em; opacity: .85; }
.dk-xl { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 100%; font: 400 calc(var(--dw) * .05)/1 var(--f-text); }
.dk-xl i { font-style: normal; border-right: 1px solid #e3e6e3; border-bottom: 1px solid #e3e6e3; padding: .55em .5em; text-align: right; color: #333; }
.dk-xl i:nth-child(-n+3) { background: #e8f2ec; color: #1d6b3d; font-weight: 600; text-align: left; }
.dk-xl i:nth-child(3n+1) { text-align: left; }
.dk-report .dk-page img, .dk-report .dk-page picture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.dk-hand { font: italic 1.25em/1.35 "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: #2c3e7a; }
.dk-bars { display: flex; align-items: flex-end; gap: 8%; height: 55%; padding-top: 4%; border-bottom: 1px solid #ddd; }
.dk-bars i { flex: 1; height: var(--h); background: #3b5bdb; border-radius: 2px 2px 0 0; }
.dk.is-hit .dk-page { outline: 2px solid #4f46e5; outline-offset: 4px; }
/* the question and the answer */
.ask { z-index: 6; position: absolute; left: 50%; top: calc(var(--hdr) + 102px); translate: -50% -50%; width: min(600px, 90vw); height: 58px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px rgba(11, 11, 12, .10); display: flex; align-items: center; gap: 12px; padding: 0 22px 0 14px; opacity: 0; will-change: transform, opacity; }
.ask-orb { flex: none; width: 30px; height: 30px; }
.ask-q { font: 500 18px/1.2 var(--f-text); color: var(--ink); white-space: nowrap; overflow: hidden; }
.ask-caret { width: 2px; height: 22px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ans { position: absolute; left: 50%; top: 66%; translate: -50% -50%; width: min(480px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 11, 12, .14); padding: 22px 24px; display: grid; gap: 14px; opacity: 0; will-change: transform, opacity; }
.ans-a { margin: 0; font: 400 18px/1.45 var(--f-text); color: var(--ink); }
.ans-a b { font-weight: 600; }
.ans-src { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ans-src span { white-space: nowrap; font: 500 13px/1 var(--f-text); color: var(--ink-2); background: var(--card); border-radius: 999px; padding: 7px 11px; }
.ans-act { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ans-act:not(:has(.is-on)) { display: none; }
.ans-act li { display: none; align-items: center; gap: 10px; font: 500 15px/1.3 var(--f-text); color: var(--ink); }
.ans-act li.is-on { display: flex; animation: actIn .35s var(--ease); }
@keyframes actIn { from { opacity: 0; transform: translateY(6px); } }
.ans-act img { width: 22px; height: 22px; object-fit: contain; }
.ans-act li::after { content: ""; margin-left: auto; width: 16px; height: 9px; border-left: 2px solid #16a34a; border-bottom: 2px solid #16a34a; rotate: -45deg; translate: 0 -3px; }
@media (max-width: 860px) {
  /* the two documents that answer sit between the question bar and the answer card, sized on the visible height */
  .dk { --dw: clamp(88px, calc((100svh - var(--hdr) - 412px) / 1.5), 150px); left: var(--mx); top: var(--my); }
  .dk-rel { top: calc(var(--hdr) + 146px + var(--dw) * var(--s) * .66); }
  .scene-desk .dk-ar { display: none; }
  .scene-desk .sq-dt { display: none; }
  .dk figcaption { display: none; }
  .ask { top: calc(var(--hdr) + 108px); height: 50px; padding: 0 14px 0 10px; gap: 8px; }
  .ask-orb { width: 24px; height: 24px; }
  .ask-q { font-size: 14px; letter-spacing: -0.01em; }
  .ask-caret { height: 18px; }
  .ans { top: auto; bottom: 2.5%; translate: -50% 0; padding: 14px 16px; gap: 10px; border-radius: 16px; }
  .ans-src span { font-size: 14px; padding: 6px 10px; }
  .ans-act { gap: 6px; padding-top: 10px; }
  .ans-a { font-size: 15px; }
  .ans-act li { font-size: 14px; }
}

/* tablets in portrait (iPad): the desk laid out as on a computer */
@media (min-width: 600px) and (max-width: 860px) and (min-height: 900px) {
  .dk { --dw: 150px; left: var(--x); top: var(--y); }
  .dk-rel { top: var(--y); }
  .scene-desk .sq-dt { display: grid; }
  .dk figcaption { display: block; }
  .ans { top: 70%; bottom: auto; translate: -50% -50%; width: min(460px, 70vw); }
  .hero-logos li { font-size: 14px; }
}

/* Realism pass on the desk (Gaspard and Stan 28/10): warm paper, a second sheet under multi-page documents, paper clip
   and staple, a company letterhead, application windows for the email, the sheet and the slide, lined notes. */
html.scene-on .scene-desk { background: radial-gradient(120% 90% at 50% 40%, #F6F4F0 0%, #ECE8E1 100%); }
.dk-page { background: #FFFEFB; }
.dk-contract .dk-page, .dk-invoice .dk-page, .dk-report .dk-page { overflow: visible; }
.dk-contract::before, .dk-report::before, .dk-invoice::before { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1 / 1.32; background: #FBF9F4; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 18px rgba(40, 32, 20, .10); rotate: 3.2deg; translate: 7px 6px; z-index: -1; }
.dk-clip { position: absolute; left: 12%; top: -4.5%; width: 7%; height: auto; }
.dk-staple { position: absolute; left: 7%; top: 3.5%; width: 9%; height: 2px; background: #a5aab2; rotate: -38deg; border-radius: 1px; }
.dk-head { display: flex; align-items: center; gap: .7em; padding-bottom: .55em; border-bottom: 1px solid #e7e4dd; font: 600 1.15em/1.2 var(--f-display); color: #111; }
.dk-head small { font: 400 .72em/1.3 var(--f-text); color: #8a8a92; }
.dk-mono { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: #1f3b73; color: #fff; font: 700 .75em/1 var(--f-display); letter-spacing: .02em; }
.dk-mono-b { border-radius: .4em; }
.dk-lh p { font-family: var(--f-text); }
.dk-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; font: 400 .78em/1.3 var(--f-text); color: #8a8a92; }
.dk-meta b { display: block; color: #222; font-weight: 600; }
.dk-bar { display: block; height: 1.6em; margin-top: auto; background: repeating-linear-gradient(90deg, #222 0 1px, transparent 1px 3px, #222 3px 5px, transparent 5px 6px, #222 6px 7px, transparent 7px 10px); opacity: .8; width: 60%; }
.dk-win { display: flex; align-items: center; gap: .35em; margin: -9.5% -9.5% .3em; padding: .55em .8em; font: 600 .8em/1 var(--f-text); color: #fff; border-radius: 3px 3px 0 0; }
.dk-win i { width: .55em; height: .55em; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.dk-win span { margin-left: .4em; }
.dk-win-ol { background: #0F6CBD; } .dk-win-xl { background: #107C41; margin: 0 0 0; } .dk-win-pp { background: #C43E1C; margin: 0; }
.dk-mailhead { display: flex; gap: .6em; align-items: center; font-family: var(--f-text); }
.dk-mailhead b { display: block; color: #111; font-size: .95em; } .dk-mailhead small { color: #8a8a92; font-size: .78em; }
.dk-av { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: #e3d9f7; color: #5b3bb0; display: grid; place-items: center; font: 700 .85em/1 var(--f-text); }
.dk-subj { font: 600 1.05em/1.3 var(--f-text); color: #111; }
.dk-btns { margin-top: auto; display: flex; gap: .5em; } .dk-btns span { font: 500 .78em/1 var(--f-text); color: #444; border: 1px solid #ddd; border-radius: 3px; padding: .4em .7em; }
.dk-fx { font: 400 calc(var(--dw) * .045)/1 var(--f-text); color: #444; padding: .45em .6em; border-bottom: 1px solid #e3e6e3; } .dk-fx b { color: #107C41; margin-right: .6em; font-style: italic; }
.dk-xl { grid-template-columns: .45fr 1fr 1fr 1fr; height: auto; }
.dk-xl i:nth-child(-n+4), .dk-xl i:nth-child(4n+1) { background: #f3f3f3; color: #777; font-weight: 400; text-align: center; }
.dk-xl i:nth-child(n+6):nth-child(-n+8) { background: #e8f2ec; color: #1d6b3d; font-weight: 600; }
.dk-xl i:nth-child(n+6) { text-align: right; }
.dk-notes .dk-page { background: #FFFDF4 repeating-linear-gradient(transparent 0 1.7em, #cfe0f3 1.7em calc(1.7em + 1px)); border-left: 0; box-shadow: inset 2.2em 0 0 -2.1em #e8a3a3, 0 1px 2px rgba(0, 0, 0, .06), 0 14px 30px rgba(40, 32, 20, .12); padding-left: 16%; }
.dk-hand-t { font-weight: 700; text-decoration: underline; }
.dk-slide .dk-page { padding: 0; } .dk-slide-in { padding: 5% 8%; display: grid; grid-template-rows: auto 1fr auto; gap: .4em; flex: 1; }
.dk-slide .dk-bars { height: auto; min-height: 3.2em; }
.dk-report .dk-page img, .dk-report .dk-page picture img { border: .35em solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* Arabic handwritten note (Gaspard 28/10: show that handwritten Arabic is read): Aref Ruqaa, OCR line under it */
.dk-ar .dk-page { background: #FFFDF4 repeating-linear-gradient(transparent 0 1.9em, #d9e4f2 1.9em calc(1.9em + 1px)); }
.dk-ar-in { font: 400 2.3em/1.5 "Aref Ruqaa", "Segoe Print", serif; color: #1f2f6b; display: grid; gap: .25em; padding-top: .3em; }
.dk-ar-t { text-decoration: underline; text-underline-offset: .25em; }
.dk-ocr { margin-top: auto !important; font: 400 .95em/1.35 var(--f-text); color: #333; background: #fff; border: 1px solid #e3e3ea; border-radius: .5em; padding: .5em .6em; opacity: 0; transform: translateY(.4em); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.dk-ocr span { display: block; font-weight: 600; font-size: .8em; color: #4f46e5; margin-bottom: .2em; }
.dk.is-hit .dk-ocr { opacity: 1; transform: none; }
/* Arabic post-it on the contract (phones, Gaspard 28/10): handwritten, then its OCR line */
.dk-postit { display: grid; position: absolute; right: -12%; top: -6%; width: 50%; aspect-ratio: 1; z-index: 2; rotate: 5deg; background: #FFE680; box-shadow: 0 6px 14px rgba(60, 40, 0, .22); padding: 6% 5%; align-content: center; gap: .1em; font: 400 2.6em/1.3 "Aref Ruqaa", "Segoe Print", serif; color: #2a2a6b; text-align: center; transition: box-shadow .4s var(--ease); }
.dk-postit p { margin: 0; }
.dk-postit-ocr { display: none; position: absolute; left: 6%; bottom: 3%; width: 58%; z-index: 3; font: 400 .95em/1.3 var(--f-text); color: #333; background: #fff; border: 1px solid #e3e3ea; border-radius: .5em; padding: .45em .55em; box-shadow: 0 6px 16px rgba(11, 11, 12, .12); opacity: 0; transform: translateY(.4em); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.dk-postit-ocr span { display: block; font-weight: 600; font-size: .8em; color: #4f46e5; margin-bottom: .15em; }
.dk.is-hit .dk-postit-ocr { opacity: 1; transform: none; }
@media (max-width: 860px) and (min-height: 521px) { .dk-postit { font-size: 2.15em; top: -2%; } }
.dk-postit p { background-image: linear-gradient(rgba(79, 70, 229, .22), rgba(79, 70, 229, .22)); background-size: 0% 100%; background-repeat: no-repeat; background-position: right; transition: background-size .5s var(--ease); border-radius: .2em; }
.dk.is-hit .dk-postit { box-shadow: 0 0 0 2px #4f46e5, 0 8px 18px rgba(60, 40, 0, .25); }
.dk.is-hit .dk-postit p { background-size: 100% 100%; }

/* Phones in landscape (short screens): the hero back on two columns, smaller sectors, no caption over the agent */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .scene-hero > .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-content: center; padding-top: 0; }
  .scene-hero h1 { font-size: 34px; max-width: 12em; }
  .scene-hero .lead { font-size: 15px; margin-top: 10px; }
  .scene-hero .btn-row { margin-top: 16px; }
  .scene-orb { width: min(40vw, 58svh); }
  .scene-hero .hero-logos { padding: 4px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
  .fl { left: var(--x); top: var(--y); }
  .scene-tiles .sq-dt { display: grid; }
  .scene { --t: 46px; --tc: 96px; }
  .fl-tool .fl-name { display: none; }
  .scene-sectors { --sc: min(26svh, 120px); gap: 10px; }
  html.scene-on .scene-sectors { padding-top: var(--hdr); }
  .scene-line { font-size: 22px; width: 70%; }
  .scene-cap { display: none; }
  .dk { --dw: min(18vw, 30vh); left: var(--x); top: var(--y); }
  .scene-desk .sq-dt { display: block; }
  .ask { top: calc(var(--hdr) + 40px); width: min(520px, 62vw); }
  .dk-email { left: 48%; top: 62%; }
  .dk-rel { top: 62%; }
  .ans { left: 76%; top: calc(var(--hdr) + 78px); bottom: auto; translate: -50% 0; width: min(380px, 44vw); padding: 12px 14px; gap: 8px; }
  .ans-a { font-size: 14px; } .ans-act li { font-size: 14px; } .ans-src span { font-size: 14px; padding: 5px 9px; }
  .ftr-col a, .ftr-bottom, .ftr-bottom a, .ftr-brand address { font-size: 14px; }
}

/* 21. Trusted by (Square / WorkOS): 12 client logos in their own colours, white cells with hairlines,
   name and sector under each logo. */
.trust-grid { --tc: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.trust-grid > li { flex: 0 0 calc((100% - (var(--tc) - 1) * 16px) / var(--tc)); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 36px 24px 26px; display: grid; grid-template-rows: 88px auto; gap: 18px; justify-items: center; text-align: center; }
.trust-grid img { align-self: center; width: auto; height: auto; max-width: 70%; max-height: 52px; object-fit: contain; }
.trust-grid .trust-sq img { max-height: 84px; }
.trust-grid .trust-mid img { max-height: 72px; max-width: 78%; }
.trust-grid p { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.trust-grid p b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.trust-grid .trust-coe img { max-height: 88px; max-width: 88%; }
.trust-grid .trust-dga img { max-height: 96px; }
.trust-grid .trust-mef img { max-height: 80px; max-width: 82%; }
.trusted .note { margin-top: 20px; }
@media (max-width: 960px) { .trust-grid { --tc: 3; } }
@media (max-width: 640px) {
  .trust-grid { --tc: 2; gap: 12px; }
  .trust-grid > li { flex-basis: calc((100% - 12px) / 2); border-radius: 18px; }
  .trust-grid > li { padding: 28px 12px 20px; grid-template-rows: 64px auto; gap: 14px; }
  .trust-grid img { max-height: 40px; max-width: 80%; }
  .trust-grid .trust-sq img { max-height: 64px; }
  .trust-grid .trust-mid img { max-height: 50px; }
}

/* 22. Where we work (after Cloudflare "Where we work"): centred title, a dotted globe cut at the bottom by a
   hairline grid of the four locations. The globe turns with the scroll (js/globe.js), never on its own; fixed on
   the Europe / Gulf view under reduced motion. Blue pins with a person sign; the HQ note is a hairline card. */
.where .head-center { margin-bottom: clamp(24px, 4vw, 48px); }
.globe { position: relative; margin: 0 auto; width: 100%; max-width: 880px; aspect-ratio: 880 / 620; overflow: hidden; }
.globe canvas { display: block; width: 100%; height: 100%; }
.globe-note { position: absolute; left: 0; top: 0; opacity: 0; background: #fff; border: 1px solid var(--ink); padding: 10px 14px; display: grid; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.globe-note b { color: var(--ink); font-weight: 500; font-size: 15px; }
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.loc-grid > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; }
.loc-grid h3 { font-size: 20px; letter-spacing: -0.01em; }
.loc-grid p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 960px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .globe { aspect-ratio: 358 / 280; }
  .loc-grid > li { padding: 18px 14px; }
  .loc-grid h3 { font-size: 17px; }
  .loc-grid p { font-size: 14px; }
}
/* City cards (careers, after Udemy "Our locations"): portrait photo, city, country */
.city-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.city-cards img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-img); }
.city-cards h3 { margin-top: 16px; font-size: 22px; }
.city-cards p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .city-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } .city-cards h3 { font-size: 19px; } }

/* 19. Reveal on scroll (the only scroll animation) ------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 23. 404 page (served at any depth: root-absolute paths in the production build) */
.page-404 .page-head { padding-bottom: var(--section); min-height: calc(70vh - var(--hdr)); }
.page-404 .btn-row { margin-top: 40px; }

/* 24. Touch targets and text size on phones (SEO and responsive pass, 27/10): every link or button at least
   44 x 44 px, no text under 14 px. Links inside a sentence keep their size (WCAG inline exception). */
@media (max-width: 767px) {
  .link-arrow, .brand { min-height: 44px; }
  .ftr-col ul { gap: 0; }
  .ftr-col a, .ftr-bottom a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 6px; line-height: 1.35; }
  .ftr-col h2 { margin-bottom: 4px; }
  .ftr-bottom { font-size: 14px; }
  .case-client small { font-size: 14px; }
  .filter, .jump a { height: 44px; }
  .logo-pair { flex-wrap: wrap; gap: 16px 24px; }
  .logo-pair .hyland { flex: none; }
}
/* Sector panels between 861 and 1100 px: the closed panels are narrow, "Education" must fit on one line */
@media (min-width: 861px) and (max-width: 1100px) {
  .panel:not(.is-active) .panel-name { font-size: 18px; left: 14px; right: 10px; }
}

/* 25. Small screens, finishing pass (Gaspard 27/10: "parfait sur les petits écrans"). Phones only, the desktop
   does not move. Type scale: h1 36 to 44 px, h2 29 to 34 px, paragraphs 17 px, sections 80 px apart. */
[id] { scroll-margin-top: calc(var(--hdr) + 16px); }
html.menu-open { overscroll-behavior: none; }
.menu { overscroll-behavior: contain; }
@media (max-width: 640px) {
  :root { --fs-hero: clamp(36px, 7vw + 14px, 44px); --fs-h2: clamp(29px, 5vw + 13px, 34px); --fs-lead: 17px; --section: 80px; }
  .cta h2, .panel-grey h2 { font-size: var(--fs-h2); }
  .page-head h1, .hero-split h1 { font-size: var(--fs-hero); }
  .head-center > p { margin-top: 16px; }

  /* Menu: links a little smaller so both buttons show on a 568 px screen, buttons side by side */
  .menu { padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); gap: 28px; }
  .menu-in a { font-size: 28px; padding: 11px 0; }
  .menu-foot { grid-template-columns: 1fr 1fr; gap: 10px; }
  .menu-foot .btn { padding-inline: 12px; }

  /* Carousel arrows: 48 px (still over 44), closer to the title */
  .arrow { width: 48px; height: 48px; }
  .arrow svg { width: 20px; height: 20px; }
  .head-row { gap: 20px; margin-bottom: 28px; }
  .carousel-foot { margin-top: 16px; }

  /* Use-case cards: text at the top, the product shot right under the link, the card as tall as its content
     (the tallest card sets the height of the row; the others keep their spare grey under the shot) */
  .uc-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .uc-text { padding: 28px 24px 0; }
  .uc-text h3 { margin-top: 0; font-size: 24px; line-height: 1.15; }
  .uc-text p { margin-top: 12px; font-size: 16px; line-height: 1.55; }
  .uc-text .link-arrow { margin-top: 12px; }
  .uc-shot { padding: 20px 16px 24px; align-items: flex-start; }
  .uc .note { margin-top: 16px; }
  .phone { width: 280px; border-radius: 36px; padding: 8px; }
  .phone-screen { border-radius: 28px; }
  .phone-body { min-height: 0; padding-bottom: 18px; }
  .shot { font-size: 13.5px; }

  /* Sectors: closed panels are dark bars with the name on the left and a plus on the right (a tap opens);
     the open panel has a dark top for its title and a dark foot for its sentence */
  .panel { height: 76px; border-radius: 6px; }
  .panel::after { background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.5) 100%); }
  .panel.is-active { height: 420px; }
  .panel.is-active::after { background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.2) 34%, rgba(0,0,0,.25) 52%, rgba(0,0,0,.82) 100%); }
  .panel-name { font-size: 21px; right: 56px; color: #fff; }
  .panel.is-active .panel-name { font-size: 30px; right: 20px; }
  .panel:not(.is-active) .panel-toggle::after { content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
    background: linear-gradient(#fff, #fff) center / 16px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 16px no-repeat; opacity: .9; }
  .panel-body { padding-top: 16px; }
  .section-black:has(.panels) { padding-bottom: 64px; }

  /* Hyland panel: wider text column, full-width buttons stacked */
  .panel-grey { padding: 24px 24px 28px; gap: 28px; }
  .panel-grey .btn-row { margin-top: 28px; }
  .panel-grey .btn-row > .btn { flex: 1 1 100%; }
  .panel-grey .lead { margin-top: 16px; }
  .logo-pair { margin-top: 24px; }

  /* Selected work: a little more room for the text of the card */
  .case-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .case-text { padding: 24px 24px 28px; }
  .case-text h3 { font-size: 26px; margin-top: 12px; }
  .case-text > p { margin-top: 14px; font-size: 16px; line-height: 1.55; }
  .case-foot { padding-top: 24px; }
  .case-client img { height: 36px; }

  /* Where we work: the globe runs edge to edge, bigger, cut on the sides; the HQ note becomes a pin label */
  .globe { width: auto; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 10 / 9; }
  .globe-note { display: none; }

  /* Trusted by: the logos share one visual height, pictograms no bigger than word marks */
  .trust-grid > li { grid-template-rows: 56px auto; padding: 24px 10px 20px; }
  .trust-grid img, .trust-grid .trust-mid img { max-height: 36px; max-width: 76%; }
  .trust-grid .trust-sq img { max-height: 52px; }
  .trust-grid .trust-coe img { max-height: 46px; max-width: 84%; }

  /* Accordions and final call */
  .acc { gap: 16px; }
  .acc-item summary { padding: 22px 20px; }
  .cta .btn-row { margin-top: 32px; }

  /* Footer: brand, then two columns, contact on its own row; bottom line stacked and aligned */
  .ftr { padding: 56px 0 32px; }
  .ftr-top { gap: 32px 16px; }
  .ftr-bottom { margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .ftr-bottom nav { margin-left: 0; }
}

/* Hero on phones: the text block starts under the header (not 72 px lower), so a 320 x 568 screen shows the
   title, the sentence, both buttons and both rows of logos */
@media (max-width: 520px) {
  html.js .page-home .hero-photo > .wrap { padding-top: calc(var(--hdr) + 20px); }
  .hero-photo h1 { text-wrap: wrap; }
  .hero-photo .lead { max-width: 22em; }
}
@media (max-width: 520px) and (max-height: 600px) {
  .hero-photo h1 { font-size: 36px; }
  .hero-photo .lead { font-size: 15px; line-height: 1.5; margin-top: 12px; }
  .hero-photo .btn-row { margin-top: 20px; }
  .hero-logos ul { gap: 14px 10px; }
  .hero-logos { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* Phones in landscape (short screens): one line of logos in the flow, smaller title, the scene tiles scaled to
   the height and laid out under the header */
@media (max-height: 520px) and (min-width: 600px) and (orientation: landscape) {
  .hero-photo, html.js .page-home .hero-photo { min-height: max(320px, 100svh); grid-template-rows: 1fr auto; }
  .hero-photo > .wrap, html.js .page-home .hero-photo > .wrap { padding-top: calc(var(--hdr) + 4px); padding-bottom: 8px; }
  .hero-photo h1 { font-size: 40px; max-width: none; }
  .hero-photo .lead { margin-top: 10px; font-size: 16px; line-height: 1.5; }
  .hero-photo .btn-row { margin-top: 18px; }
  .hero-photo .btn { height: 44px; }
  .hero-logos { position: relative; bottom: auto; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .hero-logos ul { flex-wrap: nowrap; gap: 0 28px; }
  .hero-logos li span { display: none; }
  .hero-logos img { height: 20px; max-width: 72px; }
  .hero-logos img.tall { height: 26px; }
  .hero-logos img.seal { height: 34px; max-width: 34px; }
  .scene .sq-logo.sq-mark > span > img { height: 13px; }
}
