/* =========================================================
   Magistra: sito statico
   Design: editoriale, rigorosamente bianco / nero
   ========================================================= */

/* Alias del sito costruiti sul token layer del design system (ds/tokens.css).
   I primitivi --ink, --paper, --ink-2, --line, --line-strong arrivano dal DS.
   Qui si mappano solo i nomi usati nel sito: i valori restano identici. */
:root {
  /* neutri di testo */
  --muted: var(--text-secondary);   /* #6f6f6f */
  --muted-2: var(--text-muted);     /* #9a9a9a */

  /* varianti per sezioni invertite (sfondo inchiostro) */
  --paper-inv: var(--ink);          /* #0a0a0a */
  --ink-inv: var(--text-inverse);   /* #f7f7f5 */
  --muted-inv: var(--neutral-400);  /* #9a9a9a */
  --line-inv: rgba(247, 247, 245, 0.18);

  /* famiglie tipografiche */
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --mono: var(--font-mono);

  /* motion e layout */
  --ease: var(--ease-editorial);
  --gutter: var(--gutter-fluid);
  --maxw: var(--container-landing);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }
strong { font-weight: 600; }

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Grana ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Barra di progresso ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transform-origin: left;
}

/* ---------- Navigazione ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(16px, 2.2vw, 26px) var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.nav__brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.nav__dot { font-style: italic; }
.nav__links {
  display: flex;
  gap: clamp(16px, 2vw, 34px);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 100px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: #fff; color: #000; }

/* nav nascosta allo scroll giù */
.nav { transition: transform 0.5s var(--ease); }
.nav--hidden { transform: translateY(-110%); }

/* ---------- Tipografia comune ---------- */
section { position: relative; z-index: 2; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(124px, 18vh, 220px) var(--gutter) clamp(40px, 6vh, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
/* background: parete di testo normativo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__codex {
  position: absolute;
  top: -6%;
  left: var(--gutter);
  right: var(--gutter);
  bottom: -6%;
  column-count: 4;
  column-gap: clamp(28px, 4vw, 64px);
  column-fill: balance;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(0.78rem, 0.95vw, 0.98rem);
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
  color: var(--ink);
  opacity: 0.1;
  /* il testo resta solo nella metà destra: la sinistra (titolo e
     sottotitolo) rimane pulita e leggibile */
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 48%, #000 76%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 48%, #000 76%);
  will-change: transform;
}
.hero__codex p { break-inside: avoid; margin-bottom: 1.4em; }
.hero__codex b { font-weight: 600; font-style: italic; }

/* filigrana: segno di paragrafo, a tema giuridico */
.hero__mark {
  position: absolute;
  right: clamp(-40px, -2vw, -10px);
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28rem, 56vw, 60rem);
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  color: var(--muted);
  max-width: 30ch;
  animation: eyebrow-in 1.1s var(--ease) both;
  animation-delay: 0.15s;
}
@keyframes eyebrow-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.8rem, min(9.5vw, 13vh), 9rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: auto 0;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line--em {
  font-style: italic;
  font-weight: 420;
}
.hero__title [data-reveal-word] {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.js .hero__title [data-reveal-word] {
  transform: translateY(110%);
}

.hero__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero__lede {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
}

/* =========================================================
   PROBLEMA
   ========================================================= */
.problem {
  padding: clamp(120px, 20vh, 260px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.problem__lines {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2rem, 6.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.reveal-line { overflow: hidden; }
.reveal-line span { display: inline-block; }
.reveal-line:nth-child(n+2) { color: var(--muted-2); }
.problem__turn {
  margin-top: clamp(40px, 8vh, 90px);
  max-width: 30ch;
  margin-left: auto;
  text-align: right;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink-2);
}
.problem__turn em { font-family: var(--serif); }

/* =========================================================
   COME FUNZIONA (sticky scrollytelling)
   ========================================================= */
.how {
  background: var(--paper-inv);
  color: var(--ink-inv);
  position: relative;
  height: 320vh;            /* spazio di scroll per la sequenza */
}
.how__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: clamp(90px, 12vh, 130px) var(--gutter) clamp(50px, 8vh, 90px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 40px;
  overflow: hidden;
}
.how__head { max-width: 60ch; }
.how__title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 18px;
}

.chat {
  width: min(720px, 100%);
  margin: clamp(20px, 4vh, 50px) auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chat__row {
  display: flex;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.chat__row.is-on { opacity: 1; transform: none; }
.chat__row--user { justify-content: flex-end; }
.chat__row--bot, .chat__row--work { justify-content: flex-start; }

.bubble {
  max-width: 88%;
  padding: 20px 24px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  border: 1px solid var(--line-inv);
  position: relative;
}
.bubble__who {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted-inv);
  margin-bottom: 10px;
}
.bubble--user {
  background: var(--ink-inv);
  color: var(--ink);
  border-color: var(--ink-inv);
  border-radius: 18px 18px 4px 18px;
}
.bubble--user .bubble__who { color: rgba(10,10,10,0.5); }
.bubble--bot {
  background: transparent;
  border-radius: 18px 18px 18px 4px;
}

.working {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 22px;
  border: 1px solid var(--line-inv);
  border-radius: 18px 18px 18px 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted-inv);
}
.working__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-inv);
  opacity: 0.4;
  animation: blink 1.2s infinite;
}
.working__dot:nth-child(2) { animation-delay: 0.2s; }
.working__dot:nth-child(3) { animation-delay: 0.4s; }
.working__label { margin-left: 6px; }
@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* chip citazione */
.cite {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  background: rgba(247,247,245,0.04);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.cite.is-on { opacity: 1; transform: none; }
.cite__bar { width: 3px; background: var(--ink-inv); border-radius: 3px; }
.cite__body { display: flex; flex-direction: column; gap: 4px; }
.cite__src {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.cite__meta {
  font-size: 0.74rem;
  color: var(--muted-inv);
}
.cite__check {
  margin-left: auto;
  align-self: center;
  font-size: 1.1rem;
}

.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line-inv);
  padding-top: 22px;
}
.how__steps li {
  font-size: 0.92rem;
  color: var(--muted-inv);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.how__steps li span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
}
.how__steps li.is-active { opacity: 1; color: var(--ink-inv); }

/* =========================================================
   COSA FA: scroll orizzontale
   ========================================================= */
.features { height: 420vh; position: relative; }
.features__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.features__track {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.features__intro {
  flex: 0 0 auto;
  width: min(78vw, 520px);
  align-self: center;
}
.features__intro h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 20px 0 26px;
}
.card {
  flex: 0 0 auto;
  width: min(78vw, 380px);
  height: clamp(360px, 60vh, 460px);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}
.card__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: auto;
  margin-bottom: 14px;
}
.card p {
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
}

/* =========================================================
   PER CHI È
   ========================================================= */
.audience {
  padding: clamp(110px, 16vh, 200px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.audience__head { margin-bottom: clamp(50px, 9vh, 110px); }
.audience__head h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.audience__list { list-style: none; }
.audience__list li {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: baseline;
  padding: clamp(28px, 4vh, 48px) 0;
  border-top: 1px solid var(--line);
}
.audience__list li:last-child { border-bottom: 1px solid var(--line); }
.audience__role {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 30px);
}
.audience__n {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  color: var(--muted-2);
  min-width: 2.2ch;
}
.audience__role h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.audience__list li p {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
}

/* =========================================================
   FONTI
   ========================================================= */
.sources {
  background: var(--paper-inv);
  color: var(--ink-inv);
  padding: clamp(110px, 16vh, 200px) 0;
}
.sources__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sources__head h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
  max-width: 18ch;
}
.sources__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--muted-inv);
  line-height: 1.5;
}

.marquee {
  margin: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid var(--line-inv);
  border-bottom: 1px solid var(--line-inv);
  padding: 26px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  will-change: transform;
}
.marquee__sep { font-style: normal; color: var(--muted-inv); }

.sources__list {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.sources__list li {
  padding: 30px 26px 30px 0;
  border-top: 1px solid var(--line-inv);
}
.sources__list h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 12px;
}
.sources__list p {
  font-size: 0.95rem;
  color: var(--muted-inv);
  line-height: 1.5;
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  display: flex;
  align-items: center;
  padding: clamp(110px, 17vh, 200px) var(--gutter) clamp(48px, 7vh, 84px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.manifesto__text {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.2rem, 7vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.manifesto__text [data-reveal-word] {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.5s var(--ease);
}

/* =========================================================
   PRINCIPI
   ========================================================= */
.principles {
  padding: clamp(48px, 7vh, 84px) var(--gutter) clamp(110px, 16vh, 200px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle {
  position: relative;
  background: var(--paper);
  padding: clamp(28px, 3vw, 46px);
  min-height: clamp(280px, 34vh, 380px);
  display: flex;
  flex-direction: column;
}
.principle__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: auto 0 16px;
}
.principle p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--paper-inv);
  color: var(--ink-inv);
  padding: clamp(120px, 20vh, 240px) var(--gutter);
  text-align: center;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.cta__lede {
  max-width: 48ch;
  margin: 28px auto 44px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted-inv);
}
.cta__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: left;
}
.cta__option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px;
  border: 1px solid var(--line-inv);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}
.cta__option--soon {
  background: transparent;
  border-style: dashed;
}
.cta__option h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta__option p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-inv);
  margin-bottom: 8px;
}
.cta__option .btn { margin-top: auto; align-self: flex-start; }
.cta__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-inv);
  color: var(--ink-inv);
}
.cta__tag--soon { color: var(--muted-inv); }
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .cta__options { grid-template-columns: 1fr; }
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--ink-inv);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--ink-inv); color: var(--ink); }
.btn--solid:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink-inv); }
.btn--ghost:hover { background: var(--ink-inv); color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--paper-inv);
  color: var(--ink-inv);
  padding: clamp(50px, 8vh, 90px) var(--gutter) clamp(36px, 5vh, 56px);
  border-top: 1px solid var(--line-inv);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.footer__made { font-size: 0.9rem; color: var(--muted-inv); }
.footer__made a {
  color: var(--ink-inv);
  border-bottom: 1px solid var(--line-inv);
  transition: border-color 0.3s var(--ease);
}
.footer__made a:hover { border-color: var(--ink-inv); }
.footer__disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted-inv);
  max-width: 70ch;
  border-top: 1px solid var(--line-inv);
  padding-top: 24px;
}

/* =========================================================
   ANIMAZIONI REVEAL (attive solo con JS)
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal-lines] span {
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
}
.js [data-reveal-lines].is-in span { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__codex { column-count: 2; }
  .audience__list li { grid-template-columns: 1fr; gap: 14px; }
  .how { height: 240vh; }
  .features { height: 360vh; }
  .features__intro { width: 86vw; }
  .card { width: 80vw; height: clamp(320px, 56vh, 420px); }
  .how__steps { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
  .sources__list { grid-template-columns: repeat(2, 1fr); }
  .principles__grid { grid-template-columns: 1fr; }
  .problem__turn { text-align: left; margin-left: 0; }
}

@media (max-width: 560px) {
  .sources__list { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr 1fr; }
  .bubble { max-width: 96%; }
}

/* =========================================================
   ACCESSIBILITÀ: riduzione movimento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-reveal-lines] span,
  .hero__title [data-reveal-word],
  .chat__row,
  .cite { opacity: 1 !important; transform: none !important; }
  .manifesto__text [data-reveal-word] { opacity: 1 !important; }
}
