/* ITNB AG - site stylesheet.
   Part 1 is copied by script, verbatim, from Matteo's hand-off
   (2026-11-23-itnb-ch-production.html, its <style> block): colour, spacing and
   type tokens, and the layout of every section. Fonts are the self-hosted
   files declared in index.html (no Google Fonts).
   Part 2, below the marker, holds what the build adds on top. */

/* ===== Part 1: Matteo's stylesheet ===== */
/* itnb.ch: near-black SQUDO canvas, 1180px column, one blue accent. */
:root {
  color-scheme: dark;
  --bg: #06070a; --raised: #08090c; --panel: #0a0e16; --deep: #0c1420;
  --ink-1: #f3f6f9; --ink-3: #cfd6dd; --muted: #9aa4b0; --soft: #8a94a0; --faint: #6b7682; --ghost: #4c545d;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.22);
  --accent: #5b9dff; --accent-light: #9cd7ff; --accent-pale: #bcdcff; --accent-line: rgba(91,157,255,.28);
  --predict: #22b8a8; --verdict: #5b9dff; --act: #e8743b;
  --live: #34d399; --check: #e8b36a; --refused: #ff5c6e;
  --note: #e8b36a; --note-bg: rgba(232,179,106,.08); --note-line: rgba(232,179,106,.45);
  --f-display: 'Newsreader', 'Spectral', Georgia, serif;
  --f-serif: 'Spectral', 'Newsreader', Georgia, serif;
  --f-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--muted); font-family: var(--f-sans); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(91,157,255,.32); color: var(--ink-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
h1, h2, h3 { color: var(--ink-1); font-weight: 300; margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-serif); font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.015em; }
h1 em, h2 em { font-family: var(--f-display); font-style: italic; color: var(--accent-pale); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; margin: 20px 0 0; }


/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: rgba(6,7,10,.92); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(6,7,10,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--soft); flex: 1; }
.nav-links a:hover, .nav-links a.on { color: var(--ink-1); }
.nav-links a.on { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.lang { display: flex; gap: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.lang span { padding: 3px 6px; border-radius: 6px; }
.lang span.on { color: var(--ink-1); background: rgba(255,255,255,.06); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: box-shadow .4s var(--ease), border-color .3s, color .3s; font-family: var(--f-sans); background: none; }
.btn-primary { background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #06101f; box-shadow: 0 0 22px rgba(91,157,255,.35); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(91,157,255,.6); }
.btn-ghost { border-color: var(--line-3); color: var(--ink-3); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: var(--ink-1); }
.nav .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav .wrap { justify-content: space-between; } }
@media (max-width: 480px) { .lang { display: none; } }

/* hero */
.hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden; }
.aurora { position: absolute; width: 760px; height: 560px; right: -220px; top: -180px; background: radial-gradient(closest-side, rgba(91,157,255,.18), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero h1 { font-family: var(--f-display); font-size: clamp(48px, 7vw, 84px); line-height: 1; letter-spacing: -.02em; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.index li { border-bottom: 1px solid var(--line-2); }
.index a { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: baseline; padding: 18px 4px; transition: background .4s var(--ease); }
.index a:hover { background: rgba(91,157,255,.05); }
.index .n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.index .name { color: var(--ink-1); font-size: 19px; font-weight: 500; }
.index .s { display: block; font-size: 14px; color: var(--soft); font-weight: 400; margin-top: 2px; }
.index .tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* product rows */
.prod { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.row > * { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kicker .num { font-family: var(--f-display); font-size: 40px; line-height: 1; color: rgba(255,255,255,.14); }
.kicker .tg { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.kicker .flag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: #06101f; background: var(--accent); border-radius: 999px; padding: 3px 9px; }
.pname { font-family: var(--f-sans); font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 10px; }
.claim { font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.2vw, 26px); color: var(--ink-1); margin: 22px 0 0; line-height: 1.25; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.points li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px; color: var(--ink-3); font-size: 16px; }
.points li::before { content: "→"; font-family: var(--f-mono); color: var(--accent); font-size: 13px; padding-top: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 32px; }
.textlink { font-size: 14px; color: var(--ink-3); border-bottom: 1px solid var(--line-3); padding-bottom: 2px; }
.textlink:hover { color: var(--ink-1); border-color: var(--accent); }
.demo-tag { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin: 12px 0 0; letter-spacing: .03em; }
@media (max-width: 960px) { .row { grid-template-columns: 1fr; } }

/* SQUDO family panel */
.fampanel { border: 1px solid var(--line); border-radius: 16px; background: var(--raised); overflow: hidden; }
.fampanel .hd { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.member { --c: var(--accent); display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: relative; transition: background .5s var(--ease); }
.member:last-child { border-bottom: 0; }
.member:hover { background: rgba(255,255,255,.02); }
.member.p { --c: var(--predict); } .member.v { --c: var(--verdict); background: linear-gradient(90deg, rgba(91,157,255,.07), transparent 70%); } .member.a { --c: var(--act); }
.member .gem { font-family: var(--f-mono); font-size: 13px; color: var(--c); text-shadow: 0 0 12px var(--c); padding-top: 3px; }
.member .top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.member .nm { color: var(--ink-1); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.member .moment { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.member p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.status i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--soft); }
.status.live { border-color: rgba(52,211,153,.4); }
.status.live i { background: var(--live); border-color: var(--live); box-shadow: 0 0 10px var(--live); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.proofs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 18px; }
.proofs div { background: var(--raised); padding: 16px 14px; }
.proofs b { display: block; font-family: var(--f-sans); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1; color: var(--ink-1); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proofs span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--soft); margin-top: 8px; }
.proof-cap { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin: 10px 0 0; letter-spacing: .03em; }
@media (max-width: 520px) { .proofs { grid-template-columns: 1fr 1fr; } }
.proofs b { white-space: nowrap; }
.proofs b small { font-size: .6em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
@media (min-width: 961px) and (max-width: 1180px) { .proofs:not(.two) { grid-template-columns: 1fr 1fr; } }

/* ICA record card */
.rec { border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 20px; display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 20px; }
.rec > * { min-width: 0; }
.poster { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 4px; position: relative; overflow: hidden; background: linear-gradient(180deg, #e9e1cf, #d8ccb2); box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); }
.poster .sun { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #c8452b; left: 21%; top: 12%; }
.poster .hill { position: absolute; inset: auto 0 34% 0; height: 30%; background: #1d3b5a; clip-path: polygon(0 100%, 0 55%, 30% 10%, 52% 60%, 72% 25%, 100% 70%, 100% 100%); }
.poster .txt { position: absolute; left: 8%; right: 8%; bottom: 6%; font-family: var(--f-sans); font-weight: 600; color: #1d1a16; font-size: 11px; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase; }
.poster .scan { position: absolute; left: 0; right: 0; height: 24%; background: linear-gradient(180deg, transparent, rgba(91,157,255,.35), transparent); top: -24%; animation: scan 3.6s var(--ease) infinite; }
@keyframes scan { 60%, 100% { top: 100%; } }
.fields { display: grid; gap: 0; }
.fields .hd { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.f { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.f span:first-child { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding-top: 2px; }
.f span:last-child { color: var(--ink-3); }
.f.chk span:last-child { color: var(--check); }
.f.chk span:last-child::after { content: " · check"; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; }
.kw { display: flex; flex-wrap: wrap; gap: 5px; }
.kw i { font-style: normal; font-size: 12.5px; border: 1px solid var(--accent-line); border-radius: 999px; padding: 1px 8px; color: var(--ink-3); }
.rec-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.mini { font-family: var(--f-sans); font-size: 13px; border-radius: 999px; padding: 6px 13px; cursor: pointer; border: 1px solid var(--line-3); background: transparent; color: var(--ink-3); }
.mini.go { border-color: rgba(91,157,255,.6); color: var(--accent-pale); }
.mini:hover { color: var(--ink-1); border-color: rgba(255,255,255,.5); }
.state { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--soft); }
.state.ok { color: var(--live); }
@media (max-width: 480px) { .rec { grid-template-columns: 1fr; } .poster { width: 150px; } }
@media (max-width: 380px) { .f { grid-template-columns: 1fr; gap: 2px; } }

/* AIOS ledger */
.ledger { border: 1px solid var(--line); border-radius: 16px; background: var(--raised); overflow: hidden; }
.ledger .hd { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.entry { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry > * { min-width: 0; }
.entry time { font-family: var(--f-mono); font-size: 12px; color: var(--faint); padding-top: 2px; font-variant-numeric: tabular-nums; }
.entry .what { color: var(--ink-1); font-size: 15px; }
.entry .why { font-size: 13.5px; color: var(--soft); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; color: var(--ink-3); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--soft)); }
.pill.wait { --c: var(--check); border-color: rgba(232,179,106,.45); }
.pill.done { --c: var(--live); border-color: rgba(52,211,153,.4); }
.pill.no { --c: var(--refused); border-color: rgba(255,92,110,.4); }
.pill.skip { --c: var(--soft); }
.entry .rec-acts { margin-top: 10px; }

/* tables and asides */
.changes { border-top: 1px dashed var(--note-line); background: linear-gradient(180deg, var(--note-bg), transparent 60%); }
.changes h2 { font-size: clamp(28px, 3.4vw, 38px); }
.tbl { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 400; background: var(--raised); }
td { color: var(--ink-3); }
td:first-child { color: var(--ink-1); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; }
td .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--check); text-transform: uppercase; }
.aside-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.aside { border: 1px dashed var(--note-line); border-radius: 14px; padding: 18px 20px; font-size: 14.5px; color: var(--ink-3); }
.aside h3 { font-family: var(--f-sans); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.aside ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 860px) { .aside-grid { grid-template-columns: 1fr; } }

/* close */
.close { text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.close .aurora { left: 50%; right: auto; transform: translateX(-50%); top: -140px; }
.close h2 { font-family: var(--f-display); font-size: clamp(36px, 5vw, 56px); position: relative; }
.close .lead { margin-inline: auto; position: relative; }
.close .actions { justify-content: center; position: relative; }
.contact-line { margin-top: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--soft); position: relative; user-select: all; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 56px calc(64px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.foot h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); font-weight: 400; margin: 0 0 12px; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .tag { font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--ink-3); font-size: 18px; margin: 14px 0 6px; }
.foot .new { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--note); margin-left: 6px; }
.legal { margin-top: 40px; font-family: var(--f-mono); font-size: 11px; color: var(--ghost); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* views switched in place */
.view[hidden] { display: none !important; }
.nav .wrap { flex-wrap: wrap; height: auto; min-height: 64px; }
.has-sub { position: relative; display: inline-flex; }
.sub { position: absolute; top: 100%; left: -14px; padding-top: 12px; display: none; z-index: 5; }
.sub-in { min-width: 270px; background: rgba(10,14,22,.97); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.9); display: grid; }
.nav-links .sub-in a { padding: 9px 12px; border-radius: 9px; color: var(--ink-3); font-size: 14px; box-shadow: none; }
.nav-links .sub-in a:hover, .nav-links .sub-in a.on { background: rgba(91,157,255,.08); color: var(--ink-1); box-shadow: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.caret { font-size: 10px; margin-left: 5px; color: var(--faint); }
@media (max-width: 900px) {
  .nav .wrap { gap: 8px 16px; padding-block: 10px; justify-content: space-between; }
  .nav-links { display: flex; order: 3; flex: 1 0 100%; flex-wrap: wrap; gap: 6px 20px; white-space: nowrap; padding-block: 4px 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .sub, .caret { display: none !important; }
}
.ribbon a { color: var(--ink-1); border-bottom: 1px dashed var(--note-line); }
.hero.sq h1 { font-size: clamp(44px, 6vw, 72px); }
.hero .row { position: relative; }
.crumb { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--soft); margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumb a { color: var(--ink-3); border-bottom: 1px solid var(--line-3); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.subnav a { font-size: 13.5px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; color: var(--soft); }
.subnav a:hover { color: var(--ink-1); }
.subnav a.on { border-color: var(--accent-line); color: var(--ink-1); background: rgba(91,157,255,.08); }

/* consulting doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; position: relative; }
.door { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 24px 22px; transition: border-color .4s var(--ease), background .4s var(--ease); }
.door:hover { border-color: var(--accent-line); background: var(--panel); }
.door .n { font-family: var(--f-display); font-size: 40px; line-height: 1; color: rgba(255,255,255,.14); }
.door .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin: 18px 0 8px; }
.door h3 { font-family: var(--f-sans); font-weight: 600; font-size: 20px; }
.door p { font-size: 15px; color: var(--ink-3); margin: 10px 0 0; flex: 1; }
.door .go { margin-top: 22px; font-size: 14px; color: var(--accent-pale); }
.door .nw { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: #06101f; background: var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 3px; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }

/* SQUDO footprint */
.fprint { margin-top: 26px; border-top: 1px solid var(--line); }
.fp { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fp > * { min-width: 0; }
.fp .status { margin-top: 1px; }
.fp .who { color: var(--ink-1); font-size: 15.5px; }
.fp .what { font-size: 13.5px; color: var(--soft); margin-top: 2px; }
@media (max-width: 520px) { .fp { grid-template-columns: 1fr; gap: 6px; } }
.proofs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
@media (max-width: 520px) { .proofs.two { grid-template-columns: 1fr; } }

/* hand-off band */
.handoff { border: 1px solid var(--accent-line); border-radius: 18px; background: linear-gradient(120deg, rgba(91,157,255,.10), rgba(91,157,255,.02) 60%); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.handoff h2 { font-size: clamp(26px, 3vw, 34px); }
.handoff p { margin: 10px 0 0; color: var(--ink-3); max-width: 54ch; }

/* IR outline */
.outline { border: 1px solid var(--line); border-radius: 16px; background: var(--raised); overflow: hidden; }
.outline .hd { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.ol { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.ol:last-child { border-bottom: 0; }
.ol .e { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ol .t { color: var(--ink-1); font-weight: 600; font-size: 15.5px; margin-top: 3px; }
.ol ol, .ol ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-3); display: grid; gap: 3px; }
.ol.flagged { background: var(--note-bg); }
.callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin-top: 26px; color: var(--ink-3); font-size: 15.5px; }
.callout b { color: var(--ink-1); font-weight: 600; }
.flag-box { border: 1px dashed var(--note-line); background: var(--note-bg); border-radius: 14px; padding: 16px 18px; margin-top: 26px; font-size: 14.5px; color: var(--ink-3); }
.flag-box b { display: block; color: var(--note); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.flag-box q { color: var(--ink-1); }
.mark { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--note); margin-left: 6px; text-transform: uppercase; }
.aside-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .aside-grid.four { grid-template-columns: 1fr; } }
.aside.decided { border-style: solid; border-color: rgba(52,211,153,.35); }

/* v3: Consulting & Special Projects as one page; track record band */
.view section[id] { scroll-margin-top: 72px; }
.xp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 40px; }
.xp > div { background: var(--raised); padding: 22px 18px; min-width: 0; }
.xp .n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.xp h3 { font-family: var(--f-sans); font-weight: 600; font-size: 17px; margin: 10px 0 8px; }
.xp p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.xp-foot { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 14px 0 0; }
.stats { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 44px; }
.stats > div { background: var(--raised); padding: 20px 18px; min-width: 0; }
.stats b { display: block; font-family: var(--f-sans); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1; color: var(--ink-1); letter-spacing: -.02em; }
.stats span { display: block; font-size: 13px; line-height: 1.4; color: var(--soft); margin-top: 10px; }
.stories { display: grid; gap: 18px; margin-top: 36px; }
.stories.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stories.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 22px; }
.story .top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.story .top .status { margin-top: 0; }
.story .sec { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.story h3 { font-family: var(--f-sans); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 16px 0 0; }
.story p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); margin: 10px 0 0; flex: 1; }
.fp-also, .also { font-size: 14px; color: var(--soft); margin: 16px 0 0; }
.also { font-size: 15px; margin-top: 22px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats > div:last-child { grid-column: span 2; } }
@media (max-width: 960px) { .stories.c3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .stories.c2 { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .stats > div:last-child { grid-column: span 2; } }
@media (max-width: 1100px) { .xp { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xp > div:last-child { grid-column: span 2; } }
@media (max-width: 600px) { .xp { grid-template-columns: 1fr; } .xp > div:last-child { grid-column: auto; } }

/* production: language switcher, Company page, hyphenation */
body { overflow-wrap: break-word; }
html[lang="de-CH"] h1, html[lang="de-CH"] h2, html[lang="de-CH"] h3, html[lang="de-CH"] p, html[lang="de-CH"] li,
html[lang="fr"] h1, html[lang="fr"] h2, html[lang="it"] h1, html[lang="it"] h2 { -webkit-hyphens: auto; hyphens: auto; }
.lang { gap: 2px; align-items: center; }
.lang button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; letter-spacing: .04em; }
.lang button:hover { color: var(--ink-1); }
.lang button.on { color: var(--ink-1); background: rgba(255,255,255,.08); }
@media (max-width: 480px) {
  .lang { display: flex !important; }
  .nav .wrap { gap: 8px 10px; }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
  .lang button { padding: 4px; }
  .logo img { height: 22px; }
}
.f.chk span:last-child::after { content: var(--chk, " · check"); }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.four > div:last-child { grid-column: auto; }
@media (max-width: 900px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; border-left: 1px solid var(--line-2); }
.tl li { position: relative; padding: 0 0 24px 26px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.tl .y { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tl h3 { font-family: var(--f-sans); font-weight: 600; font-size: 16.5px; margin: 4px 0 2px; }
.tl p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.vals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.vals > div { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 22px; }
.vals h3 { font-family: var(--f-serif); font-weight: 400; font-size: 24px; }
.vals p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 1000px) { .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vals { grid-template-columns: 1fr; } }
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.people article { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 14px; display: flex; flex-direction: column; }
.people img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: #020f17; }
.people h3 { font-family: var(--f-sans); font-weight: 600; font-size: 16.5px; line-height: 1.3; margin: 14px 0 0; }
.people .role { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 0; line-height: 1.45; }
.people p { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } .people img { max-width: 200px; } }
#story .lead + .lead { margin-top: 14px; }
.legal a { color: var(--soft); }
.legal a:hover { color: var(--ink-1); }
/* "The path here": vertical on phones and tablets, two horizontal rows from 1100 px */
.path-head { max-width: 760px; }
.path-head + .tl { margin-top: 40px; }
@media (min-width: 1100px) {
  .tl { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); row-gap: 44px; padding: 0; border-left: 0; }
  .path-head + .tl { margin-top: 52px; }
  .tl li { grid-column: span 5; padding: 26px 24px 0 0; border-top: 1px solid var(--line-2); }
  .tl li:nth-child(n+7) { grid-column: span 6; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { left: 0; top: -5px; }
  .tl h3 { font-size: 15.5px; }
  .tl p { font-size: 13.5px; }
}

/* ---- Home v2 (23.11): stack panel, sector marquee, vertical figures ---- */
.hero .row.home-hero { align-items: center; }
.row.home-why { align-items: center; }
.hero .row.home-hero h1 { font-size: clamp(42px, 5.2vw, 70px); }
.stack { position: relative; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); padding: 22px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.stack .hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.stack .chip { display: inline-flex; align-items: center; gap: 8px; color: var(--live); letter-spacing: .12em; }
.stack .chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.stack a.it { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--raised); margin-top: 10px; transition: border-color .4s var(--ease), background .4s var(--ease); }
.stack a.it:hover { border-color: var(--accent-line); background: var(--panel); }
.stack a.it > i { margin-top: 7px; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.stack a.it > i.g { background: var(--live); box-shadow: 0 0 10px var(--live); }
.stack a.it > i.p { background: var(--accent-pale); box-shadow: 0 0 10px var(--accent-pale); }
.stack a.it b { display: block; font-family: var(--f-sans); font-weight: 500; font-size: 16px; color: var(--ink-1); }
.stack a.it span { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.stack .fam { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.stack .fam li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--soft); }
.stack .fam em { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; min-width: 74px; }
.stack .fam em.p { color: var(--predict); } .stack .fam em.v { color: var(--verdict); } .stack .fam em.a { color: var(--act); }
.stack .fam small { font-size: 14px; }
.stack .tags b { flex-basis: 100%; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; }
.stack .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack .tags span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.serve-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.serve-head > p { color: var(--soft); font-size: 15px; line-height: 1.6; margin: 0; }
.marquee { overflow: hidden; margin-top: 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee .track { display: flex; gap: 20px; width: max-content; animation: mq 70s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 10px)); } }
.sector { flex: none; width: 320px; min-height: 190px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 30px 32px; }
.sector > i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sector h3 { font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink-1); margin: 22px 0 14px; }
.sector span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); line-height: 1.6; }
.vstats { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--raised); }
.vstats > div { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; border-top: 1px solid var(--line); }
.vstats > div:first-child { border-top: 0; padding: 32px 24px; background: radial-gradient(120% 160% at 85% 0%, rgba(91,157,255,.18), transparent 60%); }
.vstats span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); line-height: 1.6; max-width: 62%; }
.vstats b { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3.2vw, 44px); line-height: 1; color: var(--ink-1); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vstats > div:first-child b { font-size: clamp(52px, 5.5vw, 76px); }
.vstats b small { font-size: .5em; color: var(--ink-3); margin-left: 4px; }
@media (max-width: 900px) { .serve-head { grid-template-columns: 1fr; gap: 16px; } .sector { width: 260px; padding: 26px; } }
@media (max-width: 480px) { .stack { padding: 16px; } .stack a.it { padding: 14px 16px; } .vstats span { max-width: 55%; letter-spacing: .12em; } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; flex-wrap: wrap; width: auto; padding-inline: 24px; } .marquee .track [aria-hidden="true"] { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } }

/* ---- Nav like today's itnb.ch (23.11): links right, folding language menu ---- */
@media (min-width: 961px) { .nav-links { justify-content: flex-end; gap: 28px; font-size: 15px; } }
.langdd { position: relative; flex: none; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02); color: var(--ink-1); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; cursor: pointer; transition: border-color .3s var(--ease); }
.lang-toggle:hover, .langdd.open .lang-toggle { border-color: var(--accent-line); }
.lang-toggle svg:last-child { transition: transform .3s var(--ease); color: var(--soft); }
.langdd.open .lang-toggle svg:last-child { transform: rotate(180deg); }
.langdd .lang { display: none !important; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 2px; min-width: 150px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); z-index: 40; }
.langdd.open .lang { display: flex !important; }
.langdd .lang button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 8px 10px; font-size: 12px; color: var(--soft); }
.langdd .lang button small { font-family: var(--f-sans); font-size: 13px; letter-spacing: 0; color: var(--ink-3); }
.langdd .lang button.on, .langdd .lang button:hover { color: var(--ink-1); background: rgba(91,157,255,.08); }
.nav .logo img { height: 34px; }
@media (min-width: 961px) { .nav .wrap { height: 76px; } }
@media (max-width: 960px) { .langdd { margin-left: auto; } }
@media (max-width: 480px) { .lang-toggle { height: 34px; padding: 0 10px; } .nav .logo img { height: 26px; } }

/* ---- Contact page (23.11) ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: 48px; align-items: start; position: relative; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform label { display: flex; flex-direction: column; gap: 8px; }
.cform label > span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.cform .full { grid-column: 1 / -1; }
.cform input, .cform select, .cform textarea { font: 15px/1.4 var(--f-sans); color: var(--ink-1); background: var(--raised); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; outline: none; width: 100%; transition: border-color .3s var(--ease); }
.cform select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.cform select option { background: var(--panel); color: var(--ink-1); }
.cform textarea { min-height: 160px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--accent-line); }
.cform .consent { flex-direction: row; align-items: flex-start; gap: 12px; }
.cform .consent > span { font-family: var(--f-sans); font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.cform .consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); padding: 0; }
.cform .send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform .send button { border: 0; cursor: pointer; font: inherit; }
.cnote { margin: 0; font-size: 14px; color: var(--soft); }
.cnote.err { color: #f2a28f; }
.ccard b { font-family: var(--f-sans); font-weight: 500; font-size: 16px; line-height: 1.5; text-align: right; white-space: normal; letter-spacing: 0; }
.ccard > div:first-child b { font-size: 22px; }
.ccard a:hover { color: var(--accent-pale); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cform { grid-template-columns: 1fr; } }

/* ===== Site additions (not in Matteo's file) ===== */

/* AIOS demo: the Go / Skip buttons go away once a choice is made (Matteo's script sets
   hidden on them, but .rec-acts { display: flex } kept them on screen). */
.rec-acts[hidden] { display: none; }

/* Success Stories, SQUDO AI part: "Further deployments" as a full-width card under the
   three story cards (Maxim, 2026-11-23). Card look of .story; inside, the layout of the
   deployment row (.fp): pill left, title and text right; stacked on phones. The pill
   column grows past the row's 158px when a language needs it, so the pill stays on one line. */
.story.story-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(158px, max-content) minmax(0, 1fr); gap: 16px; align-items: start; }
.story.story-wide > * { min-width: 0; }
.story.story-wide .status { margin-top: 1px; }
.story.story-wide h3 { margin: 0; }
.story.story-wide p { margin: 6px 0 0; }
@media (max-width: 520px) { .story.story-wide { grid-template-columns: 1fr; gap: 12px; } .story.story-wide .status { justify-self: start; } }

/* Contact form: the honeypot field stays out of sight and out of the tab order. */
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform .send button[disabled] { opacity: .6; cursor: progress; }
