/* Flogect homepage. */

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

:root {
  /* colour */
  --ink: #16212C;
  --ink-2: #52606D;
  --ink-soft: #9AA6B2;
  --ground: #F4F5F2;
  --paper: #FFFFFF;
  --rule: rgba(22, 33, 44, 0.14);
  --rule-strong: rgba(22, 33, 44, 0.32);
  --rule-dark: rgba(244, 245, 242, 0.16);
  --teal: #156E6B;          /* text, actions */
  --teal-hover: #105A57;
  --teal-fill: #24A8A7;     /* graphic fill only */
  --teal-light: #3FBDB7;    /* on ink */
  --orange: #F29A2E;        /* graphic fill, or on ink */
  --orange-ink: #9A5A0C;    /* orange as text on light ground */
  --error: #A32D1E;

  /* type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.5rem, 1.35rem + 3.6vw, 4.125rem);
  --fs-h2: clamp(1.875rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;

  /* space (8-based) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 168px;
  --gutter: 40px;
  --maxw: 1240px;
  --section: var(--s6);

  /* shape */
  --r-ctl: 6px;
  --r-panel: 8px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 120ms;
  --t-fast: 200ms;
  --t-state: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(36, 168, 167, 0.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.section-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-light); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: var(--r-ctl);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-ctl);
  background: var(--teal); color: #fff;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out);
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform var(--t-fast) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--teal-hover); }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn-ghost:hover { background: rgba(22, 33, 44, 0.05); }
}

.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color var(--t-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .textlink:hover { text-decoration-color: var(--teal); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: var(--r-ctl); }
.brand-name { display: flex; flex-direction: column; font-size: 1.125rem; font-weight: 700; line-height: 1.1; font-stretch: 108%; letter-spacing: -0.01em; }
.brand-name small { font-size: 0.75rem; font-weight: 400; font-stretch: 100%; color: var(--ink-2); letter-spacing: 0.04em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--orange), var(--orange)) left calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size var(--t-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover { background-size: 100% 2px; }
}
.nav-cta-item { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 76px; }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
}
.hero h1 {
  grid-column: 1 / span 8; text-wrap: pretty;
  font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.022em;
  font-weight: 620; font-stretch: 106%;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-lede { grid-column: 9 / span 4; padding-top: 4px; }
.hero-lede p { font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); margin-bottom: 18px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }

/* Convergence figure */
.convergence { margin-top: 64px; margin-bottom: 0; position: relative; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.conv-head { display: grid; grid-template-columns: 470fr 300fr 470fr; border-bottom: 1px solid var(--rule); }
.conv-head div { padding: 14px 0 12px; line-height: 1.2; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.02em; display: flex; gap: 10px; align-items: baseline; }
.conv-head div:nth-child(2) { justify-content: center; border-inline: 1px solid var(--rule); }
.conv-head div:nth-child(3) { justify-content: flex-end; }
.mark { width: 10px; height: 10px; align-self: center; }

.conv-svg { width: 100%; height: auto; font-family: var(--font); overflow: visible; }
.conv-svg .col-rule { stroke: var(--rule); stroke-width: 1; }
.conv-svg .lines-in path { stroke: var(--orange); stroke-width: 1.5; fill: none; }
.conv-svg .lines-out path { stroke: var(--teal-fill); stroke-width: 1.5; fill: none; }
.conv-svg .frag rect { fill: var(--paper); stroke: var(--orange); stroke-width: 1.5; }
.conv-svg .frag text { font-size: 14px; fill: var(--ink); }
.conv-svg .node-caption { font-size: 13px; fill: var(--ink-2); }
.conv-svg .mod rect { fill: var(--teal); }
.conv-svg .mod text { font-size: 14px; font-weight: 600; fill: #fff; }
.conv-svg .mod-outline rect { fill: var(--paper); stroke: var(--teal); stroke-width: 1.5; }
.conv-svg .mod-outline text { fill: var(--teal); }
.conv-svg .bus line { stroke: var(--ink); stroke-width: 1.5; }
.conv-svg .bus text { font-size: 13px; font-weight: 600; fill: var(--ink); }

.conv-stack { display: none; }

.cartouche {
  position: absolute; right: 0; bottom: -1px;
  display: grid; grid-template-columns: auto auto;
  border: 1px solid var(--rule-strong); background: var(--paper);
  font-size: 0.75rem; line-height: 1.3;
}
.cartouche span:not(.sr-only) { padding: 8px 12px; }
.cartouche span:first-child { color: var(--ink-2); }
.cartouche span:nth-child(2) { border-left: 1px solid var(--rule); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); padding-bottom: 0; }
#trasformazione { padding-top: 88px; }
.section:last-of-type { padding-bottom: var(--section); }
.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  margin-bottom: var(--s5);
}
.sec-num {
  grid-column: 1 / span 2;
  display: block; padding-top: 14px; border-top: 2px solid var(--ink);
  font-size: 0.9375rem; font-weight: 700; font-stretch: 125%; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.sec-head h2 {
  grid-column: 3 / span 8;
  padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; font-weight: 600; font-stretch: 106%; text-wrap: pretty;
}
.sec-head h2 .as-is { display: block; color: var(--orange-ink); }
.sec-head h2 .muted { color: var(--ink-2); }

/* 01 Transformation */
.t-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: var(--s4); }
.t-claim { grid-column: 3 / span 6; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.4; font-weight: 500; }
.t-note { grid-column: 9 / span 4; align-self: end; font-size: var(--fs-small); color: var(--ink-2); }
.t-note strong { color: var(--ink); font-weight: 600; }

.scenarios { border-top: 1px solid var(--rule-strong); }
.sc-controls { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
/* Horizontal-only scroller. overflow-y is explicit (with only overflow-x set it computes to auto) and the
   active underline sits inside the box, so there is no vertical scroll range for iOS to bounce. */
.sc-tabs {
  display: flex; gap: 0; scrollbar-width: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
}
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs button {
  position: relative; min-height: 52px; padding: 0 20px 0 0; margin-right: 20px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-2);
  transition: color var(--t-fast) ease;
}
.sc-tabs button::after {
  content: ""; position: absolute; left: 0; right: 20px; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-state) var(--ease-out);
}
.sc-tabs button[aria-selected="true"] { color: var(--ink); }
.sc-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .sc-tabs button:hover { color: var(--ink); } }

.sc-switch { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); margin-block: 8px; }
.sc-switch button {
  min-height: 44px; min-width: 104px; padding: 0 14px; border: 0; border-radius: 4px; cursor: pointer;
  background: transparent; font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.sc-switch .sw-oggi[aria-pressed="true"] { background: var(--ink); color: var(--orange); }
.sc-switch .sw-misura[aria-pressed="true"] { background: var(--teal); color: #fff; }
.sc-switch button:active { transform: scale(0.97); }

.sc-panel { padding-top: var(--s4); padding-bottom: var(--s2); }
.sc-caption { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); margin-bottom: var(--s3); }
.sc-oggi .sc-caption { color: var(--orange-ink); }
.sc-misura .sc-caption { color: var(--teal); }

/* As-is: scattered, uneven, dashed connections */
.frag-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.frag-list li {
  position: relative; padding: 14px 16px; background: var(--paper);
  border: 1.5px solid var(--orange); font-size: 0.9375rem; line-height: 1.35;
}
.frag-list li b { display: block; font-weight: 500; }
.frag-list li span { display: block; margin-top: 10px; font-size: 0.75rem; font-weight: 600; color: var(--orange-ink); }
.frag-list li:nth-child(2) { margin-top: 48px; }
.frag-list li:nth-child(3) { margin-top: 12px; }
.frag-list li:nth-child(4) { margin-top: 64px; }
.frag-list li:nth-child(5) { margin-top: 24px; }
.frag-list li + li::before {
  content: ""; position: absolute; left: -17px; top: 50%; width: 16px; border-top: 1.5px dashed var(--orange);
}

/* To-be: one aligned pipeline */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.flow::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 2px; background: var(--teal-fill); }
.flow li { position: relative; padding: 36px 16px 0 0; }
.flow li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 2px var(--teal);
}
.flow li:last-child::before { background: var(--teal); }
.flow b { display: block; font-size: 1.0625rem; font-weight: 650; }
.flow span { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.flow em { display: inline-block; margin-top: 12px; padding: 4px 8px; font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); border-radius: 3px; }

/* state switching (JS only); without JS both states stay stacked and readable */
.js .sc-panel { display: grid; }
.js .sc-panel[hidden] { display: none; }
.js .sc-state { grid-area: 1 / 1; transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s linear 0s; }
.js .sc-state[data-off] { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility 0s linear var(--t-fast); }
html:not(.js) .sc-state + .sc-state { margin-top: var(--s4); }
html:not(.js) .sc-controls { display: none; }
html:not(.js) .sc-panel[hidden] { display: block !important; }

/* 02 Competences: four selectable competences around one spine, their description, then research.
   Without JS the tiles are links and every description stays listed. */
/* second sentence on its own line, as the .as-is line of section 01; body copy avoids one-word last lines */
.section-competences .sec-head h2 .muted { display: block; }
.section-competences p { text-wrap: pretty; }
.comp-intro { max-width: 62ch; margin: calc(-1 * var(--s4)) 0 var(--s5) calc((100% + 24px) / 12 * 2); color: var(--ink-2); }
.areas-cta { margin-top: var(--s4); margin-left: calc((100% + 24px) / 12 * 2); }
.comp-tags { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-small); line-height: 1.45; }
.comp-tags li { position: relative; padding-left: 13px; }
.comp-tags li::before { content: ""; position: absolute; left: 0; top: 0.45em; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--teal-fill); }
.mark-open { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-linejoin: round; }

.comp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin: 0; }
/* the hint exists only where there is something to select */
.comp-hint { display: none; grid-column: 3 / -1; margin-bottom: var(--s3); font-size: var(--fs-label); line-height: 1.3; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.comp.is-live .comp-hint { display: block; }
.comp-diagram { grid-column: 3 / span 6; position: relative; }
.comp-tabs { --spine: 136px; display: grid; grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr); grid-template-rows: auto 88px auto; position: relative; }
.comp-item { position: relative; display: flex; }
.comp-item:nth-child(1) { grid-area: 1 / 1; } .comp-item:nth-child(2) { grid-area: 1 / 3; }
.comp-item:nth-child(3) { grid-area: 3 / 1; } .comp-item:nth-child(4) { grid-area: 3 / 3; }
.comp-spine { grid-column: 2; grid-row: 1 / -1; position: relative; }
.comp-spine::before { content: ""; position: absolute; left: calc(50% - 0.75px); top: 50px; bottom: 50px; border-left: 1.5px solid var(--ink); }
/* the shared subject: same type step as the tiles, a hairline frame, not the heaviest stroke of the drawing */
.comp-hub {
  grid-column: 2; grid-row: 2; align-self: center; position: relative; margin-inline: 4px; padding: 10px 12px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 0.875rem; line-height: 1.3; font-weight: 600; text-align: center; text-wrap: balance;
}
.comp-tab {
  position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 100px; padding: 16px 44px 16px 18px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: 1rem; line-height: 1.3; font-weight: 620; font-stretch: 104%;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.comp-mark { flex: none; width: 10px; height: 10px; margin-top: 0.3em; fill: var(--teal-fill); transition: fill var(--t-fast) ease; }
/* DESIGN's button arrow: points at the panel beside the diagram, down where the panel sits below */
.comp-arrow { position: absolute; right: 16px; bottom: 14px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--ink-2); transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
/* connector from each competence to the spine; the junction marks it on the spine */
.comp-item::after { content: ""; position: absolute; top: 50px; width: calc(var(--spine) / 2); border-top: 1px solid var(--rule-strong); transition: border-color var(--t-fast) ease; }
.comp-item::before { content: ""; position: absolute; top: 46px; width: 9px; height: 9px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-2); z-index: 1; transition: background-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.comp-item:nth-child(odd)::after { left: 100%; } .comp-item:nth-child(even)::after { right: 100%; }
.comp-item:nth-child(odd)::before { left: calc(100% + var(--spine) / 2 - 4.5px); } .comp-item:nth-child(even)::before { right: calc(100% + var(--spine) / 2 - 4.5px); }

.comp-panels { grid-column: 9 / -1; }
.comp-panel { padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.comp-panel + .comp-panel { margin-top: var(--s4); }
.comp-panel h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 620; font-stretch: 104%; }
.comp-panel p { margin-top: 12px; color: var(--ink-2); }
.comp-panel .comp-tags { margin-top: 18px; }
.comp-panel:focus-visible { outline-offset: 6px; }

/* Interactive state (JS only). Without JS the four descriptions stay listed and the tiles are plain links to them. */
/* All panels share one cell, so the block keeps the height of the longest one: switching never moves the page.
   Same state pattern as the scenario panels of section 01. */
.comp.is-live .comp-panels { display: grid; }
.comp.is-live .comp-panel { grid-area: 1 / 1; padding-top: 22px; border-top: 2px solid var(--teal); transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s linear 0s; }
.comp.is-live .comp-panel + .comp-panel { margin-top: 0; }
.comp.is-live .comp-panel[data-off] { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility 0s linear var(--t-fast); }
.comp-tab[aria-selected="true"] { background: var(--teal); color: var(--paper); box-shadow: inset 0 0 0 1px var(--teal); }
.comp-tab[aria-selected="true"] .comp-mark { fill: var(--paper); }
.comp-tab[aria-selected="true"] .comp-arrow { color: var(--paper); }
.comp-item.is-on::after { border-top: 2px solid var(--teal); margin-top: -0.5px; }
.comp-item.is-on::before { background: var(--teal); box-shadow: none; }
.comp-tab[aria-selected="true"]:focus-visible { outline-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .comp.is-live .comp-tab[aria-selected="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
  .comp.is-live .comp-tab[aria-selected="false"]:hover .comp-arrow { color: var(--teal); transform: translateX(2px); }
}
@media (min-width: 1101px) {
  /* the panel sits beside the tiles, so the selected tile names it; the heading stays for screen readers */
  .comp.is-live .comp-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Ricerca e sviluppo: research, not services */
.research { margin-top: var(--s6); padding-block: var(--s5); background: var(--paper); border-block: 1px solid var(--rule); }
.research-head, .research-list, .research-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.research-head h3 { grid-column: 3 / span 8; font-size: clamp(1.5rem, 1.17rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; font-stretch: 106%; }
.research-head h3 .muted { color: var(--ink-2); }
.research-intro { grid-column: 3 / span 6; margin-top: var(--s2); color: var(--ink-2); }
.research-list { margin-top: var(--s4); row-gap: var(--s4); }
.research-item { padding-top: 18px; border-top: 1px dashed var(--rule-strong); }
.research-item:nth-child(odd) { grid-column: 3 / span 5; } .research-item:nth-child(even) { grid-column: 8 / span 5; }
.research-item h4 { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 1.125rem; line-height: 1.3; font-weight: 620; font-stretch: 104%; }
.research-item p { margin-top: 10px; max-width: 50ch; color: var(--ink-2); }
.research-foot p { grid-column: 3 / -1; margin-top: var(--s4); font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
/* Windows high contrast: tiles and selection survive without our colours */
@media (forced-colors: active) {
  .comp-tab, .comp-hub { border: 1px solid CanvasText; }
  .comp-tab[aria-selected="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .comp-tab[aria-selected="true"] .comp-mark { fill: HighlightText; }
  .comp-tab[aria-selected="true"] .comp-arrow { color: HighlightText; }
  .comp-mark { fill: CanvasText; }
  .comp-item.is-on::after { border-top-color: Highlight; }
  .comp-item.is-on::before { background: Highlight; }
  .comp-item::before { border: 1px solid CanvasText; }
  .comp.is-live .comp-panel { border-top-color: Highlight; }
}

/* 03 Method on ink */
.section-ink { background: var(--ink); color: var(--ground); margin-top: var(--section); padding-bottom: var(--section); padding-left: var(--gutter); padding-right: var(--gutter); }
.section-ink > .wrap { width: min(var(--maxw), 100%); }
.section-ink .sec-num { border-top-color: var(--ground); color: var(--ink-soft); }
.section-ink .sec-head h2 { border-top-color: var(--rule-dark); }
.section-ink .sec-head h2 .muted { color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--rule-dark); }
.steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; background: var(--teal-light);
  transform-origin: left; transform: scaleX(1);
}
.step { position: relative; z-index: 1; padding-top: 40px; }
.step-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px var(--teal-light); }
.step-brief .step-dot { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.step h3 { margin-top: 0; font-size: var(--fs-h3); line-height: 1.25; font-weight: 620; }
.step p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; color: #C9D0D6; }
.step-tag {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px;
  font-size: var(--fs-small); font-weight: 600; color: var(--orange);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}

/* 04 Flogect City */
.city { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.city-copy { grid-column: 3 / span 4; display: grid; gap: var(--s3); }
.city-copy > p:not(.city-status) { color: var(--ink-2); }
.city-status { font-size: var(--fs-small); font-weight: 600; color: var(--teal); }
.city-flow { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.city-flow li { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-weight: 600; display: flex; align-items: center; gap: 14px; }
.city-flow li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--teal); }
.city-flow li:last-child::before { background: var(--teal); }
.city-proof { margin: 0; }
.city-proof dt { font-size: var(--fs-label); font-weight: 700; color: var(--ink); }
.city-proof dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.city-shot { grid-column: 7 / span 6; margin: 0; }
.city-shot img { width: 100%; border: 1px solid var(--rule-strong); background: #F5F0E8; }
.city-shot figcaption { margin-top: 10px; font-size: 0.75rem; color: var(--ink-2); }

/* 05 Product lab */
.lab-intro { max-width: 62ch; margin: calc(-1 * var(--s4)) 0 var(--s4); margin-left: calc((100% + 24px) / 12 * 2); color: var(--ink-2); }
.lab { border-top: 1px solid var(--rule-strong); }
.lab-row {
  display: grid; grid-template-columns: 3fr 3fr 5fr; column-gap: 24px; align-items: center;
  padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.lab-head { padding-top: 12px; padding-bottom: 12px; font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); }
.lab-row > span:not(.lab-name) { font-size: 0.9375rem; color: var(--ink-2); }
.lab-name { display: flex; align-items: center; gap: 16px; font-size: var(--fs-h3); font-weight: 620; font-stretch: 104%; color: var(--ink); }
.lab-name img { width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--paper); flex: none; }
.lab-status { margin-left: calc((100% + 24px) / 12 * 2); margin-bottom: var(--s3); font-size: var(--fs-small); color: var(--ink-2); }
.lab-status strong { font-weight: 600; color: var(--ink); }

/* 06 Contact */
.section-contact { padding-bottom: var(--section); }
.contact-body { max-width: 62ch; margin-top: calc(-1 * var(--s3)); margin-left: calc((100% + 24px) / 12 * 2); }
.contact-body p { margin-bottom: var(--s3); color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ground); padding-top: var(--s5); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: var(--s4); padding-bottom: var(--s5); }
.footer-brand { grid-column: 1 / span 6; }
.site-footer .brand { color: var(--ground); }
.site-footer .brand-name small { color: var(--ink-soft); }
.footer-brand p { margin-top: var(--s2); color: var(--ink-soft); max-width: 36ch; }
.footer-brand .footer-mail { margin-top: var(--s1); }
.footer-mail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ground); font-weight: 600; text-underline-offset: 5px; }
.footer-col { grid-column: span 3; }
.footer-title { font-size: var(--fs-label); font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ground); font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.footer-base { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--rule-dark); font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- Motion ---------- */
/* Hero convergence: plays once on load, CSS-only so it stays smooth while the page is busy.
   Default state is the final drawing: no JS, no animation, nothing hidden. */
@media (prefers-reduced-motion: no-preference) {
  .js .conv-svg .frag { animation: frag-in 420ms var(--ease-out) both; }
  .js .conv-svg .frag:nth-child(2) { animation-delay: 40ms; }
  .js .conv-svg .frag:nth-child(3) { animation-delay: 80ms; }
  .js .conv-svg .frag:nth-child(4) { animation-delay: 120ms; }
  .js .conv-svg .frag:nth-child(5) { animation-delay: 160ms; }
  .js .conv-svg .frag:nth-child(6) { animation-delay: 200ms; }
  .js .conv-svg .lines-in path { stroke-dasharray: 1; animation: draw 620ms var(--ease-out) 220ms both; }
  .js .conv-svg .node { transform-box: fill-box; transform-origin: center; animation: node-in 380ms var(--ease-out) 700ms both; }
  .js .conv-svg .node-caption { animation: fade 300ms ease 900ms both; }
  .js .conv-svg .lines-out path { stroke-dasharray: 1; animation: draw 560ms var(--ease-out) 880ms both; }
  .js .conv-svg .mod { animation: mod-in 420ms var(--ease-out) both; animation-delay: 1020ms; }
  .js .conv-svg .mod:nth-child(2) { animation-delay: 1070ms; }
  .js .conv-svg .mod:nth-child(3) { animation-delay: 1120ms; }
  .js .conv-svg .mod:nth-child(4) { animation-delay: 1170ms; }
  .js .conv-svg .mod:nth-child(5) { animation-delay: 1220ms; }
  .js .conv-svg .bus { animation: fade 360ms ease 1360ms both; }

  .js .conv-stack .stack-frags li { animation: stack-in 380ms var(--ease-out) both; }
  .js .conv-stack .stack-frags li:nth-child(n+2) { animation-delay: 50ms; }
  .js .conv-stack .stack-frags li:nth-child(n+4) { animation-delay: 100ms; }
  .js .conv-stack .stack-node img { animation: node-in 380ms var(--ease-out) 260ms both; }
  .js .conv-stack .stack-mods li { animation: stack-in 380ms var(--ease-out) 420ms both; }

  /* Discrete reveals for lists that arrive as lists (areas, lab rows). */
  .js [data-reveal-list] > li, .js [data-reveal-item] { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .js [data-reveal-list] > li.is-in, .js [data-reveal-item].is-in { opacity: 1; transform: none; }

  /* Method line fills with scroll where supported; static and complete elsewhere. */
  @supports (animation-timeline: view()) {
    .steps::after { animation: line-fill linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .conv-svg, .js .conv-stack { animation: fade 200ms ease both; }
  .js .sc-state, .js .sc-state[data-off] { transform: none; }
  .btn:active, .sc-switch button:active { transform: none; }
  .comp.is-live .comp-panel[data-off] { transform: none; }
  .comp-arrow { transition: color var(--t-fast) ease; }
  .comp.is-live .comp-tab[aria-selected="false"]:hover .comp-arrow { transform: none; }
}
@keyframes frag-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes mod-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes stack-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes node-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes line-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 24px; }
  .comp-diagram, .comp-panels { grid-column: 3 / -1; }
  .comp-panels { margin-top: var(--s4); max-width: 62ch; }
  .comp-arrow { transform: rotate(90deg); }
  .comp.is-live .comp-tab[aria-selected="false"]:hover .comp-arrow { transform: rotate(90deg) translateX(2px); }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; --section: 88px; }
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
    border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: transparent; cursor: pointer;
    font-size: 0.9375rem; font-weight: 600;
  }
  .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .menu-toggle path { transform-box: fill-box; transform-origin: center; transition: transform var(--t-fast) var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }

  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; gap: 0; padding-top: 8px; padding-bottom: 24px; padding-left: var(--gutter); padding-right: var(--gutter);
    background: var(--ground); border-bottom: 1px solid var(--rule-strong);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  }
  .nav-links.is-open { box-shadow: 0 0 0 100vh rgba(22, 33, 44, 0.32); clip-path: inset(0 0 -100vh 0); opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility 0s; }
  .nav-links li { border-bottom: 1px solid var(--rule); padding-top: 4px; padding-bottom: 4px; }
  .nav-links a:not(.btn) { min-height: 48px; width: 100%; font-size: 1.125rem; background: none; }
  .nav-cta-item { display: block; border-bottom: 0 !important; padding-top: 16px; padding-bottom: 4px; }
  .nav-cta-item .btn { width: 100%; min-height: 52px; }
  html:not(.js) .nav-links { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; }
  html:not(.js) .menu-toggle { display: none; }

  .hero { padding-top: 56px; }
  .hero h1, .hero-lede { grid-column: 1 / -1; }
  .hero-lede { margin-top: 24px; max-width: 60ch; }

  .sec-head h2, .t-claim { grid-column: 3 / -1; }
  .t-note { grid-column: 3 / -1; margin-top: 16px; }
  .frag-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .frag-list li:nth-child(n) { margin-top: 0; }
  .frag-list li:nth-child(even) { margin-top: 24px; }
  .frag-list li + li::before { display: none; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { left: 9px; right: auto; top: 9px; bottom: 9px; width: 2px; height: auto; }
  .flow li { padding: 0 0 24px 40px; }

  .research-head h3, .research-intro { grid-column: 3 / -1; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 9px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { left: 8px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) { .steps::after { animation-name: line-fill-y; } }
  }
  .step { padding: 0 0 32px 44px; }

  .city-copy, .city-shot { grid-column: 1 / -1; }
  .city-shot { margin-top: var(--s4); }
  .lab-intro, .lab-status, .contact-body { margin-left: 0; }
  .lab-intro { margin-top: calc(-1 * var(--s3)); }
  .lab-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .lab-head { display: none; }
  .lab-name { grid-column: 1 / -1; }
  .lab-row > span:nth-child(2) { grid-column: 1 / -1; padding-left: 64px; }
  .lab-row > span:nth-child(3) { grid-column: 1 / -1; padding-left: 64px; }


  .footer-brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 6; }
}
@keyframes line-fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Convergence switches to the vertical drawing below 900px: the same reading as the symbol. */
@media (max-width: 900px) {
  .conv-head, .conv-svg { display: none; }
  .convergence { border-bottom: 0; }
  .conv-stack { display: block; padding: 24px 0 72px; }
  .stack-label { display: flex; gap: 8px; align-items: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.02em; }
  .stack-frags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .stack-frags li { padding: 8px 12px; background: var(--paper); border: 1.5px solid var(--orange); font-size: 0.875rem; }
  .stack-frags li:nth-child(odd) { transform: translateY(4px); }
  .stack-node { display: grid; justify-items: center; gap: 4px; margin: 20px 0; padding-top: 8px; padding-bottom: 8px; border-block: 1px solid var(--rule); }
  .stack-node picture { display: block; }
  .stack-node img { width: 132px; height: 132px; }
  .stack-node p { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-label); font-weight: 600; }
  .stack-mods { display: grid; gap: 6px; margin-top: 14px; }
  .stack-mods li { padding: 10px 14px; background: var(--teal); color: #fff; font-size: 0.9375rem; font-weight: 600; }
  .stack-mods li.mod-outline { background: var(--paper); color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
  .cartouche { left: 0; right: auto; bottom: 16px; }
  .cartouche span:not(.sr-only) { padding: 6px 10px; }
  /* stacked: the shared subject on top, every competence hangs from one spine */
  .comp-tabs { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 12px; padding-left: 28px; }
  .comp-item { grid-area: auto !important; }
  .comp-spine { display: none; }
  .comp-hub { grid-column: 1; grid-row: auto; order: -1; margin: 0 0 4px -28px; padding: 0 0 2px; background: none; box-shadow: none; text-align: left; font-size: var(--fs-label); letter-spacing: 0.02em; }
  .comp-tab { min-height: 56px; padding: 14px 44px 14px 16px; align-items: center; }
  .comp-mark { margin-top: 0; }
  .comp-arrow { bottom: auto; top: calc(50% - 8px); }
  .comp-item:nth-child(n)::after { left: -22px; right: auto; top: 50%; width: 22px; }
  .comp-item:nth-child(n)::before { left: -26.5px; right: auto; top: calc(50% - 4.5px); }
  /* spine drawn per item, so it always ends exactly at the last junction whatever the title length */
  .comp-tab::before { content: ""; position: absolute; left: -22.75px; top: -12px; bottom: 0; border-left: 1.5px solid var(--ink); }
  .comp-item:nth-child(1) .comp-tab::before { top: -10px; }
  .comp-item:nth-child(4) .comp-tab::before { bottom: 50%; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 72px; }
  .header-inner { height: 64px; }
  .site-header .brand img { width: 32px; height: 32px; }
  html { scroll-padding-top: 76px; }
  .hero { padding-top: 40px; }
  .hero-lede p { font-size: 1.0625rem; }
  .actions .btn { width: 100%; }
  .actions .textlink { margin-inline: auto; }
  .sec-head { margin-bottom: var(--s4); }
  .sec-num { grid-column: 1 / -1; width: 72px; margin-bottom: 12px; }
  .sec-head h2, .t-claim, .t-note { grid-column: 1 / -1; }
  .sec-head h2 { border-top: 0; padding-top: 0; }
  .sc-controls { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .sc-tabs, .sc-switch { min-width: 0; }
  .sc-tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .sc-switch { margin-block: 12px; }
  .sc-switch button { min-width: 0; }
  .frag-list { grid-template-columns: 1fr; gap: 10px; }
  .frag-list li:nth-child(n) { margin-top: 0; }
  .frag-list li:nth-child(even) { margin-left: 24px; }
  .frag-list li:nth-child(3n) { margin-left: 8px; }
  .comp-hint, .comp-diagram, .comp-panels, .research-head h3, .research-intro, .research-item:nth-child(n), .research-foot p { grid-column: 1 / -1; }
  .comp-intro, .areas-cta { margin-left: 0; }
  .comp-intro { margin-top: calc(-1 * var(--s3)); margin-bottom: var(--s4); }
  .research { margin-top: var(--s5); padding-block: var(--s4); }
  .lab-row > span:nth-child(n+2) { padding-left: 0; }
  .footer-col { grid-column: 1 / -1; }
  .cartouche { position: static; margin-top: -48px; width: fit-content; }
}
