/* WaweLab | Archivio del Futuro
   Token da brand/DESIGN_TOKENS.json. Tema carta (chiaro) con variante scura automatica.
   Raggio 0 ovunque (carta tagliata). Z-index: contenuto 1-5, nav 40, progress 45, grain 90, intro 100. */

@font-face { font-family: "Anton"; src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F1EBDD;
  --paper-deep: #E7DFCC;
  --card: #FBF7EF;
  --ink: #151515;
  --ink-soft: #3B3A36;
  --meta: #5E635E;
  --orange: #E46A3A;
  --orange-ink: #C25A31;
  --line: rgba(21, 21, 21, 0.85);
  --hair: rgba(21, 21, 21, 0.16);
  --shadow: 0 22px 44px -20px rgba(60, 44, 20, 0.5);
  --shadow-sm: 0 8px 18px -10px rgba(60, 44, 20, 0.5);
  --inv-bg: #151515;
  --inv-card: #1F1E1B;
  --inv-fg: #F1EBDD;
  --inv-meta: #A9ACA6;
  --grain: 0.22;

  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --snap: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: clamp(16px, 4vw, 72px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151515; --paper-deep: #1C1B19; --card: #211F1C; --ink: #F1EBDD; --ink-soft: #D3CCBC;
    --meta: #A9ACA6; --orange-ink: #EE8457; --line: rgba(241,235,221,.8); --hair: rgba(241,235,221,.16);
    --shadow: 0 22px 44px -20px rgba(0,0,0,.85); --shadow-sm: 0 8px 18px -10px rgba(0,0,0,.8);
    --inv-bg: #F1EBDD; --inv-card: #FBF7EF; --inv-fg: #151515; --inv-meta: #5E635E; --grain: .14; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151515; --paper-deep: #1C1B19; --card: #211F1C; --ink: #F1EBDD; --ink-soft: #D3CCBC;
  --meta: #A9ACA6; --orange-ink: #EE8457; --line: rgba(241,235,221,.8); --hair: rgba(241,235,221,.16);
  --shadow: 0 22px 44px -20px rgba(0,0,0,.85); --shadow-sm: 0 8px 18px -10px rgba(0,0,0,.8);
  --inv-bg: #F1EBDD; --inv-card: #FBF7EF; --inv-fg: #151515; --inv-meta: #5E635E; --grain: .14; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--orange); color: #151515; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 120; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografia */
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.01em; }
.h2 { font-size: clamp(46px, 6.6vw, 104px); max-width: 15ch; line-height: 0.96; padding-top: 0.06em; }
.accent { color: var(--orange-ink); }
.lede { margin-top: 20px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.code { font: 600 13px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
.keyword { font: 400 14px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--meta); }
.keyword b { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--orange) 45%, transparent) 55%); padding: 0 2px; }
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
  font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap; border: 2px solid var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.btn i { font-size: 20px; }
.btn:hover { box-shadow: 5px 5px 0 var(--orange); }
.btn:active { box-shadow: 0 0 0 var(--orange); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--orange { background: var(--orange); color: #151515; border-color: #151515; }
.btn--orange:hover { box-shadow: 5px 5px 0 #151515; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }

/* Barra di avanzamento: un nastro arancio in cima */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 45; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color .3s var(--ease), transform .45s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--orange); color: #151515; font: 400 22px/1 var(--f-display); transform: rotate(-4deg); transition: transform .4s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(8deg) scale(1.08); }
.nav__name { font: 400 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font: 600 13px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 420px) { .nav .btn span { display: none; } .nav .btn { width: 42px; padding: 0; justify-content: center; } }

/* INTRO */
.intro { display: none; }
.js .intro.is-on, .intro-pending .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
}
.intro__inner { position: relative; display: grid; justify-items: center; gap: 12px; }
.intro__count { font: 600 15px/1 var(--f-mono); letter-spacing: .12em; color: var(--meta); }
.intro__word { font-size: clamp(76px, 17vw, 260px); line-height: .82; overflow: hidden; padding: 0 .02em .02em; }
.intro__stamp { position: absolute; right: -4%; bottom: -12%; font-size: clamp(22px, 3vw, 44px); opacity: 0; }
.intro__label { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--meta); }

/* HERO */
.hero { padding: calc(68px + clamp(24px, 4vw, 56px)) 0 clamp(48px, 6vw, 88px); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: calc(100dvh - 68px - 120px); }
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin-top: 22px; font-size: clamp(60px, 7vw, 124px); }
.hero__title .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.04em; }
.hero__sub { margin-top: 28px; max-width: 40ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.collage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 640px; justify-self: end; z-index: 3; }
.collage > * { position: absolute; will-change: transform; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--r, 0deg)); }
.collage__paper {
  inset: 6% 4% 8% 10%; background: var(--card); box-shadow: var(--shadow);
  clip-path: polygon(0 2%, 8% 0, 22% 1.5%, 40% 0, 58% 1%, 77% 0, 100% 1.6%, 99% 22%, 100% 47%, 98.6% 70%, 100% 100%, 80% 98.6%, 61% 100%, 40% 98.4%, 18% 100%, 0 98.8%, 1.2% 74%, 0 50%, 1% 26%);
}
.collage__paper::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.4px); background-size: 7px 7px; mask-image: linear-gradient(160deg, transparent 35%, #000 100%); -webkit-mask-image: linear-gradient(160deg, transparent 35%, #000 100%); }
.piece { filter: drop-shadow(0 14px 18px rgba(40, 30, 15, 0.28)); }
.piece--newspaper { width: 48%; left: 0; top: 4%; --r: -10deg; }
.piece--computer { width: 66%; left: 18%; top: 18%; --r: 2deg; }
.piece--hand { width: 46%; right: -4%; top: 2%; --r: 14deg; }
.piece--tube { width: 38%; left: 2%; bottom: 0; --r: -18deg; }
.piece--sphere { width: 30%; right: 4%; bottom: 4%; }
.tape { display: block; width: 30%; height: 9%; background: var(--orange); opacity: .94; box-shadow: var(--shadow-sm); clip-path: polygon(2% 6%, 98% 0, 100% 40%, 97% 100%, 1% 94%, 3% 55%); }
.tape--a { left: 16%; top: 15%; --r: -14deg; }
.tape--b { right: 10%; bottom: 30%; width: 22%; --r: 22deg; }
.reg { width: 26px; height: 26px; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--line); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.reg--tl { left: 0; top: 0; } .reg--br { right: 0; bottom: 0; }

/* Timbro */
.stamp {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 8px;
  border: 4px solid var(--orange-ink); color: var(--orange-ink);
  font: 400 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em;
  transform: rotate(-6deg);
}
.collage > .stamp--hero { --r: -6deg; left: 30%; bottom: 2%; font-size: clamp(26px, 3vw, 40px); background: color-mix(in srgb, var(--card) 72%, transparent); }

/* NASTRO */
.tapeband { position: relative; z-index: 4; background: var(--orange); color: #151515; transform: rotate(-1.6deg); margin: 8px -20px 0; overflow: hidden; border-block: 2px solid #151515; box-shadow: var(--shadow-sm); }
.tapeband__track { display: flex; width: max-content; padding: 14px 0 10px; }
.tapeband__set { display: flex; gap: 28px; padding-right: 28px; }
.tapeband span, .tapeband i { font: 400 clamp(28px, 3.4vw, 48px)/1 var(--f-display); text-transform: uppercase; font-style: normal; }
.tapeband i { opacity: .45; }
html:not(.has-gsap) .tapeband__track { animation: marquee 38s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tapeband__track { animation: none !important; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* MANIFESTO */
.manifesto { min-height: 100dvh; display: grid; align-items: center; padding-block: clamp(96px, 12vw, 160px); }
.manifesto__text { font: 800 clamp(32px, 4.8vw, 76px)/1.1 var(--f-body); letter-spacing: -0.028em; max-width: 21ch; }
.mark-circle { position: relative; display: inline-block; color: var(--orange-ink); }
.mark-circle svg { position: absolute; left: -14%; top: -18%; width: 128%; height: 136%; overflow: visible; pointer-events: none; }
.mark-circle path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.has-gsap .mark-circle path { stroke-dashoffset: 1; }
.mark-strike { position: relative; display: inline-block; --s: 1; }
.has-gsap .mark-strike { --s: 0; }
.mark-strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: .09em; background: var(--orange); transform: scaleX(var(--s)) rotate(-3deg); transform-origin: left; }

/* REPERTI: cassetto orizzontale */
.reperti { position: relative; padding: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.reperti__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); padding: 40px var(--gutter); width: max-content; }
.panel { flex: none; width: min(560px, 82vw); }
.panel--intro .h2 { margin-top: 16px; }
.panel__hint { margin-top: 32px; display: inline-flex; gap: 10px; align-items: center; font: 600 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--meta); }
.panel__hint i { font-size: 20px; color: var(--orange-ink); }
.panel--outro { display: grid; gap: 32px; justify-items: start; padding-right: 6vw; }
.panel__big { font-size: clamp(54px, 7vw, 112px); max-width: 9ch; }
.card { flex: none; width: clamp(280px, 26vw, 380px); background: var(--card); padding: 14px 14px 22px; box-shadow: var(--shadow); position: relative; transform: rotate(var(--rot, 0deg)); }
.card:nth-of-type(odd) { --rot: -1.6deg; } .card:nth-of-type(even) { --rot: 1.4deg; }
.card--carousel { width: clamp(320px, 30vw, 440px); }
.card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: var(--orange); opacity: .92; transform: rotate(-3deg); clip-path: polygon(2% 6%, 98% 0, 100% 40%, 97% 100%, 1% 94%, 3% 55%); z-index: 2; }
.card__media { position: relative; background: #151515; overflow: hidden; }
.card--video .card__media { aspect-ratio: 9 / 16; }
.card--video video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card--video:hover video { transform: scale(1.04); }
.card__media--stack { background: transparent; overflow: visible; aspect-ratio: 4 / 5; }
.card__media--stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-sm); transition: transform .7s var(--ease); }
.card__media--stack .behind { transform: rotate(4deg) translate(10px, 6px); }
.card--carousel:hover .behind { transform: rotate(9deg) translate(40px, 12px); }
.card--carousel:hover .card__media--stack img:last-child { transform: rotate(-2deg) translate(-8px, -4px); }
.card__meta { padding: 18px 6px 0; display: grid; gap: 10px; }
.card__title { font: 400 clamp(26px, 2.2vw, 34px)/0.95 var(--f-display); text-transform: uppercase; }
.card__meta p:not(.code):not(.keyword) { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center; background: var(--orange); color: #151515; border: 2px solid #151515; font-size: 32px; cursor: pointer; transition: transform .35s var(--ease), opacity .3s var(--ease); }
.play::after { content: ""; position: absolute; inset: -10px; border: 2px solid var(--orange); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .5s var(--ease); }
.play:hover { transform: scale(1.08) rotate(-5deg); }
.play:hover::after { opacity: 1; transform: scale(1); }
.card.is-playing .play { opacity: 0; pointer-events: none; }
.reperti__bar { position: relative; margin: 8px var(--gutter) 0; height: 2px; background: var(--hair); }
.reperti__bar span { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
/* touch, senza JS o motion ridotto: scorrimento nativo con snap */
.reperti.is-native { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reperti.is-native::-webkit-scrollbar { display: none; }
.reperti.is-native .card, .reperti.is-native .panel { scroll-snap-align: center; }
html:not(.has-gsap) .reperti { overflow-x: auto; }

/* SERIE */
.serie { position: relative; padding-block: clamp(96px, 12vw, 170px); background: var(--paper-deep); border-block: 2px solid var(--line); }
.serie__list { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; border-top: 2px solid var(--line); }
.serie__row { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 34ch); align-items: center; column-gap: 24px; padding: 22px 0; border-bottom: 2px solid var(--line); outline: none; cursor: default; isolation: isolate; }
.serie__row::before { content: ""; position: absolute; inset: 0 -20px; background: var(--orange); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.serie__row.is-active::before, .serie__row:focus-visible::before { transform: scaleY(1); }
.serie__day { font: 600 14px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--meta); transition: color .3s; }
.serie__name { overflow: hidden; display: block; }
.serie__name > span { display: inline-block; font: 400 clamp(52px, 7.4vw, 120px)/0.9 var(--f-display); text-transform: uppercase; transition: transform .6s var(--ease), color .3s; }
.serie__desc { color: var(--ink-soft); font-size: 16px; transition: color .3s; }
.serie__row.is-active .serie__name > span, .serie__row:focus-visible .serie__name > span { transform: translateX(18px) skewX(-6deg); color: #151515; }
.serie__row.is-active .serie__day, .serie__row.is-active .serie__desc, .serie__row:focus-visible .serie__day, .serie__row:focus-visible .serie__desc { color: #151515; }
.serie__thumb { display: none; }
.follow { position: absolute; left: 0; top: 0; width: 230px; aspect-ratio: 9/16; pointer-events: none; z-index: 5; opacity: 0; }
.follow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); clip-path: inset(100% 0 0 0); transition: clip-path .55s var(--ease); border: 6px solid var(--card); }
.follow img.is-on { clip-path: inset(0 0 0 0); z-index: 2; }

/* FASCICOLI */
.fascicoli { padding-block: clamp(96px, 12vw, 180px); }
.fascicoli__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fascicoli__photo { margin: 0; position: sticky; top: 100px; box-shadow: var(--shadow); overflow: hidden; }
.fascicoli__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform-origin: 50% 30%; }
.how { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--line); }
.how li { padding: 20px 18px; display: grid; gap: 4px; position: relative; transition: background-color .3s; }
.how li:hover { background: var(--card); }
.how li + li { border-left: 2px solid var(--line); }
.how i { font-size: 28px; color: var(--orange-ink); margin-bottom: 8px; transition: transform .4s var(--ease); }
.how li:hover i { transform: translateY(-4px) rotate(-8deg); }
.how b { font-weight: 800; font-size: 16px; }
.how span { font-size: 14px; color: var(--meta); }
.folders { margin-top: 160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.folder { position: relative; height: 340px; perspective: 1200px; outline: none; cursor: pointer; clip-path: inset(-100vh -80px 0 -80px); }
.folder__back, .folder__front { position: absolute; left: 0; right: 0; bottom: 0; background: #E9D5AE; color: #151515; }
.folder__back { top: 18px; box-shadow: var(--shadow); }
.folder__tab { position: absolute; top: -22px; left: 0; padding: 6px 14px 4px; background: #E9D5AE; font: 600 13px/1.2 var(--f-mono); letter-spacing: .08em; }
.folder__sheet { position: absolute; left: 7%; width: 86%; top: 34px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); transition: transform .8s var(--ease); }
.folder__front { top: 74px; padding: 26px 24px; display: grid; gap: 10px; align-content: start; background: linear-gradient(#EFDDB9, #E4CDA1); transform-origin: bottom; transition: transform .7s var(--ease); box-shadow: 0 -10px 22px -16px rgba(0,0,0,.4); }
.folder__front h3 { font: 400 30px/0.95 var(--f-display); text-transform: uppercase; max-width: 14ch; }
.folder__front p { font-size: 15px; color: #3B3A36; }
.folder .keyword { color: #4a4d49; } .folder .keyword b { color: #151515; }
.folder:hover .folder__sheet, .folder:focus-visible .folder__sheet, .folder.is-open .folder__sheet { transform: translateY(-40%) rotate(-3deg); }
.folder--alt:hover .folder__sheet, .folder--alt:focus-visible .folder__sheet, .folder--alt.is-open .folder__sheet { transform: translateY(-40%) rotate(3deg); }
.folder:hover .folder__front, .folder:focus-visible .folder__front, .folder.is-open .folder__front { transform: rotateX(-12deg); }

/* METODO: lo studio. Sempre nero, in entrambi i temi: è il "laboratorio" dell'archivio. */
.metodo { background: #151515; color: #F1EBDD; padding-block: clamp(96px, 12vw, 160px); --m-meta: #A9ACA6; --m-line: rgba(241,235,221,.16); }
.metodo .lede { color: rgba(241,235,221,.78); }
.metodo .h2 { color: #F1EBDD; }
.studio { margin-top: clamp(40px, 6vw, 72px); }
.has-gsap .studio { min-height: 100dvh; display: grid; align-items: center; padding-block: 84px 28px; margin-top: 0; }
.studio__grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; }

.rail { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 6px; }
.rail::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--m-line); }
.rail::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--orange); transform: scaleY(var(--rp, 0)); transform-origin: top; }
.rail__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px 0; position: relative; opacity: .38; transition: opacity .5s var(--ease); }
.rail__item::before { content: ""; position: absolute; left: -32px; top: 22px; width: 14px; height: 14px; background: #151515; border: 2px solid var(--m-line); transform: rotate(45deg); transition: background-color .4s, border-color .4s; }
.rail__item.is-active, .rail__item.is-done { opacity: 1; }
.rail__item.is-done { opacity: .62; }
.rail__item.is-active::before, .rail__item.is-done::before { background: var(--orange); border-color: var(--orange); }
.rail__n { font: 400 54px/0.9 var(--f-display); color: var(--orange); }
.rail__body h3 { font: 400 clamp(34px, 3.2vw, 50px)/0.95 var(--f-display); text-transform: uppercase; }
.rail__body p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: rgba(241,235,221,.8); max-width: 34ch; }
.has-gsap .rail__body p, .has-gsap .rail__body .sticker { display: none; }
.has-gsap .rail__item.is-active .rail__body p { display: block; }
.has-gsap .rail__item.is-active .rail__body .sticker { display: inline-flex; }
.sticker { display: inline-flex; align-items: center; gap: 8px; margin: 12px 8px 0 0; padding: 7px 12px 7px 9px; background: #FBF7EF; color: #151515; font: 600 12.5px/1 var(--f-mono); letter-spacing: .04em; transform: rotate(-2deg); box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.sticker + .sticker { transform: rotate(2deg); }
.sticker img { width: 20px; height: 20px; object-fit: contain; }
.sticker i { font-size: 20px; }

/* il tavolo di lavoro */
.stage { background: #F4EEE1; color: #151515; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(241,235,221,.1); position: relative; }
.stage__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 2px solid #151515; background: #FBF7EF; }
.stage__dots { display: flex; gap: 6px; }
.stage__dots i { width: 10px; height: 10px; border: 2px solid #151515; }
.stage__dots i:first-child { background: var(--orange); }
.stage__label { font: 600 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.stage__meter { margin-left: auto; width: 120px; height: 6px; border: 1.5px solid #151515; }
.stage__meter span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.stage__body { position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background-image: linear-gradient(rgba(21,21,21,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(21,21,21,.05) 1px, transparent 1px); background-size: 28px 28px; }
.scene { padding: 26px; }
.has-gsap .scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.scene__foot { position: absolute; left: 26px; bottom: 18px; font: 600 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.scene__foot b { color: var(--orange-ink); font-weight: 600; }
.scene__kicker { font: 600 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #5E635E; margin-bottom: 18px; }

/* 01 ricerca: ritagli di fonti */
.clip { position: absolute; left: var(--l); top: var(--t); width: 30%; padding: 14px 14px 16px; background: #FBF7EF; box-shadow: 0 14px 26px -14px rgba(40,30,15,.55); transform: rotate(var(--r)); display: grid; gap: 6px; }
.clip__src { font: 600 11.5px/1 var(--f-mono); letter-spacing: .06em; color: #5E635E; }
.clip__t { font: 400 clamp(17px, 1.5vw, 23px)/1 var(--f-display); text-transform: uppercase; }
.clip__d { font: 400 12px/1 var(--f-mono); color: #3B3A36; }
.clip__ok { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--orange); color: #151515; border: 2px solid #151515; font-size: 16px; }
.clip--bad .clip__t, .clip--bad .clip__d { color: #6E716C; }
.clip__stamp { position: absolute; right: 8px; bottom: 10px; border: 3px solid #B4532B; color: #B4532B; font: 400 20px/1 var(--f-display); text-transform: uppercase; padding: 4px 8px 2px; transform: rotate(-12deg); background: rgba(251,247,239,.8); }
.has-gsap .clip__stamp, .has-gsap .clip__ok { opacity: 0; }

/* 02 testo: lo script si scrive */
.sline { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px 0; border-top: 2px solid #151515; }
.sline:last-child { border-bottom: 2px solid #151515; }
.sline__tag { justify-self: start; padding: 6px 10px 4px; background: #151515; color: #F1EBDD; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.sline:nth-of-type(1) .sline__tag { background: var(--orange); color: #151515; }
.sline p { font: 800 clamp(18px, 1.9vw, 28px)/1.2 var(--f-body); letter-spacing: -.02em; }
.sline .tc { opacity: 1; }
.has-gsap .sline .tc { opacity: 0; }
.caret { display: inline-block; width: .5em; height: 1em; background: var(--orange); vertical-align: -0.12em; margin-left: 2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 03 voce: tre take */
.scene--voce { display: grid; align-content: center; gap: 18px; }
.take { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) 170px; align-items: center; gap: 16px; padding: 12px 14px; background: #FBF7EF; box-shadow: 0 10px 22px -14px rgba(40,30,15,.5); }
.take__n { font: 600 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.take__note { font: 600 13px/1.2 var(--f-mono); color: #5E635E; }
.take::after { content: ""; position: absolute; left: 100px; right: 186px; top: 50%; height: 3px; background: #B4532B; transform: scaleX(var(--x, 0)); transform-origin: left; }
.take[data-take="ok"] { outline: 3px solid var(--orange); }
.take__stamp { position: absolute; right: 18px; top: -16px; border: 3px solid #B4532B; color: #B4532B; background: #FBF7EF; font: 400 22px/1 var(--f-display); text-transform: uppercase; padding: 4px 10px 2px; transform: rotate(-8deg); }
.has-gsap .take__stamp { opacity: 0; }
.wave { height: 54px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; min-width: 2px; background: #151515; height: var(--h); border-radius: 0; transform-origin: center; }
.take--cut .wave i:nth-child(n+40) { opacity: .12; }
.take[data-take="ok"] .wave i { background: var(--orange-ink); }
.voce__head { position: absolute; top: 14px; bottom: 14px; left: 0; width: 2px; background: var(--orange); box-shadow: 0 0 0 4px rgba(228,106,58,.2); }
.has-gsap .voce__head { left: calc(26px + 100px); }
html:not(.has-gsap) .voce__head { display: none; }

/* 04 montaggio: anteprima + timeline */
.scene--montaggio { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.phone { aspect-ratio: 9 / 16; max-height: 100%; background: #F1EBDD; border: 8px solid #151515; padding: 14px 12px; display: grid; align-content: start; gap: 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); background-image: radial-gradient(rgba(21,21,21,.18) 1px, transparent 1.3px); background-size: 6px 6px; }
.phone__code { font: 600 9.5px/1 var(--f-mono); letter-spacing: .08em; border-bottom: 1.5px solid #151515; padding-bottom: 6px; }
.phone__words { font: 400 clamp(20px, 2.1vw, 34px)/0.98 var(--f-display); text-transform: uppercase; }
.phone__words span { display: inline-block; }
.phone__words .hl { background: var(--orange); padding: 0 .08em; transform: rotate(-2deg); }
.tl { position: relative; display: grid; gap: 10px; padding: 14px; background: #151515; color: #F1EBDD; }
.tl__track { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 40px; }
.tl__label { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #A9ACA6; }
.wave--line { height: 40px; }
.wave--line i { background: #F1EBDD; }
.tl__chips { position: relative; height: 34px; }
.tl__chips span { position: absolute; top: 4px; left: var(--x); padding: 5px 6px 3px; background: #2A2926; color: #F1EBDD; font: 600 10px/1 var(--f-mono); white-space: nowrap; transition: background-color .2s; }
.tl__chips span.is-on { background: var(--orange); color: #151515; }
.tl__blocks { display: flex; gap: 4px; height: 30px; }
.tl__blocks i { width: var(--w); background: repeating-linear-gradient(135deg, #3A3934 0 6px, #2E2D29 6px 12px); border: 1px solid #55534D; }
.tl__head { position: absolute; top: 6px; bottom: 6px; left: calc(14px + 62px + 10px); width: 2px; background: var(--orange); }
.tl__head::before { content: ""; position: absolute; top: -6px; left: -6px; border: 7px solid transparent; border-top-color: var(--orange); }
html:not(.has-gsap) .tl__head { display: none; }
.stage__stamp { position: absolute; right: 7%; bottom: 9%; font-size: clamp(30px, 3.6vw, 56px); background: rgba(251,247,239,.9); z-index: 5; }
.has-gsap .stage__stamp { opacity: 0; }
html:not(.has-gsap) .stage__stamp { display: none; }
html:not(.has-gsap) .stage__body { aspect-ratio: auto; }
html:not(.has-gsap) .scene--ricerca { position: relative; min-height: 420px; }

.rules { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); }
.rules__title { font: 400 clamp(36px, 4vw, 56px)/0.95 var(--f-display); text-transform: uppercase; max-width: 10ch; }
.rules__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.rules__list li { font-size: 18px; line-height: 1.45; padding-left: 26px; position: relative; }
.rules__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border: 2px solid var(--orange); transform: rotate(45deg); }

/* INDICATORE DI SCROLL: righello verticale sul bordo destro */
.edge { position: fixed; right: clamp(10px, 1.4vw, 22px); top: 50%; z-index: 44; transform: translateY(-50%); height: min(72vh, 640px); width: 40px; display: none; flex-direction: column; align-items: center; gap: 14px; color: var(--ink); pointer-events: none; }
.has-gsap .edge { display: flex; }
.edge__hint, .edge__section { writing-mode: vertical-rl; white-space: nowrap; }
.edge__hint { font: 600 10.5px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--meta); }
.edge__section { font: 400 19px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; min-height: 7.5em; }
.edge__track { position: relative; flex: 1; width: 14px; min-height: 120px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 10px) center / 8px 100% no-repeat,
              repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 50px) center / 14px 100% no-repeat;
  opacity: .9; }
.edge__track::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: currentColor; transform: translateX(-50%); opacity: .5; }
.edge__fill { position: absolute; left: 50%; top: 0; width: 3px; height: 100%; margin-left: -1.5px; background: var(--orange); transform: scaleY(0); transform-origin: top; }
.edge__thumb { position: absolute; left: 50%; top: 0; width: 28px; height: 40px; margin-left: -14px; background: var(--orange); color: #151515; border: 2px solid #151515; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); }
.edge__thumb span { writing-mode: vertical-rl; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; }
.edge__btn { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); cursor: pointer; padding: 0; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.edge__btn i { font-size: 20px; display: block; }
.edge__btn:hover { background: var(--orange); color: #151515; border-color: #151515; transform: translateX(-3px); }
.edge.on-dark { color: #F1EBDD; }
.edge.on-dark .edge__hint { color: #A9ACA6; }
.edge.on-dark .edge__btn { background: #F1EBDD; color: #151515; border-color: #F1EBDD; }
/* il contenuto lascia spazio al righello su schermi larghi */
@media (min-width: 1200px) { .has-gsap .wrap { padding-right: max(var(--gutter), 84px); } .has-gsap .footer__word { font-size: min(360px, calc((min(100vw, 1400px) - var(--gutter) - 84px) * 0.268)); } }
@media (max-width: 860px) {
  .edge { right: 4px; width: 16px; height: 46vh; gap: 8px; }
  .edge__hint, .edge__section { display: none; }
  .edge__track { width: 8px; background: none; }
  .edge__thumb { width: 14px; height: 26px; margin-left: -7px; border-width: 1.5px; }
  .edge__thumb span { display: none; }
  .edge__btn { display: none; }
}

/* REPERTO ZERO */
.zero { padding-block: clamp(96px, 12vw, 180px); }
.zero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.zero__fig { margin: 0; display: grid; gap: 16px; justify-items: start; perspective: 1000px; }
.zero__photo { max-width: 560px; box-shadow: var(--shadow); transform: rotate(-2.5deg); will-change: transform; }
.zero__sheet .h2 { margin-bottom: 36px; }
.spec { border-top: 2px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.spec dt { font: 600 13px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--meta); }
.spec dd { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.4; }
.spec a { text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* AZIENDE */
.aziende { padding-bottom: clamp(96px, 12vw, 180px); }
.bento { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.tile { position: relative; overflow: hidden; min-height: 280px; padding: 28px; display: flex; align-items: flex-end; border: 2px solid var(--line); isolation: isolate; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%); }
.tile:hover::after { opacity: 1; }
.tile--orange { grid-row: span 2; background: var(--orange); color: #151515; border-color: #151515; min-height: 580px; }
.tile--paper { background: var(--paper-deep); }
.tile--card { background: var(--card); }
.tile__text { position: relative; z-index: 1; max-width: 32ch; display: grid; gap: 8px; }
.tile h3 { font: 400 clamp(32px, 3.2vw, 48px)/0.95 var(--f-display); text-transform: uppercase; }
.tile p { font-size: 16px; opacity: .86; }
.tile__img { position: absolute; transition: transform .8s var(--ease); filter: drop-shadow(0 18px 20px rgba(40,30,15,.3)); }
.tile__img--sphere { width: 64%; right: -6%; top: -4%; }
.tile__img--phone { width: 46%; right: -2%; top: -10%; transform: rotate(10deg); }
.tile__img--computer { width: 48%; right: -4%; top: -14%; transform: rotate(-6deg); }
.tile:hover .tile__img--sphere { transform: translate(-30px, 24px) scale(1.06); }
.tile:hover .tile__img--phone { transform: rotate(0deg) translateY(14px); }
.tile:hover .tile__img--computer { transform: rotate(0deg) translateY(14px); }
.aziende__cta { margin-top: 36px; }

/* FOOTER */
.footer { border-top: 2px solid var(--line); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.footer__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.footer__hello { font-size: clamp(40px, 5vw, 80px); }
.stamp--footer { font-size: clamp(30px, 3vw, 46px); }
.footer__word { font-size: clamp(88px, 25.4vw, 372px); line-height: .8; margin-top: clamp(40px, 6vw, 80px); white-space: nowrap; letter-spacing: -0.015em; display: flex; overflow: hidden; padding-top: .05em; }
.footer__word .char { transition: color .25s; cursor: default; }
.footer__word .char:hover { color: var(--orange); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; margin-top: 18px; border-top: 2px solid var(--line); font: 400 13px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.footer__bar a { text-decoration: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.footer__bar a:hover { color: var(--orange-ink); }

/* Grana */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: var(--grain); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; } }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) { .grain { animation: grain 1.2s steps(6) infinite; } }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* Stato iniziale degli elementi animati (solo quando GSAP è attivo) */
.has-gsap [data-reveal] { opacity: 0; transform: translateY(30px); }
.has-gsap .stamp--footer, .has-gsap [data-stamp-hero] { opacity: 0; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .rules { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; gap: 18px; }
  .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; gap: 8px; }
  .rail::before, .rail::after, .rail__item::before { display: none; }
  .rail__item { grid-template-columns: 1fr; gap: 2px; padding: 8px 0 0; border-top: 3px solid var(--m-line); }
  .rail__item.is-active, .rail__item.is-done { border-top-color: var(--orange); }
  .rail__n { font-size: 30px; }
  .rail__body h3 { font-size: clamp(18px, 3.4vw, 30px); }
  .has-gsap .rail__item.is-active .rail__body p, .has-gsap .rail__item.is-active .rail__body .sticker { display: none; }
  .has-gsap .studio { padding-block: 76px 16px; }
  .serie__row { grid-template-columns: 70px minmax(0, 1fr); }
  .serie__desc { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .collage { justify-self: center; max-width: 520px; margin-top: 8px; }
  .fascicoli__grid, .zero__grid { grid-template-columns: 1fr; }
  .fascicoli__photo { position: static; max-width: 520px; }
  .fascicoli__photo img { aspect-ratio: 16 / 10; }
  .bento { grid-template-columns: 1fr; }
  .tile--orange { grid-row: auto; min-height: 420px; }
  .follow { display: none; }
  .serie__row { grid-template-columns: minmax(0, 1fr) 76px; row-gap: 6px; }
  .serie__day, .serie__name, .serie__desc { grid-column: 1; margin-top: 0; }
  .serie__thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: 76px; aspect-ratio: 9/16; object-fit: cover; box-shadow: var(--shadow-sm); transform: rotate(3deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stage__body { aspect-ratio: 4 / 5.4; }
  .scene { padding: 16px; }
  .clip { width: 46%; padding: 10px; }
  .clip:nth-child(1) { --l: 2% !important; --t: 4% !important; } .clip:nth-child(2) { --l: 50% !important; --t: 8% !important; }
  .clip:nth-child(3) { --l: 4% !important; --t: 34% !important; } .clip:nth-child(4) { --l: 50% !important; --t: 40% !important; }
  .clip:nth-child(5) { --l: 22% !important; --t: 64% !important; }
  .sline { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .take { grid-template-columns: 1fr; gap: 8px; }
  .take::after { left: 14px; right: 14px; top: 58%; }
  .take__stamp { top: auto; bottom: 10px; right: 10px; }
  .scene--montaggio { grid-template-columns: 1fr; gap: 12px; align-content: start; }
  .phone { aspect-ratio: auto; height: 46%; min-height: 200px; }
  .stage__meter { width: 70px; }

  .hero__title { font-size: clamp(50px, 15.5vw, 84px); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .how { grid-template-columns: 1fr; }
  .how li + li { border-left: 0; border-top: 2px solid var(--line); }
  .folders { grid-template-columns: 1fr; gap: 150px; margin-top: 150px; }
  .rules__list { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .card { width: 78vw; } .card--carousel { width: 82vw; }
}
