/* ═══════════════════════════════════════════════════════════════
   NIC VELTRONI — Portfolio styles
   Sections: reset · header · page-scroll · video hero · intro
             carousel · scroll arrows · hero panel · mobile
   ═══════════════════════════════════════════════════════════════ */

/* ── Mobile overlay ── */
#mobile-overlay {
  display: none;
}
@media (max-width: 768px) {
  /* Overlay trasparente — video/particles visibili sotto */
  #mobile-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: transparent;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    pointer-events: none;
  }
  #mobile-overlay-text {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.6;
  }

  /* Nascondi tutto il page-scroll tranne video-hero */
  #page-scroll {
    overflow: hidden;
    pointer-events: none;
  }
  #page-scroll > *:not(#video-hero) {
    display: none !important;
  }
  #video-hero {
    height: 100vh;
    min-height: 100vh;
  }

  /* NIC VELTRONI centrato nel nav */
  #main-header {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #main-header .based-in-wrap,
  #main-header .mobile-contact-btn,
  #main-header nav {
    display: none !important;
  }
  #main-header .header-pixel {
    margin: 0 auto;
  }
  #main-header .header-pixel svg {
    height: 13px;
  }
}

/* Nasconde la home durante il caricamento di un pannello da hash */
html.panel-preload #page-scroll,
html.panel-preload #main-header { visibility: hidden; }

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-variation-settings: normal;
  background: #fff;
  color: #000;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ── Header ── */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

nav { display: flex; gap: 22px; align-items: center; }

nav a {
  font-size: 11px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s, color 0.3s;
}
nav a:hover { color: #FF2200; opacity: 1; }

.based-in-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.based-in {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.6);
}

.mobile-contact-btn {
  display: none;
}

#header-city svg { height: 9px; width: auto; display: block; }

.header-pixel { display: flex; align-items: center; }
.header-pixel svg { height: 10px; width: auto; }
.header-pixel .px { fill: #000; transition: opacity 0.25s ease; }

/* HERO mode: hide pixel logo, push nav right, anchor based-in left */
header.hero-nav .header-pixel { display: none; }
header.hero-nav nav { margin-left: auto; }
header.hero-nav .based-in-wrap { left: 32px; transform: translateX(0); }

/* Normal scroll mode: hide "Based in:" label, show only cities */
header:not(.hero-nav) .based-in { display: none; }

/* Panel-open: ripristina navbar corretta (logo sx, città centro, nav dx) */
body.panel-open header.hero-nav .header-pixel { display: flex; }
body.panel-open header.hero-nav .based-in-wrap { left: 50%; transform: translateX(-50%); }
body.panel-open .based-in { display: none; }
body.panel-open header.hero-nav nav { margin-left: auto; }

/* Panel-open overrides (already white on black bg) */
body.panel-open #page-scroll {
  overflow: hidden;
  pointer-events: none;
}

body.panel-open nav a,
body.panel-open .based-in,
body.panel-open #header-city,
body.panel-open .mobile-contact-btn { color: #fff; border-color: #fff; transition: color 0.3s ease, border-color 0.3s ease; }
body.panel-open #header-city svg path[fill="#000"],
body.panel-open #header-city svg rect[fill="#000"],
body.panel-open #header-city svg polygon[fill="#000"] { fill: #fff; }
body.panel-open .mobile-contact-btn:hover { color: #FF2200; border-color: #FF2200; }
body.iact-open .mobile-contact-btn:hover { color: #FFDD1A; border-color: #FFDD1A; }
body.panel-open .header-pixel .px { fill: #fff; transition: fill 0.3s ease; }
body.panel-open.screen-white nav a,
body.panel-open.screen-white .based-in,
body.panel-open.screen-white #header-city,
body.panel-open.screen-white .mobile-contact-btn { color: #000; border-color: #000; }
body.panel-open.screen-white .header-pixel .px { fill: #000; }
body.panel-open.screen-white #header-city svg rect[fill="#000"],
body.panel-open.screen-white #header-city svg path[fill="#000"],
body.panel-open.screen-white #header-city svg polygon[fill="#000"] { fill: #000; }

/* Hover nav — sempre rosso (giallo su interact) indipendentemente dallo stato */
body.panel-open nav a:hover { color: #FF2200; }
body.iact-open nav a:hover  { color: #FFDD1A; }

/* Interact panel: nav gialla, based-in nascosto */
body.iact-open .based-in-wrap { opacity: 0; pointer-events: none; }
body.iact-open nav a          { color: #FFDD1A; }

/* Interact: sezioni chiare → nav nera + rosso */
body.iact-open.screen-white nav a       { color: #000; }
body.iact-open.screen-white nav a:hover { color: #FF2200; }

/* Pixel LED hover transition */
.px { transition: fill 0.04s step-end, filter 0.04s step-end; }

/* ── Page scroll container (snap) ── */
#page-scroll {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#page-scroll::-webkit-scrollbar { display: none; }

/* ── Video Hero ── */
#video-hero {
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 12px;
}

.video-frame {
  width: calc(100vw - 24px);
  height: calc(100vh - 52px);
  background: #0d0d0d;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  bottom: 28px; left: 32px;
  pointer-events: none;
  user-select: none;
}

.video-pixel-wrap { position: relative; pointer-events: all; cursor: default; }
.video-pixel-logo svg,
.video-led-logo svg { width: auto; height: 36px; }
.video-pixel-logo { mix-blend-mode: difference; }
.video-pixel-logo .px { fill: #fff; transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1); }
.video-pixel-wrap.px-hovering .video-pixel-logo .px { transition: opacity 0.25s ease; }
.video-led-logo { position: absolute; top: 0; left: 0; }
.video-led-logo .px { fill: transparent; opacity: 0; }

.pin {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Intro Section (typewriter) ── */
#intro-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
}

.intro-slot {
  max-width: 620px;
  width: 100%;
  text-align: center;
  transition: opacity 0.5s ease;
}

.intro-heading {
  font-weight: 400;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

#intro-pixel-name {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 0.1em;
  margin-left: 0.3em;
}
#intro-pixel-name svg { height: 0.72em; width: auto; display: block; }
#intro-pixel-name .px { fill: #000; }

.intro-para {
  font-weight: 200;
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: 1.6;
  text-align: center;
}

.intro-thin {
  font-size: 1em;
  line-height: inherit;
  vertical-align: baseline;
  font-weight: 200;
}

/* Helvetica italic for sprinkled italic words (work, focused, interface, …) */
.intro-italic {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 400;
  font-style: italic;
}

/* Bold italic uppercase — static final state, no animation */
.intro-bold-italic {
  display: inline-block;
  font-style: italic;
  font-weight: 700;
}

/* Variable-font morph for PRODUCT DESIGNER / HUMAN EXPERIENCE */
.intro-inflate {
  display: inline-block;
  font-style: italic;
  font-variation-settings: 'wght' 200;
  transform: scale(0.78);
  transition: font-variation-settings 1.8s ease, transform 1.8s ease;
}
.intro-inflate.inflated {
  font-variation-settings: 'wght' 700;
  transform: scale(1);
}

/* Red underline-sweep highlight */
.intro-highlight {
  font-style: italic;
  font-weight: 700;
  padding: 1px 5px;
  white-space: nowrap;
  background: linear-gradient(#ff0000, #ff0000) no-repeat left center / 0% 100%;
  transition: background-size 0.45s ease;
}
.intro-highlight.lit { background-size: 100% 100%; }

/* ── Projects Grid ── */
#carousel-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 60px 60px;
  box-sizing: border-box;
}
.projects-grid {
  display: flex;
  flex-direction: row;
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  justify-content: center;
}
.proj-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s;
}
.proj-card:hover { transform: translateY(-4px); }
.proj-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
/* hover panel — pixel name above the card */
.proj-card-hover-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.proj-card:hover .proj-card-hover-panel {
  opacity: 1;
  transform: translateY(0);
}
.proj-card-pixel-name {
  width: 100%;
  text-align: center;
  color: #FF2200;
}
.proj-card-pixel-name svg { height: 12px; width: auto; }
/* info overlay — inside the card, white text */
.proj-card-info-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.proj-card:hover .proj-card-info-overlay { opacity: 1; }
.pci-row { display: flex; flex-direction: column; gap: 2px; }
.pci-label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); font-family: 'Helvetica Neue', Helvetica, sans-serif; }
.pci-val { font-size: 13px; font-weight: 300; color: #fff; line-height: 1.4; font-family: 'Helvetica Neue', Helvetica, sans-serif; }

/* ── Hero Panel (Pro Nap expand) ── */
#hero-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
}

#hero-panel-bg {
  position: absolute;
  inset: 0;
  background: url('assets/pro nap/SFONDO PRON NAP.png') center / 100% 100% no-repeat;
  pointer-events: none;
}

#hero-product-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#hero-product-img img {
  width: 100%;
  max-width: 1060px;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateY(-22px);
}

/* Back buttons hidden — panels close via ESC or swipe */
#hero-back, #pkit-back, #iact-back, #tolean-back, #about-back, #contact-back {
  display: none !important;
}

#hero-back {
  position: absolute;
  top: 64px; left: 42px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  line-height: 1;
}
#hero-back img { width: 16px; height: auto; display: block; filter: invert(1); }

#hero-label-wrap,
#hero-scroll {
  position: absolute;
  bottom: 28px;
  opacity: 0;
  pointer-events: none;
}
#hero-label-wrap { left: 39px; }
#hero-scroll     { right: 39px; bottom: 31px; width: 12px; }

#hero-scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#hero-scroller::-webkit-scrollbar { display: none; }

/* ── Pro Nap rebuilt screens ── */
#pnr-screen-1 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
#pnr-pixel-title {
  position: absolute;
  bottom: 24px;
  left: 48px;
  z-index: 10;
  mix-blend-mode: difference;
}
#pnr-tags {
  position: absolute;
  bottom: 28px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.pnr-tag {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}
#pnr-pixel-title svg {
  height: 40px;
  width: auto;
  display: block;
}
#iact-pixel-title {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 10;
}
#iact-pixel-title svg {
  height: 28px;
  width: auto;
  display: block;
}
#iact-pixel-title .px {
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#iact-pixel-title.px-hovering .px {
  transition: opacity 0.25s ease;
}

/* Crossfade slot: screen-2 and screen-3 share the same 100vh viewport */
#pnr-s23-wrap {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}
#pnr-s1-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#pnr-screen-2 {
  position: relative;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 180px 0 200px;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#pnr-s2-copy {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  transform: translateX(35px);
  box-sizing: border-box;
  text-align: left;
}

#pnr-s2-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px 0;
  letter-spacing: 0;
}

#pnr-s2-desc {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: #222;
  margin: 0;
  max-width: 100%;
  text-align: left;
  text-wrap: balance;
}

#pnr-s2-desc strong {
  font-weight: 600;
  color: #111;
}

#pnr-screen-3 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  padding: 0 80px 100px;
  box-sizing: border-box;
  overflow: hidden;
}
/* ── Stack 4-5-6: scroll-driven fade ── */
#pnr-stack {
  height: 280vh;
  position: relative;
}
#pnr-stack-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#pnr-stack-inner #pnr-screen-4,
#pnr-stack-inner #pnr-screen-5,
#pnr-stack-inner #pnr-screen-6 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: opacity;
}
#pnr-stack-inner #pnr-screen-5,
#pnr-stack-inner #pnr-screen-6 {
  opacity: 0;
}

#pnr-screen-4 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
#pnr-s4-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#pnr-s4-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
#pnr-s4-text {
  flex: 0 0 38%;
  padding: 110px 40px 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
#pnr-s4-text p {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
#pnr-s4-text p strong {
  font-weight: 700;
  color: #fff;
}
#pnr-s4-img {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}
#pnr-s4-img img {
  height: 93vh;
  width: auto;
  object-fit: contain;
}
#pnr-screen-5 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
#pnr-s5-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#pnr-s5-exploded {
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-58%);
  width: 70%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
#pnr-s5-text {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  flex-direction: row;
  gap: 48px;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
.pnr-s5-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 220px;
}
.pnr-s5-label {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000;
}
.pnr-s5-desc {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  margin: 0;
  text-wrap: balance;
}
.pnr-s5-desc strong {
  font-weight: 700;
  color: #000;
}
#pnr-screen-6 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
#pnr-s6-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#pnr-s6-group {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 25px));
  width: 95%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
#pnr-s6-text {
  position: absolute;
  bottom: 38px;
  left: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
.pnr-s6-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 260px;
}
.pnr-s6-label {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000;
}
.pnr-s6-desc {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  margin: 0;
  text-wrap: balance;
}
.pnr-s6-desc strong {
  font-weight: 700;
  color: #000;
}
#pnr-screen-12 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#pnr-s12-text {
  flex: 0 0 26%;
  padding: 0 20px 0 60px;
  align-self: center;
}
#pnr-s12-text p {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: #111;
  max-width: 270px;
  margin-bottom: 14px;
  text-wrap: balance;
}
#pnr-s12-devices {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 100%;
  padding: 40px 0;
  box-sizing: border-box;
}
#pnr-s12-phone {
  width: 20%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
#pnr-s12-laptop {
  width: 76%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: -11%;
}
#pnr-screen-carousel {
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.pnr-marquee {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  touch-action: pan-x;
}
.pnr-marquee::-webkit-scrollbar { display: none; }
.pnr-marquee.is-dragging { cursor: grabbing; }
.pnr-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 60px;
  will-change: transform;
}
.pnr-marquee-item {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.pnr-marquee-item img,
.pnr-marquee-item video {
  height: 62vh;
  width: auto;
  display: block;
  cursor: pointer;
  object-fit: cover;
}

#pnr-screen-others > *:not(canvas),
#pkit-screen-others > *:not(canvas),
#iact-screen-others > *:not(canvas),
#tolean-screen-others > *:not(canvas) {
  position: relative;
  z-index: 1;
}

#pnr-screen-others {
  position: relative;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 100px 40px 60px;
  box-sizing: border-box;
}
#pnr-others-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}
#pnr-others-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
}
.pnr-other-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}
.pnr-other-card:hover { transform: translateY(-4px); }
.pnr-other-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.pnr-other-card:hover .proj-card-hover-panel { opacity: 1; transform: translateY(0); }
.pnr-other-name {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000;
  letter-spacing: 0.02em;
}
#pnr-screen-8 {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #fff;
  padding-bottom: 100px;
  padding: 60px 80px;
  box-sizing: border-box;
}
.pnr-s8-video {
  width: 28%;
  height: 75vh;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  flex-shrink: 0;
}
#pnr-s9-12-wrap {
  width: 100%;
  background-image: url('assets/pro nap/SFONDO PRON NAP.png');
  background-size: cover;
  background-position: center;
}
#pnr-screen-9 {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  box-sizing: border-box;
}
#pnr-s9-text {
  flex: 0 0 28%;
  padding: 110px 0 0 60px;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  align-self: flex-start;
}
#pnr-s9-text p {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  max-width: 300px;
  text-wrap: balance;
}
#pnr-s9-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 40px 40px 40px 0;
  box-sizing: border-box;
}
#pnr-s9-img img {
  width: 78%;
  height: auto;
  object-fit: contain;
}
#pnr-screen-7 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #fff;
}
#pnr-s7-evoluzione {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.pnr-s3-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  max-width: 340px;
}
.pnr-s3-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0;
  margin: 0 0 20px;
}
.pnr-s3-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}
.pnr-s3-caption {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 8px;
}
.pnr-s3-text {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #333;
  line-height: 1.4;
  margin: 0;
}



/* P.KIT lightbox */
#pkit-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#pkit-lightbox.open { display: flex; }
#pkit-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  animation: lb-in 0.22s ease forwards;
}
#pkit-lightbox-close,
#pkit-lightbox-prev,
#pkit-lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
#pkit-lightbox-close:hover,
#pkit-lightbox-prev:hover,
#pkit-lightbox-next:hover { opacity: 1; }
#pkit-lightbox-close { top: 24px; right: 32px; }
#pkit-lightbox-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
#pkit-lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }

/* ── P.KIT Screen 6: Food / Collaborations ── */
#pkit-screen-6 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 80px 60px 60px;
  box-sizing: border-box;
  gap: 16px;
}

#pkit-food-label {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  color: #000;
  line-height: 1;
  position: absolute;
  top: 28px;
  left: 60px;
  z-index: 1;
}

#pkit-s6-main {
  display: flex;
  flex: 1;
  gap: 24px;
  min-height: 0;
  align-items: stretch;
}

.pkit-s6-col--photo {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#pkit-s6-collab-col {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.pkit-s6-photo {
  flex: none;
  height: 72vh;
  background-image: url('assets/PKIT/collab p.kit.png');
  background-repeat: no-repeat;
  background-size: 200% auto;
  background-position-y: top;
}

.pkit-s6-photo--1 { background-position-x: 0%; }
.pkit-s6-photo--2 { background-position-x: 100%; }

.pkit-s6-caption {
  flex-shrink: 0;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pkit-s6-col--photo:nth-child(2) .pkit-s6-caption {
  padding-left: 23px;
}

.pkit-s6-cap-name {
  font-family: 'Epilogue', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #000;
  margin: 0;
  line-height: 1.3;
}

.pkit-s6-cap-role {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

#pkit-s6-collab-title {
  font-family: 'Epilogue', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.pkit-s6-collab-text {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: #000;
  margin: 0;
}

/* P.KIT Screen 7 */
#pkit-screen-7 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('assets/PKIT/fibershot sez 7.png') center center / cover no-repeat;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#pkit-s7-title {
  position: absolute;
  top: 72px;
  left: 60px;
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  color: #111;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: none;
}
#pkit-s7-circle {
  height: 86vh;
  width: auto;
  object-fit: contain;
  display: block;
}
#pkit-s7-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 14.5px;
  color: #111;
  line-height: 1.7;
  white-space: nowrap;
}

/* ── P.KIT screen 8: pack + stat + discs ── */
#pkit-screen-8 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('assets/PKIT/SFONDO  PACK.png') center center / cover no-repeat;
  background-color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}
/* Pack render — smaller, left-center */
#pkit-s8-pack {
  position: absolute;
  left: 1%;
  top: 42%;
  transform: translateY(-50%);
  width: 46%;
  object-fit: contain;
  z-index: 1;
}
/* Caption — bottom-left */
#pkit-s8-caption {
  position: absolute;
  bottom: 38px;
  left: 44px;
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #111;
  line-height: 1.55;
  margin: 0;
  z-index: 3;
}
/* Stat — center, between pack and discs */
#pkit-s8-center {
  position: absolute;
  left: calc(58% - 30px);
  top: calc(50% - 30px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 3;
}
#pkit-s8-stat {
  font-family: 'Epilogue', sans-serif;
  font-weight: 400;
  font-size: 72px;
  color: #111;
  margin: 0;
  line-height: 1;
}
#pkit-s8-stat-label {
  font-family: 'Epilogue', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #111;
  margin: 0 0 0 6px;
  line-height: 1.5;
}
/* Discs — absolute positioned */
.pkit-s8-disc {
  position: absolute;
  object-fit: contain;
  z-index: 2;
}
/* Snack — smallest, top-right, parzialmente tagliato in alto */
.pkit-s8-disc--snack {
  width: 28%;
  top: -8%;
  right: 22%;
}
/* Main — medium, bottom center-right, parzialmente tagliato in basso */
.pkit-s8-disc--main {
  width: 38%;
  bottom: -14%;
  right: 16%;
}
/* Side — biggest, far right, parzialmente tagliato a destra */
.pkit-s8-disc--side {
  width: 46%;
  top: 6%;
  right: -4%;
}


/* P.KIT carousel screen */
#pkit-screen-carousel {
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 100px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
#pkit-screen-carousel .pkit-marquee {
  margin-top: 140px;
}
#pkit-carousel-header {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 60px 0 32px;
  box-sizing: border-box;
  z-index: 1;
}
#pkit-carousel-title {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  color: #111;
  margin: 0;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.pkit-carousel-rule {
  display: block;
  height: 1px;
  background: #111;
  flex: 0 0 60px;
}
#pkit-carousel-desc {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #111;
  line-height: 1.55;
  margin: 0;
  max-width: 580px;
}
.pkit-marquee {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  touch-action: pan-x;
}
.pkit-marquee::-webkit-scrollbar { display: none; }
.pkit-marquee.is-dragging { cursor: grabbing; }
.pkit-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 60px;
}
.pkit-marquee-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.pkit-marquee-item img {
  height: 58vh;
  width: auto;
  border-radius: 0;
  display: block;
  cursor: pointer;
}
.pkit-marquee-caption {
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #000;
  white-space: nowrap;
  line-height: 1;
}

/* P.KIT UX carousel screen */
#pkit-screen-ux {
  width: 100%;
  height: 100vh;
  background: url('assets/PKIT/ULIMA SCHERMATA P.KIT SFONDO.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 55px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.pkit-ux-marquee {
  width: 100%;
  overflow: hidden;
}
.pkit-ux-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: pkit-ux-scroll 200s linear infinite;
  will-change: transform;
  padding-right: 20px;
}
.pkit-ux-marquee-track img {
  height: 62vh;
  width: auto;
  flex-shrink: 0;
  border-radius: 0;
  display: block;
  border: none;
  cursor: pointer;
}

#pkit-ux-title {
  position: absolute;
  top: 60px;
  left: 32px;
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  color: #111;
  margin: 0;
  line-height: 1;
  z-index: 1;
}

#pkit-screen-ux .carousel-contact-btn {
  bottom: 28px;
}

@keyframes pkit-ux-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* P.KIT "See other projects" section */
#pkit-screen-others {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 240px 40px 80px;
  box-sizing: border-box;
}
#pkit-others-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}
#pkit-others-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}
.pkit-other-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}
.pkit-other-card:hover { transform: translateY(-4px); }
.pkit-other-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: none;
}
.pkit-other-card:hover .proj-card-hover-panel { opacity: 1; transform: translateY(0); }
.pkit-other-name {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000;
  letter-spacing: 0.02em;
}

/* P.KIT UX Lightbox */
#pkit-ux-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#pkit-ux-lightbox.open {
  display: flex;
}
#pkit-ux-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  animation: lb-in 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
}
#pkit-ux-lightbox-close,
#pkit-ux-lightbox-prev,
#pkit-ux-lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
#pkit-ux-lightbox-close:hover,
#pkit-ux-lightbox-prev:hover,
#pkit-ux-lightbox-next:hover {
  opacity: 1;
}
#pkit-ux-lightbox-close { top: 24px; right: 32px; }
#pkit-ux-lightbox-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
#pkit-ux-lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }

/* Lightbox */
#pnr-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#pnr-lightbox.open {
  display: flex;
}
#pnr-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  animation: lb-in 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes lb-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#pnr-lightbox-close,
#pnr-lightbox-prev,
#pnr-lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
#pnr-lightbox-close:hover,
#pnr-lightbox-prev:hover,
#pnr-lightbox-next:hover {
  opacity: 1;
}
#pnr-lightbox-close { top: 24px; right: 32px; }
#pnr-lightbox-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
#pnr-lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }

/* ── Interact carousel screen ── */
#iact-screen-carousel {
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.iact-marquee {
  width: 100%;
  overflow: hidden;
}

.iact-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: iact-scroll 200s linear infinite;
  will-change: transform;
}

.iact-marquee-track img {
  height: 62vh;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

@keyframes iact-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Lightbox Interact */
#iact-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#iact-lightbox.open { display: flex; }
#iact-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  animation: lb-in 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
}
#iact-lightbox-close,
#iact-lightbox-prev,
#iact-lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
#iact-lightbox-close:hover,
#iact-lightbox-prev:hover,
#iact-lightbox-next:hover { opacity: 1; }
#iact-lightbox-close { top: 24px; right: 32px; }
#iact-lightbox-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
#iact-lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }

/* Screen 5 — closing video on white */
#hero-screen-5 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-s5-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
#hero-s5-video.visible { opacity: 1; transform: scale(1); }

/* ── P.kit Hero Panel ── */
#pkit-panel * {
  font-family: 'Epilogue', sans-serif !important;
}

#pkit-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
}

#pkit-panel-bg {
  position: absolute;
  inset: 0;
  background: #000 url('assets/PKIT/hero  p kit.png') center / 100% auto no-repeat;
  pointer-events: none;
}

#pkit-scroller {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#pkit-scroller::-webkit-scrollbar { display: none; }

/* ── P.KIT Screen 1: Hero ── */
#pkit-screen-1 {
  position: relative;
  width: 100%;
  height: 100vh;
}

#pkit-label-wrap {
  position: absolute;
  bottom: 6px;
  left: 39px;
  right: 39px;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

#pkit-pins {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding-bottom: 6px;
}

#pkit-pins .pin {
  font-size: 12px;
  padding: 4px 10px;
  color: #000;
  border-color: rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#pkit-pixel-title {
  margin-bottom: 20px;
}

#pkit-pixel-title svg {
  height: 40px;
  width: auto;
  display: block;
}
#pkit-pixel-title .px {
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#pkit-pixel-title.px-hovering .px {
  transition: opacity 0.25s ease;
}

/* ── P.KIT Screen 2: Client request ── */
#pkit-screen-data {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#pkit-s1-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
  width: 80%;
}

#pkit-s1-label {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: #000;
  margin: 0;
  line-height: 1;
}

#pkit-s1-brief {
  display: flex;
  align-items: center;
  gap: 40px;
}

#pkit-s1-logo {
  height: 58px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

#pkit-s1-desc {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: #000;
  margin: 0;
  line-height: 1.45;
}

#pkit-s1-meta {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #000;
  padding: 0 60px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

#pkit-s1-meta strong {
  font-weight: 600;
}

/* ── P.KIT Screen 3: Contex / Problem / Insight ── */
/* ── P.KIT Screen 2: Brief ── */
#pkit-screen-2 {
  position: relative;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 180px 0 200px;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#pkit-s2-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  transform: translateX(35px);
}

#pkit-s2-logo {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

#pkit-s2-copy {
  width: 460px;
  box-sizing: border-box;
  text-align: left;
}

#pkit-s2-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px 0;
  letter-spacing: 0;
}

#pkit-s2-desc {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: #222;
  margin: 0;
  max-width: 460px;
  text-align: justify;
  hyphens: none;
}

/* ── P.KIT Screen 3: Context / Problem / Insight ── */
#pkit-screen-3 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  padding: 0 80px 100px;
  box-sizing: border-box;
  overflow: hidden;
}


#pkit-screen-5 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 60px 40px;
  box-sizing: border-box;
  gap: 6px;
}

#pkit-app-label {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  color: #111;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

#pkit-app-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* ── App section texts ── */
#pkit-s5-texts {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
  gap: 40px;
}

.pkit-s5-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}

.pkit-s5-block--far {
  flex: 1;
}

.pkit-s5-head {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.pkit-s5-body {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.6;
  color: #000;
  margin: 0;
}

#pkit-screen-kit {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('assets/PKIT/p.kit terza sezione.png') center / 100% 100% no-repeat;
}

#pkit-kit-text {
  position: absolute;
  top: 80px;
  left: 32px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#pkit-kit-brand {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #111;
  text-transform: uppercase;
  line-height: 1;
}

#pkit-kit-title {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  color: #111;
  margin: 0;
  line-height: 1;
}

#pkit-kit-desc {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.55;
  color: #111;
  margin: 4px 0 0;
}

#pkit-screen-4 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 40px 80px;
  box-sizing: border-box;
}

#pkit-s4-photos {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 62vh;
  flex-shrink: 0;
}

.pkit-photo {
  height: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
}

.pkit-photo:nth-child(1) {
  flex: 1.8;
}

#pkit-s4-text {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: #000;
  margin: 0;
  max-width: 820px;
}

#pkit-s2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
#pkit-s2-img.visible { opacity: 1; transform: translateY(0); }


#pkit-back {
  position: absolute;
  top: 64px;
  left: 42px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  line-height: 1;
}
#pkit-back img { width: 16px; height: auto; display: block; filter: invert(1); }

/* ── Interact Hero Panel ── */
#iact-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
}
#iact-panel-bg {
  position: absolute;
  inset: 0;
  background: url('assets/INTERACT/hero interact project.png') center / cover no-repeat;
  pointer-events: none;
}
#iact-scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#iact-scroller::-webkit-scrollbar { display: none; }

#iact-screen-1 {
  position: relative;
  width: 100%;
  height: 100vh;
}

#iact-screen-2 {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 180px 0 200px;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#iact-s2-copy {
  width: 560px;
  margin: 0 auto;
  transform: translateX(40px);
  box-sizing: border-box;
  text-align: left;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#iact-s2-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 40px;
  background: #000;
  flex-wrap: nowrap;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.iact-meta-item {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: baseline;
}

.iact-meta-label {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFDD1A;
}

.iact-meta-value {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
}

@media (min-width: 769px) {
  .iact-pair {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    background: #000;
  }
  .iact-pair .iact-text-section {
    flex: 0 0 30%;
    height: 100%;
    padding: 0 0 0 40px;
  }
  .iact-pair .iact-video-section {
    flex: 0 0 70%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
  }
  .iact-pair .iact-video-section video {
    height: 80vh;
    width: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    margin-right: -40px;
  }
}

.iact-text-section {
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.iact-text-copy {
  max-width: 620px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  padding: 0 32px;
}

.iact-text-copy h2 {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  color: #FFDD1A;
  margin-bottom: 14px;
  line-height: 1.2;
}

.iact-text-copy p {
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 12px;
}

.iact-text-copy p:last-child { margin-bottom: 0; }

.iact-highlight {
  color: #FFDD1A;
  font-weight: 700;
}

#iact-s2-copy h2 {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFDD1A;
  margin: 0 0 6px 0;
  letter-spacing: 0;
}

#iact-s2-copy p {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 460px;
  text-align: justify;
  hyphens: none;
}

#iact-s2-copy p strong {
  color: #FFDD1A;
  font-weight: 600;
}

.iact-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}


.iact-video-section video {
  max-width: 70%;
  max-height: 80%;
  border-radius: 16px;
  object-fit: contain;
}
/* ── Interact screen-6: profile ev crossfade slideshow ── */
#iact-screen-6 {
  background: #fff;
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#iact-s6-slideshow {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iact-s6-img {
  position: absolute;
  max-height: 80vh;
  width: auto;
  height: auto;
  opacity: 0;
}
.iact-s6-img:nth-child(1) { z-index: 4; opacity: 1; }
.iact-s6-img:nth-child(2) { z-index: 3; }
.iact-s6-img:nth-child(3) { z-index: 2; }
.iact-s6-img:nth-child(4) { z-index: 1; }

#iact-screen-6.is-animating .iact-s6-img { opacity: 0; }
#iact-screen-6.is-animating .iact-s6-img:nth-child(1) { animation: iact-fade-start 14s 0s infinite; z-index: 4; }
#iact-screen-6.is-animating .iact-s6-img:nth-child(2) { animation: iact-fade-short 14s 3s infinite; z-index: 3; }
#iact-screen-6.is-animating .iact-s6-img:nth-child(3) { animation: iact-fade-short 14s 6s infinite; z-index: 2; }
#iact-screen-6.is-animating .iact-s6-img:nth-child(4) { animation: iact-fade-long  14s 9s infinite; z-index: 1; }

/* ── Interact screen-7: filters ev crossfade slideshow ── */
#iact-screen-7 {
  background: #fff;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#iact-s7-slideshow {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iact-s7-img {
  position: absolute;
  max-height: 80vh;
  width: auto;
  height: auto;
  opacity: 0;
}
.iact-s7-img:nth-child(1) { z-index: 3; opacity: 1; }
.iact-s7-img:nth-child(2) { z-index: 2; }
.iact-s7-img:nth-child(3) { z-index: 1; }

#iact-screen-7.is-animating .iact-s7-img { opacity: 0; }
#iact-screen-7.is-animating .iact-s7-img:nth-child(1) { animation: iact-fade-start-fast 9s 0s infinite; z-index: 3; }
#iact-screen-7.is-animating .iact-s7-img:nth-child(2) { animation: iact-fade-fast 9s 2s infinite; z-index: 2; }
#iact-screen-7.is-animating .iact-s7-img:nth-child(3) { animation: iact-fade-slow 9s 4s infinite; z-index: 1; }

@keyframes iact-fade-start {
  0%   { opacity: 1; }
  21%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes iact-fade-start-fast {
  0%   { opacity: 1; }
  22%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes iact-fade-fast {
  0%   { opacity: 0; }
  9%   { opacity: 1; }
  22%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes iact-fade-slow {
  0%   { opacity: 0; }
  9%   { opacity: 1; }
  56%  { opacity: 1; }
  64%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── Interact screen-5: crossfade slideshow ── */
#iact-screen-5 {
  background: #fff;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#iact-s5-text {
  position: absolute;
  right: 180px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
}

#iact-s5-text p {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.35;
  color: #111;
  margin: 0;
  text-align: justify;
  hyphens: none;
}

#iact-s5-slideshow {
  position: relative;
  height: 80vh;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iact-s5-img {
  position: absolute;
  max-height: 80vh;
  width: auto;
  height: auto;
  opacity: 0;
}
.iact-s5-img:nth-child(1) { z-index: 4; opacity: 1; }
.iact-s5-img:nth-child(2) { z-index: 3; }
.iact-s5-img:nth-child(3) { z-index: 2; }
.iact-s5-img:nth-child(4) { z-index: 1; }

#iact-screen-5.is-animating .iact-s5-img { opacity: 0; }
#iact-screen-5.is-animating .iact-s5-img:nth-child(1) { animation: iact-fade-start 14s 0s infinite; z-index: 4; }
#iact-screen-5.is-animating .iact-s5-img:nth-child(2) { animation: iact-fade-short 14s 3s infinite; z-index: 3; }
#iact-screen-5.is-animating .iact-s5-img:nth-child(3) { animation: iact-fade-short 14s 6s infinite; z-index: 2; }
#iact-screen-5.is-animating .iact-s5-img:nth-child(4) { animation: iact-fade-long  14s 9s infinite; z-index: 1; }

@keyframes iact-fade-short {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  21%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes iact-fade-long {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  36%  { opacity: 1; }
  41%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── Interact screen-4: full-width image ── */
#iact-screen-4 {
  background: #000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#iact-s4-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Interact screen-3: Validation / Iteration / Feedback ── */
#iact-screen-3 {
  background: #000;
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  padding: 0 80px 100px;
  box-sizing: border-box;
  overflow: hidden;
}

.iact-s3-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
  max-width: 340px;
}

.iact-s3-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFDD1A;
  margin: 0 0 20px;
  letter-spacing: 0;
}

.iact-s3-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}

.iact-s3-caption {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFDD1A;
  margin: 0 0 8px;
  line-height: 1.4;
}

.iact-s3-caption strong {
  font-weight: 700;
}

.iact-s3-text {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin: 0;
}

#iact-screen-others {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 240px 40px 80px;
  box-sizing: border-box;
}
#iact-others-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}
#iact-others-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  overflow: visible;
  padding-top: 60px;
}
.iact-other-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}
.iact-other-card:hover { transform: translateY(-4px); }
.iact-other-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.iact-other-card:hover .proj-card-hover-panel { opacity: 1; transform: translateY(0); }
.iact-other-name {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000;
  letter-spacing: 0.02em;
}

/* ── Tolean: Explore more ── */
#tolean-screen-others {
  position: relative;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 100px 40px 60px;
  box-sizing: border-box;
}
#tolean-others-title {
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}
#tolean-others-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
}
.tolean-other-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}
.tolean-other-card:hover { transform: translateY(-4px); }
.tolean-other-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.tolean-other-card:hover .proj-card-hover-panel { opacity: 1; transform: translateY(0); }

.iact-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 100px;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  position: absolute;
  bottom: 40px;
  right: 32px;
}
.iact-cta:hover {
  background: #FFDD1A;
  color: #000;
  border-color: #FFDD1A;
}

#iact-back {
  position: absolute;
  top: 64px;
  left: 42px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  line-height: 1;
}
#iact-back img { width: 16px; height: auto; display: block; filter: invert(1); }

#iact-project-info {
  position: absolute;
  bottom: 27px;
  right: 32px;
  text-align: right;
  font-family: 'Inter', sans-serif;
}

#iact-project-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #FFDD1A;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

#iact-project-pins {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.iact-pin {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #FFDD1A;
  border: 1px solid #FFDD1A;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── Tolean Panel ── */
#tolean-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
}

#tolean-scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#tolean-scroller::-webkit-scrollbar { display: none; }

#tolean-screen-1 {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

#tolean-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

#tolean-hero-footer {
  position: absolute;
  bottom: 20px;
  left: 32px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  pointer-events: none;
  user-select: none;
}

#tolean-pixel-title {
  flex-shrink: 0;
  pointer-events: auto;
  cursor: default;
}
#tolean-pixel-title svg {
  height: 40px;
  width: auto;
  display: block;
}
#tolean-pixel-title .px {
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#tolean-pixel-title.px-hovering .px {
  transition: opacity 0.25s ease;
}

#tolean-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 260px;
  padding-bottom: 8px;
}

#tolean-pins .pin {
  font-size: 12px;
  padding: 4px 10px;
}

#tolean-screen-2 {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #000;
  overflow: hidden;
  padding: 60px;
  gap: 48px;
  box-sizing: border-box;
}

#tolean-video {
  flex: 0 0 58%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

#tolean-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 100%;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
}

#tolean-desc-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

#tolean-desc p {
  margin: 0;
}

#tolean-desc strong {
  font-weight: 700;
  color: #fff;
}

@media (max-width: 768px) {
  #tolean-screen-2 {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    overflow-y: auto;
    align-items: flex-start;
  }
  #tolean-video {
    flex: none;
    width: 100%;
    height: auto;
    max-height: 40vh;
  }
  #tolean-desc {
    font-size: 13px;
  }
}

#tolean-screen-carousel {
  width: 100%;
  height: 100vh;
  background: #111;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.tolean-marquee {
  width: 100%;
  overflow: hidden;
}

.tolean-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: tolean-scroll 280s linear infinite;
  will-change: transform;
}

.tolean-marquee-track img,
.tolean-marquee-track video {
  height: 62vh;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

@keyframes tolean-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

#tolean-back {
  position: absolute;
  top: 64px;
  left: 42px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  line-height: 1;
  z-index: 10;
}
#tolean-back img { width: 16px; height: auto; display: block; filter: invert(1); }

@media (max-width: 768px) {
  #tolean-back { top: 72px; left: 20px; }
}

/* Lightbox Tolean */
#tolean-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#tolean-lightbox.open { display: flex; }
#tolean-lightbox-img,
#tolean-lightbox-video {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  animation: lb-in 0.25s cubic-bezier(0.34,1.4,0.64,1) both;
}
#tolean-lightbox-video { background: #000; outline: none; }
#tolean-lightbox-close,
#tolean-lightbox-prev,
#tolean-lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
#tolean-lightbox-close:hover,
#tolean-lightbox-prev:hover,
#tolean-lightbox-next:hover { opacity: 1; }
#tolean-lightbox-close { top: 24px; right: 32px; }
#tolean-lightbox-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
#tolean-lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }

/* ── About Panel ── */
#about-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  will-change: opacity;
}
#about-panel,
#about-panel * {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
#about-panel::-webkit-scrollbar { display: none; }

#about-scroller {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
}

#about-screen-1 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease;
}

#about-continua {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  font-style: normal;
  color: #FF2200;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease, color 0.2s;
  pointer-events: none;
  z-index: 20;
  letter-spacing: 0.04em;
}
#about-continua:hover { color: #fff; }
#about-continua-dots,
#about-back-dots {
  display: inline-block;
  width: 1.4em;
  text-align: left;
  letter-spacing: 0.05em;
}

#about-back-s1 {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  font-style: normal;
  color: #FF2200;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease, color 0.2s;
  pointer-events: none;
  z-index: 20;
  letter-spacing: 0.04em;
  display: none;
}
#about-back-s1:hover { color: #fff; }

#about-content-body {
  transition: opacity 0.4s ease;
}

#about-section-2 {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: 4px;
}

.about-s2-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-s2-skills {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.about-s2-skills > div {
  flex: 1;
  min-width: 0;
}

.about-s2-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 32px;
}

#about-photo-col {
  flex: 0 0 33%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

#about-photo {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: grayscale(20%);
  transform: translateY(-14%);
}

#about-text-col {
  flex: 0 0 50%;
  display: flex;
  align-items: flex-start;
  padding: 80px 60px 40px;
}

#about-content {
  max-width: 720px;
  width: 100%;
}

#about-pixel-title {
  margin-bottom: 18px;
  line-height: 0;
}
#about-pixel-title svg {
  height: 24px;
  width: auto;
  display: block;
}
#about-pixel-title .px {
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#about-pixel-title.px-hovering .px {
  transition: opacity 0.25s ease;
}

#about-role {
  font-size: 12px;
  font-weight: 300;
  color: #FF2200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Quote block */
#about-quote {
  border-left: none;
  padding-left: 0;
  margin: 0 0 22px 0;
  text-align: justify;
  hyphens: none;
  font-size: 14px;
  font-weight: 200;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
#about-quote strong { font-weight: 800; color: #fff; }

/* Section blocks */
.about-section {
  margin-bottom: 20px;
}

.about-section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #FF2200;
  margin: 0 0 6px 0;
}

.about-hr {
  border: none;
  margin: 0 0 6px 0;
}

.about-section-body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  text-align: justify;
  hyphens: none;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin: 0;
}
.about-section-body + .about-section-body { margin-top: 8px; }
.about-section-body strong {
  font-weight: 800;
  color: #fff;
  font-style: normal;
}

#about-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Extra screens (skills, experience) */
.about-screen-extra {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 80px 10% 60px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.about-extra-inner {
  width: 100%;
  max-width: 900px;
}

/* Skills grid */
.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 60px;
  margin-top: 8px;
}

.about-skills-col { }

.about-skills-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(255,255,255,0.4);
  margin: 10px 0 4px 0;
}

.about-skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-skills-list li {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  word-break: break-word;
}

/* Experience */
.about-exp-list {
  margin-top: 4px;
}

.about-exp-item {
  padding: 8px 0;
}

.about-exp-title {
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  margin: 0 0 2px 0;
}

.about-exp-meta {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.about-bio-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-bio-body p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  line-height: 1.75;
}
.about-bio-body strong { font-weight: 700; color: #fff; }

.about-edu-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  color: #fff;
  font-weight: 300;
}
.about-lang-dots {
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .about-edu-lang-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-tag {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  cursor: default;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.about-tag:hover {
  color: #FF2200;
  border-color: #FF2200;
}

#about-back {
  position: absolute;
  top: 64px;
  left: 42px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  line-height: 1;
  z-index: 10;
}
#about-back img { width: 16px; height: auto; display: block; filter: invert(1); }

#about-contact-btn {
  position: fixed;
  bottom: 40px;
  right: 42px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 100px;
  color: #000;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.5s ease;
}
#about-contact-btn:hover,
#about-contact-btn:active {
  background: #FF2200;
  border-color: #FF2200;
  color: #000;
}

/* ── Carousel "Get in touch" button ── */
.carousel-contact-btn {
  position: absolute;
  bottom: 40px;
  right: 42px;
  padding: 9px 20px;
  border-radius: 100px;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.carousel-contact-btn--dark {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.carousel-contact-btn--dark:hover {
  background: #F20;
  border-color: #F20;
  color: #000;
}
.carousel-contact-btn--light {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.carousel-contact-btn--light:hover {
  background: #F20;
  border-color: #F20;
  color: #000;
}
@media (max-width: 768px) {
  .carousel-contact-btn { display: none; }
}

@media (max-width: 768px) {
  #about-contact-btn { display: none; }

  #about-screen-1 { flex-direction: column; }
  #about-photo-col { flex: none; height: 50vh; }
  #about-text-col  { flex: none; padding: 40px 24px; }
  #about-back { top: 72px; left: 20px; }
}

/* ── Contact Panel ── */
#contact-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  opacity: 0;
}

#contact-back {
  position: absolute;
  top: 64px;
  left: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 10;
}
#contact-back img { width: 16px; height: auto; display: block; filter: invert(1); }

#contact-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28vh 80px 0;
  z-index: 1;
}

#contact-pixel-cta {
  position: absolute;
  top: 19vh;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  z-index: 2;
}
.contact-px-line svg {
  height: clamp(20px, 3vw, 40px);
  width: auto;
  display: block;
}
.contact-px-line .px {
  transition: opacity 0.2s ease, fill 0.2s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#contact-pixel-cta.px-hovering .px {
  transition: opacity 0.2s ease, fill 0.2s ease;
}

#contact-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
}

#contact-name {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 56px;
  line-height: 1;
}

#contact-cta {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: #FF2200;
  line-height: 1.6;
  margin: 0 0 48px;
}

#contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-item:hover { opacity: 0.6; }

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  min-width: 60px;
}

.contact-value {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  #contact-inner { padding: 0 28px; }
  #contact-back  { top: 72px; left: 20px; }
  .contact-item  { flex-direction: column; gap: 6px; padding: 22px 0; }
}

/* Mobile footer note & toolbar: hidden on desktop */
#mobile-footer-note { display: none; }
#mobile-year-note   { display: none; }
#mobile-toolbar     { display: none; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  header { padding: 24px 28px; }
  nav    { gap: 16px; }
}

@media (max-width: 768px) {

  /* ══════════════════════════════════════════════
     HEADER
     ══════════════════════════════════════════════ */
  header {
    padding: 0 20px;
    height: 52px;
    justify-content: space-between;
  }
  nav { display: none; }
  header.hero-nav .header-pixel { display: flex; }
  header.hero-nav nav { display: none; margin-left: 0; }
  .based-in-wrap { display: none; }
  .mobile-contact-btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    border: 1px solid #000;
    border-radius: 999px;
    padding: 6px 18px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .mobile-contact-btn:hover { color: #FF2200; border-color: #FF2200; }

  /* ══════════════════════════════════════════════
     LAYOUT: solo wallet, niente video/intro
     ══════════════════════════════════════════════ */
  #video-hero, #intro-section { display: none; }
  #page-scroll {
    scroll-snap-type: none;
    overflow: hidden;
  }
  #carousel-section {
    height: 100vh;
    scroll-snap-align: none;
  }

  /* ══════════════════════════════════════════════
     HERO PANELS
     ══════════════════════════════════════════════ */
  #hero-back, #pkit-back, #iact-back {
    top: 72px;
    left: 20px;
  }
  #hero-label-wrap { left: 20px; bottom: 20px; }
  #hero-scroll     { right: 20px; bottom: 20px; }

  #iact-screen-2 { height: auto; min-height: 100vh; }
  #iact-s2-copy { padding: 60px 24px 40px 24px; flex: none; }
  #iact-s2-copy h2 { font-size: 22px; }
  #iact-s2-copy p  { font-size: 13px; max-width: none; }
  #iact-s2-meta { flex-direction: column; gap: 6px; }
  #iact-screen-3 { flex-direction: column; padding: 40px 24px 60px; gap: 40px; }
  .iact-pair { flex-direction: column; height: auto; }
  .iact-pair .iact-text-section { flex: none; width: 100%; height: auto; }
  .iact-pair .iact-video-section { flex: none; width: 100%; height: 100vh; }
  .iact-video-section { overflow: hidden; }
  .iact-video-section video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(2.5);
    border-radius: 0;
  }

  /* Bottom toolbar: nascosta su mobile */
  #mobile-toolbar { display: none !important; }

  /* ══════════════════════════════════════════════
     FOOTER NOTE (sopra la toolbar)
     ══════════════════════════════════════════════ */
  #mobile-footer-note {
    display: none;
  }
  #mobile-year-note {
    display: none;
    position: fixed;
  }
}

