/* Cube IT AS — the whole look of the site.
   Colours, font and spacing are the variables right below. Change them here and every page follows. */

@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/albert-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;          /* text */
  --ink-2: #525252;        /* quieter text */
  --line: #e0e0e0;         /* hairlines */
  --line-2: #c6c6c6;       /* card borders */
  --layer: #f4f4f4;        /* grey bands and cards */
  --layer-hover: #e8e8e8;
  --blue: #1b62a6;         /* links and buttons (Cube's deep blue) */
  --blue-hover: #144d84;
  --sky: #84c5e8;          /* light blue from the logo */
  --sky-2: #3a96ca;        /* mid blue from the logo */
  --mist: #dfe5ec;         /* pale square from the logo */
  --grid: #cde6f6;         /* the illustration's background */
  --night: #0d1117;        /* the dark mosaic and footer */
  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 32px;             /* page margin */
  --max: 1584px;           /* widest the page gets */
  --ease: cubic-bezier(.2, 0, .38, .9);
  --ease-out: cubic-bezier(0, 0, .38, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -0.01em; }
h3 { font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 0; }
.label { font-size: 14px; color: var(--ink-2); letter-spacing: 0.01em; }
.arr { display: inline-block; width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
a:hover .arr, button:hover .arr, a:focus-visible .arr { transform: translateX(4px); }
a:hover .arr.ext, a:focus-visible .arr.ext { transform: translate(2px, -2px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 48px; min-width: 200px; padding: 0 16px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn.outline { background: transparent; color: var(--blue); }
.btn.outline:hover { background: var(--blue); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--layer-hover); color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; }

/* ===== Header (the same on every page) ===== */
.masthead {
  position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.masthead.hide { transform: translateY(-100%); }
.masthead .bar { display: flex; align-items: stretch; height: 48px; max-width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.05; letter-spacing: 0.06em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 26px; height: 26px; }
.masthead .logo { padding: 0 24px 0 var(--pad); background: var(--layer); border-right: 1px solid var(--line); }
.nav { display: flex; align-items: stretch; flex: 1; }
.nav ul { display: flex; align-items: stretch; }
.nav li { display: flex; }
.nav ul a { display: flex; align-items: center; padding: 0 16px; color: var(--ink-2); font-size: 15px; position: relative; }
.nav ul a:hover { color: var(--ink); background: var(--layer); }
.nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--blue); }
.nav ul li:first-child a { margin-left: 8px; }
.tools { margin-left: auto; display: flex; align-items: stretch; }
.tools a { display: flex; align-items: center; gap: 8px; padding: 0 16px; color: var(--ink); font-size: 15px; }
.tools a:hover { background: var(--layer); color: var(--ink); }
.tools svg { width: 20px; height: 20px; }
.tools .cta { background: var(--blue); color: #fff; padding: 0 20px; }
.tools .cta:hover { background: var(--blue-hover); color: #fff; }
.burger { display: none; }

/* ===== Hero (front page) ===== */
.lead { display: grid; grid-template-columns: 4fr 6fr 2.2fr; gap: 16px 32px; padding-top: 72px; padding-bottom: 80px; }
.lead-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 4px; }
.lead h1 { font-size: clamp(40px, 3.7vw, 60px); line-height: 1.14; color: var(--blue); }
.lead .sub { font-size: 20px; line-height: 1.45; max-width: 34ch; margin-bottom: 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* The illustration: a request is matched with a consultant. Plain HTML, moved by CSS. */
.scene {
  position: relative; aspect-ratio: 4 / 3; container-type: inline-size; overflow: hidden;
  background-color: var(--grid);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.75) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.75) 1px, transparent 1px);
  background-size: 12.5% 16.6667%;
  align-self: start;
}
.scene .fill { position: absolute; background: #b4dbf2; }
.scene .tile { position: absolute; margin: 0; overflow: hidden; background: #9ccbe9; }
.scene .tile img { width: 100%; height: 100%; object-fit: cover; }
.scene .card {
  position: absolute; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  padding: 2.6cqw 3cqw; font-size: max(10px, 2.2cqw); line-height: 1.3;
}
.scene .card small { display: block; color: var(--ink-2); font-size: max(9px, 1.8cqw); margin-bottom: .6cqw; }
.scene .card b { display: block; font-weight: 600; font-size: max(11px, 2.7cqw); }
.scene .chips { display: flex; flex-wrap: wrap; gap: 1cqw; margin-top: 1.8cqw; }
.scene .chips span { background: var(--layer); padding: .5cqw 1.4cqw; font-size: max(9px, 1.8cqw); }
.scene .req { left: 6.25%; top: 41.6667%; width: 40%; }
.scene .cons { left: 53.125%; top: 58.3333%; width: 40.625%; display: grid; grid-template-columns: auto 1fr; gap: 0 2.2cqw; align-items: start; }
.scene .cons .chips { grid-column: 1 / -1; }
.scene .av { width: 6.4cqw; height: 6.4cqw; }
.scene .wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scene .wire path { fill: none; stroke: var(--ink); stroke-width: 1; }
.scene .wire rect { fill: var(--ink); }
.scene .select { position: absolute; left: 51.5%; top: 55.5%; width: 43.8%; height: 30%; border: 1.5px dashed var(--ink); }
.scene .select i { position: absolute; width: 1.4cqw; height: 1.4cqw; min-width: 7px; min-height: 7px; background: #f1c21b; border: 1px solid var(--ink); }
.scene .select i:nth-child(1) { left: -.8cqw; top: -.8cqw; }
.scene .select i:nth-child(2) { right: -.8cqw; top: -.8cqw; }
.scene .select i:nth-child(3) { left: -.8cqw; bottom: -.8cqw; }
.scene .select i:nth-child(4) { right: -.8cqw; bottom: -.8cqw; }
.scene .match {
  position: absolute; left: 62%; top: 47.5%; display: flex; align-items: center; gap: 1.2cqw;
  background: var(--blue); color: #fff; padding: 1.2cqw 2.4cqw; font-size: max(10px, 2.1cqw); font-weight: 500;
  border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18); transform-origin: 20% 100%;
}
.scene .match svg { width: 2.6cqw; height: 2.6cqw; }
.scene .cursor { position: absolute; left: 80%; top: 74%; width: 4.6cqw; height: 4.6cqw; }
.scene .toggle {
  position: absolute; right: 0; bottom: 0; width: 48px; height: 48px; border: 0; cursor: pointer;
  background: rgba(22,22,22,.55); color: #fff; display: grid; place-items: center;
}
.scene .toggle:hover { background: rgba(22,22,22,.8); }
.scene .toggle svg { width: 20px; height: 20px; }
.scene .toggle .play { display: none; }
.scene.paused .toggle .play { display: block; }
.scene.paused .toggle .pause { display: none; }

/* Assignments rail beside the illustration */
.rail { display: flex; flex-direction: column; }
.rail h2 { font-size: 16px; font-weight: 600; padding: 4px 0 24px; }
.rail-pages { position: relative; flex: 1; overflow-x: clip; }
.rail-page li { border-bottom: 1px solid var(--line); }
.rail-page a { display: block; padding: 16px 0 20px; }
.rail-page .t { display: block; font-size: 17px; line-height: 1.4; margin-bottom: 6px; }
.rail-page .m { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.rail-page .closed { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); padding: 0 6px; margin-left: 6px; vertical-align: 2px; }
.pager { display: flex; gap: 4px; margin-top: 20px; }
.pager button { background: none; border: 0; width: 32px; height: 32px; cursor: pointer; color: var(--ink-2); position: relative; font-size: 14px; }
.pager button[aria-current="true"] { color: var(--ink); font-weight: 600; }
.pager button[aria-current="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; background: var(--blue); transform-origin: left; }
.rail.timing .pager button[aria-current="true"]::after { animation: pagerFill 7s linear; }
.rail.held .pager button[aria-current="true"]::after { animation: none; }
@keyframes pagerFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Section heads ===== */
.section { padding-top: 96px; padding-bottom: 96px; }
.section.tight { padding-top: 0; }
.band { background: var(--layer); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; align-items: start; }
.head h2 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.16; }
.head p { font-size: 22px; line-height: 1.45; }
.head .text-link { margin-top: 40px; }
.small-h { font-size: 16px; font-weight: 600; margin-bottom: 24px; }

/* ===== Start here cards ===== */
.starts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.start {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line-2);
  color: var(--ink); background: #fff; transition: background .15s var(--ease); min-height: 168px; position: relative;
}
.start:hover { background: var(--layer); color: var(--ink); }
.start img { width: 88px; height: 88px; object-fit: cover; }
.start small { display: block; color: var(--ink-2); font-size: 13px; margin-bottom: 6px; }
.start strong { display: block; font-weight: 400; font-size: 17px; line-height: 1.35; padding-right: 8px; }
.start .arr { position: absolute; right: 16px; bottom: 16px; color: var(--blue); }

/* ===== Mosaic: why big clients choose Cube ===== */
.feature { display: grid; grid-template-columns: 2.25fr 1fr; gap: 32px; }
.mosaic { position: relative; align-self: start; display: block; color: var(--ink); }
.mosaic:hover { color: var(--ink); }
.mosaic:hover .mosaic-card { background: var(--layer-hover); }
.mosaic-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 3 / 2;
  background: var(--night); overflow: hidden;
}
.mosaic-grid > * { position: relative; overflow: hidden; }
.mosaic-grid svg { width: 100%; height: 100%; display: block; }
.mosaic-grid .photo { grid-column: 2 / span 3; grid-row: 1 / span 3; }
.mosaic-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-card {
  position: absolute; right: 0; bottom: 0; width: 43%; min-height: 44%; background: var(--layer);
  padding: 24px 24px 64px; display: flex; flex-direction: column;
}
.mosaic-card small { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
.mosaic-card p { font-size: 22px; line-height: 1.35; }
.mosaic-card .arr { position: absolute; left: 24px; bottom: 24px; color: var(--blue); width: 24px; height: 24px; }
.mosaic-card:hover .arr { transform: translateX(4px); }
.sector-list li { border-bottom: 1px solid var(--line); padding: 18px 0 20px; }
.sector-list b { display: block; font-weight: 500; font-size: 17px; }
.sector-list span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* ===== Competence tiles ===== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile-link {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 210px;
  border: 1px solid var(--line-2); padding: 20px 16px 16px; color: var(--ink); background: #fff;
  transition: background .15s var(--ease);
}
.tile-link:hover { background: var(--layer); color: var(--ink); }
.tile-link h3 { font-weight: 400; font-size: 18px; line-height: 1.35; max-width: 22ch; }
.tile-link p { color: var(--ink-2); font-size: 14px; margin-top: 6px; max-width: 30ch; }
.tile-link .picto { width: 52px; height: 52px; margin-top: 28px; }
.tile-link .arr { position: absolute; right: 16px; bottom: 16px; color: var(--blue); }
.picto path, .picto circle, .picto rect, .picto line, .picto polyline { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Figures ===== */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.figure { border: 1px solid var(--line-2); display: flex; flex-direction: column; background: #fff; }
.figure .top { padding: 28px 16px 40px; flex: 1; }
.figure .top small { display: block; color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.figure .top p { font-size: 26px; line-height: 1.3; font-weight: 300; }
.figure .bottom { background: var(--layer); padding: 20px 16px 24px; }
.figure .num { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.figure .bottom span:last-child { color: var(--ink-2); font-size: 15px; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.step { background: #fff; padding: 24px 16px 32px; position: relative; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--blue); transform: scaleX(var(--p, 1)); transform-origin: left; }
.step small { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 40px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 15px; }
.contract-note { margin-top: 40px; font-size: 22px; line-height: 1.45; max-width: 56ch; font-weight: 300; }

/* ===== For consultants ===== */
.split { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.split .sticky { position: sticky; top: 96px; align-self: start; }
.split h2 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.16; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.col-card .pic { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 40px; background: var(--layer); }
.col-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.col-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.col-card p { font-size: 17px; line-height: 1.45; margin-bottom: 24px; }
.col-card .text-link { font-size: 17px; }

/* ===== Contact strip ===== */
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.connect .pic { overflow: hidden; aspect-ratio: 16 / 10; }
.connect .pic img { width: 100%; height: 100%; object-fit: cover; }
.connect .txt { border-top: 1px solid var(--line-2); padding-top: 20px; display: flex; flex-direction: column; }
.connect h2 { font-size: 32px; line-height: 1.25; font-weight: 400; margin-bottom: 20px; }
.connect p { font-size: 20px; line-height: 1.45; max-width: 40ch; margin-bottom: 32px; }
.connect .phone { font-size: 36px; font-weight: 300; color: var(--ink); margin-bottom: 32px; display: inline-block; }
.connect .phone:hover { color: var(--blue); }

/* ===== Inner page leadspace ===== */
.leadspace { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 80px; align-items: stretch; }
.leadspace .label { margin-bottom: 16px; }
.leadspace h1 { font-size: clamp(40px, 4.2vw, 68px); line-height: 1.12; margin-bottom: 24px; }
.leadspace .sub { font-size: 20px; line-height: 1.45; max-width: 36ch; margin-bottom: 40px; }
.leadspace .pic { overflow: hidden; min-height: 320px; aspect-ratio: 16 / 10; }
.leadspace .pic img { width: 100%; height: 100%; object-fit: cover; }

/* Competence page */
.tabs { position: sticky; top: 48px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); transition: top .3s var(--ease); }
.masthead.hide ~ main .tabs { top: 0; }
.tabs .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 14px 16px; color: var(--ink-2); font-size: 15px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--blue); }
.area { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.area:last-child { border-bottom: 0; }
.area h2 { font-size: 32px; line-height: 1.25; font-weight: 400; }
.area .intro { font-size: 17px; color: var(--ink-2); margin-top: 16px; max-width: 30ch; }
.area .picto { width: 56px; height: 56px; margin-top: 32px; }
.area .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area .cols > div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.area h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--ink-2); }
.area li { font-size: 17px; padding: 4px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: #fff; border: 1px solid var(--line-2); padding: 8px 14px; font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 48px 0 64px; }
.faq h2 { font-size: 32px; font-weight: 400; line-height: 1.25; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 18px 16px 18px 0; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary svg { width: 20px; height: 20px; flex: none; margin-top: 4px; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 64px 24px 0; color: var(--ink-2); font-size: 17px; }
.faq .answer p + p, .faq .answer p + ul { margin-top: 12px; }
.faq .answer ul { list-style: disc; padding-left: 20px; }
.faq details[open] .answer { animation: answerIn .3s var(--ease-out); }
@keyframes answerIn { from { opacity: 0; transform: translateY(-6px); } }

/* Contact page */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { border: 1px solid var(--line-2); padding: 16px; display: flex; flex-direction: column; min-height: 260px; background: #fff; }
.person .mono { width: 56px; height: 56px; display: grid; place-items: center; background: var(--grid); color: var(--blue); font-weight: 600; font-size: 18px; margin-bottom: 32px; }
.person h3 { font-size: 20px; font-weight: 500; }
.person .role { color: var(--ink-2); margin-bottom: 24px; }
.person .links { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.form-grid h2 { font-size: 32px; font-weight: 400; line-height: 1.25; margin-bottom: 16px; }
.form-grid .side p { font-size: 18px; color: var(--ink-2); margin-bottom: 24px; }
.form-grid .side a { display: block; font-size: 18px; margin-bottom: 4px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid #8d8d8d;
  padding: 12px 16px; min-height: 48px; border-radius: 0;
}
.band .contact-form input, .band .contact-form textarea { background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; border-left: 3px solid; background: #fff; }
.notice.ok { border-color: #24a148; }
.notice.err { border-color: #da1e28; }

/* Plain pages (privacy, 404) */
.prose { max-width: 760px; padding: 64px 0 120px; }
.prose h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.12; margin: 12px 0 32px; }
.prose h2 { font-size: 24px; font-weight: 500; margin: 40px 0 12px; }
.prose p { font-size: 18px; line-height: 1.55; margin-bottom: 12px; }

/* ===== Footer (the same on every page) ===== */
.footer { background: var(--ink); color: #c6c6c6; padding: 48px 0 24px; margin-top: 0; }
.footer a { color: #c6c6c6; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; font-size: 16px; }
.footer .logo svg { width: 44px; height: 44px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 64px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer li, .footer address span, .footer address a { display: block; font-size: 15px; padding: 4px 0; font-style: normal; }
.footer .slogan { margin-top: 20px; font-size: 15px; max-width: 26ch; }
.foot-base { border-top: 1px solid #393939; padding-top: 20px; display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }

/* ===== Movement =====
   Everything below only runs with JavaScript on and when the visitor hasn't asked for reduced motion.
   Without it every page is complete and still. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); transition-delay: var(--d, 0s); }
  .js .wipe img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .wipe.in { clip-path: inset(0 0 0 0); }
  .js .wipe.in img { transform: none; }
  .js .draw path, .js .draw circle, .js .draw rect, .js .draw line, .js .draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: var(--d, .15s); }
  .js .draw.in path, .js .draw.in circle, .js .draw.in rect, .js .draw.in line, .js .draw.in polyline { stroke-dashoffset: 0; }
  .js .mosaic-grid > * { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .mosaic.in .mosaic-grid > * { clip-path: inset(0 0 0 0); }
  .js .mosaic-grid .photo img { transform: scale(1.15); transition: transform 2.2s var(--ease-out) .2s; }
  .js .mosaic.in .mosaic-grid .photo img { transform: none; }
  .js .mosaic-card { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease-out) .9s, transform .7s var(--ease-out) .9s; }
  .js .mosaic.in .mosaic-card { opacity: 1; transform: none; }
  .js .drift img { animation: drift 24s ease-in-out infinite alternate; }

  /* The illustration's photo squares open once, then the match plays in a 10-second loop */
  .js .scene .tile { animation: tileIn 1s var(--ease) both; animation-delay: var(--d, 0s); }
  .js .scene .fill { animation: fadeIn .8s ease both; animation-delay: var(--d, 0s); }
  .js .scene .req { animation: s-req 10s var(--ease) infinite; }
  .js .scene .req .chips span { animation: s-chip 10s var(--ease) infinite; }
  .js .scene .req .chips span:nth-child(2) { animation-name: s-chip2; }
  .js .scene .req .chips span:nth-child(3) { animation-name: s-chip3; }
  .js .scene .wire path { stroke-dasharray: 1; animation: s-wire 10s var(--ease) infinite; }
  .js .scene .wire rect { animation: s-dot 10s linear infinite; }
  .js .scene .cons { animation: s-cons 10s var(--ease) infinite; }
  .js .scene .cursor { animation: s-cursor 10s var(--ease) infinite; }
  .js .scene .select { animation: s-select 10s var(--ease) infinite; }
  .js .scene .match { animation: s-match 10s cubic-bezier(.3, 1.6, .5, 1) infinite; }
  .js .scene.paused *, .js .rail.held .pager button::after { animation-play-state: paused !important; }
}
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes tileIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes s-req { 0% { opacity: 0; transform: translateY(12px); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes s-chip { 0%, 8% { opacity: 0; transform: translateY(4px); } 11%, 100% { opacity: 1; transform: none; } }
@keyframes s-chip2 { 0%, 12% { opacity: 0; transform: translateY(4px); } 15%, 100% { opacity: 1; transform: none; } }
@keyframes s-chip3 { 0%, 16% { opacity: 0; transform: translateY(4px); } 19%, 100% { opacity: 1; transform: none; } }
@keyframes s-wire { 0%, 20% { stroke-dashoffset: 1; opacity: 1; } 34%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes s-dot { 0%, 20% { opacity: 0; } 22%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s-cons { 0%, 30% { opacity: 0; transform: translateY(12px); } 37%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes s-cursor {
  0%, 36% { opacity: 0; transform: translate(-8cqw, -34cqw); }
  40% { opacity: 1; transform: translate(-8cqw, -34cqw); }
  54% { transform: translate(0, 0) scale(1); }
  56% { transform: translate(0, 0) scale(.82); }
  58%, 70% { opacity: 1; transform: translate(0, 0) scale(1); }
  78%, 100% { opacity: 0; transform: translate(3cqw, 4cqw); }
}
@keyframes s-select { 0%, 56% { opacity: 0; transform: scale(1.06); } 60%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes s-match { 0%, 61% { opacity: 0; transform: scale(.4); } 67%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }

/* ===== Tablet ===== */
@media (max-width: 1180px) {
  .lead { grid-template-columns: 1fr 1fr; }
  .rail { grid-column: 1 / -1; }
  .rail-pages { display: block; }
  .starts, .tiles, .figures { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .nav ul a { padding: 0 12px; }
}

/* ===== Phone ===== */
@media (max-width: 860px) {
  :root { --pad: 16px; }
  html { scroll-padding-top: 56px; }
  .masthead .bar { height: 48px; }
  .burger { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; flex: none; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .menu-open .burger span { background: transparent; }
  .menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .masthead .logo { background: none; border: 0; padding: 0 8px; }
  .nav { position: fixed; top: 48px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; padding: 8px 0 24px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; overflow-y: auto; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul li:first-child a { margin-left: 0; }
  .nav ul a { padding: 16px; font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"]::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tools { margin: 24px 16px 0; flex-direction: column; gap: 8px; }
  .tools a { min-height: 48px; border: 1px solid var(--line-2); }
  .tools .cta { border-color: var(--blue); justify-content: space-between; }
  .tel-top { display: grid !important; place-items: center; width: 48px; margin-left: auto; color: var(--ink); }
  .tel-top svg { width: 20px; height: 20px; }

  .lead { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .lead h1 { font-size: 40px; }
  .lead .sub { font-size: 18px; }
  .lead-text { gap: 24px; }
  .btns .btn { width: 100%; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .head h2, .split h2 { font-size: 34px; }
  .head p { font-size: 18px; }
  .head .text-link { margin-top: 20px; }
  .starts, .tiles, .figures, .steps, .cols3, .team { grid-template-columns: 1fr; }
  .start { min-height: 0; }
  .tile-link { min-height: 170px; }
  .mosaic-grid { aspect-ratio: 3 / 2; }
  .mosaic-card { position: relative; width: 100%; min-height: 0; padding-bottom: 60px; }
  .mosaic-card p { font-size: 20px; }
  .figure .top p { font-size: 22px; }
  .figure .top { padding-bottom: 28px; }
  .split { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .col-card .pic { margin-bottom: 20px; }
  .connect { grid-template-columns: 1fr; }
  .connect .phone { font-size: 30px; }
  .leadspace { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .leadspace h1 { font-size: 40px; }
  .leadspace .pic { min-height: 0; }
  .area, .faq { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .nav li { display: block; }
  .nav ul a { display: flex; }
  .area .cols { grid-template-columns: 1fr; }
  .area .picto { display: none; }
  .faq .answer { padding-right: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding-bottom: 40px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 861px) { .tel-top { display: none !important; } }
