/* Simulazione AI — sala buia (D106). The whole page sits on ink. */

.sm { background: var(--night); color: var(--ivory); }
.sm .display { color: var(--ivory); }
.sm h2 { margin: 0 0 32px; font-size: clamp(36px, 3.8vw, 58px) !important; line-height: 1.06 !important; }

/* Pinned before/after: a screen and a half of scrolling moves the line. */
.sm-hero { position: relative; height: 230vh; }
.sm-hero__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.sm-hero__sticky::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 60% 50%, rgba(216, 189, 142, .16), transparent 60%);
  pointer-events: none;
}
.sm-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; width: 100%; }
.sm-hero h1 { margin: 0 0 26px; font-size: clamp(48px, 5.6vw, 92px) !important; line-height: 1 !important; }
.sm-hero .sm-hero__lead { margin: 0; max-width: 520px; font-size: 19px !important; line-height: 1.6 !important; color: var(--ivory-muted); }
.sm .btn-solid { background: var(--ivory); color: var(--night) !important; border-color: var(--ivory) !important; }
.sm .btn-quiet { border-color: rgba(244, 239, 230, .3) !important; color: var(--ivory); }
.sm-hero__hint { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 14px; color: var(--ivory-muted); }
.sm-hero__mouse { position: relative; width: 22px; height: 34px; border: 1.5px solid rgba(244, 239, 230, .5); border-radius: 12px; }
.sm-hero__mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-light); animation: sm-wheel 1.6s ease-in-out infinite; }
@keyframes sm-wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.sm-hero__screen { display: flex; justify-content: center; opacity: 0; transform: scale(.92); transition: opacity 1s ease .2s, transform 1.4s cubic-bezier(.16, 1, .3, 1) .2s; }
.is-ready .sm-hero__screen { opacity: 1; transform: none; }
.sm-hero .wipe { width: min(520px, 100%); max-height: 78vh; aspect-ratio: 4 / 5; border-radius: 34px; box-shadow: 0 70px 120px -50px rgba(0, 0, 0, .8), 0 0 0 1px rgba(244, 239, 230, .08); }
.sm-hero .wipe__line span { animation: sm-nudge 2.4s ease-in-out infinite 1.6s; }
@keyframes sm-nudge { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(calc(-50% + 8px), -50%); } }

/* What it is: a short sentence, the preview label as it appears on every
   image, three reasons in a row. */
.sm-credits { padding: 130px 0 120px; }
.sm-credits__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: end; }
.sm-credits .sm-credits__title { margin: 0; font-size: clamp(38px, 4vw, 60px) !important; line-height: 1.05 !important; color: var(--ivory); }
.sm-credits .sm-credits__lead { margin: 22px 0 0; max-width: 560px; font-size: 20px !important; line-height: 1.55 !important; color: var(--ivory-muted); }
.sm-credits__tag { padding: 26px 28px; border-radius: 22px; background: rgba(244, 239, 230, .05); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .1); }
.sm-credits__chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(20, 22, 24, .85); box-shadow: inset 0 0 0 1px rgba(216, 189, 142, .45); font-size: 14px; font-weight: 600; color: var(--gold-light); }
.sm-credits__chip i { width: 8px; height: 8px; border-radius: 999px; background: var(--gold-light); }
.sm-credits__tag p { margin: 16px 0 0; font-size: 16px !important; line-height: 1.55 !important; color: var(--ivory-muted); }
.sm-credits__why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 80px; padding: 0; list-style: none; }
.sm-credits__why li { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(216, 189, 142, .35); }
.sm-credits__why span { font-family: var(--mono); font-size: 13px; color: var(--gold-light); }
.sm-credits__why b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; color: var(--ivory); }
.sm-credits__why em { font-style: normal; font-size: 16px; line-height: 1.5; color: var(--ivory-muted); }

/* Film strip with sprocket holes, sliding left as the section passes. */
.sm-film { padding: 120px 0 140px; overflow: hidden; }
.sm-film__strip {
  position: relative;
  margin-top: 20px;
  padding: 34px 0;
  background: #0B0C0D;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.sm-film__strip::before,
.sm-film__strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(244, 239, 230, .85) 14px 30px, transparent 30px 44px);
  -webkit-mask: linear-gradient(#000, #000);
  border-radius: 3px;
}
.sm-film__strip::before { top: 10px; }
.sm-film__strip::after { bottom: 10px; }
.sm-film__frames {
  display: flex;
  gap: 18px;
  width: max-content;
  margin: 0;
  padding: 0 0 0 6vw;
  list-style: none;
  transform: translateX(calc(var(--p, 0) * -38vw));
}
@media (min-width: 901px) {
  html[dir="rtl"] .sm-film__frames { padding: 0 6vw 0 0; transform: translateX(calc(var(--p, 0) * 38vw)); }
}
.sm-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 380px;
  min-height: 280px;
  padding: 28px 26px;
  border-radius: 8px;
  background: linear-gradient(160deg, #24211D, #17191A);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .08);
}
.sm-frame__n { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--gold-light); }
.sm-frame h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ivory); }
.sm-frame p { margin: 0; font-size: 16px !important; color: var(--ivory-muted); }

/* Quotas as big numbers that count up. */
.sm-quota { padding: 120px 0; border-top: 1px solid rgba(244, 239, 230, .1); }
.sm-quota__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 20px 0 36px; padding: 0; list-style: none; border-top: 1px solid rgba(244, 239, 230, .14); }
.sm-quota__cell { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; border-right: 1px solid rgba(244, 239, 230, .14); }
.sm-quota__cell:last-child { border-right: 0; }
.sm-quota__name { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ivory); }
.sm-quota__n { font-family: var(--serif); font-size: clamp(72px, 9vw, 150px); line-height: .9; color: var(--ivory); }
.sm-quota__cell.is-on .sm-quota__n { color: var(--gold-light); }
.sm-quota__n--none { color: rgba(244, 239, 230, .25); }
.sm-quota__unit { font-size: 15px; color: var(--ivory-muted); }
.sm .sm-quota__text { margin: 0 0 12px; max-width: 720px; color: var(--ivory-muted); }
.sm .sm-link { color: var(--gold-light); }

@media (max-width: 900px) {
  .sm-hero { height: 200vh; }
  .sm-hero__sticky { align-items: flex-start; padding-top: 90px; }
  .sm-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sm-hero h1 { font-size: clamp(36px, 9vw, 54px) !important; margin-bottom: 14px; }
  .sm-hero .sm-hero__lead { font-size: 15px !important; }
  .sm-hero .svc-actions,
  .sm-hero__hint { display: none; }
  .sm-hero .wipe { width: min(300px, 78vw); max-height: 52vh; }
  .sm-credits .sm-credits__text { font-size: 21px !important; }
  .sm-credits__pair dt { font-size: 27px; }
  .sm-credits { padding: 80px 0; }
  .sm-credits__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sm-credits__why { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 48px; }
  .sm-film__strip { transform: none; }
  .sm-film__frames { flex-direction: column; width: auto; padding: 0 var(--page-pad); transform: none; }
  .sm-frame { width: auto; min-height: 0; }
  .sm-quota__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-quota__cell:nth-child(2) { border-right: 0; }
  .sm-quota__cell:nth-child(-n + 2) { border-bottom: 1px solid rgba(244, 239, 230, .14); }
}

@media (prefers-reduced-motion: reduce) {
  .sm-hero { height: auto; }
  .sm-hero__sticky { position: static; height: auto; padding: 80px 0; }
  .sm-film__frames { transform: none; }
}
