:root {
  color-scheme: dark;
  --bg: #05070c;
  --surface: #0a0e17;
  --surface-2: #0e1420;
  --line: rgba(157, 201, 255, 0.21);
  --line-bright: rgba(100, 223, 255, 0.55);
  --text: #f2f7ff;
  --muted: #b8c5d5;
  --cyan: #63e5ff;
  --blue: #4588ff;
  --violet: #9370ff;
  --max: 1280px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(43, 100, 190, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

body.chat-open {
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: white;
  color: black;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.network {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(57, 122, 255, 0.08);
  filter: blur(90px);
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-x, 50vw) - 50%), calc(var(--pointer-y, 30vh) - 50%), 0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 88px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(18px);
  transition: background 250ms ease, border-color 250ms ease, height 250ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--line);
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: white;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid var(--line-bright);
  background: linear-gradient(135deg, rgba(99, 229, 255, 0.15), rgba(147, 112, 255, 0.08));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand__mark span {
  padding-top: 0.5rem;
  color: var(--cyan);
  font-size: 1.25rem;
}

.brand__name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.brand__name b {
  color: var(--cyan);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 2.8rem);
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(157, 201, 255, 0.16);
  background: rgba(10, 14, 23, 0.94);
  color: #dbe6f4;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-cta {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line-bright);
  background: #0d1522;
  color: white;
}

.nav-cta span {
  margin-left: 0.5rem;
  color: var(--cyan);
}

.ui-arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.9em;
  height: 0.9em;
  color: var(--cyan);
}

.ui-arrow::before {
  position: absolute;
  bottom: 12%;
  left: 10%;
  width: 92%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
  transform-origin: left center;
}

.ui-arrow::after {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 48%;
  height: 48%;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  background: url("./assets/complexity-engine.webp") 58% 50% / cover no-repeat;
  filter: brightness(0.68) saturate(0.9);
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.98) 0%, rgba(5, 7, 12, 0.9) 35%, rgba(5, 7, 12, 0.42) 72%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(131, 185, 255, 0.055) 12.5%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  color: var(--cyan);
  font-size: clamp(0.65rem, 1vw, 0.77rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker span {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(3.2rem, 7.3vw, 7.6rem);
}

.hero h1 span,
.section h2 span {
  color: transparent;
  background: linear-gradient(100deg, #dcecff 5%, #67dfff 48%, #8f79ff 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.mobile-break {
  display: none;
}

.hero__lead {
  max-width: 660px;
  margin: 2rem 0 0;
  color: #c7d3e2;
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--line-bright);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(115deg, #387ffa, #6c5cff);
  box-shadow: 0 0 2.5rem rgba(65, 133, 255, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 0 3.4rem rgba(65, 133, 255, 0.38);
}

.button--primary span {
  margin-left: 1.4rem;
}

.button--ghost {
  background: rgba(5, 7, 12, 0.38);
  backdrop-filter: blur(10px);
}

.hero__rail {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(203, 220, 241, 0.58);
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}

.hero__rail i {
  width: 1px;
  height: 4rem;
  background: linear-gradient(var(--cyan), transparent);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.8rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

.signal-strip {
  overflow: hidden;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.94);
}

.signal-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate3d(0, 0, 0);
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.signal-strip__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
}

.signal-strip span {
  padding: 0 2rem;
  color: #8d9aab;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.signal-strip i {
  color: var(--cyan);
  font-size: 0.45rem;
  font-style: normal;
}

.section {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-index {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  color: #5e6c7d;
  font-family: monospace;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 2rem;
}

.manifesto__content blockquote {
  max-width: 950px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.manifesto__content blockquote em {
  color: var(--cyan);
  font-style: normal;
}

.manifesto__content > p {
  max-width: 600px;
  margin: 3rem 0 0 auto;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-bright);
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.75;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.section h2 {
  font-size: clamp(2.6rem, 5.3vw, 5.6rem);
}

.about__copy {
  padding-top: 2rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.about__copy .lead-copy {
  margin-top: 0;
  color: #d9e4f2;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0 0 3.5rem rgba(60, 137, 255, 0.07);
}

.principle {
  min-height: 290px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 10%, rgba(72, 148, 255, 0.09), transparent 42%),
    linear-gradient(145deg, rgba(20, 31, 49, 0.88), rgba(9, 14, 24, 0.72));
  box-shadow: inset 0 0 2.5rem rgba(67, 143, 255, 0.035);
  transform-style: preserve-3d;
}

.principle__number,
.service-card__tag {
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.principle h3 {
  margin: 5.2rem 0 0.65rem;
  font-size: 1.3rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 0 4rem rgba(60, 137, 255, 0.075);
}

.service-card {
  position: relative;
  min-height: 350px;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(70, 150, 255, 0.075), transparent 40%),
    linear-gradient(135deg, rgba(25, 37, 59, 0.9), rgba(9, 14, 24, 0.96)),
    var(--surface);
  box-shadow: inset 0 0 3rem rgba(69, 145, 255, 0.035);
  transform-style: preserve-3d;
}

.service-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(75, 151, 255, 0.18), transparent 42%);
  content: "";
  opacity: 0;
  transition: opacity 250ms ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 0.25fr 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 300px;
}

.service-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.6rem;
  aspect-ratio: 1;
  margin-bottom: 3.4rem;
  border: 1px solid var(--line-bright);
  color: var(--cyan);
  font-size: 1.5rem;
  box-shadow: inset 0 0 2rem rgba(78, 172, 255, 0.1), 0 0 2rem rgba(78, 172, 255, 0.08);
}

.service-card--wide .service-card__icon {
  margin: 0;
}

.service-card h3,
.service-card p,
.service-card__tag {
  position: relative;
  z-index: 1;
  transform: translateZ(10px);
}

.service-card h3 {
  margin: 0.8rem 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: 550;
  letter-spacing: -0.035em;
}

.service-card p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.72;
}

.service-card__arrow {
  width: 2rem;
  height: 2rem;
  color: var(--cyan);
}

.showcase {
  width: min(100% - 2.5rem, 1500px);
}

.showcase__frame {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.showcase__frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 12, 0.88), transparent 55%), linear-gradient(0deg, rgba(4, 7, 12, 0.5), transparent 40%);
  content: "";
}

.showcase img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase__frame:hover img {
  transform: scale(1.035);
}

.showcase__overlay {
  position: absolute;
  z-index: 2;
  bottom: clamp(2rem, 6vw, 6rem);
  left: clamp(1.5rem, 6vw, 6rem);
}

.showcase__overlay span {
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.showcase__overlay p {
  margin: 0.8rem 0 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.showcase__corners::before,
.showcase__corners::after {
  position: absolute;
  z-index: 3;
  width: 4rem;
  height: 4rem;
  border-color: var(--cyan);
  content: "";
}

.showcase__corners::before {
  top: 1rem;
  left: 1rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.showcase__corners::after {
  right: 1rem;
  bottom: 1rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.method {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  column-gap: clamp(3rem, 8vw, 8rem);
}

.method .section-index {
  grid-column: 1 / -1;
}

.method__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.method-step:last-child {
  border-bottom: 1px solid var(--line);
}

.method-step__number {
  padding-top: 0.2rem;
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.68rem;
}

.method-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 550;
}

.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.fit {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
}

.fit__copy > p:last-child {
  max-width: 570px;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.fit__matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0 0 3.5rem rgba(60, 137, 255, 0.07);
}

.fit__matrix span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 115px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #cbd7e5;
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  background: linear-gradient(145deg, rgba(19, 31, 50, 0.66), rgba(9, 15, 25, 0.58));
  box-shadow: inset 0 0 2rem rgba(67, 143, 255, 0.035);
}

.fit__matrix span::before {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0.8rem var(--cyan);
  content: "";
}

.contact-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 82vh;
  padding: 7rem 1.25rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.contact-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(80, 145, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 145, 255, 0.06) 1px, transparent 1px);
  background-size: 70px 70px;
  content: "";
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.contact-section__orb {
  position: absolute;
  width: min(64vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(99, 229, 255, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 116, 255, 0.17), rgba(68, 52, 150, 0.08) 40%, transparent 70%);
  box-shadow: inset 0 0 6rem rgba(80, 143, 255, 0.08), 0 0 8rem rgba(69, 136, 255, 0.09);
  animation: orb-pulse 5s ease-in-out infinite alternate;
}

.contact-section__content {
  position: relative;
  z-index: 2;
  text-align: left;
  grid-area: copy;
}

.contact-section__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1fr);
  grid-template-areas: "ercole copy" "ercole actions";
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100%, 1280px);
}

.ercole-presence {
  position: relative;
  isolation: isolate;
  width: min(100%, 590px);
  aspect-ratio: 1;
  margin-inline: auto;
  grid-area: ercole;
}

.contact-section__actions {
  position: relative;
  z-index: 2;
  grid-area: actions;
  text-align: left;
}

.ercole-presence__portrait {
  position: absolute;
  z-index: 2;
  inset: 0;
  animation: ercole-float 5s ease-in-out infinite;
}

.ercole-presence__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 0 2rem rgba(39, 151, 255, 0.2));
  mask-image: radial-gradient(ellipse 72% 76% at 50% 49%, #000 62%, transparent 98%);
}

.ercole-presence__halo {
  position: absolute;
  z-index: 1;
  inset: 12%;
  border: 1px solid rgba(72, 205, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 3rem rgba(48, 143, 255, 0.2), inset 0 0 3rem rgba(62, 185, 255, 0.1);
  animation: ercole-halo 3.4s ease-in-out infinite;
}

.ercole-presence::after {
  position: absolute;
  z-index: 3;
  top: 15%;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 229, 255, 0.9), transparent);
  box-shadow: 0 0 1rem rgba(99, 229, 255, 0.8);
  content: "";
  opacity: 0;
  animation: ercole-scan 4.8s linear infinite;
}

.ercole-presence__status {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(99, 229, 255, 0.48);
  background: rgba(4, 10, 18, 0.86);
  color: #bcefff;
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  box-shadow: 0 0 2rem rgba(42, 144, 255, 0.2);
  backdrop-filter: blur(10px);
}

.ercole-presence__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55f5ac;
  box-shadow: 0 0 0.7rem #55f5ac;
  animation: ercole-status 1.4s ease-in-out infinite;
}

.contact-section .kicker {
  justify-content: flex-start;
}

.contact-section h2 {
  font-size: clamp(3rem, 5.6vw, 6.5rem);
}

.contact-section__content > p {
  max-width: 650px;
  margin: 1.6rem 0 2.5rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.contact-ai-button {
  margin: 0 0 2rem;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  cursor: pointer;
}

@keyframes ercole-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-0.7rem) scale(1.008); }
}

@keyframes ercole-halo {
  0%, 100% { opacity: 0.48; transform: scale(0.96) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.03) rotate(2deg); }
}

@keyframes ercole-scan {
  0%, 12% { top: 16%; opacity: 0; }
  18%, 75% { opacity: 0.7; }
  82%, 100% { top: 82%; opacity: 0; }
}

@keyframes ercole-status {
  50% { opacity: 0.45; transform: scale(0.78); }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--cyan);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  text-decoration: none;
}

.contact-link .ui-arrow {
  width: 0.75em;
  height: 0.75em;
  transition: transform 180ms ease;
}

.contact-link:hover .ui-arrow,
.contact-link:focus-visible .ui-arrow {
  transform: translate(0.25rem, -0.25rem);
}

.snake-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.snake-section__intro h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.snake-section__intro h2 span {
  color: transparent;
  background: linear-gradient(100deg, #dcecff 5%, #67dfff 48%, #8f79ff 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.snake-section__intro > p:last-child {
  max-width: 520px;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.snake-console {
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: rgba(5, 9, 16, 0.94);
  box-shadow: 0 0 4rem rgba(45, 114, 238, 0.12), inset 0 0 4rem rgba(44, 111, 220, 0.04);
}

.snake-console__bar,
.snake-console__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding: 0.65rem 1rem;
  background: #0a101a;
  color: #93a3b7;
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.snake-console__bar {
  border-bottom: 1px solid var(--line);
}

.snake-console__bar > span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.snake-console__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55f5ac;
  box-shadow: 0 0 0.8rem #55f5ac;
}

.snake-console__score b {
  margin-left: 0.55rem;
  color: var(--cyan);
  font-size: 0.88rem;
}

.snake-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #03060b;
  overscroll-behavior: contain;
  touch-action: none;
}

#snake-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

#snake-canvas:focus-visible {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.snake-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  background: rgba(3, 6, 11, 0.48);
  text-align: center;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.snake-message.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.snake-message strong {
  color: var(--cyan);
  font-family: monospace;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.16em;
  text-shadow: 0 0 1.2rem rgba(99, 229, 255, 0.5);
}

.snake-message span {
  color: #8e9bad;
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.snake-console__footer {
  border-top: 1px solid var(--line);
}

.snake-start,
.snake-controls button {
  min-height: 34px;
  border: 1px solid var(--line-bright);
  background: #101a2a;
  color: #dff7ff;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.snake-start {
  padding: 0.5rem 0.9rem;
}

.snake-start:hover,
.snake-start:focus-visible,
.snake-controls button:hover,
.snake-controls button:focus-visible {
  border-color: var(--cyan);
  background: #172942;
}

.snake-controls {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 4px;
}

.snake-status {
  color: #55f5ac;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: #667487;
  font-size: 0.7rem;
}

.footer p {
  margin: 0;
}

.footer p:nth-child(2) {
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
  text-align: right;
}

.footer__legal a {
  color: #9aaabd;
  text-underline-offset: 0.2rem;
}

.lead-consent a { color: var(--cyan); }

.back-to-top {
  position: fixed;
  z-index: 90;
  right: clamp(1rem, 2.5vw, 2.5rem);
  bottom: calc(clamp(1rem, 2.5vw, 2.5rem) + var(--footer-offset, 0px));
  display: grid;
  place-items: center;
  width: 3.4rem;
  aspect-ratio: 1;
  border: 1px solid var(--line-bright);
  background: rgba(8, 13, 22, 0.94);
  color: var(--cyan);
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: 0 0 2rem rgba(69, 136, 255, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease, background 200ms ease, bottom 120ms linear;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #17243a;
}

.chat-launcher {
  position: fixed;
  z-index: 90;
  right: calc(clamp(1rem, 2.5vw, 2.5rem) + 4.15rem);
  bottom: calc(clamp(1rem, 2.5vw, 2.5rem) + var(--footer-offset, 0px));
  display: grid;
  place-items: center;
  width: 3.4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(99, 229, 255, 0.75);
  border-radius: 50%;
  background: linear-gradient(135deg, #397ff5, #685eff);
  cursor: pointer;
  box-shadow: 0 0 2.2rem rgba(69, 136, 255, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, bottom 120ms linear;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 3rem rgba(76, 151, 255, 0.5);
}

.chat-launcher > span {
  position: relative;
  width: 1.35rem;
  height: 1rem;
  border: 2px solid white;
  border-radius: 0.25rem;
}

.chat-launcher > span::after {
  position: absolute;
  bottom: -0.35rem;
  left: 0.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: "";
  transform: skewY(-32deg);
}

.lead-chat {
  width: min(94vw, 760px);
  max-width: none;
  max-height: min(90svh, 880px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #070b12;
  color: var(--text);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.75), 0 0 4rem rgba(58, 130, 255, 0.14);
}

.lead-chat::backdrop {
  background: rgba(1, 3, 7, 0.84);
  backdrop-filter: blur(10px);
}

.lead-chat__shell {
  display: flex;
  flex-direction: column;
  max-height: min(90svh, 880px);
}

.lead-chat__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: #0b111c;
}

.lead-chat__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
}

.lead-chat__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  overflow: hidden;
  border: 1px solid rgba(99, 229, 255, 0.58);
  border-radius: 50%;
  background: #050a12;
  box-shadow: 0 0 1.25rem rgba(57, 151, 255, 0.26);
  animation: ercole-avatar 2.8s ease-in-out infinite;
}

.lead-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes ercole-avatar {
  50% { border-color: rgba(85, 245, 172, 0.72); box-shadow: 0 0 1.6rem rgba(57, 151, 255, 0.48); }
}

.lead-chat__header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 550;
  letter-spacing: -0.025em;
}

.lead-chat__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.lead-chat__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55f5ac;
  box-shadow: 0 0 0.7rem #55f5ac;
}

.lead-chat__close {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: #111927;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.lead-intake,
.lead-conversation {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.lead-intake__intro {
  margin: 0 0 1.5rem;
  color: #c7d3e2;
  font-size: 1.03rem;
}

.lead-intake__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lead-intake label {
  display: grid;
  gap: 0.4rem;
  color: #b8c5d5;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.lead-intake input,
.lead-composer textarea {
  width: 100%;
  border: 1px solid rgba(157, 201, 255, 0.25);
  border-radius: 0;
  outline: none;
  background: #0c1320;
  color: white;
  font: inherit;
}

.lead-intake input {
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
}

.lead-intake input:focus,
.lead-composer textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 1.5rem rgba(99, 229, 255, 0.1);
}

.lead-intake .lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  color: #aebaca;
  font-size: 0.72rem;
  font-weight: 450;
  line-height: 1.55;
}

.lead-consent input {
  flex: 0 0 auto;
  width: 1.05rem;
  min-height: 0;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

.lead-chat__primary {
  width: 100%;
  min-height: 3.3rem;
  margin-top: 1rem;
  border: 1px solid #659dff;
  background: linear-gradient(115deg, #387ffa, #6c5cff);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  cursor: pointer;
}

.lead-chat__primary:disabled,
.lead-composer button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.lead-chat__error {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
  color: #ff8f9a;
  font-size: 0.75rem;
}

.lead-conversation__closed {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(85, 245, 172, 0.28);
  background: rgba(85, 245, 172, 0.06);
  color: #aef8cf;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.lead-composer[hidden] {
  display: none;
}

.lead-conversation {
  display: flex;
  flex-direction: column;
  min-height: min(70svh, 650px);
  overflow: hidden;
}

.lead-conversation[hidden] {
  display: none;
}

.lead-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  overflow-y: auto;
  padding: 0.25rem 0.2rem 1.2rem;
  overscroll-behavior: contain;
}

.lead-message {
  max-width: 84%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: #0d1522;
  color: #d4deea;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.lead-message--assistant {
  align-self: flex-start;
  border-left-color: var(--cyan);
}

.lead-message--user {
  align-self: flex-end;
  border-right-color: #8a72ff;
  background: #14182a;
}

.lead-typing {
  align-items: center;
  gap: 0.28rem;
  padding: 0.35rem 0;
  color: #8290a3;
  font-family: monospace;
  font-size: 0.64rem;
}

.lead-typing:not([hidden]) {
  display: flex;
}

.lead-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typing-dot 900ms ease-in-out infinite alternate;
}

.lead-typing i:nth-child(2) { animation-delay: 150ms; }
.lead-typing i:nth-child(3) { animation-delay: 300ms; }
.lead-typing span { margin-left: 0.35rem; }

.lead-composer {
  display: grid;
  grid-template-columns: 1fr 3.2rem;
  gap: 0.55rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.lead-chat-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.lead-chat-actions[hidden] {
  display: none;
}

.lead-chat-actions button {
  flex: 1 1 0;
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-bright);
  background: linear-gradient(115deg, #387ffa, #6c5cff);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lead-chat-actions button:last-child {
  background: #101a29;
}

.lead-composer textarea {
  min-height: 3.2rem;
  max-height: 9rem;
  padding: 0.8rem;
  resize: vertical;
}

.lead-composer button {
  border: 1px solid var(--line-bright);
  background: linear-gradient(135deg, #357cf0, #665cff);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.lead-conversation__notice {
  margin: 0.2rem 0 0;
  color: #758397;
  font-size: 0.65rem;
  text-align: center;
}

@keyframes typing-dot {
  to { opacity: 0.25; transform: translateY(-3px); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes orb-pulse {
  to { transform: scale(1.06); box-shadow: inset 0 0 8rem rgba(80, 143, 255, 0.12), 0 0 10rem rgba(69, 136, 255, 0.15); }
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
    backdrop-filter: none;
  }

  .site-header.is-scrolled {
    backdrop-filter: none;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 5px;
    width: 2.8rem;
    height: 2.8rem;
    place-content: center;
    border: 1px solid var(--line);
    background: rgba(8, 12, 20, 0.8);
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: white;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-button[aria-expanded="true"] > span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 2rem;
    gap: 0;
    background: #020409;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 1.25rem 0;
    border: 0;
    border-bottom: 1px solid rgba(157, 201, 255, 0.13);
    background: transparent;
    color: #eef6ff;
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    letter-spacing: -0.025em;
  }

  .site-nav .nav-cta {
    padding: 1.25rem 0;
    border: 0;
    border-bottom: 1px solid rgba(157, 201, 255, 0.13);
    background: transparent;
  }

  .hero__veil {
    background: linear-gradient(90deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.78)), linear-gradient(0deg, var(--bg), transparent 35%);
  }

  .hero__rail {
    display: none;
  }

  .manifesto,
  .about__grid,
  .method,
  .fit,
  .snake-section {
    grid-template-columns: 1fr;
  }

  .contact-section__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "ercole" "actions";
    gap: 1rem;
  }

  .ercole-presence {
    width: min(72vw, 500px);
  }

  .contact-section__content {
    text-align: center;
  }

  .contact-section__actions {
    text-align: center;
  }

  .contact-section .kicker {
    justify-content: center;
  }

  .contact-section__content > p {
    margin-inline: auto;
  }

  .contact-ai-button {
    margin-inline: auto;
  }

  .manifesto__content > p {
    margin-left: 0;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 240px;
  }

  .principle h3 {
    margin-top: 3.6rem;
  }

  .method__intro {
    margin-bottom: 3.5rem;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer p:last-child {
    text-align: left;
  }

  .footer__legal { justify-content: flex-start; text-align: left; }

  .snake-section {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .signal-strip__track {
    animation-duration: 22s;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .brand__name {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__image {
    background-position: 68% 50%;
  }

  .hero__content {
    width: calc(100% - 2rem);
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.8rem);
  }

  .desktop-space {
    display: none;
  }

  .mobile-break {
    display: initial;
  }

  .hero__lead {
    font-size: 1.07rem;
  }

  .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    width: calc(100% - 2rem);
    padding-block: 5.5rem;
  }

  .manifesto {
    display: block;
  }

  .manifesto__content blockquote {
    font-size: 2.55rem;
  }

  .section h2 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .principles {
    margin-top: 4rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card--wide {
    display: block;
    grid-column: auto;
  }

  .service-card--wide .service-card__icon {
    margin-bottom: 3.4rem;
  }

  .service-card {
    min-height: 320px;
  }

  .service-card__arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
  }

  .showcase {
    width: 100%;
    padding: 0;
  }

  .showcase__frame,
  .showcase img {
    min-height: 620px;
    height: 78svh;
  }

  .showcase img {
    object-position: 58% center;
  }

  .showcase__frame::after {
    background: linear-gradient(0deg, rgba(4, 7, 12, 0.94), transparent 72%);
  }

  .showcase__overlay {
    bottom: 3rem;
  }

  .showcase__overlay p {
    font-size: 2.6rem;
  }

  .fit__matrix span {
    min-height: 92px;
    font-size: 0.6rem;
  }

  .contact-section {
    min-height: 78svh;
    padding-inline: 1rem;
  }

  .contact-section__orb {
    width: 110vw;
  }

  .contact-section__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "ercole" "actions";
    gap: 0.5rem;
  }

  .ercole-presence {
    width: min(82vw, 360px);
  }

  .contact-section__content {
    text-align: center;
  }

  .contact-section__actions {
    text-align: center;
  }

  .contact-section .kicker {
    justify-content: center;
  }

  .contact-section__content > p {
    margin-inline: auto;
  }

  .contact-ai-button {
    margin-inline: auto;
  }

  .snake-section {
    width: calc(100% - 2rem);
    padding-block: 5.5rem;
  }

  .snake-console__footer {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .snake-start {
    min-height: 42px;
  }

  .snake-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, 1fr);
    order: 3;
  }

  .snake-controls button {
    min-height: 44px;
  }

  .snake-status {
    text-align: right;
  }

  .footer {
    padding-inline: 1rem;
  }

  .footer__legal { justify-content: center; text-align: center; }

  .chat-launcher {
    right: 4.35rem;
    width: 2.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease, box-shadow 180ms ease,
      bottom 120ms linear;
  }

  .chat-launcher.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .chat-launcher > span {
    width: 1.08rem;
    height: 0.8rem;
  }

  .back-to-top {
    width: 2.75rem;
    font-size: 1.1rem;
  }

  .lead-chat {
    inset: 0;
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
  }

  .lead-chat__shell {
    max-height: 100dvh;
    height: 100dvh;
  }

  .lead-chat__header {
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
  }

  .lead-chat__identity {
    gap: 0.55rem;
  }

  .lead-chat__avatar {
    width: 2.35rem;
    height: 2.35rem;
  }

  .lead-chat__header h2 {
    margin-top: 0.08rem;
    font-size: 1rem;
    line-height: 1.15;
  }

  .lead-chat__status {
    font-size: 0.5rem;
    letter-spacing: 0.09em;
  }

  .lead-chat__close {
    width: 2rem;
    height: 2rem;
    font-size: 1.15rem;
  }

  .lead-intake,
  .lead-conversation {
    padding: 0.75rem;
  }

  .lead-intake__grid {
    grid-template-columns: 1fr;
  }

  .lead-conversation {
    min-height: 0;
    flex: 1 1 auto;
  }

  .lead-messages {
    min-height: 0;
    padding-bottom: 0.65rem;
    touch-action: pan-y;
  }

  .lead-composer {
    padding-top: 0.55rem;
  }

  .lead-conversation__notice {
    margin-top: 0.1rem;
    font-size: 0.56rem;
  }

  .lead-message {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Mantiene leggibile l'intero elenco anche sui telefoni che disattivano le animazioni di sistema. */
  .signal-strip__track {
    animation: marquee 42s linear infinite !important;
  }
}
