/* ============================================================
   ONEXUS 2026 — site.css
   Mistral-style components: header bitema, flat hairline cards,
   horizontal prodotti track, form, footer, overlay, cursor.
   All components consume --sec-* tokens → theme per-section.
   ============================================================ */

/* chip tokens (variant badges) */
:root {
  --chip-2-bg: rgba(138, 123, 255, 0.16);
  --chip-2-fg: var(--violet-soft);
}

/* ---------- live dot ---------- */
.dot-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.55);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}

/* ---------- buttons: flat, squared, mono-label ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 3px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--sec-line-2);
  background: transparent; color: var(--sec-fg);
  transition: border-color .3s, background .3s, color .3s, transform .2s var(--ease-out);
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn--signal { background: var(--lime); color: #14161A; border-color: var(--lime); font-weight: 700; }
.btn--signal:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn--ghost:hover { border-color: var(--sec-fg-dim); background: rgba(127,127,127,0.08); }

/* ---------- header (bitema: follow body[data-theme]) ---------- */
.bar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut); height: var(--bar-h); gap: 24px;
  background: rgba(8, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .3s, border-color .3s;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; }
.wordmark__logo { display: block; height: 32px; width: auto; transition: transform .6s var(--ease-out); }
.wordmark:hover .wordmark__logo { transform: rotate(8deg); }
.wordmark__name { font-size: 18px; }

.bar__nav { display: flex; gap: 26px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-mute, #626776); letter-spacing: 0.02em; }
.bar__nav a { position: relative; padding: 6px 0; transition: color .25s; }
.bar__nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--lime-deep); transition: width .3s var(--ease-out); }
.bar__nav a:hover { color: var(--fg, #F4F5F7); }
.bar__nav a:hover::after { width: 100%; }

.bar__right { display: flex; align-items: center; gap: 18px; }
.bar__live { font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute); display: inline-flex; align-items: center; gap: 7px; }

.index {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--sec-line-2); border-radius: 3px;
  font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute);
  transition: border-color .25s, color .25s;
}
.index:hover { border-color: var(--sec-fg-dim); color: var(--sec-fg); }
.index__live { color: var(--sec-accent-text); font-weight: 700; }
.index__sep { opacity: 0.4; }
.index__burger { display: inline-flex; flex-direction: column; gap: 4px; margin-left: 4px; }
.index__burger span { width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out), opacity .3s; }
body.nav-open .index__burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
body.nav-open .index__burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

@media (max-width: 880px) {
  .bar__nav, .bar__live, .btn--sm { display: none; }
}

/* ---------- full-screen nav overlay (always dark) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(8, 8, 12, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease-out), visibility .22s;
  contain: paint;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__inner {
  height: 100%; max-width: var(--container); margin: 0 auto;
  padding: clamp(80px, 14vh, 140px) var(--gut) 48px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-content: space-between;
}
.overlay__close {
  position: absolute; top: 20px; right: 26px; width: 44px; height: 44px;
  display: grid; place-items: center; font-size: 18px; color: #9AA0AD;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%;
  transition: color .25s, border-color .25s, transform .3s var(--ease-out);
}
.overlay__close:hover { color: var(--lime); border-color: var(--lime); transform: rotate(90deg); }
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__item { overflow: hidden; }
.nav__link {
  display: flex; align-items: baseline; gap: 22px; padding: 12px 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 7vw, 86px); line-height: 1; letter-spacing: -0.03em;
  color: #9AA0AD; transition: color .3s; transform: translateY(110%);
}
.overlay.is-open .nav__link { animation: navIn .38s var(--ease-out) forwards; animation-delay: calc(var(--i) * 40ms + 40ms); }
@keyframes navIn { to { transform: translateY(0); } }
.nav__idx { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: #626776; align-self: flex-start; padding-top: 0.4em; }
.nav__glyph { position: relative; transition: color .3s; }
.nav__glyph::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--lime);
  clip-path: inset(0 100% 0 0); transition: clip-path .4s var(--ease-out);
}
.nav__link:hover { color: #F4F5F7; }
.nav__link:hover .nav__glyph::after { clip-path: inset(0 0 0 0); }

.context { align-self: end; border-left: 1px solid rgba(255,255,255,0.09); padding-left: 22px; }
.context__meta { font-family: var(--font-mono); font-size: 12px; color: var(--lime); margin-bottom: 14px; }
.context__desc { font-size: 15px; color: #9AA0AD; line-height: 1.55; min-height: 4.6em; }
.context__cue {
  display: inline-block; margin-top: 18px; font-family: var(--font-mono); font-size: 11px;
  color: #626776; border: 1px solid rgba(255,255,255,0.09); padding: 4px 10px; border-radius: 3px;
}
.overlay__foot { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.09); padding-top: 24px; display: flex; align-items: baseline; justify-content: space-between; }
.overlay__mail-label { font-family: var(--font-mono); font-size: 12px; color: #626776; text-transform: uppercase; letter-spacing: 0.12em; }
.overlay__mail { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 4vw, 32px); color: #F4F5F7; transition: color .25s; }
.overlay__mail:hover { color: var(--lime); }

@media (max-width: 760px) {
  .overlay__inner { grid-template-columns: 1fr; gap: 28px; }
  .context { border-left: none; border-top: 1px solid rgba(255,255,255,0.09); padding-left: 0; padding-top: 18px; }
  .overlay__foot { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ---------- custom cursor + progress ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 7px; height: 7px; margin: -3.5px; background: #fff; border-radius: 50%; transition: transform .2s var(--ease-out), opacity .2s; }
.cursor__ring { position: absolute; width: 38px; height: 38px; margin: -19px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), opacity .25s, border-color .25s; }
.cursor.is-hot .cursor__ring { width: 64px; height: 64px; margin: -32px; border-color: var(--lime); }
.cursor.is-hot .cursor__dot { transform: scale(0); }
@media (pointer: coarse) { .cursor { display: none; } }

.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 9998; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--term), var(--violet)); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh;
  padding: calc(var(--bar-h) + clamp(48px, 10vh, 110px)) var(--gut) 60px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: none;
}
.hero__inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; width: 100%; border-inline: 1px solid var(--sec-line); padding-inline: clamp(20px, 4vw, 56px); }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 13px; color: var(--sec-fg-dim);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; letter-spacing: 0.02em;
}
.hero__eyebrow-sep { opacity: 0.35; }
.hero__title .line { display: block; }
.hero__title .line--offset { padding-left: clamp(40px, 8vw, 140px); }
.hero__title .line__inner { display: block; }
.hero__lede { font-size: clamp(17px, 1.6vw, 22px); color: var(--sec-fg-dim); max-width: 52ch; line-height: 1.5; margin-bottom: 48px; font-weight: 400; }

.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch; border: 1px solid var(--sec-line); }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

/* code panel — terminal block, hairline-divided */
.hero__panel { background: var(--sec-card); border-right: 1px solid var(--sec-line); display: flex; flex-direction: column; }
@media (max-width: 920px) { .hero__panel { border-right: none; border-bottom: 1px solid var(--sec-line); } }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--sec-line); }
.panel__name { font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-dim); }
.panel__status { font-family: var(--font-mono); font-size: 11.5px; color: var(--term); display: inline-flex; align-items: center; gap: 8px; }
.panel__code {
  margin: 0; padding: 22px 20px; flex: 1;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75;
  color: var(--sec-fg-dim); overflow-x: auto;
}
.panel__code .c-k { color: var(--violet-soft); }
.panel__code .c-v { color: var(--sec-fg); }
.panel__code .c-f { color: var(--lime); }
.panel__code .c-m { color: #7BDFFF; }
.panel__code .c-s { color: #FFD37B; }
.panel__code .c-c { color: rgba(93, 255, 110, 0.45); font-style: italic; }

.hero__side { display: flex; flex-direction: column; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding: 22px; border-bottom: 1px solid var(--sec-line); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; }
.hero__stat { padding: 20px 18px; border-right: 1px solid var(--sec-line); }
.hero__stat:last-child { border-right: none; }
@media (max-width: 560px) { .hero__stats { grid-template-columns: 1fr; } .hero__stat { border-right: none; border-bottom: 1px solid var(--sec-line); } .hero__stat:last-child { border-bottom: none; } }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.03em; }
.stat__plus { color: var(--lime); font-weight: 700; }
.stat__label { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--sec-fg-mute); text-transform: uppercase; letter-spacing: 0.06em; }

/* ticker */
.ticker {
  margin-top: clamp(52px, 8vw, 90px);
  border-top: 1px solid var(--sec-line); border-bottom: 1px solid var(--sec-line);
  overflow: hidden; padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: var(--font-mono); font-size: 13px; color: var(--sec-fg-dim);
}
.ticker__track .tk-sep { color: var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- PRODOTTI: horizontal track ----------
   Default (no-JS / mobile / reduced-motion): vertical grid. */

.hwrap { border-top: 1px solid var(--sec-line); }
.hwrap__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-top: 20px; }

/* in-track group panels become full-width block headers in vertical mode */
.hpanel { grid-column: 1 / -1; padding: 18px 0 6px; }
.hpanel__tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute);
  text-transform: uppercase; letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 12px;
}
.hpanel__tag::before { content: ''; width: 8px; height: 8px; background: var(--lime); }
.hpanel__desc { margin-top: 10px; font-size: 14.5px; color: var(--sec-fg-dim); max-width: 40ch; }
.hpanel--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }

/* desktop horizontal mode — enabled ONLY by motion.js adding .is-h */
.hwrap.is-h { overflow: clip; }
.hwrap.is-h .hwrap__track { display: flex; align-items: stretch; width: max-content; gap: 24px; padding: 0; }
.hwrap.is-h { min-height: calc(100svh - var(--bar-h)); display: flex; align-items: center; }
.hwrap.is-h .hwrap__track { padding-block: calc(var(--bar-h) + 24px) 40px; }
.hwrap.is-h .hpanel { width: 300px; flex-shrink: 0; border-left: 1px solid var(--sec-line); padding: 24px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; }
.hwrap.is-h .hpanel--end { border-left: 1px solid var(--sec-line); width: 340px; padding: 24px; }
.hwrap.is-h .card { width: min(420px, 34vw); flex-shrink: 0; }

/* ---------- cards: flat, hairline, squared ---------- */
.card {
  position: relative; padding: 24px; border-radius: 4px;
  background: var(--sec-card); border: 1px solid var(--sec-line);
  overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .4s, transform .4s var(--ease-out);
  min-height: 300px;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--lime); opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover { border-color: var(--sec-line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card__glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--sec-spot), transparent 60%);
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }

.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__idx { font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute); }
.card__badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 2px;
  background: var(--lime); color: #14161A; font-weight: 700;
}
.card__badge--v { background: var(--chip-2-bg); color: var(--chip-2-fg); font-weight: 400; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.card__desc { font-size: 14.5px; color: var(--sec-fg-dim); line-height: 1.55; }
.card__feats { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.card__feats li { font-size: 13.5px; color: var(--sec-fg-dim); padding-left: 18px; position: relative; }
.card__feats li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--lime-deep); }
section[data-theme="dark"] .card__feats li::before { background: var(--lime); }
.card__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card__tech span { font-family: var(--font-mono); font-size: 11px; color: var(--sec-fg-mute); padding: 4px 9px; border: 1px solid var(--sec-line); border-radius: 2px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--sec-line); }
.card__meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--sec-fg-mute); }
.card__link { font-weight: 600; font-size: 14px; color: var(--sec-fg); transition: color .25s, transform .25s; }
.card:hover .card__link { color: var(--sec-accent-text); transform: translateX(3px); }
.card__link--live { color: var(--sec-accent-text); }

/* ---------- processo: flat phase rows ---------- */
.flow { display: flex; flex-direction: column; counter-reset: phase; border: 1px solid var(--sec-line); }
.phase {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 20px 24px; border-bottom: 1px solid var(--sec-line);
  transition: background .4s;
}
.phase:hover { background: rgba(200, 255, 77, 0.045); }
.phase:hover::before { transform: scaleY(1); }
.phase:last-child { border-bottom: none; }
.phase::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--lime); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.phase.is-active { background: rgba(200, 255, 77, 0.045); }
.phase.is-active::before { transform: scaleY(1); }
.phase__num { font-family: var(--font-mono); font-size: 13px; color: var(--sec-fg-mute); transition: color .3s; }
.phase.is-active .phase__num { color: var(--lime); }
.phase__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.2vw, 28px); letter-spacing: -0.02em; }
.phase__sub { font-size: 13.5px; color: var(--sec-fg-dim); }
.phase__dur { font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute); padding: 5px 12px; border: 1px solid var(--sec-line); border-radius: 2px; }
.phase--end .phase__num { color: var(--lime); }
@media (max-width: 600px) {
  .phase { grid-template-columns: 44px 1fr; }
  .phase__dur { grid-column: 2; justify-self: start; margin-top: 6px; }
}

/* ---------- chi siamo ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sec-line); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about { padding: 28px; border-right: 1px solid var(--sec-line); border-bottom: 1px solid var(--sec-line); margin-bottom: -1px; }
.about-grid .about:nth-child(3n) { border-right: none; }
@media (max-width: 820px) { .about { border-right: none; } }
.about__idx { font-family: var(--font-mono); font-size: 13px; color: var(--sec-accent-text); display: block; margin-bottom: 16px; }
.about h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.about p { font-size: 14.5px; color: var(--sec-fg-dim); line-height: 1.6; }

.founder {
  display: flex; align-items: center; gap: 28px; padding: 30px;
  border: 1px solid var(--sec-line); border-top: none;
  flex-wrap: wrap; margin-bottom: 1px;
}
.founder__role { font-family: var(--font-mono); font-size: 12px; color: var(--sec-accent-text); text-transform: uppercase; letter-spacing: 0.1em; }
.founder__bio { font-size: 15px; color: var(--sec-fg-dim); max-width: 56ch; margin-bottom: 14px; }
.founder__social { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 13px; }
.founder__social a { color: var(--sec-fg-dim); transition: color .25s; }
.founder__social a:hover { color: var(--sec-accent-text); }

/* ---------- integrazioni ---------- */
/* mosaic of flex tiles (NOT a regular grid): 1px gap over the line color
   draws the separators; two wide violet-tinted blocks break the rhythm */
.int-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--sec-line); border: 1px solid var(--sec-line); }
.int {
  position: relative; flex: 1 1 calc(25% - 1px); min-width: 0; overflow: hidden;
  padding: 20px; min-height: 118px; background: var(--bg);
  transition: background .5s;
}
.int:nth-child(5), .int:nth-child(10) { flex-basis: calc(50% - 2px); background: rgba(138, 123, 255, 0.07); }
@media (max-width: 960px) { .int { flex-basis: calc(32% - 1px); } .int:nth-child(5), .int:nth-child(10) { flex-basis: calc(49% - 1px); } }
@media (max-width: 680px) { .int { flex-basis: calc(47% - 1px); } .int:nth-child(5), .int:nth-child(10) { flex-basis: 100%; } }
.int::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), var(--sec-spot), transparent 60%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
/* hover: tint + spotlight only — no layout motion, so :hover is stable */
.int:hover { background: rgba(127, 127, 127, 0.06); }
.int:hover::before { opacity: 1; }
/* lime strip grows at the left edge of the hovered tile */
.int::after {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; background: var(--sec-accent-text);
  transform: translateY(-50%);
  transition: height .6s var(--ease-out);
}
.int:hover::after { height: 70%; }
.int__n { font-family: var(--font-mono); font-size: 11px; color: var(--sec-accent-text); display: block; margin-bottom: 16px; }
.int h5 { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 4px; }
.int p { font-size: 12.5px; color: var(--sec-fg-mute); line-height: 1.4; }

/* ---------- presence band (cream) ---------- */
.presence { position: relative; overflow: clip; padding: clamp(60px, 9vh, 100px) var(--gut); }
.presence__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.presence__cap { font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute); text-transform: uppercase; letter-spacing: 0.16em; }
.presence__stats { display: flex; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; }
.presence__stat { display: flex; flex-direction: column; gap: 4px; }
.ps__num { font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; }
.ps__lab { font-family: var(--font-mono); font-size: 12px; color: var(--sec-fg-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- contatti ---------- */
.contact-mail {
  display: inline-block; font-weight: 600; font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.03em; margin: 6px 0 40px;
  color: var(--sec-fg); transition: color .3s, opacity .3s;
}
.contact-mail:hover { color: var(--sec-accent-text); opacity: 1; }
section[data-theme="dark"] .contact-mail:hover { opacity: 0.85; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf__field { display: flex; flex-direction: column; gap: 8px; }
.cf__field--full { grid-column: 1 / -1; }
.cf__field span { font-family: var(--font-mono); font-size: 11.5px; color: var(--sec-fg-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.cf__field input, .cf__field textarea {
  padding: 14px 16px; background: var(--sec-bg-soft);
  border: 1px solid var(--sec-line); border-radius: 3px;
  font-size: 15px; transition: border-color .3s, background .3s; resize: vertical;
}
.cf__field input:focus, .cf__field textarea:focus {
  outline: none; border-color: var(--lime-deep); background: rgba(200, 255, 77, 0.04);
}
.cf__send { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* form status (absorbed from former inline block) */
.cf__status { grid-column: 1 / -1; margin: 4px 2px 0; font-family: var(--font-mono); font-size: 13px; min-height: 1.2em; opacity: 0; transition: opacity .3s; }
.cf__status.show { opacity: 1; }
.cf__status.ok { color: var(--lime); }
.cf__status.ko { color: #ff6b6b; }
.cf__status.sending { color: var(--sec-fg-mute); }
#contactSubmit.is-sending { pointer-events: none; opacity: 0.65; }

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--sec-line); padding: clamp(56px, 8vw, 90px) var(--gut) 32px; background: var(--bg); color: var(--sec-fg); }
.foot__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .foot__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__inner { grid-template-columns: 1fr; } }
.foot__brand p { font-size: 14.5px; color: var(--sec-fg-dim); margin: 18px 0 22px; max-width: 38ch; line-height: 1.55; }
.foot__social { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 13px; }
.foot__social a { color: var(--sec-fg-dim); transition: color .25s; }
.foot__social a:hover { color: var(--lime); }
.foot__col h5 { font-family: var(--font-mono); font-size: 11px; color: var(--sec-fg-mute); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.foot__col ul { display: flex; flex-direction: column; gap: 10px; }
.foot__col li { font-size: 14.5px; color: var(--sec-fg-dim); }
.foot__col a { transition: color .25s; }
.foot__col a:hover { color: var(--lime); }
.foot__bottom { max-width: var(--container); margin: 52px auto 0; padding-top: 22px; border-top: 1px solid var(--sec-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--sec-fg-mute); }
.foot__coords { color: var(--lime); opacity: 0.7; }

/* ---------- pixel sprites (mistral-style pixel emoji) ---------- */
.px {
  display: inline-block; vertical-align: -1px; flex-shrink: 0;
  image-rendering: pixelated;
}
.foot__coords .px { margin-right: 6px; vertical-align: -2px; }
.foot__bottom span .px { margin: 0 1px; }
.card__title .px, .phase__name .px { margin-right: 10px; vertical-align: -2px; }

/* ---------- Mistral-style micro-hovers (CSS only) ---------- */
/* text links: underline sweeps in from the left */
.foot__col a, .foot__social a, .founder__social a, .contact-mail {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
  transition: color .25s, background-size .35s var(--ease-out);
}
.foot__col a, .foot__social a, .founder__social a { padding-bottom: 3px; }
.foot__col a:hover, .foot__social a:hover, .founder__social a:hover, .contact-mail:hover {
  background-size: 100% 1px;
}
/* about blocks: soft tint + the index lights up */
.about { transition: background .35s; }
.about:hover { background: rgba(127, 127, 127, 0.05); }
.about__idx { transition: color .25s; }
.about:hover .about__idx { color: var(--sec-accent-text, var(--lime)); }
/* process phases: soft tint on hover (active state is scroll-driven) */
.phase { transition: background .35s; }
.phase:hover { background: rgba(127, 127, 127, 0.05); }
/* wordmark text: slight tracking ease */
.wordmark__name { transition: letter-spacing .35s var(--ease-out); }
.wordmark:hover .wordmark__name { letter-spacing: 0.01em; }

/* ---------- hero typewriter (JS splits chars; visible without JS) ---------- */
html.js .hero__title .ch { opacity: 0; transform: translateY(0.1em); display: inline-block; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title em.ch { white-space: nowrap; }
html.js .hero__title.is-typing .ch { opacity: 1; transform: none; }
.hero__title .term-cursor { opacity: 0; color: var(--term); font-family: var(--font-mono); -webkit-text-fill-color: var(--term); }
html.js .hero__title.is-typing .term-cursor { opacity: 1; animation: termBlink 1.05s steps(1, end) infinite; }
@keyframes termBlink { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
.panel__code code::after {
  content: '_'; display: inline-block; margin-left: 2px;
  color: var(--term); font-family: var(--font-mono);
  animation: termBlink 1.05s steps(1, end) infinite;
}