@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.start{inset-inline-start:var(--spacing)}.hidden{display:none}.table{display:table}}:root{--background:#070707;--surface:#0d0d0d;--foreground:#f5f2ea;--muted:#aaa69d;--line:#292929;--green:#3cb66a;--blue:#3f77d1;--orange:#e79316}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--background);color:var(--foreground);text-rendering:optimizelegibility;margin:0;font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.site-header{z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#070707e0;border-bottom:1px solid #ffffff1f;justify-content:space-between;align-items:center;min-height:72px;padding:0 4vw;display:flex;position:sticky;top:0}.brand-text{letter-spacing:.08em;font-family:Georgia,Times New Roman,serif;font-size:1.05rem;font-weight:800}.site-header nav{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;gap:clamp(1rem,2.4vw,2.5rem);font-size:.78rem;display:flex}.site-header nav a{flex:none;align-items:center;min-height:44px;display:inline-flex}.site-header nav a:hover,.site-header nav a:focus-visible{color:var(--foreground)}.hero{isolation:isolate;border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1.06fr) minmax(320px,.94fr);align-items:center;min-height:calc(100vh - 72px);display:grid;position:relative;overflow:hidden}.hero-grid{z-index:-2;opacity:.22;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:72px 72px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(90deg,#000,#0000 86%);mask-image:linear-gradient(90deg,#000,#0000 86%)}.hero:after{z-index:-1;content:"";filter:blur(20px);background:conic-gradient(from 215deg,#3cb66a24,#3f77d11a,#7b43b61f,#d4494917,#e793161f,#3cb66a24);border-radius:50%;width:85vw;height:85vw;position:absolute;inset:auto -18vw -46vh auto}.hero-copy{padding:8vw 3vw 8vw 7vw}.eyebrow,.section-label{color:#c5c0b6;letter-spacing:.18em;text-transform:uppercase;margin:0;font-size:.73rem;font-weight:700}.wordmark-frame{background:#fff;align-items:center;width:min(100%,510px);margin:1.6rem 0 2.3rem;display:flex;overflow:hidden}.wordmark-frame img{width:100%;height:auto;display:block}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,Times New Roman,serif}h1{letter-spacing:-.055em;max-width:780px;margin-bottom:1.5rem;font-size:clamp(3.1rem,5.8vw,6.7rem);font-weight:500;line-height:.96}h1 span{color:#9f9a90;display:block}.hero-lead{color:#c7c3ba;max-width:650px;margin-bottom:2rem;font-size:clamp(1rem,1.3vw,1.22rem);line-height:1.7}.hero-actions{flex-wrap:wrap;gap:.8rem;display:flex}.button{border:1px solid var(--line);letter-spacing:.04em;justify-content:center;align-items:center;min-height:48px;padding:0 1.35rem;font-size:.82rem;font-weight:700;transition:transform .2s;display:inline-flex}.button-primary{border-color:var(--foreground);background:var(--foreground);color:#080808}.button-secondary{background:#ffffff08}.button:hover,.button:focus-visible{transform:translateY(-2px)}.symbol-stage{place-items:center;min-height:72vh;padding:5vw;display:grid;position:relative}.symbol-card{z-index:2;background:#fff;border:1px solid #2e2e2e;border-radius:50%;width:min(33vw,470px);min-width:310px;padding:1.25rem;position:relative;box-shadow:0 35px 100px #0009}.symbol-card img{border-radius:50%;width:100%;display:block}.orbit{border:1px solid #ffffff1f;border-radius:50%;position:absolute}.orbit-one{width:min(40vw,580px);height:min(40vw,580px)}.orbit-two{opacity:.7;border-style:dashed;width:min(48vw,700px);height:min(48vw,700px)}.section{border-bottom:1px solid var(--line);padding:clamp(5rem,9vw,9rem) 7vw}.project-intro,.music-callout{grid-template-columns:.38fr 1fr;gap:5vw;display:grid}.section-copy{max-width:980px}.section h2,.support h2{letter-spacing:-.045em;margin-bottom:1.6rem;font-size:clamp(2.6rem,5vw,5.6rem);font-weight:500;line-height:1}.section-copy p,.music-copy p,.support>p:not(.eyebrow){max-width:780px;color:var(--muted);font-size:1.05rem;line-height:1.75}.section-copy .large-copy{color:var(--foreground);font-family:Georgia,Times New Roman,serif;font-size:clamp(1.45rem,2.25vw,2.2rem);line-height:1.4}.section-heading{justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:3rem;display:flex}.section-heading h2{text-align:right;max-width:780px;margin:0}.connection-grid{background:var(--line);border:1px solid var(--line);grid-template-columns:repeat(3,1fr);gap:1px;display:grid}.connection-card{background:var(--surface);flex-direction:column;min-height:355px;padding:2rem;display:flex}.connection-card:first-child{border-top:3px solid var(--green)}.connection-card:nth-child(2){border-top:3px solid var(--orange)}.connection-card:nth-child(3){border-top:3px solid var(--blue)}.card-topline{color:var(--muted);letter-spacing:.12em;justify-content:space-between;gap:1rem;font-size:.68rem;font-weight:700;display:flex}.status{color:var(--foreground)}.connection-card h3{margin:3.5rem 0 1rem;font-size:clamp(1.45rem,2vw,2.15rem)}.connection-card p{color:var(--muted);line-height:1.65}.card-link{color:#d8d4cb;letter-spacing:.04em;margin-top:auto;padding-top:2rem;font-size:.76rem}.music-callout{background:linear-gradient(135deg,#0b0b0b,#121010)}.music-copy .quote{max-width:950px;color:var(--foreground);margin-bottom:1.5rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.3rem,4.4vw,5rem);line-height:1.1}.program-strip{border-bottom:1px solid var(--line);background:#090b0a;grid-template-columns:.8fr 1fr;gap:7vw;padding:clamp(5rem,8vw,8rem) 7vw;display:grid}.program-strip h2{letter-spacing:-.04em;margin:1.2rem 0 0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.4rem,4.3vw,5rem);font-weight:500;line-height:1}.program-strip>div:last-child{align-self:end}.program-strip p:not(.section-label){color:var(--muted);line-height:1.75}.support{background:var(--foreground);color:#090909;padding:clamp(6rem,11vw,11rem) 7vw}.support .eyebrow{color:#555149;margin-bottom:1.5rem}.support h2{max-width:1050px}.support>p:not(.eyebrow){color:#403d38;max-width:730px}.support .button{color:var(--foreground);background:#090909;border-color:#090909;margin-top:1rem}footer{color:var(--muted);justify-content:space-between;align-items:center;gap:2rem;padding:2.2rem 4vw;font-size:.76rem;display:flex}footer>div,.footer-links{gap:1.5rem;display:flex}footer strong{color:var(--foreground)}@media (max-width:900px){.site-header{flex-direction:column;align-items:flex-start;gap:.8rem;padding-block:1rem;position:relative}.site-header nav{white-space:nowrap;gap:1.1rem;width:100%;padding-bottom:.25rem;overflow-x:auto}.hero{grid-template-columns:1fr}.hero-copy{padding:5.5rem 7vw 2rem}.symbol-stage{min-height:540px}.symbol-card{width:min(72vw,430px)}.orbit-one{width:min(82vw,520px);height:min(82vw,520px)}.orbit-two{width:min(96vw,620px);height:min(96vw,620px)}.project-intro,.music-callout{grid-template-columns:1fr}.section-heading{display:block}.section-heading h2{text-align:left;margin-top:2rem}.connection-grid{grid-template-columns:1fr}.connection-card{min-height:290px}}@media (max-width:560px){.site-header{min-height:64px}.site-header nav{font-size:.7rem}.hero{min-height:calc(100vh - 64px)}.hero-copy{padding-top:4rem}.wordmark-frame{margin-top:1.25rem}h1{font-size:clamp(2.75rem,15vw,4.1rem)}.hero-actions,.button{width:100%}.symbol-stage{min-height:430px}.symbol-card{width:78vw;min-width:0}footer,footer>div,.footer-links{flex-direction:column;align-items:flex-start;gap:.75rem}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button:hover,.button:focus-visible{transform:none}}.page-hero{border-bottom:1px solid var(--line);background:radial-gradient(circle at 78% 25%,#3f77d11f,#0000 32%),linear-gradient(135deg,#070707,#0d0d0d);padding:clamp(6rem,10vw,10rem) 7vw clamp(5rem,8vw,8rem)}.page-hero h1{max-width:1150px;margin:1.5rem 0 2rem}.page-lead{color:#c7c3ba;max-width:760px;font-size:clamp(1.05rem,1.45vw,1.3rem);line-height:1.75}.compact-hero{padding-bottom:clamp(4.2rem,6vw,6rem)}.compact-hero h1{font-size:clamp(3.5rem,7vw,7.8rem)}.content-band{border-bottom:1px solid var(--line);padding:clamp(4.5rem,8vw,8rem) 7vw}.two-column-copy{grid-template-columns:.34fr 1fr;gap:5vw;display:grid}.muted-band{background:#0d0d0d}.prose{max-width:880px}.prose h2,.closing-statement h2,.access-note h2,.legal-document h2{letter-spacing:-.035em;font-family:Georgia,Times New Roman,serif;font-weight:500}.prose h2{margin-bottom:1.7rem;font-size:clamp(2.3rem,4vw,4.7rem);line-height:1.04}.prose p{color:var(--muted);font-size:clamp(1rem,1.25vw,1.14rem);line-height:1.8}.closing-statement,.access-note{background:var(--foreground);color:#090909;padding:clamp(6rem,10vw,10rem) 7vw}.closing-statement .eyebrow,.access-note .eyebrow{color:#555149}.closing-statement h2,.access-note h2{max-width:1100px;margin:1.5rem 0 2rem;font-size:clamp(2.7rem,5.3vw,6rem);line-height:1}.closing-statement>p:not(.eyebrow),.access-note>p:not(.eyebrow){color:#403d38;max-width:760px;font-size:1.08rem;line-height:1.75}.closing-statement .button{color:var(--foreground);background:#090909;margin-top:1rem}.connection-list{border-bottom:1px solid var(--line)}.connection-row{border-top:1px solid var(--line);grid-template-columns:90px minmax(0,1fr) 220px;align-items:start;gap:3vw;padding:clamp(3.2rem,6vw,6rem) 7vw;display:grid}.connection-row:first-child{border-top:0}.connection-index{color:#5b5852;font-family:Georgia,Times New Roman,serif;font-size:2rem}.connection-tag{color:var(--muted);letter-spacing:.14em;margin-bottom:1.2rem;font-size:.72rem;font-weight:700}.connection-row h2{margin-bottom:1rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2rem,3.5vw,4rem);font-weight:500;line-height:1.05}.connection-row>div:nth-child(2)>p:not(.connection-tag){max-width:780px;color:var(--muted);font-size:1.02rem;line-height:1.75}.connection-state{border:1px solid var(--line);color:#c7c3ba;letter-spacing:.07em;text-transform:uppercase;justify-self:end;padding:.7rem .9rem;font-size:.7rem;font-weight:700}.active-state{color:#71d495;border-color:#3cb66a80}.connection-action{transition:border-color .2s,color .2s,transform .2s}.connection-action:hover,.connection-action:focus-visible{color:#a0edbb;border-color:#71d495e6;transform:translateY(-2px)}.software-row{box-shadow:inset 4px 0 var(--green)}.book-row{box-shadow:inset 4px 0 var(--orange)}.zenodo-row{box-shadow:inset 4px 0 var(--blue)}.inline-links{flex-direction:column;gap:.8rem;margin-top:1.8rem;display:flex}.inline-links span,.text-link{color:#d8d4cb;font-size:.83rem;line-height:1.5}.text-link{text-underline-offset:.3em;-webkit-text-decoration:underline #555;text-decoration:underline #555}.legal-hero{background:linear-gradient(135deg,#070707,#11100e)}.legal-document{max-width:980px;margin:0 auto;padding:clamp(4rem,8vw,8rem) 7vw}.legal-document section{border-bottom:1px solid var(--line);padding:2rem 0}.legal-document section:first-child{padding-top:0}.legal-document section:last-child{border-bottom:0}.legal-document h2{margin-bottom:1rem;font-size:clamp(1.45rem,2.2vw,2rem)}.legal-document p{color:var(--muted);line-height:1.8}.legal-document a{color:var(--foreground);text-underline-offset:.25em;text-decoration:underline}.program-hero{background:linear-gradient(#ffffff06 1px,#0000 1px) 0 0/56px 56px,linear-gradient(90deg,#ffffff06 1px,#0000 1px) 0 0/56px 56px,radial-gradient(circle at 75% 30%,#3cb66a1f,#0000 30%),#070707}.language-declaration{background:var(--line);border-bottom:1px solid var(--line);grid-template-columns:repeat(3,1fr);gap:1px;display:grid}.language-declaration>div{background:#0d0d0d;min-height:250px;padding:2.5rem 3vw}.metric{color:var(--foreground);margin-bottom:3rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.8rem,5vw,5.8rem);display:block}.language-declaration p{max-width:310px;color:var(--muted);line-height:1.6}.territory-section{border-bottom:1px solid var(--line);padding:clamp(5rem,8vw,8rem) 7vw}.natural-territory{box-shadow:inset 5px 0 var(--green)}.real-territory{box-shadow:inset 5px 0 var(--blue);background:#0b0b0d}.territory-heading{grid-template-columns:.4fr 1fr .75fr;align-items:end;gap:3vw;margin-bottom:4rem;display:grid}.territory-heading h2{letter-spacing:-.045em;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.8rem,5vw,5.8rem);font-weight:500;line-height:1}.territory-heading>p:last-child{color:var(--muted);margin:0;line-height:1.65}.module-grid{background:var(--line);border:1px solid var(--line);grid-template-columns:repeat(3,1fr);gap:1px;display:grid}.real-grid{grid-template-columns:repeat(2,1fr)}.module-card{background:var(--surface);padding:2rem}.module-card h3{letter-spacing:.08em;margin-bottom:1.5rem;font-size:1rem}.module-card ul{margin:0;padding:0;list-style:none}.module-card li{color:#c3bfb6;border-top:1px solid #222;padding:.55rem 0;font-size:.84rem}.module-card li:before{color:#68645c;content:"—";margin-right:.7rem}.module-note{color:#8f8b83;margin:1.3rem 0 0;font-size:.78rem;line-height:1.6}.console-note{background:#000;padding:clamp(6rem,10vw,10rem) 7vw}.console-note h2{letter-spacing:-.045em;max-width:1000px;margin:1.5rem 0 2rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.8rem,5.2vw,6rem);font-weight:500;line-height:1}.console-note>p:last-child{color:#9e9a92;max-width:740px;line-height:1.75}@media (max-width:900px){.two-column-copy{grid-template-columns:1fr}.connection-row{grid-template-columns:55px minmax(0,1fr)}.connection-state{grid-column:2;justify-self:start}.program-strip,.territory-heading,.language-declaration{grid-template-columns:1fr}.language-declaration>div{min-height:0}.metric{margin-bottom:1.5rem}.module-grid,.real-grid{grid-template-columns:1fr 1fr}}@media (max-width:560px){.page-hero{padding-top:4.5rem}.connection-row{grid-template-columns:1fr}.connection-index,.connection-state{grid-column:1}.connection-state{justify-self:start}.legal-document{padding-inline:7vw}.module-grid,.real-grid{grid-template-columns:1fr}}
#sostieni {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

#sostieni .support-copy {
  min-width: 0;
}

#sostieni .support-copy > p:not(.eyebrow) {
  color: #403d38;
  max-width: 730px;
  font-size: 1.05rem;
  line-height: 1.75;
}

#sostieni .business-card {
  min-width: 0;
  min-height: 260px;
  background: #090909;
  color: var(--foreground);
  border: 2px solid var(--green);
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

#sostieni .business-card p {
  margin: 0;
}

@media (max-width: 900px) {
  #sostieni {
    grid-template-columns: 1fr;
  }

  #sostieni .business-card {
    min-height: 0;
  }
}
/* PROGRAMMA — lingue disponibili nella black screen */
.console-note {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(4.5rem, 6vw, 7rem) 6vw;
}

.console-note-copy {
  min-width: 0;
}

.console-note-copy > p:last-child {
  color: #9e9a92;
  max-width: 740px;
  line-height: 1.75;
}

.console-languages {
  min-width: 0;
  background: #050505;
  border: 2px solid var(--green);
  padding: clamp(1.5rem, 2.2vw, 2.5rem);
}

.console-language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin-bottom: 1.75rem;
}

.console-language-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-language-list li {
  color: #d8d4cb;
  margin: 0;
  font-size: clamp(0.86rem, 0.95vw, 0.98rem);
  line-height: 1.55;
}

.console-language-list strong {
  color: var(--foreground);
  letter-spacing: 0.06em;
}

.console-languages > p {
  color: #9e9a92;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.console-languages > p + p {
  margin-top: 1rem;
}

.console-languages a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .console-note {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-inline: 7vw;
  }

  .console-languages {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .console-languages {
    padding: 1.25rem;
  }

  .console-language-list {
    gap: 0.75rem;
  }

  .console-language-list li {
    font-size: 0.78rem;
  }
}

/* CONNESSIONI — sintesi strutturale Collatz */
.collatz-summary {
  width: 100%;
  margin: 0.35rem 0 0.55rem;
  color: var(--foreground);
  background: #090b0d;
  border: 1px solid #315ea5;
  border: 1px solid color-mix(in srgb, var(--blue) 72%, #ffffff 8%);
}

.collatz-summary summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 1rem 4.25rem 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.collatz-summary summary::-webkit-details-marker {
  display: none;
}

.collatz-summary summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  border: 1px solid #ffffff38;
  color: var(--foreground);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.8rem;
  text-align: center;
  transform: translateY(-50%);
}

.collatz-summary[open] summary::after {
  content: "−";
}

.collatz-summary summary:hover,
.collatz-summary summary:focus-visible {
  background: #3f77d112;
  outline: none;
}

.collatz-summary-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inline-links .collatz-summary-kicker {
  color: #8eb7ff;
  letter-spacing: 0.16em;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.4;
}

.inline-links .collatz-summary-title {
  color: var(--foreground);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
}

.collatz-summary-body {
  border-top: 1px solid #ffffff20;
}

.collatz-summary-body p {
  color: #aaa69d;
  max-width: 900px;
  margin: 0;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.75;
}

.collatz-summary-lead {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: #d7d3ca !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.55vw, 1.4rem) !important;
  line-height: 1.55 !important;
}

.collatz-summary-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.7rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid #ffffff14;
}

.collatz-step-number {
  color: #8eb7ff !important;
  letter-spacing: 0.08em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

.collatz-summary h3 {
  margin: 0 0 0.8rem;
  color: var(--foreground);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
}

.collatz-summary-step p + .math-display,
.collatz-summary-step .math-display + .math-display,
.collatz-summary-step .math-display + p {
  margin-top: 1rem;
}

.math-display {
  width: 100%;
  margin-top: 1rem;
  padding: clamp(0.85rem, 1.7vw, 1.25rem);
  overflow-x: auto;
  color: #f7f4ed;
  background: #040404;
  border: 1px solid #ffffff1f;
  scrollbar-color: #555 #111;
}

.math-display math {
  display: block;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  color: inherit;
  font-family: "STIX Two Math", "Cambria Math", "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  text-align: center;
}

.math-cases math {
  font-size: clamp(0.96rem, 1.3vw, 1.15rem);
}

.collatz-summary-result {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: #060706;
  border-top: 1px solid #235d38;
  border-top: 1px solid color-mix(in srgb, var(--green) 55%, transparent);
}

.math-result {
  border-color: #2a7446;
  border-color: color-mix(in srgb, var(--green) 60%, #ffffff 5%);
}

.collatz-chain {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.2vw, 1rem);
  width: 100%;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  color: var(--foreground);
  background: #0b110d;
  border: 1px solid var(--green);
  white-space: nowrap;
}

.inline-links .collatz-chain span {
  color: var(--foreground);
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.4;
}

.collatz-chain b {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 500;
}

.collatz-summary-note {
  padding-top: 0.2rem;
  color: #858178 !important;
  font-size: 0.82rem !important;
  line-height: 1.65 !important;
}

@media (max-width: 560px) {
  .collatz-summary summary {
    min-height: 70px;
    padding: 0.85rem 3.5rem 0.85rem 1rem;
  }

  .collatz-summary summary::after {
    right: 0.9rem;
  }

  .collatz-summary-step {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.25rem 1rem;
  }

  .collatz-summary-lead,
  .collatz-summary-result {
    padding: 1.25rem 1rem;
  }

  .math-display {
    padding: 0.8rem 0.7rem;
  }

  .math-display math,
  .math-cases math {
    font-size: 0.93rem;
  }
}
/* PROGRAMMA — relazione tecnica MUSIC_LAB */

.musiclab-technical-toggle {
  width: min(790px, 82%);
  margin: 1rem auto 5rem;
  border: 2px solid var(--green);
  background: #050505;
}

.musiclab-technical-toggle summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.4rem;
  color: var(--foreground);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.musiclab-technical-toggle summary::-webkit-details-marker {
  display: none;
}

.musiclab-technical-toggle summary::before {
  content: "＋";
  margin-right: 0.65rem;
  color: var(--green);
}

.musiclab-technical-toggle[open] summary::before {
  content: "−";
}

.musiclab-technical-toggle summary:hover {
  background: #0a0a0a;
}

.musiclab-technical-content {
  padding: 2rem clamp(1.4rem, 3vw, 3rem) 2.5rem;
  border-top: 1px solid #222;
}

.musiclab-technical-content h3 {
  margin: 2rem 0 0.8rem;
  color: var(--foreground);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.musiclab-technical-content h3:first-child {
  margin-top: 0;
}

.musiclab-technical-content p {
  max-width: 900px;
  margin: 0 0 1rem;
  color: #9e9a92;
  font-size: 0.82rem;
  line-height: 1.75;
}

.musiclab-technical-content ul {
  max-width: 900px;
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.musiclab-technical-content li {
  border: 0;
  padding: 0.15rem 0;
  color: #9e9a92;
  font-size: 0.82rem;
}

.musiclab-technical-content li::before {
  content: none;
}

.musiclab-flow,
.musiclab-formula,
.musiclab-identity {
  color: var(--foreground) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem !important;
}

.musiclab-identity {
  padding-left: 1rem;
  border-left: 2px solid var(--green);
}

.musiclab-table {
  max-width: 900px;
  margin: 1.3rem 0 1.5rem;
  border: 1px solid #222;
}

.musiclab-table > div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-top: 1px solid #222;
}

.musiclab-table > div:first-child {
  border-top: 0;
}

.musiclab-table strong,
.musiclab-table span {
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
}

.musiclab-table strong {
  color: var(--foreground);
}

.musiclab-table span {
  color: #9e9a92;
}

@media (max-width: 560px) {
  .musiclab-technical-toggle {
    width: 86%;
    margin-bottom: 3rem;
  }

  .musiclab-technical-toggle summary {
    text-align: left;
    font-size: 0.7rem;
  }

  .musiclab-technical-content {
    padding-inline: 1rem;
  }

  .musiclab-table > div {
    grid-template-columns: 1fr;
  }

  .musiclab-table > div:first-child {
    display: none;
  }

  .musiclab-table > div:not(:first-child) {
    padding: 0.25rem 0;
  }
}