/* ───────────── Colori: carta e inchiostro ───────────── */
:root {
  --paper: #fcfcfb;
  --paper-2: #f2f2ef;
  --ink: #12161d;
  --ink-2: #4f5967;
  --rule: #dde0e5;
  --blue: #2342c7;
  --mark: #ffe66b;
  --on-ink: #ffffff;

  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0f1217;
  --paper-2: #161a21;
  --ink: #eef0f4;
  --ink-2: #a4adba;
  --rule: #272d36;
  --blue: #9bb0ff;
  --mark: rgba(233, 200, 64, .42);
  --on-ink: #0f1217;
  color-scheme: dark;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mark); color: #12161d; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 84px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.8vw, 74px); letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 650; }
h4 { font: 650 16px/1.3 var(--head); letter-spacing: 0; margin-bottom: 10px; }
p { max-width: 38em; }
.lede { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 33em; }
.muted { color: var(--ink-2); }
.link { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 3px; }
.hl { color: inherit; background: linear-gradient(transparent 56%, var(--mark) 56% 92%, transparent 92%); padding: 0 .12em; margin: 0 -.12em; }

/* ───────────── Bottoni ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px;
  border-radius: 10px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font: 600 16px var(--head); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.quiet:hover { border-color: var(--ink); }
.btn.small { height: 42px; padding: 0 16px; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────────── Barra in alto ───────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 62px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { font: 700 21px var(--head); letter-spacing: -.02em; text-decoration: none; }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
.menu { position: relative; }
.menu-btn svg { transition: transform .25s; }
.menu.open .menu-btn svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 280px; padding: 8px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--paper-2); }
.menu-panel b { display: block; font: 650 16px var(--head); }
.menu-panel small { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
main { padding-top: 62px; }

/* ───────────── Prima schermata ───────────── */
.hero { padding: 72px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.hero .lede { margin-top: 26px; }
.hero .cta { margin-top: 36px; }
.fine { margin-top: 24px; font-size: 16px; color: var(--ink-2); max-width: 31em; }

.desk { position: relative; justify-self: end; width: 100%; max-width: 440px; padding-bottom: 84px; }
.desk .media { aspect-ratio: 4 / 5; }
.desk .media.missing::before { top: 22%; }
.desk .media.missing::after { top: calc(22% + 40px); }

/* il preventivo scritto a mano: resta bianco anche nel tema scuro */
.sheet {
  position: absolute; left: -72px; bottom: 0; width: min(340px, 86%); padding: 20px 22px 16px;
  background: #fff; color: #12161d; border-radius: 3px; transform: rotate(-1.4deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 12px 26px -10px rgba(0, 0, 0, .3), 0 30px 64px -26px rgba(0, 0, 0, .4);
  font: 400 13.5px/1.3 var(--head);
}
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 9px; border-bottom: 2px solid #12161d; font: 700 18px var(--head); letter-spacing: -.01em; }
.sheet-title small { font: 500 13px var(--head); color: #5d6672; }
.line { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: baseline; padding: 8px 0 4px; border-bottom: 1px solid #dfe3e8; }
.line dt { font: 500 12.5px var(--head); color: #5d6672; }
.line dd { max-width: none; font: 500 22px/1.02 var(--hand); color: #2342c7; animation: write .8s steps(28, end) var(--d, 0s) both; }
.sheet mark {
  color: inherit; padding: 0 3px; background: linear-gradient(transparent 52%, #ffe66b 52% 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  animation: mark .5s ease-out 4.3s forwards;
}
.sign { margin-top: 8px; text-align: right; font: 600 34px/1 var(--hand); color: #2342c7; animation: write .7s steps(12, end) 4.9s both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mark { to { background-size: 100% 100%; } }

/* ───────────── Sezioni ───────────── */
.sec { padding: 96px 0; border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: 48px; }
.sec-head .lede { margin-top: 18px; }

.rows { border-top: 1px solid var(--rule); }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 220px; gap: 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.row p { color: var(--ink-2); }
.go { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; justify-self: end; padding: 6px 6px 6px 18px;
  border: 1.5px solid var(--rule); border-radius: 999px; color: var(--ink); font: 600 15px var(--head); text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s; }
.go-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s; }
.row .go::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.go.solo { position: relative; justify-self: start; }
.row:hover .go, .go:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.row:hover .go-ico, .go:hover .go-ico { background: var(--on-ink); color: var(--ink); transform: translateX(3px); }
.go:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; margin-bottom: 14px; font: 700 52px/1 var(--head); color: var(--ink-2); opacity: .45; }
.steps p { margin-top: 10px; color: var(--ink-2); }
.statement { margin-top: 72px; max-width: 24em; font: 600 clamp(24px, 3vw, 34px)/1.28 var(--head); letter-spacing: -.02em; }

.closing { background: var(--ink); color: var(--on-ink); padding: 96px 0; border-top: 0; }
.closing p { color: color-mix(in srgb, var(--on-ink) 75%, transparent); margin-top: 16px; }
.closing .cta { margin-top: 32px; }
.closing .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.closing .btn:hover { background: transparent; color: var(--on-ink); }

/* ───────────── Foto e video ───────────── */
.media {
  position: relative; display: block; margin: 0; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: var(--r, 4 / 3);
}
.media img, .media video, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media.missing img, .media.missing video { opacity: 0; }
.media.missing::before, .media.missing::after { position: absolute; left: 0; right: 0; text-align: center; }
.media.missing::before {
  content: ""; top: calc(50% - 34px); margin: 0 auto; width: 30px; height: 30px; background: var(--ink-2); opacity: .7;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='m21 16-5-4-8 7'/%3E%3C/svg%3E");
}
.media.is-video.missing::before {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m10 9.5 5 2.5-5 2.5z'/%3E%3C/svg%3E");
}
.media.missing::after { content: attr(data-ph); top: calc(50% + 4px); padding: 0 20px; font: 500 14px var(--head); color: var(--ink-2); }
.media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: 15px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.media.missing figcaption { display: none; }

.gallery { display: grid; grid-template-columns: 1.5fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 16px; }
.gallery .media { aspect-ratio: auto; min-height: 220px; }
.gallery .g-big { grid-row: 1 / 3; min-height: 460px; }

/* ───────────── Pagine interne ───────────── */
.page-head { padding: 72px 0 72px; }
.page-head .lede { margin-top: 24px; }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.about .media { aspect-ratio: 4 / 5; max-width: 420px; }
.about h1 { margin-bottom: 26px; }
.about p + p { margin-top: 18px; }

.cv > div { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.cv > div:last-child { border-bottom: 1px solid var(--rule); }
.cv dt { font: 650 20px var(--head); letter-spacing: -.01em; }
.cv dd { max-width: 36em; }
.cv dd p + p { margin-top: 12px; }

.svc { padding: 88px 0; border-top: 1px solid var(--rule); }
.svc:first-of-type { border-top: 0; padding-top: 24px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.svc-grid .lede { margin-top: 18px; }
.bullets { padding-left: 1.2em; list-style: disc; }
.bullets li { padding-left: .25em; }
.bullets li + li { margin-top: 8px; }
.bullets::marker, .bullets li::marker { color: var(--ink-2); }
.svc-body h4:not(:first-child) { margin-top: 32px; }

.empty { padding: 56px; border: 1.5px dashed var(--rule); border-radius: 12px; }
.empty p { margin-top: 14px; color: var(--ink-2); }
.empty .cta { margin-top: 28px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; margin-top: 32px; }
.art { color: var(--ink); }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .f { fill: var(--paper); }
.art .m { fill: var(--mark); stroke: none; }
.art .b { stroke: var(--blue); }
.art text { font: 700 17px var(--head); fill: currentColor; stroke: none; }
.proj h3 { margin-top: 18px; }
.proj .use { margin-top: 14px; font-size: 16px; }
.proj .use b { font-family: var(--head); font-weight: 650; }
.proj-sub { margin-top: 88px; }
.proj p { margin-top: 6px; color: var(--ink-2); }

/* Video dimostrativo, moduli AI, logo partner */
.demo { --r: 2.14 / 1; border: 0; border-radius: 24px; background: #11151c; box-shadow: 0 0 0 1px var(--rule), 0 34px 60px -28px rgba(18, 22, 29, .45); }
:root[data-theme="dark"] .demo { box-shadow: 0 0 0 1px var(--rule), 0 34px 60px -28px rgba(0, 0, 0, .8); }
.demo video { object-position: 50% 79%; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; color: #12161d;
  background: linear-gradient(rgba(18, 22, 29, .08), rgba(18, 22, 29, .38)); transition: opacity .35s; }
.play-pill { display: inline-flex; align-items: center; gap: 14px; padding: 9px 24px 9px 9px; border-radius: 999px; background: #fff; text-align: left;
  font: 650 16px/1.2 var(--head); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.play-pill small { display: block; margin-top: 2px; font: 500 13px var(--body); color: #4f5967; }
.play:hover .play-pill { transform: scale(1.05); }
.play:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.play-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #2342c7; color: #fff; padding-left: 3px; animation: pulse 2.4s ease-out infinite; }
.demo.playing .play { opacity: 0; pointer-events: none; }
.media.missing .play { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35, 66, 199, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(35, 66, 199, 0); } }
.more { margin-top: 20px; }
.odoo-mark { display: block; width: 112px; height: auto; margin-bottom: 22px; }
.ai-extra { margin-top: 24px; padding-top: 56px; border-top: 1px solid var(--rule); }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 40px; margin-top: 32px; }
.mod { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.mod img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; }
.mod h3, .mod h4 { font: 650 19px/1.25 var(--head); letter-spacing: -.01em; align-self: center; }
.mod p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.privacy { margin-top: 48px; padding: 28px 32px; background: var(--paper-2); border-radius: 12px; max-width: 46em; }
.privacy h3, .privacy h4 { font: 650 19px var(--head); letter-spacing: -.01em; }
.privacy p { margin-top: 8px; color: var(--ink-2); }
.proj-wide { display: grid; gap: 40px; }
.proj-wide .mods { margin-top: 0; }
.proj-wide .privacy { margin-top: 0; }
.proj-text { max-width: 40em; }
.proj-text .lede { margin-top: 14px; }

/* Mini animazioni dei moduli AI */
.ai-extra > .lede { margin-top: 12px; }
.scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 32px; margin-top: 40px; }
.sc h4 { display: flex; align-items: center; gap: 12px; margin-top: 18px; font: 650 19px/1.25 var(--head); letter-spacing: -.01em; }
.sc h4 img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.sc p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.scenes .privacy { margin: 0; align-self: start; max-width: none; }
.scene { position: relative; margin: 0; aspect-ratio: 4 / 3; padding: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 9px;
  border-radius: 14px; background: var(--paper-2); border: 1px solid var(--rule); font: 500 13.5px/1.3 var(--head); color: var(--ink); }
.scene .eg { position: absolute; right: 12px; top: 9px; font: 500 11px var(--head); color: var(--ink-2); }
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
.b { max-width: 82%; padding: 8px 12px; border-radius: 14px; }
.b.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; }
.b.ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.dots { display: flex; gap: 5px; align-items: center; width: 52px; height: 34px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.tk-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 12.5px; }
.hand { transform-box: view-box; transform-origin: 12px 12px; }
.tk { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); }
.bx { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink-2); background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1; }
.docs .box { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px; border-radius: 10px; border: 1.5px dashed var(--ink-2); }
.fl { padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); }
.srch { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 15ch; font-family: var(--body); border-right: 2px solid var(--blue); }
.res { padding: 9px 12px; border-radius: 10px; background: var(--ink); color: var(--on-ink); }
.sheet2 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 12px; align-content: center; }
.sheet2 .grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; align-content: center; }
.sheet2 .grid span, .sheet2 .grid b { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.sheet2 .grid b { text-align: right; font-weight: 650; }
.sheet2 .grid > :nth-last-child(2), .sheet2 .grid > :nth-last-child(3) { border-bottom: 0; }
.scan { position: absolute; left: 0; right: 0; top: 6px; height: 28px; background: var(--mark); opacity: .55; }
.chart { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-bottom: 2px solid var(--ink-2); height: 100%; min-height: 96px; }
.br { flex: 1; height: var(--h); background: var(--blue); border-radius: 4px 4px 0 0; transform-origin: 50% 100%; }
.sum { grid-column: 1 / -1; justify-self: start; padding: 7px 12px; border-radius: 10px; background: var(--ink); color: var(--on-ink); }
.train { gap: 12px; }
.tr-h { color: var(--ink-2); font-size: 12.5px; }
.pr { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.trk { display: block; height: 12px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; }
.fl2 { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--blue); }

@keyframes ap1 { 0%, 3% { opacity: 0; transform: translateY(8px) scale(.96); } 6%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ap2 { 0%, 29% { opacity: 0; transform: translateY(8px) scale(.96); } 32%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ap3 { 0%, 47% { opacity: 0; transform: translateY(8px) scale(.96); } 50%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ap4 { 0%, 63% { opacity: 0; transform: translateY(8px) scale(.96); } 66%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ap5 { 0%, 77% { opacity: 0; transform: translateY(8px) scale(.96); } 80%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dots { 0%, 12% { opacity: 0; } 14%, 29% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes tk1 { 0%, 14% { font-size: 0; background: transparent; } 18%, 93% { font-size: 13px; background: var(--ink); } 100% { font-size: 0; background: transparent; } }
@keyframes tk2 { 0%, 38% { font-size: 0; background: transparent; } 42%, 93% { font-size: 13px; background: var(--ink); } 100% { font-size: 0; background: transparent; } }
@keyframes tk3 { 0%, 62% { font-size: 0; background: transparent; } 66%, 93% { font-size: 13px; background: var(--ink); } 100% { font-size: 0; background: transparent; } }
@keyframes typing { 0%, 50% { width: 0; } 64%, 93% { width: 15ch; } 100% { width: 0; } }
@keyframes scan { 0%, 10% { transform: translateY(0); opacity: 0; } 14% { opacity: .55; } 44% { transform: translateY(96px); opacity: .55; } 48%, 100% { transform: translateY(96px); opacity: 0; } }
@keyframes grow { 0%, 46% { transform: scaleY(0); } 60%, 93% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes fillbar { 0%, 6% { width: 0; } 45%, 93% { width: var(--w); } 100% { width: 0; } }

html.js .scene { --d: 10s; }
html.js .scene .a1 { animation: ap1 var(--d) ease infinite; }
html.js .scene .a2 { animation: ap2 var(--d) ease infinite; }
html.js .scene .a3 { animation: ap3 var(--d) ease infinite; }
html.js .scene .a4 { animation: ap4 var(--d) ease infinite; }
html.js .scene .a5 { animation: ap5 var(--d) ease infinite; }
html.js .scene .dots { animation: dots var(--d) linear infinite; }
html.js .scene .dots i { animation: bob 1s ease-in-out infinite; }
html.js .scene .dots i:nth-child(2) { animation-delay: .15s; }
html.js .scene .dots i:nth-child(3) { animation-delay: .3s; }
html.js .scene .k1 { animation: tk1 var(--d) ease infinite; }
html.js .scene .k2 { animation: tk2 var(--d) ease infinite; }
html.js .scene .k3 { animation: tk3 var(--d) ease infinite; }
html.js .scene .typed { animation: typing var(--d) steps(15, end) infinite; }
html.js .scene .scan { animation: scan var(--d) ease-in-out infinite; }
html.js .scene .br { animation: grow var(--d) cubic-bezier(.2, .8, .2, 1) infinite; }
html.js .scene .br:nth-child(2) { animation-delay: .1s; }
html.js .scene .br:nth-child(3) { animation-delay: .2s; }
html.js .scene .br:nth-child(4) { animation-delay: .3s; }
html.js .scene .fl2 { animation: fillbar var(--d) ease infinite; }
html.js .scene .pr:nth-child(3) .fl2 { animation-delay: .2s; }
html.js .scene .pr:nth-child(4) .fl2 { animation-delay: .4s; }
html.js .scene .h-s { animation: spin 5s linear infinite; }
html.js .scene .h-f { animation: spin 40s linear infinite; }
html.js .scene:not(.in) * { animation-play-state: paused; }

/* Pagina Servizi: più immagini che testo */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 999px; font: 600 15px var(--head); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.jump a:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.svc-grid { grid-template-columns: .85fr 1.15fr; align-items: center; }
.svc-top .svc-text { max-width: 640px; }
.svc.flip .svc-grid { grid-template-columns: 1.15fr .85fr; }
.svc.flip .svc-grid > :first-child { order: 2; }
.svc-text h2 { max-width: 12em; }
.ticks { margin-top: 28px; display: grid; gap: 4px; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 18px; }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; }
.scene.big { aspect-ratio: 4 / 3; padding: 28px; gap: 14px; font-size: 15px; justify-content: center; }
.odoo-s { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.tile { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); font-weight: 650; }
.tile img { flex: none; width: 40px; height: 40px; }
.apps { display: flex; gap: 10px; margin-top: 14px; }
.apps img { width: 36px; height: 36px; transition: transform .25s; }
.proj-text .apps { margin: 0 0 20px; }
.row:hover .apps img { transform: translateY(-3px); }
.row:hover .apps img:nth-child(2) { transition-delay: .04s; }
.row:hover .apps img:nth-child(3) { transition-delay: .08s; }
.row:hover .apps img:nth-child(4) { transition-delay: .12s; }
.row:hover .apps img:nth-child(5) { transition-delay: .16s; }
.tile.mine { grid-column: 1 / -1; border-color: transparent; background: var(--mark); }
.flow { display: flex; align-items: center; }
.node { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 12px 8px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); font-weight: 650; font-size: 14px; }
.belt { position: relative; flex: 1; height: 2px; margin: 0 8px; }
.belt::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--ink-2) 0 6px, transparent 6px 12px); opacity: .55; }
.pk { position: absolute; top: -6px; left: 0; width: 14px; height: 14px; border-radius: 4px; background: var(--blue); opacity: 0; }
.self { align-self: center; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; }
.dash { padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.live-h { color: var(--ink-2); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 78px; margin-top: 10px; }
.bars i { flex: 1; height: 100%; border-radius: 4px 4px 0 0; background: var(--blue); transform-origin: 50% 100%; transform: scaleY(.6); }
.web { flex-direction: row; align-items: center; justify-content: center; gap: 18px; }
.browser { flex: 1; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.bb { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.bb > i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.url { flex: 1; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: 12.5px; }
.pg { display: grid; gap: 12px; padding: 14px; }
.nv { display: flex; align-items: center; gap: 10px; }
.nv u { display: block; width: 34px; height: 8px; border-radius: 4px; background: var(--rule); }
.nv u.logo { width: 50px; margin-right: auto; background: var(--ink); }
.burger { display: grid; gap: 4px; align-content: center; width: 30px; height: 28px; padding: 0 7px; border-radius: 8px; }
.burger i { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); }
.pg { position: relative; }
.drop { position: absolute; top: 46px; right: 14px; display: grid; gap: 10px; width: 138px; padding: 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 10px 24px rgba(0,0,0,.12); opacity: 0; transform: translateY(-6px); }
.drop b { display: block; height: 8px; border-radius: 4px; background: var(--ink); }
.drop b:nth-child(2) { width: 70%; background: var(--rule); }
.drop b:nth-child(3) { width: 85%; background: var(--rule); }
.hero2 { display: grid; gap: 8px; padding: 18px 14px; border-radius: 10px; background: var(--paper-2); }
.ln { display: block; width: 88%; height: 11px; border-radius: 6px; background: var(--ink); }
.ln.s { width: 60%; height: 8px; background: var(--rule); }
.btn2 { display: block; width: 84px; height: 24px; margin-top: 4px; border-radius: 7px; background: var(--blue); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cards i { height: 48px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--rule); }
.fo { height: 10px; border-radius: 5px; background: var(--rule); }
.phone { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; box-sizing: border-box; width: 104px; height: 210px; padding: 12px 8px; overflow: hidden; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); }
.phone > * { min-width: 0; }
.phone .hero2 { padding: 10px 8px; }
.phone .btn2 { width: 56%; height: 20px; }
.phone .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.phone .cards i { height: 40px; }
.phone .nv u.logo { width: 34px; }
.phone .burger { width: 24px; height: 22px; padding: 0 5px; gap: 3px; }
.techs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.techs div { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); font: 600 15px var(--head); }
.techs img { flex: none; width: 34px; height: 34px; }
.typed.early { width: 15ch; }

@keyframes typing0 { 0%, 2% { width: 0; } 12%, 93% { width: 15ch; } 100% { width: 0; } }
@keyframes live { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
html.js .scene .typed.early { animation: typing0 var(--d) steps(15, end) infinite; }
@keyframes drop { 0%, 79% { opacity: 0; transform: translateY(-6px); } 83%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes burgerOn { 0%, 79% { background: transparent; } 83%, 92% { background: var(--paper-2); } 96%, 100% { background: transparent; } }
html.js .scene .drop { animation: drop var(--d) ease infinite; }
html.js .scene .browser .burger { animation: burgerOn var(--d) ease infinite; }
html.js .scene .pk { animation: travel 2.4s linear infinite; }
html.js .scene .pk:nth-child(2) { animation-delay: .8s; }
html.js .scene .pk:nth-child(3) { animation-delay: 1.6s; }
html.js .scene .bars i { animation: live var(--t, 1.2s) ease-in-out infinite alternate; }
html.js .scene .spin2 { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 8s linear infinite; }

.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: start; }
.mail { display: inline-block; margin-top: 32px; font: 650 clamp(24px, 3.4vw, 38px)/1.2 var(--head); letter-spacing: -.02em; word-break: break-all; }
.contact .cta { margin-top: 24px; }
.ask { margin-top: 18px; }
.ask li { padding: 14px 0; border-top: 1px solid var(--rule); }
.ask li:last-child { border-bottom: 1px solid var(--rule); }

/* ───────────── Piè di pagina ───────────── */
.site-foot { padding: 28px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot-in b { font: 700 18px var(--head); letter-spacing: -.02em; white-space: nowrap; }
.foot-nav { display: flex; gap: 18px; }
.foot-nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { font-size: 14px; color: var(--ink-2); white-space: nowrap; }

/* ───────────── Schermi piccoli ───────────── */
@media (max-width: 980px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid, .about, .svc-grid, .contact { grid-template-columns: 1fr; gap: 56px; }
  .desk { justify-self: start; max-width: 420px; padding-bottom: 96px; margin-left: 24px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row .go { justify-self: start; margin-top: 10px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .cv > div { grid-template-columns: 1fr; gap: 8px; }
  .svc.flip .svc-grid > :first-child { order: 0; }
  .svc.flip .svc-grid { grid-template-columns: 1fr; }
  .svc-grid { align-items: start; }
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-big { grid-row: auto; min-height: 0; aspect-ratio: 16 / 11; }
  .gallery .media:not(.g-big) { aspect-ratio: 16 / 10; min-height: 0; }
  .proj-grid { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot-nav { flex-wrap: wrap; gap: 8px 20px; }
  .foot-copy { white-space: normal; }
  .sec, .svc, .closing { padding: 72px 0; }
  .empty { padding: 32px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .scene.big { aspect-ratio: auto; min-height: 340px; padding: 18px; }
  .node { width: 76px; }
  .phone { width: 72px; height: 170px; padding: 10px 6px; }
  .web { gap: 10px; padding: 14px; }
  .bb > i { display: none; }
  .url { margin-left: 0; padding: 4px 8px; }
  .tile { padding: 12px; gap: 8px; font-size: 14px; }
  .tile img { width: 28px; height: 28px; }
  .wrap { padding: 0 18px; }
  .sheet { left: -18px; width: min(330px, 100%); }
  .desk { margin-left: 18px; }
}

/* ───────────── Movimento ───────────── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -18; } }

/* all'apertura della pagina */
html.js .hero h1 { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.js .hero .lede { animation: rise .8s .14s cubic-bezier(.2, .7, .2, 1) both; }
html.js .hero .cta { animation: rise .8s .28s cubic-bezier(.2, .7, .2, 1) both; }
html.js .hero .fine { animation: rise .8s .42s cubic-bezier(.2, .7, .2, 1) both; }
html.js .desk .media { animation: unveil 1.1s .1s cubic-bezier(.6, .1, .2, 1) both; }
html.js .page-head .wrap > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
html.js .page-head .wrap > :nth-child(2) { animation-delay: .12s; }

/* quando una parte entra nello schermo */
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
html.js .demo.reveal { transform: translateY(24px) scale(.95); }
html.js .demo.reveal.in { transition-duration: .9s; }
.bar { transition: box-shadow .3s; }
.bar.scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .55); }

/* le illustrazioni si disegnano quando le vedi */
html.js .art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease .3s; transition-delay: var(--d, .3s); }
html.js .art.in .draw { stroke-dashoffset: 0; }
html.js .art .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
html.js .art.in .grow { transform: scaleY(1); transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.45s + var(--k, 0) * .09s); }
.art .spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 20s linear infinite; }
.art .flow { animation: flow 1.1s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero h1, html.js .hero .lede, html.js .hero .cta, html.js .hero .fine, html.js .desk .media, html.js .page-head .wrap > * { animation: none; }
  html.js .reveal, html.js .demo.reveal { opacity: 1; transform: none; }
  html.js .art .draw { stroke-dashoffset: 0; transition: none; }
  html.js .art .grow { transform: none; }
  .art .spin, .art .flow, .play-ico { animation: none; }
  html.js .scene, html.js .scene * { animation: none; }
  .scene .bars i { transform: none; }
  .line dd, .sign { animation: none; }
  .sheet mark { animation: none; background-size: 100% 100%; }
}

/* Pagina privacy */
.legal { max-width: 44em; }
.legal h2 { margin: 40px 0 10px; font-size: 22px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-date { margin-top: 40px !important; color: var(--ink-2); font-size: 15px; }

/* Come puoi contattarmi */
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.ways li { padding-top: 20px; border-top: 2px solid var(--ink); }
.ways h3 { margin-bottom: 8px; }
.ways p { max-width: 30em; color: var(--ink-2); }
@media (max-width: 700px) { .ways { grid-template-columns: 1fr; } }

/* Menu a tre linee: dentro ci sono pagine, contatto e tema */
.menu-btn { width: 44px; padding: 0; }
.burger-ico { display: grid; gap: 4px; width: 18px; }
.burger-ico i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu.open .burger-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu.open .burger-ico i:nth-child(2) { opacity: 0; }
.menu.open .burger-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu.open .menu-btn svg { transform: none; }
.menu-foot { display: flex; gap: 8px; margin-top: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--rule); }
.menu-panel .menu-foot .btn { flex: 1; display: inline-flex; padding: 0 12px; white-space: nowrap; }
.menu-panel .menu-foot a.btn:hover { background: transparent; color: var(--ink); }
.menu-panel .menu-foot .theme-btn { width: auto; }

/* Curriculum in PDF */
.cv-dl { margin-top: 32px; }
.ways .btn { margin-top: 18px; }

/* Selettore di lingua dentro il menu */
.menu-panel .lang { display: flex; gap: 4px; margin: 8px 4px 0; padding: 4px; border-radius: 10px; background: var(--paper-2); }
.menu-panel .lang a { flex: 1; padding: 8px 10px; border-radius: 7px; text-align: center; font: 600 14px var(--head); color: var(--ink-2); }
.menu-panel .lang a:hover { background: var(--paper); color: var(--ink); }
.menu-panel .lang a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }

/* Pagina 404 */
.nf-en { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--rule); }
.nf-en h2 { margin-bottom: 10px; }
.nf-en .lede { margin-bottom: 24px; }
.page-head .wrap > .cta { margin-top: 24px; }

/* ───────────── Competenze: bianco e nero, giallo evidenziatore, appunti a mano ───────────── */
:root { --yellow: #ffe66b; }
.sk-hero { padding: 72px 0 24px; }
.sk-hero h1 { font-size: clamp(52px, 9vw, 112px); letter-spacing: -.045em; line-height: .98; }
.sk-hero .lede { margin-top: 20px; }
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.doors a { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 22px 20px 20px; border-radius: 18px; text-decoration: none;
  background: var(--paper); border: 1.5px solid var(--ink); font: 650 18px/1.2 var(--head); letter-spacing: -.01em;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), background .2s; }
.doors a svg { flex: none; transition: transform .3s cubic-bezier(.2, .9, .3, 1.5); }
.doors a:hover { background: var(--mark); transform: translateY(-5px) rotate(-1.2deg); }
.doors a:hover svg { transform: scale(1.12) rotate(5deg); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
html.js .doors a { animation: pop .6s cubic-bezier(.2, .9, .3, 1.2) backwards; }
html.js .doors a:nth-child(2) { animation-delay: .08s; }
html.js .doors a:nth-child(3) { animation-delay: .16s; }
html.js .doors a:nth-child(4) { animation-delay: .24s; }
html.js .doors a:nth-child(5) { animation-delay: .32s; }

/* appunti scritti a mano, con la freccia che si disegna */
.note { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 11em; font: 600 clamp(24px, 2.6vw, 32px)/1.12 var(--hand); color: var(--ink); }
.note b { font-weight: inherit; background: linear-gradient(transparent 52%, var(--mark) 52% 92%, transparent 92%); padding: 0 .14em; margin: 0 -.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note .arr { flex: none; display: block; width: 66px; }
.note .arr svg { display: block; width: 100%; }
.note .a-dl svg { transform: scaleX(-1); }
.note .a-ur svg { transform: scaleY(-1); }
.note .a-ul svg { transform: scale(-1, -1); }
html.js .note .arr path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease .5s; }
html.js .note.in .arr path { stroke-dashoffset: 0; }
.n-hero { flex-direction: row; align-items: center; gap: 10px; margin: 44px 0 0 6px; transform: rotate(-3deg); }

.band { padding: 112px 0; background: var(--paper); }
.band.alt { background: var(--paper-2); }
.band-head { position: relative; }
.band-head h2 { max-width: 12em; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -.035em; }
.band-head .lede { margin-top: 18px; }
.band-head.center { text-align: center; }
.band-head.center h2, .band-head.center .lede { margin-inline: auto; }
.band .ticks { margin-top: 30px; }
.band .ticks.row { display: flex; flex-wrap: wrap; gap: 6px 32px; }
.band .band-head.center .ticks.row { justify-content: center; }

.launcher-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 56px; }
.scene.launcher { display: block; aspect-ratio: auto; padding: 0; border-radius: 20px; background: var(--paper); box-shadow: 0 34px 60px -34px rgba(18, 22, 29, .45); font-size: 15px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 12px; padding: 36px 34px 40px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 600 15px/1.25 var(--head); }
.app img { width: 72px; height: 72px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .16)); }
.app .ph { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; border: 2.5px dashed var(--ink); background: var(--mark); font: 700 40px/1 var(--head); color: var(--ink); }
html.js .launcher .app { animation: pop .55s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: calc(var(--i) * .09s + .2s); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); } 60% { box-shadow: 0 0 0 16px transparent; } }
html.js .launcher .app .ph { animation: glow 2.4s ease-out 1.6s infinite; }
.launcher-wrap .note.l { justify-self: end; align-items: flex-end; text-align: right; transform: rotate(-4deg); }
.launcher-wrap .note.r { align-self: end; transform: rotate(3deg); }

.n-auto { position: absolute; top: 4px; right: 0; transform: rotate(3deg); }
.auto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; margin-top: 52px; }
.scene.lanes { aspect-ratio: auto; padding: 38px 34px; gap: 34px; justify-content: center; background: var(--paper); font-size: 15px; }
.lanes .node { width: 132px; padding: 16px 10px; font-size: 15px; }
.lanes .node svg { width: 42px; height: 42px; }
.pk { background: var(--yellow); border: 1.5px solid #12161d; }
.lanes .pk { width: 16px; height: 16px; top: -7px; }
.clock-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 22px; border-radius: 14px; background: #12161d; border: 1px solid var(--rule); color: #fff; text-align: center; }
.clock-card svg { width: 124px; height: 124px; color: var(--yellow); }
.clock-card .hand { transform-box: view-box; transform-origin: 12px 12px; }
.clock-card b { font: 700 24px/1.15 var(--head); letter-spacing: -.02em; }
.clock-card span { font-size: 16px; opacity: .8; }
.clock-card .hand-note { margin-top: 6px; font: 600 30px/1 var(--hand); font-style: normal; color: var(--yellow); transform: rotate(-3deg); }
html.js .clock-card .h-s { animation: spin 5s linear infinite; }
html.js .clock-card .h-f { animation: spin 40s linear infinite; }

.band-dark { --paper: #10141b; --paper-2: #171d26; --ink: #eef0f4; --ink-2: #a3acb9; --rule: #2a313c; --blue: #6fc3ff; --on-ink: #10141b; background: #0b0f14; color: var(--ink); }
.band-dark .hl { background: none; color: var(--yellow); }
.band-dark .note { color: var(--yellow); }
.band-dark .note b { background: none; }
.n-plant { position: absolute; top: 4px; right: 0; transform: rotate(3deg); }
.scene.plant { aspect-ratio: auto; margin-top: 52px; padding: 40px 36px 36px; gap: 34px; background: var(--paper-2); font-size: 15px; }
.plant .flow { width: 100%; max-width: 780px; margin: 0 auto; }
.plant .node { width: 136px; padding: 16px 10px; font-size: 15px; }
.plant .belt { margin: 0 12px; }
.dash2 { padding: 22px 26px 26px; border-radius: 16px; background: var(--paper); border: 1px solid var(--rule); }
.live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--yellow); }
.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 24px; align-items: end; margin-top: 20px; }
.gauge { display: grid; justify-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; text-align: center; }
.gauge svg { width: 100%; max-width: 132px; overflow: visible; }
.gt, .gv { fill: none; stroke-width: 9; stroke-linecap: round; }
.gt { stroke: var(--rule); }
.gv { stroke: var(--yellow); stroke-dasharray: 100; stroke-dashoffset: var(--a); }
@keyframes gauge { from { stroke-dashoffset: var(--a); } to { stroke-dashoffset: var(--b); } }
@keyframes blink { 50% { opacity: .25; } }
html.js .scene .gv { animation: gauge 2.8s ease-in-out infinite alternate; }
html.js .scene .gauge:nth-child(2) .gv { animation-duration: 3.7s; }
html.js .scene .gauge:nth-child(3) .gv { animation-duration: 3.2s; }
html.js .scene .live-dot { animation: blink 1.4s ease-in-out infinite; }
.plant .bars { height: 100px; margin-top: 0; }
.plant .bars i { background: var(--yellow); }

.ai-title { margin: 72px auto 0; max-width: 20em; text-align: center; font-size: clamp(24px, 2.8vw, 34px); }
.ai-stage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; margin-top: 40px; align-items: start; }
.ai-side { min-width: 0; }
.n-ai { margin: 0 0 12px 6px; transform: rotate(-3deg); }
.ai-tabs { display: grid; gap: 10px; }
.ai-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--rule); background: var(--paper);
  color: inherit; font: 650 17px/1.2 var(--head); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.ai-tab img { flex: none; width: 44px; height: 44px; border-radius: 11px; filter: grayscale(1) opacity(.6); transition: filter .25s; }
.ai-tab:hover { border-color: var(--ink); }
.ai-tab.on { border-color: var(--ink); background: var(--mark); }
.ai-tab.on img { filter: grayscale(1); }
.ai-tab .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ink); }
.ai-stage.auto .ai-tab.on .prog { animation: prog 10s linear forwards; }
@keyframes prog { to { width: 100%; } }
.ai-panel[hidden] { display: none; }
.ai-panel .scene { aspect-ratio: 16 / 10; padding: 38px 44px; gap: 18px; font-size: 19px; background: var(--paper-2); }
.ai-panel .cap { margin-top: 18px; max-width: 34em; font-size: 18px; color: var(--ink-2); }
.band-ai .privacy { max-width: 760px; margin: 64px auto 0; }

.scene.web.wide { aspect-ratio: auto; min-height: 420px; margin-top: 52px; padding: 48px; gap: 34px; background: var(--paper); }
.web.wide .browser { max-width: 780px; }
.web.wide .phone { width: 150px; height: 300px; padding: 16px 11px; border-radius: 28px; }
.n-web { flex-direction: row; align-items: flex-end; gap: 10px; max-width: none; margin: 6px 24px 0 auto; width: max-content; transform: rotate(-2deg); }
.techs.big { justify-content: center; gap: 14px; margin-top: 36px; }
.techs.big div { padding: 14px 24px 14px 14px; border-radius: 16px; font-size: 17px; }
.techs.big img { width: 44px; height: 44px; }

@media (max-width: 980px) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launcher-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .launcher-wrap .note.l, .launcher-wrap .note.r { justify-self: start; align-self: start; }
  .note .arr { display: none; }
  .n-auto, .n-plant { position: static; margin-top: 28px; }
  .n-web { margin-right: 0; }
  .auto-grid { grid-template-columns: 1fr; }
  .ai-stage { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ai-tabs { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .ai-tab { flex: none; scroll-snap-align: start; }
  .ai-panel .scene { aspect-ratio: auto; min-height: 340px; padding: 24px; }
  .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gauges .bars { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .band { padding: 80px 0; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .doors a { padding: 18px 16px; }
  .doors a:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .apps-grid { padding: 26px 18px 30px; gap: 20px 6px; }
  .app img, .app .ph { width: 56px; height: 56px; }
  .app { font-size: 13.5px; }
  .lanes .node { width: 92px; }
  .plant .node { width: 88px; }
  .scene.lanes, .scene.plant { padding: 24px 16px; }
}
@media (max-width: 560px) {
  .scene.web.wide { padding: 24px 14px; gap: 14px; min-height: 0; }
  .web.wide .phone { width: 72px; height: 170px; padding: 10px 6px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .doors a, html.js .launcher .app, html.js .launcher .app .ph { animation: none; }
  html.js .note .arr path { stroke-dashoffset: 0; transition: none; }
  .ai-stage.auto .ai-tab.on .prog { animation: none; width: 100%; }
}
