@font-face {
  font-family: 'Sharp Sans Display No2';
  src: url('font/SharpSansDispNo2-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sharp Sans Display No2';
  src: url('font/SharpSansDispNo2-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sharp Sans Display No2';
  src: url('font/SharpSansDispNo2-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sharp Sans Display No2';
  src: url('font/SharpSansDispNo2-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --dark: #0A0A0A;
  --light: #F1F1F1;
  --fd: 'Sharp Sans Display No2', sans-serif;
  --fb: 'Sharp Sans Display No2', sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
* { user-select: none; -webkit-user-select: none; }
.c-val, .c-val a,
.about-para, .proj-name, .motion-name { user-select: text; -webkit-user-select: text; }
img, video { -webkit-user-drag: none; pointer-events: none; }
img:not([src]), img[src=""] { visibility: hidden; }
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button { display: none !important; }
body { background: var(--dark); font-family: var(--fb); overflow: hidden; }

.sc { height: 100vh; overflow-y: scroll; scroll-behavior: smooth; }
section { min-height: 100vh; position: relative; overflow: hidden; }

/* ── TOP NAV ── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 50; pointer-events: none;
  /* Stato di default (pre-JS) — full-width trasparente */
  padding: 22px 40px;
  background: transparent;
  border-radius: 0;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    padding       .5s  cubic-bezier(.16,1,.3,1),
    gap           .5s  cubic-bezier(.16,1,.3,1),
    top           .5s  cubic-bezier(.16,1,.3,1),
    left          .5s  cubic-bezier(.16,1,.3,1),
    right         .5s  cubic-bezier(.16,1,.3,1),
    width         .5s  cubic-bezier(.16,1,.3,1),
    margin-left   .5s  cubic-bezier(.16,1,.3,1),
    transform     .5s  cubic-bezier(.16,1,.3,1),
    border-radius .5s  cubic-bezier(.16,1,.3,1),
    background    .35s ease,
    border-color  .35s ease,
    box-shadow    .35s ease;
}

/* Pill attiva — hero e scrolled condividono lo stesso aspetto */
.top-nav.nav--hero,
.top-nav.nav--scrolled {
  top: 24px;
  left: 50%;
  right: auto;
  width: auto;
  margin-left: 0;
  transform: translateX(-50%);
  padding: 14px 28px;
  gap: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 100px;
  border-color: rgba(10,10,10,.11);
  box-shadow:
    0 2px 20px rgba(10,10,10,.08),
    0 1px 3px  rgba(10,10,10,.04),
    inset 0 1px 0 rgba(255,255,255,.55);
  pointer-events: auto;
}

/* Logo */
.nav-logo {
  font-family: var(--fd); font-weight: 600;
  letter-spacing: -0.03em; pointer-events: auto; cursor: pointer;
  white-space: nowrap; overflow: hidden;
  transition: color .3s ease;
  font-size: 20px;
  color: var(--light);
}
.top-nav.nav--hero    .nav-logo,
.top-nav.nav--scrolled .nav-logo { color: var(--dark); }

/* Links — nascosti di default, espansi al hover */
.nav-links {
  display: flex; gap: 24px; list-style: none; pointer-events: auto;
  max-width: 400px; overflow: hidden;
  transition: opacity .4s cubic-bezier(.16,1,.3,1), max-width .5s cubic-bezier(.16,1,.3,1), gap .5s cubic-bezier(.16,1,.3,1);
}
.top-nav.nav--hero    .nav-links,
.top-nav.nav--scrolled .nav-links {
  opacity: 0;
  pointer-events: none;
  max-width: 0;
  gap: 0;
}
.top-nav.nav--hero:hover,
.top-nav.nav--scrolled:hover { gap: 32px; }
.top-nav.nav--hero:hover    .nav-links,
.top-nav.nav--scrolled:hover .nav-links {
  opacity: 1;
  pointer-events: auto;
  max-width: 400px;
  gap: 24px;
}
.nav-links a {
  display: inline-block;
  position: relative;
  font-family: var(--fd); font-size: 12px;
  text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity .2s, color .3s ease;
  opacity: 0.6;
  color: var(--light); white-space: nowrap;
}
.nav-links a::before {
  content: ''; position: absolute; inset: -12px -6px;
}
.top-nav.nav--hero    .nav-links a,
.top-nav.nav--scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { opacity: 1; }

/* ── DOT NAV ── */
.dot-nav {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 100;
}
.dot {
  position: relative;
  width: 5px; height: 5px; border-radius: 3px;
  background: rgba(241,241,241,0.25); cursor: pointer;
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.dot::before {
  content: ''; position: absolute; inset: -14px -12px;
}
.dot.active { height: 22px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpHeavy {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aiBoxIn {
  from { opacity: 0; transform: scale(0.94) rotate(3deg); }
  to   { opacity: 1; transform: scale(1)    rotate(3deg); }
}
.anim { opacity: 0; }
section.vis .anim { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards; }
section.vis .anim:nth-child(1) { animation-delay: .05s; }
section.vis .anim:nth-child(2) { animation-delay: .14s; }
section.vis .anim:nth-child(3) { animation-delay: .23s; }
section.vis .anim:nth-child(4) { animation-delay: .32s; }

/* ── PILL ── */
.pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 100px; font-family: var(--fd); font-size: 12px; font-weight: 600;
  letter-spacing: 0.01em; white-space: nowrap;
}
.pill-light { border: 1px solid rgba(136,136,136,.4); color: #888; }
.pill-dark  { border: 1px solid rgba(136,136,136,.4); color: #888; }
.pill-sector { border-radius: 0; }
.pill-sector.light { border: 1px solid rgba(136,136,136,.4); color: #888; }
.pill-sector.dark  { border: 1px solid rgba(136,136,136,.4); color: #888; }


/* ══════════ HERO V3 ══════════ */
#hero {
  background: var(--dark);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 180px 70px 28vh;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 100px);
  width: 100%;
  max-width: 1300px;
}

.hero-title {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(36px, 12.6vw, 210px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--light);
  text-align: center;
  transform: rotate(-4deg);
}

/* Solo i figli diretti — non tocca .hero-accent annidati */
.hero-title > span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(24px);
}
section#hero.vis .hero-title > span:nth-child(1) { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .05s forwards; }
section#hero.vis .hero-title > span:nth-child(2) { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .20s forwards; }
section#hero.vis .hero-title > span:nth-child(3) { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .35s forwards; }

.hero-title s {
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
}

.hero-accent { color: #E8B547; }

.hero-body {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(22px, 8.9vw, 128px);
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--light);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

.hero-cta-text {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(22px, 8.9vw, 128px);
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--light);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

.hero-body.revealed,
.hero-cta-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-ai-link,
.hero-skip-link {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: inherit;
}

.hero-ai-link:hover,
.hero-skip-link:hover { opacity: 0.65; }

@media (min-width: 1400px) {
  #hero { padding: 150px 70px 22vh; }
  .hero-title { font-size: clamp(36px, 10vw, 180px); }
  .hero-body,
  .hero-cta-text { font-size: clamp(22px, 7.5vw, 128px); }
}

@media (max-width: 767px) {
  #hero { padding: 120px 20px 18vh; }
  .hero-inner { gap: 36px; }
  /* font aumentati su mobile: il clamp base è calibrato per desktop */
  .hero-title { font-size: clamp(56px, 15vw, 210px); }
  .hero-title span { white-space: normal; }
  .hero-body,
  .hero-cta-text { font-size: clamp(30px, 10vw, 128px); }
}


/* ══════════ AI ABOUT ══════════ */
#ai-about {
  background: var(--light);
  height: auto;
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 80px 40px 80px;
  gap: 60px;
}
#ai-about.ai-visible { display: flex; }
#ai-about.ai-visible .ai-search-bar {
  animation: aiBoxIn 0.55s cubic-bezier(.16,1,.3,1) forwards;
}

/* Search bar — card scura in cima alla sezione */
.ai-search-bar {
  width: 100%;
  max-width: clamp(280px, 35vw, 498px);
  background: #393937;
  border: 1.5px solid #52514a;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ai-search-query {
  font-family: var(--fd);
  font-weight: 500;
  font-size: clamp(14px, 1.74vw, 25px);
  color: #fff;
  letter-spacing: -0.01em;
  padding: 15px;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  caret-color: #fff;
}
.ai-search-query::placeholder { color: rgba(255,255,255,0.55); }

.ai-about-content.ai-response-pending { display: none; }

.ai-search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-search-plus {
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11.25px; flex-shrink: 0;
}

.ai-search-actions {
  display: flex; gap: 15px; align-items: center;
}

.ai-search-model {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 12px;
  border-radius: 8px;
  font-family: var(--fd);
  font-size: clamp(11px, 1.46vw, 21px);
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: default;
}

.ai-search-send {
  width: 45px; height: 45px;
  background: #c66240;
  border: none;
  border-radius: 11.25px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}

/* Content: logo + testo */
.ai-about-content {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 40px 80px 40px 40px;
  width: 100%;
  max-width: 1050px;
}

.ai-about-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
}

.ai-about-logo img {
  width: 100%; height: 100%; display: block;
}

.ai-about-text {
  font-family: 'Ancizar Serif', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 3.33vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
  flex: 1;
  max-width: 724px;
  user-select: text;
  -webkit-user-select: text;
}

.ai-reveal {
  /* Nessuna opacity/transform: il JS gestisce il reveal via textContent */
  min-height: 1em; /* evita collasso della riga durante il reveal */
}

.ai-reveal.revealed {
  opacity: 1;
}

.ai-reveal.revealed::after {
  content: ' _';
  display: inline-block;
  animation: typeBlink 0.8s step-end infinite;
  color: var(--dark);
  font-family: var(--fb);
  font-size: 0.8em;
}

.ai-reveal.typing-done::after { display: none; }

.ai-about-text p {
  line-height: inherit;
  margin-bottom: 1.6em;
}

.ai-about-text p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  #ai-about { padding: 70px 20px 60px; gap: 32px; }
  .ai-about-content { padding: 20px 0; max-width: 100%; }
  .ai-about-text { font-size: clamp(22px, 5vw, 28px); }
  .ai-search-query { font-size: clamp(13px, 4vw, 18px); white-space: normal; }
  .ai-search-model { font-size: clamp(10px, 3.36vw, 15px); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #ai-about { padding: 60px 28px; gap: 40px; }
  .ai-about-content { padding: 30px 40px 30px 24px; }
  .ai-about-text { font-size: clamp(22px, 2.8vw, 34px); }
}

/* ══════════ ABOUT ══════════ */
#about { display: none !important; }
#about-hidden { background: #F1F1F1; position: relative; overflow: hidden; }
.about-inner {
  position: absolute; top: 72px; left: 40px; right: 40px; bottom: 48px;
  display: flex; flex-direction: row; gap: 8%;
}
.about-left { width: 24%; flex-shrink: 0; display: flex; flex-direction: column; container-type: inline-size; }
.about-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 0px; display: block; }
.about-id { margin-top: clamp(14px, 2vw, 36px); flex: 1; display: flex; flex-direction: column; }
.about-name {
  font-family: var(--fd); font-weight: 700;
  font-size: 13cqw; line-height: 1; letter-spacing: -0.04em; color: #0A0A0A;
  overflow: visible;
  padding-bottom: 0.05em;
}
.about-role-tag {
  font-family: var(--fd); font-weight: 700;
  font-size: 12.5cqw; line-height: 1; letter-spacing: -0.04em;
  color: rgb(194,194,194); margin-top: 0.2em;
  overflow: visible;
  padding-bottom: 0.1em;
}
.about-contact-row { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-start; }
.about-contact-l {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(9px, 1.04vw, 20px); line-height: 1.45; letter-spacing: -0.04em; color: #0A0A0A;
}
.about-contact-r {
  font-family: var(--fb); font-size: clamp(9px, 1.04vw, 20px);
  text-align: right; line-height: 1.45; letter-spacing: -0.04em; color: #0A0A0A;
}
.about-right {
  flex: 1; display: flex; flex-direction: column;
  justify-content: flex-start; gap: clamp(24px, 6vh, 72px); padding-top: 4px;
}
.about-para {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(18px, 3.33vw, 64px); line-height: 1; letter-spacing: -0.03em;
}
@keyframes typeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.about-typing-cursor {
  display: inline-block;
  width: 0.4em;
  height: 0.9em;
  background-color: #0A0A0A;
  vertical-align: baseline;
  margin-left: 4px;
  animation: typeBlink 1s step-end infinite;
  position: relative;
  top: 0.1em;
}
.tb { color: #0A0A0A; }
.tg { color: #BFBFBF; }

/* ── LIVE EDITING ANIMATION ── */
.live-mouse {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-3px, -3px);
  will-change: left, top;
}
.live-mouse svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.live-ibeam {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background-color: #0A0A0A;
  vertical-align: text-bottom;
  animation: typeBlink 0.5s step-end infinite;
  margin: 0 1px;
}
.live-selection {
  background-color: rgba(10, 10, 10, 0.1);
  color: #0A0A0A;
  border-radius: 2px;
}

.about-shape {
  position: absolute; left: 32%; top: -3%; width: 68%; height: 95%;
  fill: rgb(217,217,217); opacity: 0.55; mix-blend-mode: lighten; pointer-events: none;
}
.about-footer {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px; border-top: 1px solid rgba(10,10,10,.12);
}
.about-footer-txt { font-family: var(--fb); font-size: 12px; color: rgba(10,10,10,.4); letter-spacing: 0.12em; text-transform: uppercase; }


/* ══════════ PROJECTS — Editorial scroll, layout fluido ══════════ */
#projects {
  position: relative;
  height: auto;
  min-height: 100vh;
}
.proj-zone {
  background: var(--light);
  padding: 72px 40px 120px;
  color: #0a0a0a;
}
.motion-zone {
  background: var(--dark);
  color: var(--light);
  padding: 80px 40px 48px;
}
.sec-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; padding-bottom: 12px;
}
.sec-header.light { border-bottom: 1px solid rgba(10,10,10,.12); }
.sec-header.dark  { border-bottom: 1px solid rgba(241,241,241,.1); }
.sec-label { font-family: var(--fb); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sec-label.light { color: rgba(10,10,10,.5); }
.sec-label.dark  { color: rgba(241,241,241,.55); }
.sec-count { font-family: var(--fb); font-size: 12px; }
.sec-count.light { color: rgba(10,10,10,.65); }
.sec-count.dark  { color: rgba(241,241,241,.65); }

/* Griglia editoriale — flex column con larghezze variabili da data-layout */
.projects-grid {
  display: flex;
  flex-direction: column;
  row-gap: 80px;
  max-width: 1360px;
  margin: 0 auto;
}
.proj-card {
  display: flex; flex-direction: column; gap: 14px;
  cursor: none;
}

/* Layout variants */
.proj-card[data-layout="full"]        { width: 100%; }
.proj-card[data-layout="right-half"]  { width: 47%; margin-left: auto; }
.proj-card[data-layout="left-half"]   { width: 42%; }
.proj-card[data-layout="wide-center"] { width: 76%; margin-left: 10%; }

/* Thumb — larghezza 100% della card, altezza proporzionale all'immagine */
.proj-thumb {
  width: 100%;
  border-radius: 0;
  position: relative;
}

/* Thumbnail principale: width 100%, height proporzionale, nessun crop */
.proj-thumb img:not(.pool-el),
.proj-thumb video:not(.pool-el) {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .18s ease;
}
/* Pool overlay (hover cycle): si sovrappongono al thumbnail con crop */
.proj-thumb .pool-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity .18s ease;
}
.proj-thumb-inner { position: absolute; inset: 0; height: 100%; }
.proj-info {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proj-name {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(22px, 2.9vw, 42px);
  letter-spacing: -0.01em; color: var(--dark); line-height: 1;
}
.proj-tagline {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(22px, 2.9vw, 42px);
  color: #888; line-height: 1; letter-spacing: -0.01em;
}
.proj-pills {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  padding: 16px 0;
}
.proj-pills .pill {
  font-size: clamp(12px, 1.67vw, 24px);
  padding: clamp(5px, 0.55vw, 8px) clamp(12px, 1.9vw, 28px);
  line-height: 1;
}
.proj-pills .pill-sector { border-radius: 8px; }
.proj-pills .pill-light  { border-radius: 100px; }
.proj-badge {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.proj-badge img { width: 100%; height: 100%; object-fit: contain; }

/* Gallery-cycle cursor for project cards */
#proj-cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  font-family: var(--fd); font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: #ffffff; opacity: 0;
  transition: opacity .18s;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform, left, top;
}


/* ══════════ MOTION — zona interna a #projects ══════════ */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
.motion-card {
  display: flex; flex-direction: column; gap: 8px;
  cursor: none;
}
.motion-thumb {
  width: min(100%, calc(75vh * (var(--aw, 16) / var(--ah, 9))));
  margin: 0;
  border-radius: 0; overflow: hidden;
  position: relative;
}

.motion-thumb video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.motion-thumb-bg { position: absolute; inset: 0; }
.motion-info { flex-shrink: 0; }
.motion-name { font-family: var(--fd); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--light); }
.motion-tagline { font-family: var(--fb); font-size: 15px; color: rgba(241,241,241,.65); margin-top: 3px; }
.motion-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }

/* Audio toggle cursor */
#motion-cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  font-family: var(--fd); font-weight: 700;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #ffffff; opacity: 0;
  transition: opacity .18s;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  mix-blend-mode: difference;
  will-change: transform, left, top;
}

/* ── SPOTLIGHT EFFECT ── */
#spotlight {
  --sx: -9999px;
  --sy: -9999px;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: radial-gradient(
    circle 340px at var(--sx) var(--sy),
    transparent 0%,
    rgba(10,10,10,.8) 100%
  );
  opacity: 0;
  transition: opacity .8s ease;
  will-change: opacity;
}
#spotlight.active { opacity: 1; }
@media (hover: none), (pointer: coarse) { #spotlight { display: none; } }
@media (prefers-reduced-motion: reduce) { #spotlight { display: none; } }

/* ── BLOB CURSOR ── */
/* Nasconde il cursore nativo quando il blob è attivo */
body.blob-active,
body.blob-active * { cursor: none !important; }

#cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition:
    width  .3s cubic-bezier(.16,1,.3,1),
    height .3s cubic-bezier(.16,1,.3,1),
    opacity .2s ease;
  will-change: left, top;
  opacity: 0;
}
#cursor-blob.blob-visible  { opacity: 1; }
#cursor-blob.blob-big      { width: 68px; height: 68px; }
#cursor-blob.blob-hidden   { opacity: 0; transition: opacity .1s ease; }
@media (hover: none), (pointer: coarse) { #cursor-blob { display: none; } }
@media (prefers-reduced-motion: reduce) { #cursor-blob { display: none; } }


/* ── TOUCH & INTERACTION ── */
.proj-card, .motion-card { touch-action: manipulation; }
.nav-links a, .dot, .slide-btn { touch-action: manipulation; }
/* cursor:none non serve su touch e può compromettere hit detection iOS */
@media (hover: none) and (pointer: coarse) {
  .proj-card, .motion-card { cursor: auto; }
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: auto; height: auto; padding: 10px 20px;
  background: var(--light); color: var(--dark);
  font-family: var(--fb); font-size: 13px; font-weight: 600;
  z-index: 9999; text-decoration: none; border-radius: 100px;
}

/* ── FOCUS STATES ── */
.nav-links a:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 4px;
  opacity: 1;
}
.slide-btn:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 4px;
}
.dot:focus-visible {
  outline: 2px solid rgba(241,241,241,.8);
  outline-offset: 4px;
  border-radius: 3px;
}
.proj-card:focus-visible .proj-thumb {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

/* ── NAV ACTIVE STATE ── */
.nav-links a.nav-active { opacity: 1; }

/* ══════════ PHOTOGRAPHY ══════════ */
#photography {
  display: none !important;
  background: var(--dark); color: var(--light);
  padding: 72px 40px 32px; flex-direction: column;
}
.photo-grid {
  flex: 1; display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0;
}
.photo-cell {
  position: relative; overflow: hidden; border-radius: var(--r);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.photo-cell:first-child { grid-row: 1/3; }
.photo-cell:hover { transform: scale(1.01); }
.photo-cell img { width:100%; height:100%; object-fit:cover; opacity:.88; }
.photo-cell-label {
  position: absolute; bottom: 10px; left: 12px;
  font-family: var(--fb); font-size: 12px;
  color: rgba(241,241,241,.6); letter-spacing: .1em; text-transform: uppercase;
}


/* ══════════ SKILLS ══════════ */
#skills {
  background: var(--light); color: var(--dark);
  padding: 72px 40px 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  overflow: hidden;
}

.skills-col { padding-right: 48px; display: flex; flex-direction: column; overflow: visible; }
.cv-col     { padding-left: 48px; border-left: 1px solid rgba(10,10,10,.1); display: flex; flex-direction: column; }

/* Section label — small caps, muted, light */
.sk-label {
  font-family: var(--fb); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(10,10,10,.5); font-weight: 500;
  padding-bottom: 9px; border-bottom: 1px solid rgba(10,10,10,.1);
}

/* ── Practice ── */
.sk-core { margin-top: 12px; }
.sk-core-item {
  display: flex; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(10,10,10,.08);
}
.sk-core-name {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(18px, 3.33vw, 64px); line-height: 1; letter-spacing: -0.03em;
  color: var(--dark);
}
.sk-core-name--sec { color: rgba(10,10,10,.55); font-weight: 700; }

.sk-practice-title {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(20px, 3vw, 56px);
  line-height: 1; letter-spacing: -0.04em;
  color: var(--dark); margin-bottom: 20px;
}
.sk-practice-body {
  font-size: clamp(16px, 2vw, 36px) !important;
}

/* ── Tools ── */
.sk-tools { margin-top: auto; position: sticky; bottom: 24px; }

/* Toolkit Accordion */
.sk-toolkit-accordion {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.sk-toolkit-section:hover .sk-toolkit-accordion,
.sk-toolkit-section.toolkit-open .sk-toolkit-accordion { grid-template-rows: 1fr; }
.sk-toolkit-accordion-inner { min-height: 0; }
.sk-toolkit-trigger { cursor: s-resize; position: relative; }
.sk-toolkit-trigger::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 10px; opacity: 0.3; transition: transform 0.3s;
}
.sk-toolkit-section:hover .sk-toolkit-trigger::after,
.sk-toolkit-section.toolkit-open .sk-toolkit-trigger::after { transform: rotate(45deg); opacity: 0.6; content: '×'; }

/* Toolkit frequenza-tool rows */
.sk-freq-section {
  display: flex; gap: 16px; padding: 9px 0;
  border-bottom: 1px solid rgba(10,10,10,.07);
  align-items: baseline;
}
.sk-freq-section:last-child { border-bottom: none; }
.sk-freq-label {
  font-family: var(--fb); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(10,10,10,.35); width: 72px; flex-shrink: 0;
  font-weight: 500; padding-top: 2px;
}
.sk-freq-tools {
  font-family: var(--fb); font-size: 14px;
  color: var(--dark); font-weight: 400; line-height: 1.45;
}

/* ── Experience timeline ── */
.cv-tl { margin-top: 12px; display: flex; flex-direction: column; gap: 0; }
.cv-entry {
  display: grid; grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 0 16px; padding: 10px 0; border-bottom: 1px solid rgba(10,10,10,.08);
  position: relative; cursor: pointer;
}
.cv-entry:last-child { border-bottom: none; }
.cv-entry-indicator {
  position: absolute; right: 0; top: 14px;
  font-family: var(--fb); font-size: 16px; color: rgba(10,10,10,.45);
  transition: transform 0.3s;
}
.cv-entry:hover .cv-entry-indicator,
.cv-entry.open .cv-entry-indicator { transform: rotate(45deg); color: rgba(10,10,10,.5); }
.cv-entry-date {
  font-family: var(--fb); font-size: 12px; color: rgba(10,10,10,.50);
  line-height: 1.3; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.cv-entry-co {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; letter-spacing: -0.02em;
  color: var(--dark); line-height: 1.2; font-weight: 800;
}
.cv-entry-role {
  font-family: var(--fb); font-size: 16px; color: var(--dark);
  font-weight: 500; letter-spacing: 0;
}
.cv-entry-tag {
  display: block; line-height: 1.3;
  font-family: var(--fb); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(10,10,10,.50); font-weight: 500;
}
/* accordion description */
.cv-entry-desc {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.cv-entry:hover .cv-entry-desc,
.cv-entry.open .cv-entry-desc { grid-template-rows: 1fr; }
.cv-entry-desc-inner { min-height: 0; }
.cv-entry-desc-text {
  font-family: var(--fb); font-size: 15px; color: rgba(10,10,10,.60);
  line-height: 1.62; padding-top: 6px; font-weight: 400; letter-spacing: 0.015em;
}

/* ── CV download ── */
.cv-dl {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 0; align-self: flex-start;
  padding: 10px 22px; border: 1px solid rgba(10,10,10,.3);
  font-family: var(--fb); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; text-decoration: none; color: var(--dark); font-weight: 500;
}
.cv-dl:hover { background: var(--dark); color: var(--light); border-color: var(--dark); }


/* ══════════ CONTACT ══════════ */
#contact {
  background: var(--dark); color: var(--light);
  padding: 80px 40px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.contact-big {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(52px, 8vw, 124px);
  line-height: .84; letter-spacing: -.04em; color: var(--light);
}
.contact-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;
  padding-top: 40px; border-top: 1px solid rgba(241,241,241,.15);
}
.c-label { font-family: var(--fb); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,241,241,.5); margin-bottom: 10px; }
.c-val { font-family: var(--fb); font-size: 16.5px; color: var(--light); line-height: 1.9; letter-spacing: 0.01em; }
/* link nel contact: underline su touch per discoverabilità */
@media (hover: none) and (pointer: coarse) {
  .c-val a { text-decoration: underline; text-underline-offset: 3px; }
}
.contact-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(241,241,241,.1);
}
.foot-txt { font-family: var(--fb); font-size: 12px; color: rgba(241,241,241,.4); letter-spacing: .1em; }

.clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px; margin-top: 14px;
}
.clients-grid .foot-txt { color: rgba(10,10,10,.5); }


/* ══════════ TWEAKS ══════════ */
#tweaks-panel {
  display: none; position: fixed; bottom: 24px; left: 24px;
  background: rgba(8,8,8,.96); border: 1px solid rgba(241,241,241,.12);
  padding: 18px 20px; z-index: 999; width: 220px; backdrop-filter: blur(12px);
  border-radius: 8px;
}
#tweaks-panel.open { display: block; }
.tw-title { font-family: var(--fb); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,241,241,.45); margin-bottom: 16px; }
.tw-row { margin-bottom: 14px; }
.tw-label { font-family: var(--fb); font-size: 10.5px; color: rgba(241,241,241,.4); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 7px; display: block; }
.tw-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.tw-btn { padding: 3px 9px; font-size: 11px; border: 1px solid rgba(241,241,241,.15); color: rgba(241,241,241,.5); cursor: pointer; background: transparent; font-family: var(--fb); transition: all .15s; border-radius: 3px; }
.tw-btn:hover, .tw-btn.on { background: rgba(241,241,241,.08); color: var(--light); border-color: rgba(241,241,241,.4); }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

/* ── About: auto full-text on small desktop / tablet ── */
@media (max-width: 1023px) {
  .about-left { display: none; }
  .about-inner { gap: 0 !important; }
  .about-right {
    justify-content: center;
    padding-top: 20px;
    gap: clamp(16px, 4vh, 48px);
  }
  .about-para { font-size: clamp(16px, 3.4vw, 52px); }
}

/* ── Tablet (768–1023px) ── */
@media (max-width: 1023px) {
  .top-nav { padding: 18px 28px; }
  .top-nav.nav--scrolled {
    min-width: 400px;
    top: 18px;
    padding: 9px 20px;
  }

  .proj-zone, .motion-zone, #photography { padding: 60px 28px 24px; }
  .proj-card[data-layout="right-half"]  { width: 60%; }
  .proj-card[data-layout="left-half"]   { width: 55%; }
  .proj-card[data-layout="wide-center"] { width: 85%; margin-left: 5%; }
  .motion-grid { grid-template-columns: repeat(6, 1fr); }
  .motion-card[data-span="6"], .motion-card[data-span="7"] { grid-column: span 4; }
  .motion-card[data-span="4"], .motion-card[data-span="5"] { grid-column: span 3; }
  .motion-card[data-span="3"] { grid-column: span 2; }
  .motion-card[data-span="10"] { grid-column: span 6; }
  .photo-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .photo-cell:first-child { grid-row: 1 / 3; }

  #skills {
    padding: 72px 28px 24px;
    grid-template-columns: 1fr;
  }
  .skills-col { padding-right: 0; overflow: visible; }
  .cv-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(10,10,10,.1);
    padding-top: 24px;
    margin-top: 16px;
  }

  #contact { padding: 64px 28px 44px; }
  .contact-big { font-size: clamp(44px, 7vw, 100px); }
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .anim { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-title > span { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-body, .hero-cta-text { transition: none !important; opacity: 1 !important; transform: none !important; }
  .slide { transition: opacity .01s !important; }
  .slide-bg { transition: none !important; }
  .proj-thumb, .motion-thumb { transition: none !important; }
  .proj-card:hover .proj-thumb, .proj-card:active .proj-thumb { transform: none !important; }
  .motion-card:hover .motion-thumb, .motion-card:active .motion-thumb { transform: none !important; }
  .slide-btn { transition: none !important; }
  .nav-logo { transition: none !important; }
  .cv-entry-desc { transition: none !important; }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {

  /* Top Nav */
  .top-nav { padding: 14px 20px; }
  .top-nav.nav--scrolled {
    min-width: 0;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    top: 14px;
    padding: 9px 16px;
    border-radius: 100px;
  }
  .nav-logo { font-size: 16px !important; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.08em; }

  /* Dot Nav */
  .dot-nav { right: 10px; gap: 8px; }
  .dot { width: 4px; }
  .dot.active { height: 18px; }

  /* ── Hero ── */
  .slide { padding: 0 20px 18px; }
  .slide-content { max-width: none; }
  .slide-title { font-size: clamp(20px, 5.5vw, 32px); white-space: normal; }
  .slide-num { font-size: clamp(70px, 20vw, 130px); right: 12px; }
  .slide-desc { font-size: 15px; max-width: 100%; }
  .slide-cat { font-size: 12px; }
  .slider-controls { right: 22px; bottom: 18px; }

  /* ── About (mobile) — restore compact left panel as inline header ── */
  .about-inner {
    top: 60px; left: 20px; right: 20px; bottom: 44px;
    flex-direction: column;
    gap: 20px !important;
  }
  .about-left {
    display: flex !important;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }
  .about-photo { width: 64px; height: 64px; border-radius: 50%; aspect-ratio: 1/1; }
  .about-id { margin-top: 0; }
  .about-name { font-size: clamp(22px, 6vw, 34px); white-space: normal; }
  .about-role-tag { font-size: clamp(18px, 5vw, 30px); white-space: normal; }
  .about-contact-row { display: none; }
  .about-right { gap: 14px; overflow-y: auto; padding-top: 0; justify-content: flex-start; }
  .about-para { font-size: clamp(16px, 4.5vw, 24px); }
  .about-shape { display: none; }
  .about-footer { padding: 0 20px; }
  .about-footer-txt { font-size: 11px; }

  /* ── Projects ── */
  .proj-zone { padding: 64px 16px 16px; }
  .projects-grid { row-gap: 48px; }
  .proj-card[data-layout] { width: 100% !important; margin-left: 0 !important; }
  .proj-name { font-size: 20px; }
  .proj-tagline { display: none; }
  .proj-pills { display: none; }

  /* ── Motion ── */
  .motion-zone { padding: 52px 16px 16px; }
  .motion-grid { grid-template-columns: 1fr; gap: 16px; }
  .motion-card[data-span] { grid-column: span 1; }
  .motion-name { font-size: 20px; overflow-wrap: break-word; }
  .motion-tagline { display: none; }
  /* fallback aspect-ratio se JS non ha ancora iniettato il valore inline */
  .motion-thumb { aspect-ratio: 16/9; }
  .motion-pills { display: none; }

  /* ── Photography ── */
  #photography { padding: 52px 16px 16px; }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .photo-cell:first-child { grid-row: auto; grid-column: 1 / -1; height: 200px; }
  .photo-cell { height: 120px; }

  /* ── Skills ── */
  #skills {
    padding: 60px 16px 16px;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 0;
    height: auto;
    min-height: 100vh;
  }
  .skills-col { padding-right: 0; overflow: visible; }
  /* sticky non funziona su colonna breve in layout 1-col: CV button torna statico */
  .sk-tools { position: static; bottom: auto; margin-top: 20px; }
  .cv-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(10,10,10,.1);
    padding-top: 20px;
    margin-top: 20px;
  }
  .sk-core-name { font-size: clamp(16px, 4.5vw, 24px); }
  .cv-entry-co { font-size: 15px; }
  /* padding-right per evitare overlap con l'indicatore + assoluto */
  .cv-entry > div:nth-child(2) { padding-right: 24px; }
  .cv-dl { align-self: flex-start; }

  /* ── Contact ── */
  #contact { padding: 52px 20px 36px; }
  .contact-big { font-size: clamp(32px, 9.5vw, 64px); }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .contact-foot { flex-direction: column; gap: 6px; align-items: flex-start; }
  .c-val { font-size: 16.5px; line-height: 1.7; }
}

/* ══════════ PROJECT DRAWER ══════════ */
#pd-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease-out;
}
#pd-overlay.open { opacity: 1; pointer-events: auto; }

#pd {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px; z-index: 201;
  background: #0A0A0A;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 300ms cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
#pd.open { transform: translateX(0); }

@media (max-width: 767px) { #pd { width: 100vw; } }
@media (min-width: 768px) and (max-width: 1023px) { #pd { width: 70vw; } }

/* Header */
#pd-hd {
  background: #0A0A0A; z-index: 5; flex-shrink: 0;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(241,241,241,0.1);
}
#pd-hd-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
}
#pd-title {
  font-family: var(--fd); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: #F1F1F1; line-height: 1.15;
  user-select: text; -webkit-user-select: text;
}
#pd-year {
  font-family: var(--fb); font-size: 12px;
  color: rgba(241,241,241,0.35); margin-top: 4px;
}
#pd-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: rgba(241,241,241,0.5);
  line-height: 1; padding: 0; flex-shrink: 0; margin-top: -1px;
  transition: color .18s; pointer-events: auto;
}
#pd-close:hover { color: #F1F1F1; }
#pd-close:focus-visible { outline: 2px solid rgba(241,241,241,.6); outline-offset: 3px; }
#pd-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pd-pill {
  font-family: var(--fb); font-size: 11px; padding: 3px 9px;
  border: 1px solid rgba(241,241,241,0.2); color: rgba(241,241,241,0.45);
  letter-spacing: 0.01em; white-space: nowrap;
}
.pd-pill-sector { border-radius: 0; font-weight: 500; }
.pd-pill-disc   { border-radius: 100px; }

/* Scrollable body */
#pd-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 200ms ease;
}
#pd-body::-webkit-scrollbar { width: 2px; }
#pd-body::-webkit-scrollbar-thumb { background: rgba(241,241,241,0.12); border-radius: 1px; }

/* Hero media */
#pd-hero { width: 100%; background: #111; }
#pd-hero img, #pd-hero video {
  width: 100%; display: block;
  pointer-events: none; -webkit-user-drag: none;
}

/* Inner content */
#pd-inner { padding: 28px 24px 0; }

/* Headline */
#pd-headline {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: -0.03em; color: #F1F1F1;
  line-height: 1.05; margin-bottom: 22px;
  user-select: text; -webkit-user-select: text;
}

/* What I did */
#pd-what-label {
  font-family: var(--fb); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(241,241,241,0.3); margin-bottom: 5px;
}
#pd-what {
  font-family: var(--fb); font-size: 13.5px;
  color: rgba(241,241,241,0.5); margin-bottom: 24px;
  line-height: 1.55; letter-spacing: 0.01em; user-select: text; -webkit-user-select: text;
}

/* Project text */
#pd-text { margin-bottom: 28px; }
.pd-para {
  font-family: var(--fb); font-size: 15.5px; font-weight: 400;
  color: rgba(241,241,241,0.82); line-height: 1.65; letter-spacing: 0.015em;
  margin-bottom: 18px;
  user-select: text; -webkit-user-select: text;
}
.pd-para:last-child { margin-bottom: 0; }

/* Gallery */
#pd-gallery {
  display: flex; flex-direction: column; gap: 3px;
  padding-bottom: 3px;
}
#pd-gallery img {
  width: auto; max-width: 100%; max-height: 70vh;
  display: block; margin: 0 auto;
}
#pd-gallery video {
  width: 100%; display: block; max-height: 70vh;
}
#pd-gallery img { pointer-events: none; -webkit-user-drag: none; }
#pd-gallery video[controls] { pointer-events: auto; }
#pd-gallery video:not([controls]) { pointer-events: none; }

/* Footer */
#pd-ft {
  border-top: 1px solid rgba(241,241,241,0.1);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; gap: 8px; background: #0A0A0A;
}
.pd-ft-nav {
  background: none; border: none; cursor: pointer;
  font-family: var(--fb); font-size: 12px; font-weight: 500;
  color: rgba(241,241,241,0.45); letter-spacing: 0.04em;
  padding: 8px 4px; transition: color .18s; pointer-events: auto;
  white-space: nowrap; min-width: 80px;
}
.pd-ft-nav:hover { color: #F1F1F1; }
.pd-ft-nav:focus-visible { outline: 2px solid rgba(241,241,241,.5); outline-offset: 2px; }
#pd-ft-next { text-align: right; }
#pd-full {
  font-family: var(--fb); font-size: 12px; font-weight: 500;
  color: rgba(241,241,241,0.65); letter-spacing: 0.04em;
  padding: 6px 13px;
  border: 1px solid rgba(241,241,241,0.28);
  text-decoration: none;
  transition: border-color .18s, color .18s;
  white-space: nowrap; flex-shrink: 0;
}
#pd-full:hover { border-color: rgba(241,241,241,0.75); color: #F1F1F1; }

/* Hero slide open trigger */
.slide-open {
  position: absolute; bottom: 28px; right: 44px;
  z-index: 10; /* above navZone z-index:5 */
  font-family: var(--fd); font-weight: 700;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(241,241,241,0.38); cursor: pointer;
  transition: color .18s; pointer-events: auto;
  white-space: nowrap;
}
.slide-open:hover { color: rgba(241,241,241,0.85); }
@media (max-width: 767px) {
  .slide-open { bottom: 16px; right: 22px; font-size: 10px; }
  #pd-ft { padding: 10px 16px; }
  #pd-hd { padding: 16px 20px 12px; }
  #pd-inner { padding: 22px 20px 0; }
}
