/* Photoshop — raccolta di progetti di digital imaging.
   Le immagini sono le protagoniste: quasi tutto è a tutto schermo e il testo è quello
   dell'originale Readymag, niente di più. Identità: nero #070707, Gotham (Black ciano per le
   tappe, Thin per «Process», Bold Italic per il claim), ciano #51F6F1, menta #6DFFC0,
   lime #E5FF87, rosso #FF3131, le guide magenta e il riquadro blu di Photoshop. */

@font-face { font-family: 'custom_146852'; font-weight: 100; font-style: normal; font-display: swap; src: url('../assets/photoshop/fonts/gotham-thin.woff2') format('woff2'); }
@font-face { font-family: 'custom_146852'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/photoshop/fonts/gotham-light.woff2') format('woff2'); }
@font-face { font-family: 'custom_146852'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/photoshop/fonts/gotham-book.woff2') format('woff2'); }
@font-face { font-family: 'custom_146852'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/photoshop/fonts/gotham-medium.woff2') format('woff2'); }
@font-face { font-family: 'custom_146852'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/photoshop/fonts/gotham-bold.woff2') format('woff2'); }
@font-face { font-family: 'custom_146852'; font-weight: 700; font-style: italic; font-display: swap; src: url('../assets/photoshop/fonts/gotham-bold-italic.woff2') format('woff2'); }
@font-face { font-family: 'custom_146852'; font-weight: 900; font-style: normal; font-display: swap; src: url('../assets/photoshop/fonts/gotham-black.woff2') format('woff2'); }

:root.project-photoshop {
  --ink: #070707;
  --ink-2: #171717;
  --fog: #d8d8d8;
  --cyan: #51f6f1;
  --cyan-deep: #169d99;
  --mint: #6dffc0;
  --lime: #e5ff87;
  --red: #ff3131;
  --guide: #ff00e6;
  --select: #0066ff;
  --g: clamp(16px, 4vw, 64px);
  --font: 'custom_146852', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: var(--project-header-height, 80px);
  background: var(--ink);
}
.project-photoshop *,
.project-photoshop *::before,
.project-photoshop *::after {
  box-sizing: border-box;
}
.project-photoshop body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:where(.ps, .portfolio-footer) :where(h1, h2, h3, p, figure, blockquote) {
  margin: 0;
  padding: 0;
}
:where(.ps) img {
  display: block;
  max-width: 100%;
  height: auto;
}
:where(.project-photoshop) a {
  color: inherit;
  text-decoration: none;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--ink);
  font: 500 14px/1 var(--font);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.ps :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Parole delle tappe: Gotham Black ciano, enormi, come nell'originale ------------------------ */
.word {
  margin: 0;
  color: var(--cyan);
  background: linear-gradient(180deg, var(--cyan) 35%, var(--cyan-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font: 900 clamp(52px, 10.2vw, 210px) / 0.86 var(--font);
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
}

/* APERTURA --------------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: 50% 40%;
}
.hero::after {
  /* il velo dell'originale: il composite resta luminoso e sfuma nel nero in basso */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(7 7 7 / 25%) 0%, rgb(7 7 7 / 0%) 30%, rgb(7 7 7 / 8%) 62%, var(--ink) 100%);
  pointer-events: none;
}
/* Il banner originale (1024 × 580) occupa lo spazio sotto l'header */
.hero-natgeo {
  position: absolute;
  left: 1.8vw;
  top: calc(var(--header-h) + 2.2vh);
  width: clamp(92px, 12vw, 190px);
  height: auto;
}
.hero-doc {
  position: absolute;
  inset: var(--header-h) 0 0;
  display: grid;
  place-items: center;
  padding-bottom: 6vh;
}
.hero-box {
  position: relative;
  width: 76.6vw;
  padding: clamp(18px, 2.6vw, 44px) 2vw clamp(22px, 3vw, 50px);
  outline: 1px solid var(--select);
  text-align: center;
}
.guide {
  position: absolute;
  background: var(--guide);
  pointer-events: none;
}
.guide-t,
.guide-b {
  left: 50%;
  width: 1px;
  height: 100vh;
}
.guide-t {
  bottom: 100%;
}
.guide-b {
  top: 100%;
}
.guide-l,
.guide-r {
  top: 50%;
  height: 1px;
  width: 50vw;
}
.guide-l {
  right: 100%;
}
.guide-r {
  left: 100%;
}
.hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--font);
  line-height: 1;
}
.ht-main {
  display: block;
  font-weight: 700;
  font-size: clamp(40px, 7.2vw, 150px);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgb(0 0 0 / 22%);
}
.ht-sub {
  display: block;
  margin-top: 0.28em;
  font-weight: 300;
  font-size: clamp(20px, 3.4vw, 72px);
  letter-spacing: 0.5em;
  margin-right: -0.5em;
}
.wave {
  display: inline-block;
  mix-blend-mode: color-dodge;
}
.wave span {
  display: inline-block;
}
.hero-panel {
  position: absolute;
  width: clamp(112px, 14.6vw, 250px);
  box-shadow: 0 18px 50px rgb(0 0 0 / 55%);
}
.hero-panel img {
  width: 100%;
}
.hero-panel-b {
  /* in alto a destra, tagliato dal bordo: scende all'apertura */
  right: 1.3vw;
  top: calc(var(--header-h) - 13vh);
}
.hero-panel-a {
  /* in basso a sinistra: oscilla piano */
  left: 3.8vw;
  top: calc(var(--header-h) + 53.7%);
}
.hero-hint {
  position: absolute;
  right: var(--g);
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  font: 500 10px/1 var(--font);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.motion-ok .hero-bg img {
  animation: hero-open 2.6s var(--out) both;
}
.motion-ok .hero-panel-b {
  animation: panel-drop 1.6s 0.3s var(--out) both;
}
.motion-ok .hero-panel-a {
  animation: panel-swing 6s ease-in-out infinite alternate;
}
.motion-ok .hero-box {
  animation: box-in 1s 0.15s var(--out) both;
}
.motion-ok .guide-t,
.motion-ok .guide-b {
  animation: guide-v 1.2s 0.5s var(--out) both;
}
.motion-ok .guide-l,
.motion-ok .guide-r {
  animation: guide-h 1.2s 0.5s var(--out) both;
}
.motion-ok .guide-t {
  transform-origin: bottom;
}
.motion-ok .guide-b {
  transform-origin: top;
}
.motion-ok .guide-l {
  transform-origin: right;
}
.motion-ok .guide-r {
  transform-origin: left;
}
.motion-ok .wave span {
  animation: wave-distort 2s ease-in-out infinite;
}
.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; }
.wave span:nth-child(6) { animation-delay: 0.5s; }
@keyframes hero-open {
  from { transform: scale(1.14); filter: blur(10px); }
  to { transform: scale(1); filter: blur(0); }
}
@keyframes panel-drop {
  from { transform: translateY(-14vh); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes panel-swing {
  from { transform: translateY(0); }
  to { transform: translateY(-9vh); }
}
@keyframes box-in {
  from { outline-color: transparent; opacity: 0; transform: scale(0.96); }
  to { outline-color: var(--select); opacity: 1; transform: none; }
}
@keyframes guide-v {
  from { transform: scaleY(0); }
  to { transform: none; }
}
@keyframes guide-h {
  from { transform: scaleX(0); }
  to { transform: none; }
}
/* lo stesso movimento di FUTURE nell'embed originale */
@keyframes wave-distort {
  0%, 100% { transform: none; filter: none; }
  25% { transform: translateY(-5px) skewX(3deg) scale(1.05); filter: blur(1px) contrast(120%) brightness(90%); }
  50% { transform: translateY(5px) skewX(-3deg) scale(1.1); filter: blur(2px) contrast(150%) brightness(80%); }
  75% { transform: translateY(-3px) skewX(2deg) scale(1.05); filter: blur(1.5px) contrast(110%) brightness(90%); }
}

/* CONCEPT ---------------------------------------------------------------------------------- */
.concept {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 8vh) var(--g) 12vh;
  overflow: hidden;
  text-align: center;
}
.quote-mark {
  position: absolute;
  left: -0.12em;
  top: -0.08em;
  color: rgb(255 255 255 / 5%);
  font: 400 min(72vw, 900px) / 1 Georgia, 'Times New Roman', serif;
  pointer-events: none;
  user-select: none;
}
.concept-logo {
  width: clamp(110px, 12vw, 180px);
  margin-bottom: clamp(36px, 6vh, 70px);
}
.manifesto {
  max-width: 24em;
  color: var(--fog);
  font: 300 clamp(22px, 2.9vw, 50px) / 1.25 var(--font);
  text-wrap: balance;
}
.manifesto strong {
  font-weight: 700;
}
.c-save { color: var(--cyan); }
.c-doom { color: var(--red); }
.claim {
  margin-top: clamp(56px, 11vh, 120px);
  color: #fff;
  font: italic 700 clamp(22px, 2.5vw, 42px) / 1.15 var(--font);
}
.c-mint { color: var(--mint); }
.c-cyan { color: var(--cyan); }
.c-lime { color: var(--lime); }
.claim-quote {
  max-width: 46em;
  margin-top: 26px;
  color: rgb(216 216 216 / 82%);
  font: 400 clamp(13px, 1.05vw, 17px) / 1.7 var(--font);
}
.claim-link {
  margin-top: 34px;
}
.btn-out {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 30px;
  border: 1.5px solid #fff;
  color: #fff;
  font: 500 13px/1 var(--font);
  transition: background 0.25s, color 0.25s;
}
.btn-out:hover {
  background: #fff;
  color: var(--ink);
}
.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 1s var(--out), transform 1.2s var(--out);
}
.motion-ok [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* PROCESS ---------------------------------------------------------------------------------- */
.process {
  padding-top: 6vh;
}
.process-title {
  margin: 0 0 0 var(--g);
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 85%);
  color: var(--fog);
  font: 100 clamp(34px, 3.6vw, 60px) / 1 var(--font);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Sketch: i due bozzetti entrano da sinistra, la parola in verticale accanto */
.sketch {
  padding: clamp(60px, 10vh, 130px) 0 clamp(40px, 8vh, 110px);
  overflow: hidden;
}
.sketch-stage {
  position: relative;
  height: calc(57vw * 830 / 1174 + 3.6vw);
}
.sketch-front,
.sketch-back {
  position: absolute;
  box-shadow: 0 30px 70px rgb(0 0 0 / 55%);
}
.sketch-front {
  left: 21.3vw;
  top: 0;
  z-index: 2;
  width: 57vw;
}
.sketch-back {
  left: 1.9vw;
  top: 3.6vw;
  width: 47vw;
}
.word-v {
  position: absolute;
  left: 79.6vw;
  top: -0.6vw;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 9.6vw;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan) 40%, var(--cyan-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* AI reference: l'immagine sale e copre la parola */
.airef {
  padding: clamp(50px, 9vh, 120px) 0 clamp(70px, 12vh, 160px);
  overflow: hidden;
}
.airef .word {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-size: clamp(44px, 9vw, 190px);
}
.airef-img {
  position: relative;
  z-index: 2;
  width: 84vw;
  max-width: 1570px;
  margin: -2.6vw auto 0;
  box-shadow: 0 40px 90px rgb(0 0 0 / 60%);
}

/* COMPOSITE -------------------------------------------------------------------------------- */
.composite {
  padding-top: clamp(30px, 6vh, 80px);
}
.composite .word {
  margin-bottom: -1.2vw;
  position: relative;
  z-index: 1;
}
.cz-stage {
  position: relative;
}
.cz-canvas {
  position: relative;
}
.cz-full {
  width: 100%;
}
.cz-sel,
.cz-count {
  display: none;
}
/* mosaico dei tre dettagli (come nell'originale): 2 + 3 a sinistra, 1 a destra */
.cz-mosaic {
  display: grid;
  grid-template-columns: 43fr 57fr;
  grid-template-areas:
    'c a'
    'b a';
  gap: 4px;
  margin-top: 4px;
}
.cz-mosaic .cz-detail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cz-mosaic .cz-detail:nth-child(1) { grid-area: a; }
.cz-mosaic .cz-detail:nth-child(2) { grid-area: b; }
.cz-mosaic .cz-detail:nth-child(3) { grid-area: c; }

/* Con JavaScript e movimento: lo schermo resta fermo e la camera entra nei dettagli */
.cz.is-pinned {
  height: 560vh;
}
.cz.is-pinned .cz-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--ink);
}
.cz.is-pinned .cz-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 2048px;
  height: 1152px;
  transform-origin: 0 0;
}
.cz.is-pinned .cz-full {
  width: 2048px;
  height: 1152px;
  max-width: none;
}
.cz.is-pinned .cz-detail {
  position: absolute;
  max-width: none;
  opacity: 0;
}
.cz.is-pinned .cz-sel {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 0 200vmax rgb(7 7 7 / 62%);
  /* formiche in marcia: la selezione di Photoshop */
  background:
    linear-gradient(90deg, #fff 50%, #000 0) repeat-x 0 0 / 12px 1px,
    linear-gradient(90deg, #fff 50%, #000 0) repeat-x 0 100% / 12px 1px,
    linear-gradient(0deg, #fff 50%, #000 0) repeat-y 0 0 / 1px 12px,
    linear-gradient(0deg, #fff 50%, #000 0) repeat-y 100% 0 / 1px 12px;
  animation: ants 0.7s linear infinite;
}
@keyframes ants {
  to {
    background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px;
  }
}
.cz.is-pinned .cz-count {
  display: block;
  position: absolute;
  right: var(--g);
  bottom: 22px;
  margin: 0;
  padding: 8px 12px;
  background: rgb(7 7 7 / 60%);
  color: rgb(216 216 216 / 80%);
  font: 500 12px/1 var(--font);
  letter-spacing: 0.2em;
  opacity: 0;
  transition: opacity 0.4s;
}
.cz.is-pinned .cz-count.is-on {
  opacity: 1;
}
.cz-count b {
  color: var(--cyan);
  font-weight: 700;
}
.cz.is-pinned + .cz-mosaic {
  display: none;
}

/* LAYERS ----------------------------------------------------------------------------------- */
.layers {
  padding: clamp(110px, 18vh, 220px) 0 clamp(40px, 8vh, 100px);
}
.layers .word {
  margin-bottom: -1vw;
  position: relative;
  z-index: 1;
}
.film {
  position: relative;
}
.film + .film {
  margin-top: clamp(24px, 4vw, 64px);
}
.film-frame {
  position: relative;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background: #000;
}
.layers .film-frame {
  width: min(94vw, 1760px);
  margin: 0 auto;
  box-shadow: 0 40px 90px rgb(0 0 0 / 55%);
}
.film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  opacity: 0.42;
}
.film-frame-empty {
  /* la trasparenza di Photoshop finché il video non c'è */
  background: repeating-conic-gradient(#1d1d1d 0 25%, #141414 0 50%) 0 0 / 24px 24px;
}
.film iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.8s;
}
.film.is-ready iframe {
  opacity: 1;
}
.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border: 1.5px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  background: rgb(7 7 7 / 35%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--out), background 0.3s;
}
.film-play::before {
  content: '';
  position: absolute;
  left: 34px;
  top: 28px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent currentColor;
}
.film-play:hover {
  transform: scale(1.06);
  background: rgb(7 7 7 / 55%);
}
.film.is-loading .film-play,
.film.is-ready .film-play {
  opacity: 0;
  pointer-events: none;
}

/* ALTRI PROGETTI --------------------------------------------------------------------------- */
.more {
  padding-top: clamp(120px, 20vh, 240px);
}
.more-title {
  margin: 0 0 clamp(50px, 9vh, 110px);
  color: #fff;
  font: 900 clamp(34px, 5vw, 92px) / 1 var(--font);
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
}
.pair {
  --ph: min(calc(100svh - var(--header-h) - 40px), 60vw);
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 var(--g);
}
.pair > figure {
  height: var(--ph);
  aspect-ratio: 2 / 3;
  flex: none;
}
.film-v .film-frame {
  height: 100%;
  width: auto;
  box-shadow: 0 30px 70px rgb(0 0 0 / 55%);
}

/* Ritocco: prima / dopo trascinabile */
.compare {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 30px 70px rgb(0 0 0 / 55%);
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
}
.compare-after {
  clip-path: inset(0 0 0 var(--pos));
}
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgb(0 0 0 / 35%);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / 35%);
}
.compare-knob::before,
.compare-knob::after {
  content: '';
  position: absolute;
  top: 19px;
  border-style: solid;
  border-width: 7px 9px;
}
.compare-knob::before {
  left: 5px;
  border-color: transparent var(--ink) transparent transparent;
}
.compare-knob::after {
  right: 5px;
  border-color: transparent transparent transparent var(--ink);
}
.compare-tag {
  position: absolute;
  top: 16px;
  padding: 7px 11px;
  background: rgb(7 7 7 / 72%);
  color: #fff;
  font: 500 11px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-tag-before {
  left: 16px;
}
.compare-tag-after {
  right: 16px;
}
.compare-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare:has(.compare-range:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Fotomontaggi a tutto schermo */
.bleed {
  margin-top: clamp(80px, 14vh, 180px);
  overflow: hidden;
}
.bleed + .bleed {
  margin-top: 6px;
}
.bleed img {
  width: 100%;
}
.motion-ok [data-reveal-img] {
  transition:
    clip-path 1.4s var(--out),
    transform 1.6s var(--out),
    opacity 1s var(--out);
}
.motion-ok .bleed[data-reveal-img] {
  clip-path: inset(9% 0);
}
.motion-ok .bleed[data-reveal-img] img {
  transform: scale(1.12);
  transition: transform 1.8s var(--out);
}
.motion-ok .bleed[data-reveal-img].is-in {
  clip-path: inset(0);
}
.motion-ok .bleed[data-reveal-img].is-in img {
  transform: none;
}

/* I due poster sul grigio #171717 dell'originale */
.posters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  margin-top: clamp(80px, 14vh, 180px);
  padding: clamp(70px, 12vh, 150px) var(--g);
  background: var(--ink-2);
}
.posters img {
  height: min(calc(100svh - var(--header-h) - 60px), 62vw);
  width: auto;
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%);
}
.motion-ok .posters img[data-reveal-img] {
  opacity: 0;
  transform: translateY(60px);
}
.motion-ok .posters img[data-reveal-img]:nth-child(2) {
  transition-delay: 0.15s;
}
.motion-ok .posters img[data-reveal-img].is-in {
  opacity: 1;
  transform: none;
}

/* Multiverse of Madness: la scena a tutto schermo, il poster davanti */
.strange {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(60px, 10vh, 120px) var(--g);
  overflow: hidden;
  isolation: isolate;
}
.strange-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.strange-bg img {
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  opacity: var(--scene-o, 0.4);
  transform: scale(var(--scene-s, 1));
}
.strange::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
.strange-poster {
  height: min(calc(100svh - var(--header-h) - 80px), 120vw);
  width: auto;
  box-shadow: 0 40px 120px rgb(0 0 0 / 70%), 0 0 140px rgb(255 60 30 / 16%);
  transform: translateY(var(--poster-y, 0));
}

/* Footer ----------------------------------------------------------------------------------- */
.project-photoshop .portfolio-footer {
  position: relative;
  padding: 80px var(--g) 28px;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font);
}
.project-photoshop .portfolio-footer .signature img {
  width: 52px;
  height: auto;
  filter: brightness(0) invert(0.88);
}
.project-photoshop .portfolio-footer .label {
  display: block;
  margin: 0;
  color: var(--cyan);
  font: 500 11px/1.4 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-photoshop .footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
  gap: 45px;
  margin-bottom: 64px;
}
.project-photoshop .footer-top > div p:last-child {
  margin-top: 14px;
  color: rgb(216 216 216 / 76%);
  font-size: 14px;
  line-height: 1.7;
}
.project-photoshop .footer-top > a:last-child {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.project-photoshop .project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 36px 0;
  border-top: 1px solid rgb(216 216 216 / 24%);
}
.project-photoshop .project-link p {
  margin: 14px 0 0;
  color: #fff;
  font: 900 clamp(56px, 8vw, 128px) / 0.9 var(--font);
  text-transform: uppercase;
}
.project-sub {
  display: block;
  margin-top: 12px;
  color: rgb(216 216 216 / 70%);
  font-size: 13px;
}
.project-photoshop .project-link > span,
.all-link > span:last-child {
  color: var(--cyan);
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--out);
}
.project-photoshop .project-link:hover > span,
.all-link:hover > span:last-child {
  transform: translate(6px, -6px);
}
.all-link {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  padding: 26px 0;
  border-top: 1px solid rgb(216 216 216 / 24%);
  border-bottom: 1px solid rgb(216 216 216 / 24%);
}
.all-text {
  color: #fff;
  font: 300 clamp(24px, 2.6vw, 38px) / 1.1 var(--font);
}
.all-link > span:last-child {
  margin-left: auto;
  font-size: clamp(28px, 3vw, 48px);
}
.project-photoshop .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 30px;
  color: rgb(216 216 216 / 70%);
  font-size: 11px;
  line-height: 1.6;
}
.project-photoshop .footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: -14px;
}
.project-photoshop .portfolio-footer :focus-visible {
  outline: 2px solid var(--fog);
  outline-offset: 3px;
}

/* Tablet ----------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root.project-photoshop {
    --header-h: var(--project-header-height, 80px);
  }
  .project-photoshop .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-photoshop .footer-top > a:last-child {
    justify-self: start;
  }
}

/* Schermi verticali (tablet e telefono): titolo su due righe, lavori uno sotto l'altro ------- */
@media (max-aspect-ratio: 4/5) {
  .hero-box {
    width: calc(100vw - 2 * var(--g));
    padding: 3vh 2vw 3.6vh;
  }
  .ht-main {
    font-size: 15.4vw;
    letter-spacing: 0.03em;
    line-height: 1.02;
  }
  .ht-main > span {
    display: block;
  }
  .ht-sub {
    font-size: 7vw;
    margin-top: 0.5em;
  }
  .hero-panel {
    width: 19vw;
  }
  .hero-panel-b {
    top: calc(var(--header-h) - 12vh);
  }
  .hero-panel-a {
    top: calc(var(--header-h) + 64%);
  }
  .pair {
    --pw: min(92vw, calc((100svh - var(--header-h) - 40px) / 1.5));
    flex-direction: column;
    align-items: center;
  }
  .pair > figure {
    width: var(--pw);
    height: auto;
  }
  .compare {
    aspect-ratio: 730 / 1096;
  }
  .film-v .film-frame {
    width: 100%;
    height: auto;
  }
  .posters {
    flex-direction: column;
  }
  .posters img {
    width: min(92vw, calc((100svh - var(--header-h) - 60px) / 1.416));
    height: auto;
  }
}

/* Telefono --------------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .hero-natgeo {
    left: 16px;
    top: calc(var(--header-h) + 18px);
  }
  .hero-doc {
    padding-bottom: 4vh;
  }
  .hero-box {
    width: calc(100vw - 32px);
    padding: 22px 10px 26px;
  }
  .ht-main {
    font-size: 15.4vw;
    letter-spacing: 0.03em;
    line-height: 1.02;
  }
  .ht-main > span {
    display: block;
  }
  .ht-sub {
    font-size: 7vw;
    margin-top: 0.5em;
  }
  .hero-panel {
    width: 27vw;
  }
  .hero-panel-b {
    right: 10px;
    top: calc(var(--header-h) - 9vh);
  }
  .hero-panel-a {
    left: 12px;
    top: calc(var(--header-h) + 62%);
  }
  .hero-hint {
    right: 16px;
  }
  .concept {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 80px;
  }
  .quote-mark {
    font-size: 120vw;
  }
  .manifesto {
    font-size: 24px;
  }
  .claim-quote {
    font-size: 14px;
  }
  .process-title {
    margin-left: 16px;
  }
  .sketch {
    padding-top: 56px;
  }
  .sketch-stage {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .word-v {
    position: static;
    order: -1;
    writing-mode: horizontal-tb;
    margin: 0 16px 24px;
    font-size: 12.6vw;
    text-align: left;
    background: linear-gradient(180deg, var(--cyan) 35%, var(--cyan-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .sketch-front,
  .sketch-back {
    position: relative;
    left: auto;
    top: auto;
  }
  .sketch-back {
    width: 72vw;
    margin-left: 0;
  }
  .sketch-front {
    width: 86vw;
    margin: -24vw 0 0 14vw;
  }
  .airef .word {
    white-space: normal;
    font-size: 12.6vw;
  }
  .airef-img {
    width: 100vw;
    margin-top: -4vw;
  }
  .word {
    font-size: 12.6vw;
  }
  .layers .film-frame {
    width: 100vw;
  }
  .film-play {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
  }
  .film-play::before {
    left: 27px;
    top: 22px;
    border-width: 12px 0 12px 18px;
  }
  .pair {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0;
  }
  .pair > figure {
    width: 100vw;
    height: auto;
  }
  .compare {
    aspect-ratio: 730 / 1096;
  }
  .film-v .film-frame {
    width: 100%;
    height: auto;
  }
  .bleed {
    margin-top: 80px;
  }
  .bleed + .bleed {
    margin-top: 4px;
  }
  .posters {
    flex-direction: column;
    padding: 60px 0;
    gap: 16px;
  }
  .posters img {
    width: 100vw;
    height: auto;
  }
  .strange {
    padding: 80px 16px;
  }
  .strange-poster {
    width: 82vw;
    height: auto;
  }
  .project-photoshop .portfolio-footer {
    padding-top: 60px;
  }
  .project-photoshop .project-link p {
    font-size: 56px;
  }
}

/* Riduci movimento: tutto fermo, nessun parallasse ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ps *,
  .ps *::before,
  .ps *::after {
    animation: none !important;
    transition: none !important;
  }
}
