/* ===========================================================================
   TWIZA-SPECIFIC STYLES
   Concatenated in the same cascade order as the original React build:
   twiza-hero-simulation.css -> sector-demo.css -> page.css -> action-console.css
   (this order matters: action-console.css intentionally wins over the older
   duplicate .twiza-action-console rules embedded in page.css)
   TODO (future step): merge with shared.css / homepage .lab-* design tokens.
   =========================================================================== */


  .twiza-proof {
    padding-bottom: 100px!important;
  }
/* --- sector-demo.css --- */
.twiza-sectors {
  position: relative;
  padding: clamp(92px, 10vw, 158px) var(--lab-gutter);
  border-top: 1px solid var(--lab-rule-dark);
  border-bottom: 1px solid var(--lab-rule-dark);
  background: rgb(8 9 11 / 42%);
  color: white;
}

.twiza-sectors-intro {
  max-width: 910px;
  margin: 0 auto clamp(46px, 5vw, 78px);
  text-align: center;
}

.twiza-sectors h2 {
  margin: 0 0 24px;
  font-size: clamp(46px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}

.twiza-sectors h2 em {
  color: var(--lab-accent-live);
  font-style: normal;
  font-weight: 400;
}

.twiza-sectors-lede {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--lab-muted);
  font-size: 18px;
  line-height: 1.62;
}

.twiza-sectors-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--lab-max);
  margin: 0 auto;
  border: 1px solid var(--lab-rule-dark);
  background: #111317;
}

.twiza-sectors-tabs button {
  position: relative;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 22px;
  border: 0;
  border-right: 1px solid var(--lab-rule-dark);
  background: transparent;
  color: #8c858a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.twiza-sectors-tabs button:last-child {
  border-right: 0;
}

.twiza-sectors-tabs button::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--lab-accent-live);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.twiza-sectors-tabs button:hover {
  color: white;
}

.twiza-sectors-tabs button.is-active {
  background: transparent;
  color: white;
}

.twiza-sectors-tabs button.is-active::after {
  transform: scaleX(0);
}

.twiza-sector-indicator {
  position: absolute;
  inset: 0;
  background: var(--lab-accent);
  z-index: 0;
  pointer-events: none;
}

.twiza-sector-index,
.twiza-sector-label {
  position: relative;
  z-index: 1;
}

.twiza-sector-index {
  color: inherit;
  opacity: .66;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.twiza-sector-label {
  font-size: 15px;
  font-weight: 600;
}

.twiza-sectors-panel {
  max-width: var(--lab-max);
  min-height: 700px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 62px);
  border: 1px solid var(--lab-rule-dark);
  border-top: 0;
  background: #111317;
}

.twiza-sectors-panel-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 1.44fr);
  align-items: center;
  gap: clamp(34px, 4vw, 68px);
}

.twiza-sectors-copy {
  will-change: transform, opacity;
}

.twiza-sector-narrative {
  margin: 0 0 28px;
  color: var(--lab-accent-live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.twiza-sectors-copy h3 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.03;
}

.twiza-sectors-copy>p:last-child {
  max-width: 55ch;
  margin: 0;
  color: var(--lab-muted);
  font-size: 17px;
  line-height: 1.62;
}

.twiza-sectors-widget-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 16px;
  background: #eee9e8;
  box-shadow: 0 32px 90px rgb(0 0 0 / 34%);
}

.twiza-sectors-widget {
  width: 100%;
  height: 520px;
  display: block;
  border: 0;
  background: #eee9e8;
}

.twiza-sectors-widget-caption {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid rgb(82 63 73 / 16%);
  background: #eee9e8;
  color: #62595e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@keyframes twizaPanel {
  from {
    opacity: .4;
    transform: translateY(16px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 1080px) {
  .twiza-sectors-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .twiza-sectors-tabs::-webkit-scrollbar {
    display: none;
  }

  .twiza-sectors-tabs button {
    flex: 0 0 190px;
  }

  .twiza-sectors-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .twiza-sectors-widget {
    height: 680px;
  }
}

@media (max-width: 620px) {
  .twiza-sectors {
    padding-block: 82px;
  }

  .twiza-sectors h2 {
    font-size: 45px;
  }

  .twiza-sectors-lede {
    font-size: 16px;
  }

  .twiza-sectors-tabs button {
    flex-basis: 160px;
    min-height: 76px;
    padding: 14px 16px;
  }

  .twiza-sectors-panel {
    padding: 20px;
  }

  .twiza-sectors-widget {
    height: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .twiza-sectors-tabs button::after,
  .twiza-sectors-copy {
    animation: none;
    transition: none;
  }
}


.comparison-transform {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lab-premium-border);
  border-radius: var(--glass-radius);
  background: var(--glass-surface-quiet);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(116%);
  -webkit-backdrop-filter: blur(24px) saturate(116%);
  isolation: isolate;
}

.comparison-transform::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--lab-accent-live), rgb(239 24 115 / 35%) 46%, transparent 88%);
  pointer-events: none;
}

.comparison-transform-head,
.comparison-transform-row {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1fr) minmax(310px, 1.2fr);
}

.comparison-transform-head {
  min-height: 96px;
  align-items: center;
  border-bottom: 1px solid var(--lab-rule-dark);
  background: rgb(255 255 255 / 1.5%);
}

.comparison-transform-head > * {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 2.4vw, 38px);
}

.comparison-transform-head__criteria {
  color: #b4abb0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.comparison-transform-head__generic {
  border-left: 1px solid var(--lab-rule-dark);
  color: #b4abb0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.comparison-twiza-brand {
  justify-content: flex-start;
  border-left: 1px solid var(--lab-rule-dark);
  background: linear-gradient(90deg, rgb(211 15 99 / 7%), transparent 75%);
}

.comparison-twiza-brand img {
  display: block;
  width: 116px;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.comparison-transform-row {
  position: relative;
  min-height: 112px;
  border-bottom: 1px solid var(--lab-rule-dark);
  transition: background .32s cubic-bezier(.22, .8, .22, 1);
}

.comparison-transform-row:last-child { border-bottom: 0; }

.comparison-transform-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at 91% 50%, rgb(211 15 99 / 11%), transparent 30%),
    linear-gradient(90deg, transparent 30%, rgb(255 255 255 / 1.4%) 55%, transparent 100%);
  transition: opacity .32s ease;
}

.comparison-transform-row:hover::after { opacity: 1; }

.comparison-transform-question,
.comparison-transform-generic,
.comparison-transform-twiza {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: clamp(24px, 2.5vw, 38px);
}

.comparison-transform-question {
  color: var(--lab-light);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.2;
}

.comparison-transform-generic {
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  border-left: 1px solid var(--lab-rule-dark);
  color: #777076;
}

.comparison-transform-generic small {
  color: rgb(255 255 255 / 28%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* The accent strikethrough is dropped: the muted colour already marks this
   column as the lesser one, and the line across the phrases read as noise.
   `<del>` keeps its meaning in the markup, it simply no longer draws. Only the
   two text-decoration declarations are removed; colour, size and line-height
   are the authored ones. */
.comparison-transform-generic del {
  color: #827a80;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.3;
  text-decoration: none;
}

.comparison-transform-twiza {
  position: relative;
  gap: clamp(18px, 1.7vw, 28px);
  border-left: 1px solid var(--lab-rule-dark);
  background: linear-gradient(90deg, rgb(211 15 99 / 5%), transparent 72%);
}

.comparison-transform-twiza i {
  position: relative;
  flex: 0 0 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--lab-accent-live), rgb(239 24 115 / 22%));
  transform-origin: left center;
  transition: transform .32s cubic-bezier(.22, .8, .22, 1);
}


.comparison-transform-twiza i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--lab-accent-live);
  border-right: 1px solid var(--lab-accent-live);
  transform: translateY(-50%) rotate(45deg);
}

.comparison-transform-row:hover .comparison-transform-twiza i {
  transform: scaleX(1.18);
}

.comparison-transform-twiza strong {
  color: #f8f3f6;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.25;
}

/* --- the comparison table one step louder ---------------------------------
   With the repeated "STANDARD" eyebrow gone from the lesser column, the table
   is three columns of plain statements and it was reading small for a block
   this wide. Every cell's type step is scaled by 1.25 from its authored value,
   so the three columns keep exactly the relationship they were given: the
   criterion and TWIZA's answer at the same step, the generic answer one below.

   Scoped to the id, because `.comparison-transform` is also used on the AI
   Development page (`#agenti`), where css/ai-development.css levels the two
   columns for a table that has no lesser side. Nothing but font-size changes,
   and the rows grow with their own content — their min-height and padding are
   the authored ones. */
#confronto .comparison-transform-question,
#confronto .comparison-transform-twiza strong {
  font-size: clamp(22.5px, 1.69vw, 27.5px);
}

#confronto .comparison-transform-generic del {
  font-size: clamp(20px, 1.44vw, 23.75px);
}

/* Below 900px the component sets the criterion at a fixed 20px; scaled by the
   same factor so the stacked card keeps the proportion. */
@media (max-width: 900px) {

  #confronto .comparison-transform-question {
    font-size: 25px;
  }
}

@media (max-width: 900px) {
  .comparison-transform-head { display: none; }

  .comparison-transform {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .comparison-transform::before { display: none; }

  .comparison-transform-row {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--lab-premium-border);
    border-radius: var(--glass-radius);
    background: var(--glass-surface-quiet);
    box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
    backdrop-filter: blur(20px) saturate(112%);
    -webkit-backdrop-filter: blur(20px) saturate(112%);
  }

  .comparison-transform-question,
  .comparison-transform-generic,
  .comparison-transform-twiza {
    padding: 22px 24px;
    border-left: 0;
  }

  .comparison-transform-question {
    border-bottom: 1px solid var(--lab-rule-dark);
    font-size: 20px;
  }

  .comparison-transform-generic {
    border-bottom: 1px solid var(--lab-rule-dark);
  }

  .comparison-transform-twiza {
    min-height: 76px;
  }
}

@media (max-width: 520px) {
  .preview-shell { padding: 22px; }

  .comparison-transform-twiza {
    gap: 15px;
  }

  .comparison-transform-twiza i {
    flex-basis: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comparison-transform-row,
  .comparison-transform-row::after,
  .comparison-transform-twiza i {
    transition: none;
  }
}

/* --- page.css (imports stripped, already inlined above) --- */

.twiza-page-shell {
  background: #08090b;
}

.twiza-next-page {
  --lab-radius: 0px;
  overflow: clip;
  background: #08090b;
}

.twiza-next-page>.global-site-header {
  border-bottom: 1px solid var(--lab-rule-dark);
  background: color-mix(in srgb, #08090b 92%, transparent);
  backdrop-filter: blur(18px);
}

.twiza-next-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.twiza-section {
  position: relative;
  padding: clamp(92px, 10vw, 158px) var(--lab-gutter);
  border-top: 1px solid var(--lab-rule-dark);
}

.twiza-section-intro {
  margin-bottom: clamp(46px, 5vw, 78px);
}

.twiza-section-intro h2 {
  color: white;
}

.twiza-section-intro h2 strong {
  color: var(--lab-accent-live);
  font-weight: 400;
}

.twiza-section-intro>p {
  max-width: 68ch;
  color: #aaa4a8;
  margin: 0 auto;
}
.twiza-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--lab-max);
  margin: 0 auto;
  border-top: 1px solid var(--lab-rule-dark);
  border-left: 1px solid var(--lab-rule-dark);
}

.twiza-principles article {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-right: 1px solid var(--lab-rule-dark);
  border-bottom: 1px solid var(--lab-rule-dark);
}

.twiza-principles article>span {
  color: var(--lab-accent-live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.twiza-principles h3 {
  margin: auto 0 17px;
  font-size: clamp(27px, 2.25vw, 36px);
  font-weight: 500;
  line-height: 1.08;
}

.twiza-principles p {
  max-width: 39ch;
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.58;
}


.twiza-knowledge-flow {
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--lab-max);
}

.twiza-knowledge-flow article {
  border-color: var(--lab-rule-dark);
}

.twiza-knowledge-flow::before {
  background: var(--lab-rule-dark);
}

.twiza-knowledge-flow .lab-step-visual {
  background: #08090b;
}

.twiza-knowledge-flow h3 {
  color: white;
}

.twiza-knowledge-flow p {
  color: var(--lab-muted);
}

.twiza-patent {
  max-width: 850px;
  margin: clamp(56px, 6vw, 90px) auto 0;
  padding: clamp(30px, 3.5vw, 50px);
  border: 1px solid rgb(211 15 99 / 38%);
  text-align: center;
  background: #111317;
}

.twiza-patent-lead {
  margin: 0 0 16px;
  color: white;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.08;
}

.twiza-patent-lead strong {
  font-weight: 500;
}

.twiza-patent>p:not(.twiza-patent-lead) {
  max-width: 60ch;
  margin: 0 auto 23px;
  color: var(--lab-muted);
  font-size: 17px;
  line-height: 1.6;
}

.twiza-patent>span {
  color: var(--lab-accent-live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.twiza-section--action {
  background: #f1f0ed;
  color: #171318;
}

.twiza-section--action .twiza-section-intro h2 {
  color: #171318;
}

.twiza-section--action .twiza-section-intro>p {
  color: var(--lab-dark-muted);
}



.twiza-section--value {
  min-height: 82vh;
  display: grid;
  place-items: center;
}

.twiza-value-shell {
  width: min(920px, 100%);
}

.twiza-value-shell h2 {
  margin: 0 0 30px;
  font-size: clamp(46px, 5.5vw, 84px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}

.twiza-value-shell h2 strong {
  color: var(--lab-accent-live);
  font-weight: 400;
}

.twiza-value-shell>p {
  color: var(--lab-muted);
  font-size: 18px;
}

.twiza-value-shell ul {
  margin-top: 42px;
  border-top: 1px solid var(--lab-rule-dark);
}

.twiza-value-shell li {
  position: relative;
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--lab-rule-dark);
  color: #ece7ea;
  font-size: 18px;
}

.twiza-value-shell li::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 0;
  width: 17px;
  height: 1px;
  background: var(--lab-accent-live);
}

.twiza-applications {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--lab-max);
  margin: 0 auto clamp(42px, 5vw, 70px);
  border-top: 1px solid var(--lab-rule-dark);
  border-left: 1px solid var(--lab-rule-dark);
}

.twiza-applications article {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3vw, 48px);
  border-right: 1px solid var(--lab-rule-dark);
  border-bottom: 1px solid var(--lab-rule-dark);
}

.twiza-applications article>span {
  color: var(--lab-accent-live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}

.twiza-applications__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  color: #8f888d;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.twiza-applications__meta b {
  color: #beb7bc;
}

.twiza-applications h3 {
  margin: auto 0 12px;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 500;
  line-height: .96;
}

.twiza-applications article>strong {
  color: var(--lab-accent-live);
  font-size: 19px;
  font-weight: 500;
}

.twiza-applications p {
  max-width: 57ch;
  margin: 18px 0 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.58;
}

.twiza-centered-link {
  width: max-content;
  margin: 0 auto;
}

.twiza-field.twiza-field--solutions, .twiza-cases, .twiza-governance {
background-color: var(--lab-ink);
}

#adozione, #ready-made, .twiza-cases-preview {
background: rgb(8 9 11 / 24%) !important;
}

/* The shared title heads the dark block that holds both sliders, so it closes
   straight into the first one instead of carrying a full section's tail padding. */
#adozione {
  padding-bottom: 50px;
}

#adozione .lab-section-intro {
  margin-bottom: 0;
}


section.twiza-section.twiza-section--core>div:nth-child(3)>section>div.comparison-transform-head>span:nth-child(2) {
  color: #f4f0f2;
  font-size: 17px;
}

h2#twiza-sectors-title em {
  max-width: unset;
}

.twiza-section--security {
  padding-bottom: clamp(100px, 12vw, 180px);
}

.twiza-final-cta {
  padding-inline: var(--lab-gutter);
  border-top: 1px solid var(--lab-rule-dark);
}

.twiza-final-cta>p {
  max-width: 67ch;
  margin-inline: auto;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.58;
}

@keyframes twizaOrbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .twiza-principles {
    grid-template-columns: 1fr;
  }

  .twiza-principles article {
    min-height: 220px;
  }

  .twiza-knowledge-flow {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 820px) {
  .twiza-section {
    padding-block: clamp(72px, 13vw, 106px);
  }



  .twiza-applications {
    grid-template-columns: 1fr;
  }

  .twiza-applications article {
    min-height: 350px;
  }
}

@media (max-width: 560px) {

  .twiza-knowledge-flow {
    grid-template-columns: 1fr;
  }

  .twiza-action-console__bar>span,
  .twiza-action-console__state {
    display: none;
  }

  .twiza-action-console__capabilities {
    grid-template-columns: 1fr;
  }

  .twiza-value-shell h2 {
    font-size: 43px;
  }

  .twiza-applications article {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-action-console__core>i {
    animation: none;
  }
}


.twiza-window-controls {
  display: flex;
  gap: 8px;
  margin-right: 8px;
}

.twiza-window-controls i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ed5b5f;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
}

.twiza-window-controls i:nth-child(2) {
  background: #e9ac2f;
}

.twiza-window-controls i:nth-child(3) {
  background: #2aa35d;
}


.logo-description {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
}

.logo-description p {
  max-width: 680px;    
    color: var(--lab-muted);
    font-size: var(--lab-body);
    line-height: 1.58;
    text-align: left;
}

.logo-description img {
  width: 20%;
}



/* ===========================================================================
   VANILLA-JS INTERACTION SUPPORT
   The original React build animated these three things via inline
   Framer Motion styles (layoutId, whileInView, AnimatePresence), which have
   no CSS-file equivalent to copy. These rules reproduce the same visible
   transitions so plain JS can just toggle classes.
   =========================================================================== */

/* Sector tabs: single shared sliding highlight (was a per-tab layoutId element) */
.twiza-sectors-tabs {
  position: relative;
}

.twiza-sector-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  inset: auto;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

/* Sector panel crossfade (was AnimatePresence mode="wait") */
.twiza-sectors-panel-inner {
  transition: opacity .32s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1);
}

.twiza-sectors-panel-inner.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

.twiza-sectors-panel-inner.is-entering {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}


@media (prefers-reduced-motion: reduce) {

  .twiza-sector-indicator,
  .twiza-sectors-panel-inner {
    transition: none !important;
  }

}

/* TWIZA / I tre pilastri — sequential static scrollytelling
   Additive CSS only; designed to sit after the shared system. */

.twiza-preview-spacer {
  height: 24vh;
}

.twiza-outcomes-scroll {
  --scroll-progress: 0;
  --pillar-yellow: var(--file-yellow, #efb139);
  --pillar-orange: var(--file-orange, #ee5961);
  --pillar-green: var(--file-green, #2ba554);
  position: relative;
  height: 360svh;
  color: var(--lab-light, #f7f5f6);
}

.twiza-outcomes-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: transparent;
}

.twiza-outcomes-shell {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-top: 100px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

/* Reuse the homepage's lab-section-intro typography but adapt alignment for this scene. */
.twiza-outcomes-intro.lab-section-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(18px, 2.2vw, 30px);
  text-align: left;
  opacity: .96;
}

.twiza-outcomes-intro.lab-section-intro h2 {
  justify-content: flex-start;
  margin: 50px 0 0!important;
  font-size: clamp(46px, 4.6vw, 76px);
  line-height: .94;
}

.twiza-outcomes-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lab-muted, #aaa4a8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
}

.twiza-outcomes-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lab-accent-live, #ef1873);
}
.twiza-outcomes-grid {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-radius: var(--glass-radius);
  overflow: hidden;
}

.twiza-outcome-card {
  --pillar-color: var(--lab-accent-live, #ef1873);
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 40%;
  overflow: hidden;
  border-right: 1px solid var(--glass-rule, rgb(255 255 255 / 11%));
  opacity: .12;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1),
    transform 850ms cubic-bezier(.22, 1, .36, 1),
    background 500ms ease;
}

.twiza-outcome-card:first-child {
  border-left: 1px solid var(--glass-rule, rgb(255 255 255 / 11%));
}

.twiza-outcome-card--yellow {
  --pillar-color: var(--pillar-yellow);
}

.twiza-outcome-card--orange {
  --pillar-color: var(--pillar-orange);
}

.twiza-outcome-card--green {
  --pillar-color: var(--pillar-green);
}

.twiza-outcome-card.is-started {
  opacity: 1;
  transform: none;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--pillar-color) 8%, transparent), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 2.8%), rgb(255 255 255 / .7%)),
    rgb(15 12 17 / 48%);
  backdrop-filter: blur(24px) saturate(116%);
  -webkit-backdrop-filter: blur(24px) saturate(116%);
}

.twiza-outcome-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(26px, 3vw, 44px);
}

/* Icon + explanatory copy enter as one composed unit for a smoother reveal. */
.twiza-outcome-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.twiza-outcome-card.is-intro .twiza-outcome-intro {
  opacity: 1;
  transform: none;
}

/* Icon treatment requested: translucent fill, visible coloured border, same-colour icon. */
.twiza-outcome-icon {
  width: clamp(72px, 7vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--pillar-color) 82%, transparent);
  border-radius: 28%;
  color: var(--pillar-color);
  background: color-mix(in srgb, var(--pillar-color) 12%, rgb(13 10 15 / 62%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 18px 48px color-mix(in srgb, var(--pillar-color) 9%, transparent);
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms cubic-bezier(.22, 1, .36, 1),
    transform 820ms cubic-bezier(.22, 1, .36, 1),
    margin-bottom 820ms cubic-bezier(.22, 1, .36, 1);
}

.twiza-outcome-icon svg {
  width: 48%;
  height: 48%;
}

/* As the conclusion arrives, the icon is intentionally carried upward and
   out of the reading frame. Its negative margin lets the explanatory text
   occupy the freed space, matching the reference sequence: icon + copy first,
   then copy + conclusion. */
.twiza-outcome-card.is-icon-away .twiza-outcome-icon {
  opacity: 0;
  transform: translateY(-135%) scale(.96);
  margin-bottom: calc(-1 * (clamp(72px, 7vw, 104px) + clamp(18px, 2vw, 28px)));
  pointer-events: none;
}

.twiza-outcome-copy {
  max-width: 36ch;
}

.twiza-outcome-index {
  display: block;
  margin-bottom: 13px;
  color: var(--pillar-color);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
}

.twiza-outcome-copy h3 {
  margin: 0 0 16px;
  color: var(--lab-light, #f7f5f6);
  font-size: clamp(25px, 2.1vw, 36px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.02;
  text-wrap: balance;
}

.twiza-outcome-copy p {
  max-width: 37ch;
  margin: 0;
  color: var(--lab-muted, #aaa4a8);
  font-size: 17px;
  line-height: 1.52;
}

/* The conclusion deliberately owns ~40% of the card / viewport reading area. */
.twiza-outcome-conclusion {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 44px);
  border-top: 1px solid color-mix(in srgb, var(--pillar-color) 34%, var(--glass-rule, rgb(255 255 255 / 11%)));
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--pillar-color) 5%, transparent));
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.twiza-outcome-card.is-conclusion .twiza-outcome-conclusion {
  opacity: 1;
  transform: none;
}

.twiza-outcome-conclusion strong {
  display: block;
  color: var(--lab-light, #f7f5f6);
  font-size: clamp(48px, 3.8vw, 94px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .84;
  text-wrap: balance;
}

.twiza-outcome-conclusion span {
  display: block;
  margin-top: clamp(16px, 2vw, 28px);
  color: #d9d2d6;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.twiza-outcomes-progress {
  position: absolute;
  right: max(14px, calc(var(--lab-gutter, 6vw) * .28));
  top: 50%;
  width: 2px;
  height: 120px;
  overflow: hidden;
  transform: translateY(-50%);
  background: rgb(255 255 255 / 8%);
}

.twiza-outcomes-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lab-accent-live, #ef1873);
  transform: scaleY(var(--scroll-progress));
  transform-origin: top center;
}

@media (max-width: 960px) {
  .twiza-outcomes-scroll {
    height: auto;
    padding: var(--lab-section-space, 96px) var(--lab-gutter, 24px);
  }

  .twiza-outcomes-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .twiza-outcomes-shell {
    display: block;
    padding: 0;
  }

  .twiza-outcomes-rule {
    margin-bottom: 28px;
  }

  .twiza-outcomes-rule i {
    transform: scaleX(1);
  }

  .twiza-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .twiza-outcome-card,
  .twiza-outcome-card:first-child {
    grid-template-rows: auto auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--lab-premium-border, rgb(255 255 255 / 7%));
    border-radius: var(--glass-radius, .75rem);
    background: var(--lab-premium-card, rgb(24 19 27 / 88%));
    box-shadow: var(--lab-premium-shadow, 0 24px 70px rgb(0 0 0 / 24%));
    opacity: 0;
    transform: translateY(24px);
    backdrop-filter: blur(22px) saturate(116%);
    -webkit-backdrop-filter: blur(22px) saturate(116%);
  }

  .twiza-outcome-card.is-mobile-in {
    opacity: 1;
    transform: none;
  }

  .twiza-outcome-main {
    padding: 28px;
  }

  .twiza-outcome-intro,
  .twiza-outcome-icon,
  .twiza-outcome-copy,
  .twiza-outcome-conclusion {
    opacity: 1;
    transform: none;
  }

  .twiza-outcome-conclusion {
    min-height: 220px;
    padding: 28px;
  }

  .twiza-outcome-conclusion strong {
    font-size: clamp(48px, 11vw, 74px);
  }

  .twiza-outcomes-progress {
    display: none;
  }

  .twiza-preview-spacer {
    display: none;
  }
}

@media (max-width: 720px) {
  .twiza-outcomes-scroll {
    padding: 82px 20px;
  }

  .twiza-outcomes-intro.lab-section-intro h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .twiza-outcome-main,
  .twiza-outcome-conclusion {
    padding: 24px 22px;
  }

  .twiza-outcome-icon {
    width: 74px;
    border-radius: 20px;
  }

  .twiza-outcome-copy h3 {
    font-size: 30px;
  }

  .twiza-outcome-conclusion {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-outcomes-scroll {
    height: auto;
    padding: var(--lab-section-space, 96px) var(--lab-gutter, 24px);
  }

  .twiza-outcomes-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .twiza-outcomes-shell {
    display: block;
    padding: 0;
  }

  .twiza-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .twiza-outcome-card,
  .twiza-outcome-intro,
  .twiza-outcome-icon,
  .twiza-outcome-copy,
  .twiza-outcome-conclusion {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .twiza-outcomes-rule i {
    transform: scaleX(1);
  }

  .twiza-outcomes-progress {
    display: none;
  }
}


/* Three principles */
.twiza-principles {
  position: relative;
  padding: 7rem 0 0;
  background: rgba(2, 2, 4, .32);
  border-block: 1px solid rgba(255, 255, 255, .05);
}

.twiza-principles__intro {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.twiza-principles__intro p {
  margin-inline: auto;
}

.twiza-principles__scroll {
  height: 300vh;
}

.twiza-principles__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.twiza-principles__rail {
  position: absolute;
  left: max(28px, calc((100vw - 1180px)/2));
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: rgba(255, 255, 255, .09);
}

.twiza-principles__rail i {
  display: block;
  width: 100%;
  height: var(--principle-rail, 0%);
  background: linear-gradient(#ff4ca1, #884dff);
  box-shadow: 0 0 14px #ff3d9b;
  transition: height .15s linear;
}

.principle-card {
  position: absolute;
  width: min(960px, calc(100% - 72px));
  min-height: 390px;
  display: grid;
  grid-template-columns: 80px 92px 1fr;
  gap: 2rem;
  align-items: start;
  padding: clamp(28px, 4vw, 54px);
  opacity: 0;
  transform: translateY(90px) scale(.96);
  background: linear-gradient(145deg, rgba(31, 20, 32, .92), rgba(13, 9, 15, .92));
  border: 1px solid var(--twiza-line);
  border-radius: var(--twiza-radius);
  box-shadow: var(--twiza-shadow);
  backdrop-filter: blur(24px);
  transition: opacity .55s ease, transform .65s cubic-bezier(.2, .75, .2, 1), filter .45s ease;
}

.principle-card.is-before {
  opacity: .08;
  transform: translateY(-100px) scale(.94);
  filter: blur(5px);
}

.principle-card.is-active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

.principle-card.is-after {
  opacity: 0;
  transform: translateY(100px) scale(.96);
}

.principle-card__index {
  color: #ff65ac;
  font-size: .75rem;
  letter-spacing: .16em;
}

.principle-card__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #ff6eb3;
  border: 1px solid var(--twiza-line-hot);
  border-radius: 20px;
  background: rgba(217, 0, 105, .1);
}

.principle-card__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-card small {
  color: #ff76b8;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.principle-card h3 {
  max-width: 650px;
  margin: .65rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.principle-card p {
  max-width: 650px;
  margin: 0;
  color: var(--twiza-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.principle-card footer {
  grid-column: 2 / 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--twiza-line);
}

.principle-card footer strong {
  color: #ff72b4;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.principle-card footer span {
  color: var(--twiza-muted);
  font-size: .78rem;
}

.twiza-principles__counter {
  position: absolute;
  right: max(28px, calc((100vw - 1180px)/2));
  bottom: 8%;
  display: flex;
  align-items: baseline;
  gap: .35rem;
}

.twiza-principles__counter strong {
  color: #ff67ad;
  font-size: 2rem;
}

.twiza-principles__counter span {
  color: var(--twiza-muted);
  font-size: .75rem;
}

h2.twiza-core-title-comparison {
  margin-top: 200px!important;
}

/* Switchboard */
.solution-switchboard {
  overflow: hidden;
  background: rgba(12, 9, 14, .78);
  border: 1px solid var(--twiza-line);
  border-radius: var(--glass-radius);
  box-shadow: var(--twiza-shadow);
  backdrop-filter: blur(25px);
}

.solution-switchboard__bar{
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--twiza-line);
  background: rgba(255, 255, 255, .025);
}



.solution-switchboard__bar strong {
  letter-spacing: .04em;
}

.solution-switchboard__bar>span {
  justify-self: end;
  color: var(--twiza-muted);
  font-size: .7rem;
}

.solution-switchboard__live {
  justify-self: end;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55e39b;
  box-shadow: 0 0 0 5px rgba(85, 227, 155, .1);
}

.solution-switchboard__layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 610px;
  overflow: hidden;
    color: var(--lab-light);
    background: var(--lab-premium-card);
    border: 1px solid var(--lab-premium-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--lab-premium-shadow);
    backdrop-filter: blur(22px) saturate(116%);

}

.solution-switchboard__nav {
  padding: 16px;
  border-right: 1px solid var(--glass-radius);
  background: rgba(0, 0, 0, .15);
}

.solution-switchboard__nav button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: 1rem;
  color: #fff;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: .25s ease;
}

.solution-switchboard__nav button+button {
  margin-top: .35rem;
}

.solution-switchboard__nav button:hover {
  background: rgba(255, 255, 255, .045);
}

.solution-switchboard__nav button[aria-selected="true"] {
  background: var(--glass-active);
  box-shadow: inset 1px 0 var(--lab-accent);
}

.solution-switchboard__nav button>span.number {
  color: var(--lab-accent);
  font-size: .80rem;
}

.solution-switchboard__nav button div {
  display: grid;
  gap: .25rem;
}

.solution-switchboard__nav button span {
  font-size: 19px;
}

.solution-switchboard__nav button small {
  color: var(--lab-dark-muted);
  font-size: .95rem;
}

.solution-switchboard__nav button>i {
  color: #ff72b2;
  font-style: normal;
  opacity: 0;
  transform: translateX(-6px);
  transition: .25s ease;
}

.solution-switchboard__nav button>i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.solution-switchboard__stage {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 4vw, 52px);
}

.solution-switchboard__demo-note {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  color: rgba(255, 255, 255, .46);
  font-size: .58rem;
  letter-spacing: .06em;
}

.solution-panel {
  min-height: 500px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(24px, 4vw, 55px);
  align-items: center;
  animation: panelIn .45s ease both;
}

.solution-panel[hidden] {
  display: none;
}

.solution-panel__copy>span {
  color: var(--lab-accent);
  font-size: 14px;
      letter-spacing: .1em;
  font-weight: 700;
  line-height: 5rem;
}

.solution-panel__copy h3 {
  margin: .6rem 0 1rem;
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 1;
  letter-spacing: -.04em;
}

.solution-panel__copy p {
  color: var(--twiza-muted);
  line-height: 1.6;
}

.solution-panel__copy ul {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.solution-panel__copy li {
  padding: .65rem 0;
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.solution-panel__copy li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 .7rem .1rem 0;
  border-radius: 50%;
  background: var(--lab-accent);
  box-shadow: 0 0 10px rgba(255, 97, 170, .55);
}

.mock-window .lab-case-mac-header {
  position: relative!important;
}

.mock-window {
  min-width: 0;
  overflow: hidden;
  color: #241924;
  background: linear-gradient(145deg, #fff, #eee5ec);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 20px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .25);
  height: 400px;
  display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mock-window>header {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  background: #241321;
  color: #fff;
}

.mock-window>header strong {
  font-size: .75rem;
}

.mock-window>header span {
  color: #ff84be;
  font-size: .62rem;
}

.mock-fashion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.mock-fashion__stat,
.mock-fashion__board {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(63, 31, 50, .09);
  border-radius: 14px;
}

.mock-fashion__stat small,
.mock-fashion__stat b {
  display: block;
}

.mock-fashion__stat small {
  color: #776b73;
  font-size: .62rem;
}

.mock-fashion__stat b {
  margin: .5rem 0;
  font-size: 1.7rem;
}

.mock-fashion__stat i {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #d90069 84%, #e8dfe5 84%);
  border-radius: 5px;
}

.mock-fashion__stat:nth-child(2) i {
  background: linear-gradient(90deg, #8d4cff 96%, #e8dfe5 96%);
}

.mock-fashion__board {
  grid-column: 1/3;
}

.mock-fashion__board>span {
  color: #8c7c86;
  font-size: .6rem;
  font-weight: 700;
}

.mock-fashion__board div {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.mock-fashion__board i {
  flex: 1;
  height: 82px;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffbfcc, #b21562);
}

.mock-fashion__board i:nth-child(2) {
  background: linear-gradient(145deg, #ddd1aa, #7c6940)
}

.mock-fashion__board i:nth-child(3) {
  background: linear-gradient(145deg, #ccd5ff, #5b478e)
}

.mock-fashion__board p {
  margin: 0;
  color: #796c75;
  font-size: .64rem;
}

.mock-query {
  margin: 18px;
  padding: 14px;
  background: #f2e9ef;
  border-radius: 10px;
  font-size: .8rem;
}

.mock-answer {
  margin: 0 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(217, 0, 105, .22);
  border-radius: 10px;
}

.mock-answer span,
.mock-answer strong,
.mock-answer p {
  display: block
}

.mock-answer span {
  color: var(--twiza-pink);
  font-size: .56rem;
  font-weight: 600;
}

.mock-answer strong {
  margin: .55rem 0;
  font-size: .9rem
}

.mock-answer p {
  margin: 0;
  color: #746872;
  font-size: .64rem
}

.mock-citations {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 14px 18px 18px;
  color: #776a73;
  font-size: .62rem;
}

.mock-citations i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55c892
}

.mock-citations b {
  color: #28835b
}

.mock-upload {
  margin: 18px;
  padding: 16px;
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(217, 0, 105, .35);
  border-radius: 12px;
  background: rgba(217, 0, 105, .04);
}

.mock-upload b {
  font-size: .75rem
}

.mock-upload span {
  color: #7d6d76;
  font-size: .62rem
}

.mock-lines {
  margin: 0 18px 18px
}

.mock-lines div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e7dde3;
  font-size: .7rem
}

.mock-lines div:last-child {
  color: var(--twiza-pink);
  font-size: .8rem;
  font-weight: 600;
}

.mock-wp__site {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 12px;
  padding: 18px
}
.mock-wp__page{
  position: relative;
  bottom: 50%;
}

.mock-wp__page,
.mock-wp__chat {
  min-height: 210px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8dee5;
  border-radius: 12px
}

.mock-wp__page i {
  display: block;
  width: 100%;
  height: 10px;
  margin-bottom: 7px;
  background: #efe5eb;
  border-radius: 5px;
}

.mock-wp__page i:nth-child(2) {
  width: 70%
}

.mock-wp__page i:nth-child(3) {
  height: 72px;
  margin: 14px 0;
  background: linear-gradient(145deg, #dc8bb4, #8d4cff)
}

.mock-wp__page strong,
.mock-wp__page p {
  display: block
}

.mock-wp__page strong {
  font-size: .75rem
}

.mock-wp__page p {
  color: #7b6d76;
  font-size: .62rem
}

.mock-wp__chat {
  align-self: end;
  min-height: 155px;
  box-shadow: 0 12px 25px rgba(66, 31, 53, .12)
}

.mock-wp__chat span {
  color: var(--twiza-pink);
  font-size: .6rem;
  font-weight: 600;
}

.mock-wp__chat p {
  font-size: .78rem
}

.mock-wp__chat div {
  padding: 9px;
  color: #a3939d;
  font-size: .58rem;
  background: #f5eef2;
  border-radius: 8px
}

.mock-comms__calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 18px
}

.mock-comms__calendar i {
  text-align: center;
  color: #7c6f77;
  font-size: .55rem;
  font-style: normal
}

.mock-comms__calendar b {
  height: 45px;
  border-radius: 8px;
  background: #f0e7ec
}

.mock-comms__calendar b:nth-of-type(2),
.mock-comms__calendar b:nth-of-type(4) {
  background: linear-gradient(145deg, rgba(217, 0, 105, .24), rgba(141, 76, 255, .18))
}

.mock-comms__draft {
  margin: 0 18px 18px;
  padding: 17px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(57, 30, 48, .08)
}

.mock-comms__draft span,
.mock-comms__draft strong,
.mock-comms__draft p {
  display: block
}

.mock-comms__draft span {
  color: var(--twiza-pink);
  font-size: .55rem;
  font-weight: 600;
}

.mock-comms__draft strong {
  margin: .6rem 0;
  font-size: .85rem
}

.mock-comms__draft p {
  margin: 0;
  color: #7d6d77;
  font-size: .63rem
}

.mock-legal__timeline {
  padding: 18px
}

.mock-legal__timeline div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e7dde3;
  font-size: .66rem
}

.mock-legal__timeline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56c78e
}

.mock-legal__timeline div:nth-child(3) i {
  background: #ffb340
}

.mock-legal__timeline b {
  color: #887b83;
  font-size: .58rem
}

.mock-legal__score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 18px 18px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(120deg, #35172a, #751143);
  border-radius: 12px
}

.mock-legal__score span {
  font-size: .64rem
}

.mock-legal__score strong {
  font-size: 1.5rem;
  color: #ff78b8
}

.twiza-section__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.twiza-section__cta p {
  max-width: 690px;
  color: var(--twiza-muted);
  line-height: 1.55;
}

/* Solution summary + custom canvas */
.ready-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  overflow: hidden;
  background: var(--twiza-line);
  border: 1px solid var(--twiza-line);
  border-radius: var(--twiza-radius-sm);
}

.ready-summary article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .65rem;
  align-items: center;
  padding: 1rem;
  background: rgba(13, 9, 15, .96);
}

.ready-summary article>span {
  color: #ff76b5;
  font-size: .58rem;
  letter-spacing: .08em;
}

.ready-summary article strong {
  overflow: hidden;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ready-summary article small {
  grid-column: 1 / 3;
  color: var(--twiza-muted);
  font-size: .57rem;
  line-height: 1.35;
}

.twiza-custom {
  padding-bottom: 10rem;
}

.custom-canvas {
  overflow: hidden;
  background: rgba(12, 9, 14, .78);
  border: 1px solid var(--twiza-line);
  border-radius: var(--twiza-radius);
  box-shadow: var(--twiza-shadow);
  backdrop-filter: blur(25px);
}

.custom-canvas__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  border-bottom: 1px solid var(--twiza-line);
  background: rgba(255, 255, 255, .025);
}

.custom-canvas__tabs button {
  padding: .9rem 1rem;
  color: var(--twiza-muted);
  font-size: .72rem;
  font-weight: 750;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--twiza-control-radius);
  cursor: pointer;
  transition: .25s ease;
}

.custom-canvas__tabs button span {
  display: block;
  margin-bottom: .35rem;
  color: #ff72b2;
  font-size: .55rem;
  letter-spacing: .1em;
}

.custom-canvas__tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.custom-canvas__tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(105deg, rgba(217, 0, 105, .18), rgba(141, 76, 255, .08));
  border-color: var(--twiza-line-hot);
}

.custom-canvas__panel {
  padding: clamp(28px, 5vw, 64px);
}

.custom-canvas__panel>header {
  max-width: 820px;
}

.custom-canvas__panel>header>span {
  color: #ff72b2;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.custom-canvas__panel>header h3 {
  margin: .8rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.custom-canvas__panel>header p {
  max-width: 720px;
  margin: 0;
  color: var(--twiza-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.custom-canvas__flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  gap: .55rem;
  align-items: center;
  margin-top: 3.5rem;
}

.custom-canvas__flow>div {
  min-width: 0;
  padding: 1.1rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--twiza-line);
  border-radius: var(--twiza-radius-sm);
}

.custom-canvas__flow>div>svg {
  width: 24px;
  height: 24px;
  margin-bottom: 1rem;
  fill: none;
  stroke: #ff70b2;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-canvas__flow small,
.custom-canvas__flow strong {
  display: block;
}

.custom-canvas__flow small {
  margin-bottom: .7rem;
  color: #ff78b7;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .11em;
}

.custom-canvas__flow strong {
  font-size: .78rem;
  line-height: 1.4;
}

.custom-canvas__connector {
  width: 28px;
  fill: none;
  stroke: #ff62aa;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 78, 164, .55));
}

/* Action console */

.twiza-action-console,
.twiza-action-console *,
.twiza-action-console *::before,
.twiza-action-console *::after {
  box-sizing: border-box;
}

.twiza-action-console {
  --twiza-accent: #d30f63;
  --twiza-accent-live: #ef1873;
  --twiza-ink: #181518;
  --twiza-muted: #62595e;
  --twiza-rule: rgb(82 63 73 / 18%);
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(82 63 73 / 22%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 12%, rgb(210 15 99 / 14%), transparent 31%),
    radial-gradient(circle at 12% 62%, rgb(99 51 79 / 10%), transparent 36%),
    linear-gradient(135deg, #f7f3f1 0%, #e9e2e3 52%, #f6f1ed 100%);
  box-shadow: 0 34px 90px rgb(0 0 0 / 38%);
  color: var(--twiza-ink);
  font-family: "Titillium Web", Arial, sans-serif;
}

.twiza-action-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 42%), transparent 38%, rgb(255 255 255 / 16%));
}

.twiza-action-console ul{
  margin: 0;
}

.twiza-action-console ul {
  padding: 0;
  list-style: none;
}

.twiza-action-console__bar {
  position: relative;
  z-index: 3;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgb(88 68 79 / 16%);
  background: rgb(255 255 255 / 31%);
  backdrop-filter: blur(18px);
}

.twiza-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.twiza-window-controls i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ee5961;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 7%);
}

.twiza-window-controls i:nth-child(2) { background: #efb139; }
.twiza-window-controls i:nth-child(3) { background: #2ba554; }

.twiza-action-console__brand {
  line-height: 1;
}

.twiza-action-console__brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: .04em;
}

.twiza-action-console__brand span {
  display: block;
  margin-top: 3px;
  color: var(--twiza-muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.twiza-action-console__state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--twiza-muted);
  font-size: 11px;
}

.twiza-action-console__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2b8a58;
  box-shadow: 0 0 0 4px rgb(43 138 88 / 8%);
}

.twiza-action-console__body {
  position: relative;
  z-index: 2;
  padding: clamp(18px, 2.35vw, 28px);
  background: rgb(255 255 255 / 4%);
}


.twiza-action-console__integration-strip {
  position: relative;
  margin-bottom: clamp(22px, 2.4vw, 30px);
  padding: clamp(14px, 1.8vw, 18px);
  border: 1px solid rgb(211 15 99 / 18%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgb(211 15 99 / 10%), transparent 32%),
    linear-gradient(180deg, rgb(255 255 255 / 56%), rgb(255 255 255 / 34%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    0 16px 38px rgb(61 37 51 / 7%);
}

.twiza-action-console__integration-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(211 15 99 / 10%), transparent 22%, transparent 78%, rgb(211 15 99 / 06%));
}

.twiza-action-console__integration-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.twiza-action-console__integration-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--twiza-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.twiza-action-console__integration-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef1873, #d30f63);
  box-shadow: 0 0 0 6px rgb(211 15 99 / 10%);
}

.twiza-action-console__integration-head strong {
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 600;
  line-height: 1.16;
}

.twiza-action-console__integration-head small {
  color: #6e656a;
  font-size: 12px;
  line-height: 1.35;
}

/* A more explicit integration rail so users understand TWIZA acts through external channels too. */
.twiza-action-console__channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  position: relative;
  z-index: 1;
  gap: 10px;
  margin-bottom: 0 !important;
  user-select: none;
}

.twiza-action-console__channels li {
  min-width: 0;
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgb(211 15 99 / 12%);
  border-radius: 15px;
  background: linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 48%));
  color: #413a3f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%), 0 10px 22px rgb(61 37 51 / 7%);
}

.twiza-action-console__channel-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(211 15 99 / 14%);
  border-radius: 10px;
  background: linear-gradient(180deg, rgb(211 15 99 / 10%), rgb(255 255 255 / 68%));
  color: var(--twiza-accent);
  box-shadow: 0 8px 18px rgb(211 15 99 / 10%);
}

.twiza-action-console__channel-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.twiza-action-console__channels li span:last-child {
  position: relative;
}

.twiza-action-console__channels li span:last-child::after {
  content: "attivo";
  display: block;
  margin-top: 4px;
  color: #8b8187;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;

}

.twiza-action-console__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2.6vw, 34px);
}

.twiza-action-console__request,
.twiza-action-console__result {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 25px);
  border: 1px solid rgb(82 63 73 / 18%);
  border-radius: 16px;
  background: rgb(255 255 255 / 40%);
  box-shadow: 0 20px 46px rgb(61 37 51 / 9%);
  backdrop-filter: blur(18px) saturate(1.1);
}

.twiza-action-console__request > span,
.twiza-action-console__result > span {
  color: var(--twiza-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.twiza-action-console__request-typing {
  min-height: 3.9em;
  margin-top: 34px!important;
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.28;
}

.twiza-action-console__request.is-complete {
  box-shadow: 0 20px 46px rgb(61 37 51 / 10%), 0 0 0 1px rgb(211 15 99 / 6%) inset;
}

.twiza-type-target {
  white-space: pre-wrap;
}

.twiza-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--twiza-accent);
  vertical-align: -0.1em;
  animation: twizaCaretBlink .9s steps(1, end) infinite;
}

.twiza-action-console__result {
  position: relative;
}

.twiza-action-console__result-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 118px;
}

.twiza-action-console__result-loading,
.twiza-action-console__result-ready {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.twiza-action-console__result-loading {
  transition: opacity .32s ease, transform .32s ease;
}

.twiza-action-console__result-ready {
  transition: opacity .42s ease, transform .42s ease;
}

.twiza-action-console__result.is-loading .twiza-action-console__result-loading,
.twiza-action-console__result.is-ready .twiza-action-console__result-ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.twiza-action-console__result strong {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 500;
  line-height: 1.28;
}

.twiza-action-console__result small {
  color: var(--twiza-muted);
  font-size: 10px;
  line-height: 1.4;
}

.twiza-action-console__result small::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--twiza-accent);
  vertical-align: 1px;
}

.twiza-action-console__dots {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
}

.twiza-action-console__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef1873, #d30f63);
  box-shadow: 0 10px 18px rgb(211 15 99 / 18%);
  animation: twizaBounceDots .9s ease-in-out infinite;
}

.twiza-action-console__dots i:nth-child(2) { animation-delay: .13s; }
.twiza-action-console__dots i:nth-child(3) { animation-delay: .26s; }

.twiza-action-console__core {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
}


.twiza-action-console__core::before {
  right: 84%;
}

.twiza-action-console__core::after {
  left: 84%;
  transform: rotate(180deg);
}

.twiza-action-console__core > i {
  position: absolute;
  width: 142px;
  height: 142px;
  border: 1px solid rgb(211 15 99 / 24%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(255 255 255 / 48%) 0 42%, transparent 43%),
    radial-gradient(circle, rgb(211 15 99 / 8%), transparent 68%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%);
}

.twiza-action-console__core > i::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px dashed rgb(211 15 99 / 34%);
  border-radius: inherit;
  animation: twizaActionOrbit 18s linear infinite;
}

.twiza-action-console__core img {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgb(211 15 99 / 16%);
}

.twiza-action-console__core span {
  position: absolute;
  z-index: 2;
  top: calc(50% + 49px);
  color: var(--twiza-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .13em;
}

.twiza-action-console__core.is-receiving::before,
.twiza-action-console__core.is-receiving::after {
  background: linear-gradient(90deg, transparent, rgb(211 15 99 / 82%));
}

.twiza-action-console__core.is-receiving > i {
  animation: twizaCorePulse .56s ease-in-out 2;
  border-color: rgb(211 15 99 / 38%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), 0 0 0 10px rgb(211 15 99 / 8%), 0 0 38px rgb(211 15 99 / 18%);
}

.twiza-action-console__core.is-receiving > i::after {
  animation-duration: 4.2s;
  border-color: rgb(211 15 99 / 54%);
}

.twiza-action-console__core.is-receiving img {
  animation: twizaCoreHeart 1.12s ease-in-out 1;
}

.twiza-action-console__capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: clamp(22px, 2.4vw, 30px) !important;
}

.twiza-action-console__capabilities li {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgb(82 63 73 / 16%);
  border-radius: 10px;
  background: rgb(255 255 255 / 28%);
  color: #5f565b;
  font-size: 14px;
  line-height: 1.25;
}

.twiza-action-console__capabilities span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(82 63 73 / 16%);
  border-radius: 8px;
  color: var(--twiza-accent);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.twiza-hero-sim__footer{
margin: auto 0!important;
}
@keyframes twizaActionOrbit {
  to { transform: rotate(360deg); }
}

@keyframes twizaCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes twizaCorePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes twizaCoreHeart {
  0%, 100% { transform: scale(1); }
  16% { transform: scale(1.06); }
  34% { transform: scale(.98); }
  52% { transform: scale(1.12); }
  68% { transform: scale(1); }
}

@keyframes twizaBounceDots {
  0%, 80%, 100% {
    transform: translateY(0) scale(.94);
    opacity: .45;
  }
  40% {
    transform: translateY(-6px) scale(1);
    opacity: 1;
  }
}



@media (max-width: 980px) {
  }

  .twiza-action-console__core {
    min-height: 150px;
  }

  .twiza-action-console__core::before,
  .twiza-action-console__core::after {
    top: auto;
    left: 50%;
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgb(211 15 99 / 46%));
  }

  .twiza-action-console__core::before {
    right: auto;
    bottom: 84%;
  }

  .twiza-action-console__core::after {
    top: 84%;
    transform: rotate(180deg);
  }

  .twiza-action-console__core > i {
    width: 126px;
    height: 126px;
  }

  .twiza-action-console__core img {
    width: 64px;
    height: 64px;
  }

  .twiza-action-console__core span {
    top: calc(50% + 43px);
  }
}

@media (max-width: 760px) {
  .twiza-action-console__integration-head strong {
    max-width: 26ch;
  }

  .twiza-action-console__channels {
    grid-template-columns: repeat(5, max-content);
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .twiza-action-console__channels li {
    min-width: 144px;
  }

  .twiza-action-console__capabilities {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .twiza-action-console {
    border-radius: 14px;
  }

  .twiza-action-console__bar {
    height: 56px;
    padding-inline: 16px;
  }

  .twiza-window-controls i {
    width: 9px;
    height: 9px;
  }

  .twiza-action-console__brand span,
  .twiza-action-console__state span {
    display: none;
  }

  .twiza-action-console__body {
    padding: 14px;
  }

  .twiza-action-console__integration-strip {
    padding: 14px;
    border-radius: 16px;
  }

  .twiza-action-console__request,
  .twiza-action-console__result {
    min-height: 168px;
  }

  .twiza-action-console__capabilities {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-action-console *,
  .twiza-action-console *::before,
  .twiza-action-console *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* Governance */
:root {
  --twiza-accent: #d30f63;
  --lab-accent: #ff2f8c;
  --twiza-text: #f4eff1;
  --twiza-muted: rgba(244, 239, 241, 0.72);
  --twiza-rule: rgba(255,255,255,0.10);
  --twiza-rule-soft: rgba(255,255,255,0.075);
  --twiza-radius: 22px;
  --twiza-shadow: 0 28px 80px rgba(0,0,0,.30);
  --twiza-neon-shadow: 0 0 0 1px rgba(255,47,140,.18), 0 0 28px rgba(255,47,140,.12), 0 24px 70px rgba(0,0,0,.34);
  --lab-dark-field:
    radial-gradient(ellipse 78vw 74vh at 78vw 30vh, rgb(164 37 104 / 49%), transparent 66%),
    radial-gradient(ellipse 62vw 64vh at 8vw 88vh, rgb(104 27 75 / 39%), transparent 70%),
    linear-gradient(135deg, rgb(82 21 59 / 24%), transparent 68%),
    linear-gradient(180deg, #09060c 0%, #050407 100%);
}

.twiza-governance-shell {
  width: min(calc(100% - 48px), 1720px);
  margin: 0 auto;
}

.twiza-governance-header {
  margin-bottom: clamp(40px, 5vw, 72px);
      display: flex;
    gap: 50px;
    justify-content: space-between;
}

.twiza-governance-eyebrow {
  margin-bottom: 18px;
  color: var(--lab-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.twiza-governance-title {
  margin: 0 0 22px;
   font-size: var(--lab-heading);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.045em;
}

.twiza-governance-title span { color: var(--lab-accent); }

.twiza-governance-intro {
  margin: 0;
  max-width: 46ch;
  color: var(--twiza-muted);
  font-size: var(--lab-body);
  line-height: 1.58;
}

.twiza-governance-layout {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.10fr);
  gap: 8vw;
  align-items: start;
  position: relative;
}

/*
 * Governance scrollytelling:
 * the patent card is sticky inside the layout, so it follows the
 * right-hand list and is automatically released at the list's bottom.
 */
.twiza-patent-panel {
  position: sticky;
  top: clamp(88px, 10svh, 120px);
  align-self: start;
  height: clamp(480px, 66svh, 620px);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--glass-radius);
  background:
    radial-gradient(circle at 24% 18%, rgba(255,47,140,.24), transparent 32%),
    radial-gradient(circle at 68% 76%, rgba(211,15,99,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(16, 11, 20, .58);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--twiza-neon-shadow);
  will-change: transform;
}

.twiza-patent-panel__glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,47,140,.18), transparent 18%, transparent 82%, rgba(255,47,140,.14)),
    radial-gradient(circle at 50% 50%, rgba(255,47,140,.08), transparent 56%);
  pointer-events: none;
}

.twiza-patent-panel__frame {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,47,140,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  pointer-events: none;
}

.twiza-patent-panel__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  padding: clamp(30px, 2.7vw, 48px);
  display: flex;
  flex-direction: column;
}

.twiza-patent-panel__label {
  margin-bottom: clamp(28px, 4vh, 46px);
  color: var(--lab-accent);
  font-size: clamp(30px, 3vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.035em;
}

.twiza-patent-panel__number-block {
  display: grid;
  gap: 8px;
}

.twiza-patent-panel__meta {
  color: var(--twiza-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.twiza-patent-panel__number-block strong {
  max-width: 11ch;
  color: var(--twiza-text);
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.03em;
}

.twiza-patent-panel__divider {
  width: 100%;
  height: 1px;
  margin: clamp(22px, 3vh, 34px) 0;
  background: linear-gradient(90deg, var(--lab-accent), rgba(255,255,255,.08) 55%, transparent);
}

.twiza-patent-panel__text {
  margin: 0;
  max-width: 42ch;
  color: var(--twiza-muted);
  font-size: clamp(17px, 1.05vw, 19px);
  line-height: 1.56;
}

.twiza-patent-panel__footer {
  margin-top: auto;
  padding-top: clamp(22px, 3vh, 34px);
  color: rgba(244,239,241,.48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- the ledger's progress rail, standing in the gap between the two cards ---
   `.lab-system-progress` (css/homepage.css) is the hairline the homepage runs
   down the left edge of its TWIZA ledger: a 1px `--glass-rule` track carrying an
   accent `i` that fills it. It is reused here BY CLASS, so the track, its width,
   the accent, the z-index and the fill's transform-origin all come from there —
   the only thing set here is where it stands.

   `.twiza-governance-layout` is already `position: relative`, and an absolutely
   positioned child of a grid container is not a grid item, so the rail takes no
   track and the two columns are untouched.

   Its offset is the layout's own geometry rather than a guessed number: the
   tracks are .92fr and 1.10fr with an 8vw gap, so the first column measures
   (100% - 8vw) x .92/2.02 and the centre of the gap is half a gap further right.

   css/homepage.css already hides the rail below 960px. `.twiza-governance-layout`
   collapses to a single column at 1120px, where there is no gap left to stand in,
   so it goes at that breakpoint instead. */
#brevetto .lab-system-progress {
  left: calc((100% - 8vw) * 0.45545 + 4vw);
}

@media (max-width: 1120px) {

  #brevetto .lab-system-progress {
    display: none;
  }
}

.twiza-governance-list-wrap {
  min-height: 0;
  overflow: hidden;
  background: var(--lab-premium-card);
  border: 1px solid var(--lab-premium-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--twiza-shadow);
}

.twiza-governance-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.twiza-governance-item {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: clamp(168px, 20svh, 220px);
  padding: clamp(28px, 3vw, 46px) clamp(28px, 3vw, 52px);
  border-bottom: 1px solid var(--twiza-rule-soft);
}
.twiza-governance-item:last-child { border-bottom: 0; }

.twiza-governance-item__index {
  padding-top: 4px;
  color: var(--lab-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.twiza-governance-item__body h3 {
  margin: 0 0 8px;
  color: var(--twiza-text);
  font-size: clamp(30px, 2.15vw, 46px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.035em;
}


@media (max-width: 1120px) {
  .twiza-governance-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .twiza-patent-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: 520px;
  }

  .twiza-patent-panel__label {
    margin-bottom: 34px;
  }

  .twiza-patent-panel__footer {
    margin-top: 42px;
    padding-top: 0;
  }

  .twiza-governance-item {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .twiza-governance-shell {
    width: min(calc(100% - 24px), 1720px);
  }
  .twiza-governance-title {
    font-size: clamp(42px, 14vw, 62px);
  }
  .twiza-governance-intro {
    font-size: 18px;
  }
  .twiza-patent-panel__inner {
    padding: 26px 22px;
  }
  .twiza-patent-panel__label {
    font-size: 34px;
  }
  .twiza-patent-panel__number-block strong {
    font-size: 30px;
  }
  .twiza-patent-panel__text {
    font-size: 16px;
  }
  .twiza-governance-item {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 24px 20px;
  }
  .twiza-governance-item__index {
    font-size: 15px;
  }
  .twiza-governance-item__body h3 {
    font-size: 30px;
  }
  .twiza-governance-item__body p {
    font-size: 16px;
  }
}


.twiza-final {
  background: rgba(3, 2, 5, .42);
  border-block: 1px solid rgba(255, 255, 255, .05);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s ease var(--reveal-delay, 0ms), transform .85s cubic-bezier(.2, .75, .2, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--hero {
  animation: fadeUp .85s cubic-bezier(.2, .75, .2, 1) both;
  animation-delay: var(--reveal-delay, 80ms);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes twizaBlink {
  50% {
    opacity: 0
  }
}

@keyframes twizaSpin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes corePulse {
  50% {
    transform: scale(1.12);
    opacity: .45
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg)
  }
}

@media (max-width: 980px) {

  .solution-switchboard__layout {
    grid-template-columns: 1fr;
  }

  .solution-switchboard__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--twiza-line);
  }

  .solution-switchboard__nav button {
    grid-template-columns: 26px 1fr;
  }

  .solution-switchboard__nav button>i {
    display: none;
  }

  .solution-panel {
    grid-template-columns: 1fr;
  }

  .ready-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .custom-canvas__flow {
    grid-template-columns: 1fr 22px 1fr;
  }

  .custom-canvas__connector:nth-of-type(2) {
    display: none;
  }

  .custom-canvas__flow>div:nth-of-type(3) {
    grid-column: 1;
  }


  .twiza-action-console__flow::before {
    left: 50%;
    right: auto;
    top: 22%;
    bottom: 22%;
    width: 1px;
    height: auto;
  }

  .twiza-action-console__core {
    min-height: 120px;
  }

  .twiza-action-console__capabilities {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 720px) {
  .twiza-section {
    width: min(100% - 28px, 1240px);
    padding: 6.5rem 0;
  }



  .principle-card {
    width: calc(100% - 36px);
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 24px;
  }

  .principle-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.3rem;
  }

  .principle-card>div:nth-of-type(2) {
    grid-column: 1/3;
  }

  .principle-card footer {
    grid-column: 1/3;
    display: grid;
  }

  .twiza-principles__rail {
    left: 12px;
  }

  .twiza-principles__counter {
    right: 18px;
  }

  .solution-switchboard__bar,
  .twiza-action-console__bar {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 0 14px;
  }

  .solution-switchboard__bar>span,
  .solution-switchboard__live {
    display: none;
  }

  .solution-switchboard__nav {
    display: flex;
    overflow: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }

  .solution-switchboard__nav button {
    min-width: 210px;
    scroll-snap-align: start;
  }

  .solution-switchboard__stage {
    padding: 20px;
  }

  .solution-panel__copy h3 {
    font-size: 2.4rem;
  }

  .mock-wp__site {
    grid-template-columns: 1fr;
  }

  .twiza-section__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ready-summary {
    grid-template-columns: 1fr 1fr;
  }

  .custom-canvas__tabs {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
  }

  .custom-canvas__tabs button {
    min-width: 190px;
    scroll-snap-align: start;
  }

  .custom-canvas__flow {
    grid-template-columns: 1fr;
  }

  .custom-canvas__connector {
    margin: auto;
    transform: rotate(90deg);
  }

  .custom-canvas__connector:nth-of-type(2) {
    display: block;
  }

  .custom-canvas__flow>div:nth-of-type(3) {
    grid-column: auto;
  }

  .twiza-action-console__bar {
    grid-template-columns: auto 1fr auto;
  }

  .twiza-action-console__bar>div:nth-child(2) span,
  .twiza-action-console__state span {
    display: none;
  }

  .twiza-action-console__capabilities {
    grid-template-columns: 1fr;
  }


  .global-footer-bottom {
    gap: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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

/* TWIZA / I tre pilastri — sequential static scrollytelling
   Additive CSS only; designed to sit after homepage-consolidated.css. */

.twiza-preview-spacer {
  height: 24vh;
}

.twiza-outcomes-scroll {
  --scroll-progress: 0;
  --pillar-yellow: var(--file-yellow, #efb139);
  --pillar-orange: var(--file-orange, #ee5961);
  --pillar-green: var(--file-green, #2ba554);
  position: relative;
  height: 360svh;
  color: var(--lab-light, #f7f5f6);
}

.twiza-outcomes-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: transparent;
}

.twiza-outcomes-shell {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-top: 100px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.twiza-core-title {
  margin-bottom: 50px!important;
}

/* Reuse the homepage's lab-section-intro typography but adapt alignment for this scene. */
.twiza-outcomes-intro.lab-section-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(18px, 2.2vw, 30px);
  text-align: left;
  opacity: .96;
}

.twiza-outcomes-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lab-muted, #aaa4a8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
}

.twiza-outcomes-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lab-accent-live, #ef1873);
}

.twiza-outcomes-rule {
  position: relative;
  width: 98%;
  height: 1px;
  overflow: hidden;
  background: var(--glass-rule, rgb(255 255 255 / 11%));
  margin: 0 auto;
}

.twiza-outcomes-rule i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--lab-accent-live, #ef1873);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  will-change: transform;
}

.twiza-outcomes-grid {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  box-shadow: var(--lab-premium-shadow);
}

.twiza-outcome-card {
  --pillar-color: var(--lab-accent-live, #ef1873);
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 40%;
  overflow: hidden;
  border-right: 1px solid var(--glass-rule, rgb(255 255 255 / 11%));
  opacity: .12;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1),
    transform 850ms cubic-bezier(.22, 1, .36, 1),
    background 500ms ease;
}

.twiza-outcome-card:first-child {
  border-left: 1px solid var(--glass-rule, rgb(255 255 255 / 11%));
}

.twiza-outcome-card--yellow {
  --pillar-color: var(--pillar-yellow);
}

.twiza-outcome-card--orange {
  --pillar-color: var(--pillar-orange);
}

.twiza-outcome-card--green {
  --pillar-color: var(--pillar-green);
}

.twiza-outcome-card.is-started {
  opacity: 1;
  transform: none;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--pillar-color) 8%, transparent), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 2.8%), rgb(255 255 255 / .7%)),
    rgb(15 12 17 / 48%);
  backdrop-filter: blur(24px) saturate(116%);
  -webkit-backdrop-filter: blur(24px) saturate(116%);
}

.twiza-outcome-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(26px, 3vw, 44px);
}

/* Icon + explanatory copy enter as one composed unit for a smoother reveal. */
.twiza-outcome-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.twiza-outcome-card.is-intro .twiza-outcome-intro {
  opacity: 1;
  transform: none;
}

/* Icon treatment requested: translucent fill, visible coloured border, same-colour icon. */
.twiza-outcome-icon {
  width: clamp(72px, 7vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--pillar-color) 82%, transparent);
  border-radius: 28%;
  color: var(--pillar-color);
  background: color-mix(in srgb, var(--pillar-color) 12%, rgb(13 10 15 / 62%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 18px 48px color-mix(in srgb, var(--pillar-color) 9%, transparent);
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms cubic-bezier(.22, 1, .36, 1),
    transform 820ms cubic-bezier(.22, 1, .36, 1),
    margin-bottom 820ms cubic-bezier(.22, 1, .36, 1);
}

.twiza-outcome-icon svg {
  width: 48%;
  height: 48%;
}

/* As the conclusion arrives, the icon is intentionally carried upward and
   out of the reading frame. Its negative margin lets the explanatory text
   occupy the freed space, matching the reference sequence: icon + copy first,
   then copy + conclusion. */
.twiza-outcome-card.is-icon-away .twiza-outcome-icon {
  opacity: 0;
  transform: translateY(-135%) scale(.96);
  margin-bottom: calc(-1 * (clamp(72px, 7vw, 104px) + clamp(18px, 2vw, 28px)));
  pointer-events: none;
}

.twiza-outcome-copy {
  max-width: 36ch;
}

.twiza-outcome-index {
  display: block;
  margin-bottom: 13px;
  color: var(--pillar-color);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
}

.twiza-outcome-copy h3 {
  margin: 0 0 16px;
  color: var(--lab-light, #f7f5f6);
  font-size: clamp(25px, 2.1vw, 36px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.02;
  text-wrap: balance;
}

.twiza-outcome-copy p {
  max-width: 37ch;
  margin: 0;
  color: var(--lab-muted, #aaa4a8);
  font-size: 17px;
  line-height: 1.52;
}

/* The conclusion deliberately owns ~40% of the card / viewport reading area. */
.twiza-outcome-conclusion {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 44px);
  border-top: 1px solid color-mix(in srgb, var(--pillar-color) 34%, var(--glass-rule, rgb(255 255 255 / 11%)));
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--pillar-color) 5%, transparent));
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.twiza-outcome-card.is-conclusion .twiza-outcome-conclusion {
  opacity: 1;
  transform: none;
}

.twiza-outcome-conclusion strong {
  display: block;
  color: var(--lab-light, #f7f5f6);
  font-size: clamp(48px, 3.8vw, 94px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .84;
  text-wrap: balance;
}

.twiza-outcome-conclusion span {
  display: block;
  margin-top: clamp(16px, 2vw, 28px);
  color: #d9d2d6;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.twiza-outcomes-progress {
  position: absolute;
  right: max(14px, calc(var(--lab-gutter, 6vw) * .28));
  top: 50%;
  width: 2px;
  height: 120px;
  overflow: hidden;
  transform: translateY(-50%);
  background: rgb(255 255 255 / 8%);
}

.twiza-outcomes-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lab-accent-live, #ef1873);
  transform: scaleY(var(--scroll-progress));
  transform-origin: top center;
}

@media (max-width: 960px) {
  .twiza-outcomes-scroll {
    height: auto;
    padding: var(--lab-section-space, 96px) var(--lab-gutter, 24px);
  }

  .twiza-outcomes-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .twiza-outcomes-shell {
    display: block;
    padding: 0;
  }

  .twiza-outcomes-rule {
    margin-bottom: 28px;
  }

  .twiza-outcomes-rule i {
    transform: scaleX(1);
  }

  .twiza-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .twiza-outcome-card,
  .twiza-outcome-card:first-child {
    grid-template-rows: auto auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--lab-premium-border, rgb(255 255 255 / 7%));
    border-radius: var(--glass-radius, .75rem);
    background: var(--lab-premium-card, rgb(24 19 27 / 88%));
    box-shadow: var(--lab-premium-shadow, 0 24px 70px rgb(0 0 0 / 24%));
    opacity: 0;
    transform: translateY(24px);
    backdrop-filter: blur(22px) saturate(116%);
    -webkit-backdrop-filter: blur(22px) saturate(116%);
  }

  .twiza-outcome-card.is-mobile-in {
    opacity: 1;
    transform: none;
  }

  .twiza-outcome-main {
    padding: 28px;
  }

  .twiza-outcome-intro,
  .twiza-outcome-icon,
  .twiza-outcome-copy,
  .twiza-outcome-conclusion {
    opacity: 1;
    transform: none;
  }

  .twiza-outcome-conclusion {
    min-height: 220px;
    padding: 28px;
  }

  .twiza-outcome-conclusion strong {
    font-size: clamp(48px, 11vw, 74px);
  }

  .twiza-outcomes-progress {
    display: none;
  }

  .twiza-preview-spacer {
    display: none;
  }
}

@media (max-width: 720px) {
  .twiza-outcomes-scroll {
    padding: 82px 20px;
  }

  .twiza-outcomes-intro.lab-section-intro h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .twiza-outcome-main,
  .twiza-outcome-conclusion {
    padding: 24px 22px;
  }

  .twiza-outcome-icon {
    width: 74px;
    border-radius: 20px;
  }

  .twiza-outcome-copy h3 {
    font-size: 30px;
  }

  .twiza-outcome-conclusion {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-outcomes-scroll {
    height: auto;
    padding: var(--lab-section-space, 96px) var(--lab-gutter, 24px);
  }

  .twiza-outcomes-sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .twiza-outcomes-shell {
    display: block;
    padding: 0;
  }

  .twiza-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .twiza-outcome-card,
  .twiza-outcome-intro,
  .twiza-outcome-icon,
  .twiza-outcome-copy,
  .twiza-outcome-conclusion {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .twiza-outcomes-rule i {
    transform: scaleX(1);
  }

  .twiza-outcomes-progress {
    display: none;
  }
}

/* ==========================================================================
   TWIZA PAGE FIELD — use the same fixed SHAKAZAMBA dark-field atmosphere
   as the homepage. The previous .lab-page solid background was masking the
   gradient applied to the outer .twiza-revamp wrapper.
   ========================================================================== */
.twiza-revamp .lab-page {
  background-color: #08090b;
  background-image: var(--lab-dark-field);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100vw 100vh;
  background-attachment: fixed;
}


/* ==========================================================================
   CANONICAL TWIZA STATIC HERO — copied 1:1 from twiza-static
   Keep this block last so the approved hero wins over older revamp experiments.
   ========================================================================== */
/* --- twiza-hero-simulation.css --- */
/* Product-specific extension of the homepage blueprint hero. */
.twiza-hero-sim {
  padding-top: clamp(48px, 5.4vw, 84px);
  background-color: var(--lab-ink)
}

.twiza-hero-sim__title { max-width: 1220px; }

#twiza-hero-title {
  margin-bottom: 80px;
}

.twiza-hero-sim__wrap {
  inset: auto;
  width: min(1180px, calc(100% - var(--lab-gutter) * 1.35));
  height: auto;
  margin: clamp(36px, 8vw, 100px) auto 0;
  perspective: none;
}

.twiza-hero-sim__workspace {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgb(82 63 73 / 22%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 12%, rgb(210 15 99 / 14%), transparent 31%),
    radial-gradient(circle at 12% 62%, rgb(99 51 79 / 10%), transparent 36%),
    linear-gradient(135deg, #f7f3f1 0%, #e9e2e3 52%, #f6f1ed 100%);
  box-shadow: 0 34px 90px rgb(0 0 0 / 38%);
  color: #181518;
}

.twiza-hero-sim__workspace::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 42%), transparent 38%, rgb(255 255 255 / 16%));
}

.twiza-hero-sim__topbar {
  position: relative;
  z-index: 3;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgb(88 68 79 / 16%);
  background: rgb(255 255 255 / 31%);
  backdrop-filter: blur(18px);
}

.twiza-window-controls { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.twiza-window-controls i { width: 11px; height: 11px; border-radius: 50%; background: #ee5961; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 7%); }
.twiza-window-controls i:nth-child(2) { background: #efb139; }
.twiza-window-controls i:nth-child(3) { background: #2ba554; }

.twiza-hero-sim__brand { line-height: 1; }
.twiza-hero-sim__brand strong { display: block; font-size: 17px; letter-spacing: .04em; }
.twiza-hero-sim__brand span { display: block; margin-top: 3px; color: #62595e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.twiza-hero-sim__status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #62595e; font-size: 11px; }
.twiza-hero-sim__status i { width: 6px; height: 6px; border-radius: 50%; background: #2b8a58; box-shadow: 0 0 0 4px rgb(43 138 88 / 8%); }
.twiza-hero-sim__replay { width: 32px; height: 32px; display: grid; place-items: center; margin-left: 7px; padding: 0; border: 1px solid rgb(82 63 73 / 19%); background: rgb(255 255 255 / 28%); color: #655d62; cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.twiza-hero-sim__replay:hover { transform: rotate(-18deg); border-color: rgb(211 15 99 / 45%); color: #d30f63; }
.twiza-hero-sim__replay:focus-visible { outline: 2px solid #d30f63; outline-offset: 3px; }

.twiza-hero-sim__grid { position: relative; z-index: 2; min-height: 550px; display: grid; grid-template-columns: 42% 58%; }
.twiza-hero-sim__sources { padding: clamp(18px, 2vw, 28px); border-right: 1px solid rgb(82 63 73 / 16%); background: rgb(255 255 255 / 9%); }
.twiza-hero-sim__answer { padding: clamp(18px, 2vw, 28px); }
.twiza-hero-sim__label { color: #62595e; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.twiza-hero-sim__question { min-height: 94px; margin-top: 10px; padding: 15px; border: 1px solid rgb(82 63 73 / 18%); border-radius: 14px; background: rgb(255 255 255 / 34%); font-size: 16px; line-height: 1.42; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); }
.twiza-hero-sim__process { min-height: 30px; display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #62595e; font-size: 10px; }
.twiza-hero-sim__process i { width: 6px; height: 6px; border-radius: 50%; background: #8b8287; }
.twiza-hero-sim__process.is-live i { background: #d30f63; box-shadow: 0 0 0 4px rgb(211 15 99 / 8%); }
.twiza-hero-sim__source-list { display: grid; gap: 9px; margin-top: 16px; }
.twiza-hero-sim__source { position: relative; min-height: 64px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; overflow: hidden; border: 1px solid rgb(82 63 73 / 16%); border-radius: 14px; background: rgb(255 255 255 / 30%); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.twiza-hero-sim__source::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #d30f63; transform: scaleX(0); transform-origin: left; }
.twiza-hero-sim__source.is-active { transform: translateY(-1px); border-color: rgb(211 15 99 / 42%); background: rgb(255 255 255 / 54%); }
.twiza-hero-sim__source.is-active::after { animation: twiza-hero-scan 1.05s ease-out forwards; }
.twiza-hero-sim__source-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgb(82 63 73 / 18%); border-radius: 8px; color: #6e656a; font-size: 9px; font-weight: 700; }
.twiza-hero-sim__source-copy { min-width: 0; line-height: 1.12; }
.twiza-hero-sim__source-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.twiza-hero-sim__source-copy span { display: block; margin-top: 4px; color: #62595e; font-size: 9px; }
.twiza-hero-sim__match { color: #62595e; font-size: 10px; font-variant-numeric: tabular-nums; }
.twiza-hero-sim__source.is-active .twiza-hero-sim__match { color: #d30f63; }

.twiza-hero-sim__answer-card { min-height: 415px; margin-top: 10px; padding: clamp(18px, 2vw, 25px); border: 1px solid rgb(82 63 73 / 18%); border-radius: 16px; background: rgb(255 255 255 / 40%); box-shadow: 0 20px 46px rgb(61 37 51 / 9%); backdrop-filter: blur(18px) saturate(1.1); }
.twiza-hero-sim__answer-head { display: flex; align-items: center; gap: 9px; padding-bottom: 15px; border-bottom: 1px solid rgb(82 63 73 / 18%); }
.twiza-hero-sim__answer-head img { width: 25px; height: 25px; border-radius: 50%; }
.twiza-hero-sim__answer-head strong { font-size: 11px; letter-spacing: .1em; }
.twiza-hero-sim__verified { margin-left: auto; color: #2b8a58; font-size: 10px; opacity: 0; transition: opacity .5s ease-out; }
.twiza-hero-sim__verified.is-shown { opacity: 1; }
.twiza-hero-sim__answer-text { min-height: 150px; margin: 27px 0 20px; font-size: clamp(20px, 1.8vw, 31px); line-height: 1.28; }
.twiza-hero-sim__word { opacity: 0; }
.twiza-hero-sim__answer-text.is-writing .twiza-hero-sim__word { animation: twiza-hero-word .25s ease-out forwards; animation-delay: calc(var(--i) * 26ms); }
.twiza-hero-sim__citations { display: grid; gap: 8px; }
.twiza-hero-sim__citation { display: grid; grid-template-columns: 6px 1fr auto; gap: 9px; align-items: center; padding: 10px 11px; border: 1px solid rgb(82 63 73 / 16%); border-radius: 10px; background: rgb(255 255 255 / 28%); color: #5f565b; font-size: 10px; opacity: 0; transform: translateY(5px); transition: opacity .4s ease-out, transform .4s ease-out; }
.twiza-hero-sim__citation i { width: 5px; height: 5px; border-radius: 50%; background: #d30f63; }
.twiza-hero-sim__citation span:last-child { color: #62595e; }
.twiza-hero-sim__citation.is-shown { opacity: 1; transform: none; }
.twiza-hero-sim__footer-line { display: flex; align-items: center; gap: 9px; color: #62595e; font-size: 9px; }
.twiza-hero-sim__footer-line::before { content: ""; width: 22px; height: 1px; background: #d30f63; }

@keyframes twiza-hero-blink { 50% { opacity: 0; } }
@keyframes twiza-hero-scan { to { transform: scaleX(1); } }
@keyframes twiza-hero-word { to { opacity: 1; } }

@media (max-width: 980px) {
  .twiza-hero-sim__wrap { width: calc(100% - 28px); }
  .twiza-hero-sim__workspace { min-height: 590px; }
}

@media (max-width: 640px) {
  .twiza-hero-sim { min-height: auto; padding-inline: 14px; }
  .twiza-hero-sim__title { font-size: clamp(44px, 12vw, 62px); }
  .twiza-hero-sim__wrap { width: 100%; margin-top: 30px; }
  .twiza-hero-sim__workspace { min-height: 0; border-radius: 14px; }
  .twiza-hero-sim__topbar { height: 56px; padding-inline: 16px; }
  .twiza-window-controls i { width: 9px; height: 9px; }
  .twiza-hero-sim__brand span, .twiza-hero-sim__status span { display: none; }
  .twiza-hero-sim__grid { display: block; min-height: 0; }
  .twiza-hero-sim__sources { padding: 14px; border-right: 0; border-bottom: 1px solid rgb(82 63 73 / 16%); }
  .twiza-hero-sim__answer { padding: 14px; }
  .twiza-hero-sim__question { min-height: 72px; }
  .twiza-hero-sim__source-list { grid-template-columns: 1fr 1fr; }
  .twiza-hero-sim__source { grid-template-columns: 30px 1fr; min-height: 58px; }
  .twiza-hero-sim__match { display: none; }
  .twiza-hero-sim__source:nth-child(3) { grid-column: 1 / -1; }
  .twiza-hero-sim__answer-card { min-height: 390px; }
  .twiza-hero-sim__answer-text { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-hero-sim *, .twiza-hero-sim *::before, .twiza-hero-sim *::after { animation: none !important; transition: none !important; }
  .twiza-hero-sim__question::after { display: none; }
  .twiza-hero-sim__word, .twiza-hero-sim__verified, .twiza-hero-sim__citation { opacity: 1; transform: none; }
}


/* ==========================================================================
   TWIZA CORE → THREE PILLARS HANDOFF — final corrective layer
   Keeps the approved card sequence, fixes the core logo aspect ratio, and
   creates the requested scroll handoff: logo descends while the title shifts
   into the right column before the three pillar reveals begin.
   ========================================================================== */

/* Never distort the TWIZA wordmark in "Cos'è TWIZA". */
.logo-description {
  align-items: center;
}

.logo-description img {
  flex: 0 0 auto;
  width: clamp(250px, 20vw, 430px);
  height: auto !important;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: left center;
  align-self: center;
}

/* Keep the sticky viewport's geometry completely deterministic. */
.twiza-outcomes-scroll {
  --pillars-handoff: 0;
  height: 380svh;
}

.twiza-outcomes-sticky {
  box-sizing: border-box;
  min-height: 100svh;
}

.twiza-outcomes-shell {
  box-sizing: border-box;
  min-height: 100%;
  padding-top: clamp(34px, 5.2vh, 62px);
  grid-template-rows: auto auto minmax(0, 1fr);
}

/* Final heading line mirrors the preceding logo/paragraph composition:
   TWIZA mark on the left, "I tre pilastri" directly beneath the paragraph
   column on the right. */
.twiza-outcomes-intro.lab-section-intro {
  display: grid;
  grid-template-columns: minmax(200px, 0.56fr) minmax(0, 1.15fr);
  align-items: end;
  gap: clamp(44px, 7vw, 110px);
  min-height: clamp(132px, 15vh, 152px);
  margin: 0 0 clamp(18px, 2.2vw, 30px);
  overflow: visible;
}

.twiza-outcomes-logo {
  display: block;
  justify-self: start;
  width: clamp(230px, 16vw, 370px);
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: translate3d(0, calc((1 - var(--pillars-handoff)) * -250px), 0);
  opacity: calc(.0 + var(--pillars-handoff) * .88);
  will-change: transform, opacity;
}

.twiza-outcomes-intro.lab-section-intro h2 {
  display: block;
  justify-self: start;
  width: auto;
  margin: 0 !important;
  transform: translate3d(calc((1 - var(--pillars-handoff)) * -32vw), 0, 0);
  will-change: transform;
}

/* The divider belongs to the settled heading/logo line. */
.twiza-outcomes-rule {
  opacity: calc(.28 + var(--pillars-handoff) * .72);
}

/* Once revealed, the final card grid always owns the remaining viewport
   height; no late-scroll recomputation or apparent collapse. */
.twiza-outcomes-grid {
  height: 100%;
  min-height: 0;
}

.twiza-outcome-card {
  height: 100%;
  min-height: 0;
}

@media (max-width: 960px) {
  .logo-description {
    align-items: flex-start;
  }

  .logo-description img {
    width: min(310px, 42vw);
  }

  .twiza-outcomes-scroll {
    height: auto;
  }

  .twiza-outcomes-shell {
    min-height: 0;
  }

  .twiza-outcomes-intro.lab-section-intro {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
  }

  .twiza-outcomes-logo {
    width: min(240px, 34vw);
    opacity: 1;
    transform: none;
  }

  .twiza-outcomes-intro.lab-section-intro h2 {
    transform: none;
  }

  .twiza-outcomes-grid,
  .twiza-outcome-card {
    height: auto;
  }
}

@media (max-width: 720px) {
  .logo-description {
    flex-direction: column;
    gap: 30px;
  }

  .logo-description img {
    width: min(300px, 72vw);
  }

  .twiza-outcomes-intro.lab-section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .twiza-outcomes-logo {
    width: min(260px, 68vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-outcomes-scroll {
    --pillars-handoff: 1;
    height: auto;
  }

  .twiza-outcomes-logo,
  .twiza-outcomes-intro.lab-section-intro h2 {
    opacity: 1;
    transform: none;
  }
}

.twiza-section__intro {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#ready-made > div.twiza-section__intro.reveal.is-visible > div > p {
  max-width: 500px;
}

#ready-made > div.twiza-section__intro.reveal.is-visible > div .lab-primary, .twiza-section.twiza-cases-preview > div.twiza-cases-preview__shell > header > div.twiza-cases-preview__intro > a {
  margin-top: 35px;
}

#ready-made > div.twiza-section__intro.reveal.is-visible {
  margin-bottom: 60px;
}

div.solution-panel__copy > p {
      font-size: 18px;

}

div.solution-panel__copy > ul > li {
font-size: 16px;
  color: var(--lab-dark-muted);
}

div.twiza-field.twiza-field--interfaces > section > div {
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin: 0 auto clamp(58px, 6vw, 92px);
}

#interfaces-title em{
max-width: 100%!important;
}

#interfaces-title {
  margin-bottom: 24px;
}

div.twiza-field.twiza-field--interfaces > section > div > p {
    color: var(--lab-dark-muted);
    font-size: var(--lab-body);
    line-height: 1.58;
        max-width: 58ch;
  }

  .twiza-cases-preview {
  --cases-bg: var(--lab-bg, #0a090d);
  --cases-panel: var(--lab-card-bg, rgba(22, 15, 21, .72));
  --cases-panel-strong: rgba(30, 18, 29, .9);
  --cases-text: var(--lab-text, #f5f0eb);
  --cases-muted: var(--lab-muted, rgba(245, 240, 235, .66));
  --cases-line: var(--lab-line, rgba(245, 240, 235, .16));
  --cases-accent: var(--lab-accent, #D30F63);
  --cases-radius: var(--lab-radius-lg, 18px);
  position: relative;
  overflow: hidden;
  color: var(--cases-text);
  background: transparent;
  font-family: inherit;
}

.twiza-cases-preview *, .twiza-cases-preview *::before, .twiza-cases-preview *::after { box-sizing: border-box; }

.twiza-cases-preview__header {
  display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
      gap: clamp(40px, 7vw, 120px);
  align-items: start;
  margin-bottom: clamp(44px, 5vw, 76px);
}

.twiza-cases-preview__eyebrow {
  margin: 0 0 16px;
  color: var(--cases-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.twiza-cases-preview h2 {
  margin: 0;
  max-width: 1000px;
  font-size: var(--lab-heading);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
}

.twiza-cases-preview h2 span { color: var(--lab-accent); }

.twiza-cases-preview__intro p {
  margin-block-start: 0!important;
  margin-block-end: 0!important;
}

.twiza-cases-preview__note strong,
.twiza-cases-preview__growth strong { color: #ef2a7f; font-weight: 600; }

.twiza-cases-preview__intro { align-self: end; padding-bottom: 4px; }
.twiza-cases-preview__intro > p:first-child, .twiza-cases-preview__growth{ margin-top: 0; color: var(--lab-dark-muted);line-height: 1.58;font-size: var(--lab-body);}
.twiza-cases-preview__growth {  gap: 12px; align-items: center; }
.twiza-cases-preview__growth > span { color: var(--cases-accent); font-size: 1.35em; }

.twiza-cases-preview__viewport {
  overflow: hidden;
  margin-inline: calc(clamp(18px, 2vw, 30px) * -1);
  padding-inline: clamp(18px, 2vw, 30px);
}

.twiza-cases-preview__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(385px, 27.2vw);
  gap: clamp(18px, 1.5vw, 28px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px max(0px, calc((100vw - min(100% - 64px, 1640px)) / 2)) 14px 0;
  cursor: grab;
}

.twiza-cases-preview__track::-webkit-scrollbar { display: none; }
.twiza-cases-preview__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.twiza-cases-preview__track:focus-visible { outline: 1px solid rgba(211, 15, 99, .65); outline-offset: 6px; }


.twiza-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 15, 99, .38);
  background:
    linear-gradient(180deg, rgba(211,15,99,.035), rgba(255,255,255,.006)),
    rgba(20, 14, 21, .8);
}

.twiza-case-card__number {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #ef2a7f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
}

.twiza-case-card h3 {
  margin: 0;
  color: var(--cases-text);
  font-size: clamp(23px, 1.45vw, 30px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.014em;
}

.twiza-case-card p {
  margin: 8px 0 0;
  max-width: 31ch;
  color: rgba(245, 240, 235, .69);
  font-size: 16.5px;
  line-height: 1.32;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twiza-case-card__media {
  margin: 5px;
  min-height: 0;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  border-top: 1px solid rgba(245,240,235,.12);
  background:
    radial-gradient(circle at 52% 56%, rgba(211,15,99,.09), transparent 46%),
    rgba(7,6,9,.26);
}

.twiza-case-card__media::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  z-index: 2;
  width: 58%;
  height: 2px;
  background: linear-gradient(90deg, var(--lab-accent-live), rgb(239 24 115 / 35%) 57%, transparent 88%);
  box-shadow: 0 0 18px rgba(239,42,127,.22);
  pointer-events: none;
}

.twiza-case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,7,10,.32) 0%, transparent 20%, transparent 74%, rgba(8,7,10,.28) 100%);
}

.twiza-case-card__media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .86;
  filter: saturate(.9) contrast(1.03) brightness(.84);
  transform: scale(1.03);
  transition:
    transform .6s cubic-bezier(.22,1,.36,1),
    opacity .35s ease,
    filter .35s ease;
}

.twiza-case-card:hover .twiza-case-card__media img {
  transform: scale(1.055);
  opacity: .96;
  filter: saturate(1) contrast(1.04) brightness(.9);
}

.twiza-cases-preview__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  border-bottom: none;
}

.twiza-cases-preview__progress {
  height: 1px;
  background: rgba(245, 240, 235, .18);
  overflow: hidden;
}

.twiza-cases-preview__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cases-accent);
  transform-origin: left center;
  transition: width .12s linear;
}

.twiza-cases-preview__status {
  color: #ef2a7f;
  font-size: 15px;
  white-space: nowrap;
}
.twiza-cases-preview__infinity { font-size: 24px; vertical-align: -2px; margin-right: 6px; }

.twiza-cases-preview__buttons { display: flex; gap: 8px; }
.twiza-cases-preview__buttons button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--cases-line);
  border-radius: 50%;
  background: rgba(16, 12, 17, .7);
  color: var(--cases-text);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.twiza-cases-preview__buttons button:hover { border-color: rgba(211,15,99,.62); background: rgba(211,15,99,.11); color: #fff; }
.twiza-cases-preview__buttons button:focus-visible { outline: 2px solid var(--cases-accent); outline-offset: 2px; }
.twiza-cases-preview__buttons button:disabled { opacity: .28; cursor: default; }

@media (max-width: 980px) {
  .twiza-cases-preview__header { grid-template-columns: 1fr; gap: 24px; }
  .twiza-cases-preview__intro { max-width: 720px; }
  .twiza-cases-preview__track { grid-auto-columns: minmax(290px, 58vw); }
}

@media (max-width: 640px) {
  .twiza-cases-preview { padding-block: 72px; }
  .twiza-cases-preview__shell { width: min(100% - 32px, 1640px); }
  .twiza-cases-preview h2 { font-size: clamp(42px, 13vw, 62px); }
  .twiza-cases-preview__track { grid-auto-columns: minmax(276px, 84vw); gap: 14px; }
  .twiza-case-card { min-height: 420px; }
  .twiza-cases-preview__controls { grid-template-columns: 1fr auto; }
  .twiza-cases-preview__progress { grid-column: 1 / -1; }
  .twiza-cases-preview__status { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .twiza-case-card,
  .twiza-case-card__media img,
  .twiza-cases-preview__progress span { transition: none !important; }
}

.twiza-case-card {
    flex: 0 0 calc((100% - 66px) / 4.35);
    min-height: 470px;
    padding: 22px;
    display: grid;
    grid-template-rows: 1fr;
    gap: 14px;
    border-radius: var(--glass-radius);
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(21, 16, 28, .84), rgba(12, 10, 16, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    position: relative;
    overflow: hidden;
  }

.twiza-case-card__copy {
  flex-direction: column;
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

  .twiza-case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 27, 117, .09), transparent 28%, transparent 72%, rgba(21, 39, 95, 0.018));
    opacity: .95;
    pointer-events: none;
}

.twiza-cases-preview {
  background: var(--lab-ink);
}
footer.twiza-cases-preview__controls {
  background: transparent;
}

.twiza-section.twiza-cases-preview {
  border-top: none;
}

div.twiza-field.twiza-field--solutions > section:nth-child(3) {
  padding-top: 50px!important;
}

.twiza-case-card__media img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ==========================================================================
   READY-MADE SLIDER — the cards in #ready-made carry product screenshots of the
   TWIZA mock interfaces instead of the abstract sector artwork used by the
   custom-solutions slider below. `.twiza-case-card__media img` darkens and
   desaturates its image for that artwork (brightness .84, opacity .86), which
   turns a light UI screenshot muddy. These two rules restore the screenshot's
   own contrast for this slider only; geometry, hover motion and every other
   property stay exactly as authored.
   ========================================================================== */
#ready-made .twiza-case-card__media {
  border-radius: 8px;
}

/* The sector artwork below is deliberately veiled: `.twiza-case-card__media::after`
   lays a dark gradient over the top and bottom of the frame, and the image itself is
   dimmed (opacity .86, brightness .84). Both readings are wrong for a light UI
   screenshot, so this slider drops the veil and shows the capture at full value. */
#ready-made .twiza-case-card__media::after {
  display: none;
}

#ready-made .twiza-case-card__media img {
  opacity: 1;
  filter: none;
}

/* The artwork is also framed at scale(1.03) and pushed to 1.055 on hover, which crops
   the edges of a screenshot and shears its straight lines. Here the capture sits at
   its true size and the hover move is halved. */
#ready-made .twiza-case-card__media img {
  transform: scale(1);
}

#ready-made .twiza-case-card:hover .twiza-case-card__media img {
  transform: scale(1.02);
  opacity: 1;
  filter: none;
}


/* ==========================================================================
   TWIZA — chiusura del blocco "I tre pilastri"
   Il blocco finisce direttamente sul campo di sfondo, senza nulla sotto: il suo
   bordo inferiore va dichiarato. I filetti verticali delle schede si leggono
   all'11% solo perché sono alti; in orizzontale serve il filetto più marcato
   già previsto dal sistema (--glass-rule-strong). Il bordo sta sulla scheda, non
   sulla griglia, così compare insieme alla scheda durante la sequenza animata e
   resta ritagliato dal raggio della griglia.
   Ambito: solo i pilastri di TWIZA. Lo stesso componente su AI Development
   chiude dentro un altro capitolo e resta invariato.
   ========================================================================== */
/* Il raggio sta sulla griglia, non sulle schede: un bordo messo sulla scheda è
   una linea dritta che `overflow: hidden` ritaglia in corrispondenza della
   curva, e l'angolo resta scoperto. Il filetto va quindi sulla griglia, che è
   l'elemento che possiede il raggio, così segue la curva su tutti e quattro gli
   angoli. I filetti verticali restano sulle schede perché dividono le colonne;
   qui vengono tolti solo ai due bordi esterni, dove raddoppierebbero.

   Il filetto non deve però precedere il contenuto: a schede ancora vuote una
   cornice disegnata sul nulla si legge come un errore. Compare quindi insieme
   alla sequenza, sfumando con `--pillars-handoff` — la variabile che
   twiza-pillars-sequential.js porta da 0 a 1 mentre il titolo si assesta e
   subito prima che la prima scheda entri. Senza JS, o su mobile e con motion
   ridotto (dove lo script la fissa a 1), il filetto è pieno da subito. */
.twiza-outcomes-scroll--ruled .twiza-outcomes-grid {
  border: 2px solid var(--lab-premium-border);
  border-color: color-mix(in srgb, var(--lab-premium-border) calc(var(--pillars-handoff, 1) * 100%), transparent);
}

.twiza-outcomes-scroll--ruled .twiza-outcome-card:first-child {
  border-left: 0;
}

.twiza-outcomes-scroll--ruled .twiza-outcome-card:last-child {
  border-right: 0;
}
