/* Emilcam — brand identity.
   Colori del marchio: Lapis #211FB4, Silver #939394, Marble #F3F3F3, Graphite #121212.
   Carattere: Montserrat (il logotipo è Montserrat Medium Italic). */

@font-face {
  font-family: 'Montserrat EM';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('../assets/emilcam/fonts/montserrat-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat EM';
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  src: url('../assets/emilcam/fonts/montserrat-wght-italic.woff2') format('woff2');
}

:root.project-emilcam {
  --lapis: #211fb4;
  --lapis-deep: #17158a;
  --lapis-soft: #4a48d8;
  --silver: #939394;
  --marble: #f3f3f3;
  --graphite: #121212;
  --graphite-2: #1b1b1d;
  --white: #fff;
  --muted: #5f5f63;
  --muted-dark: #a9a9ae;
  --line: rgb(18 18 18 / 14%);
  --line-dark: rgb(255 255 255 / 14%);
  --g: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --font: 'Montserrat EM', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--graphite);
}
.project-emilcam *,
.project-emilcam *::before,
.project-emilcam *::after {
  box-sizing: border-box;
}
.project-emilcam body {
  margin: 0;
  background: var(--graphite);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:where(.em) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
  margin: 0;
  padding: 0;
}
:where(.em) :where(ul, ol) {
  list-style: none;
}
:where(.em) img {
  display: block;
  max-width: 100%;
  height: auto;
}
:where(.project-emilcam) a {
  color: inherit;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--lapis);
  font: 600 14px/1 var(--font);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: none;
}
.em :focus-visible {
  outline: 2px solid var(--lapis);
  outline-offset: 3px;
}
.sec-graphite :focus-visible,
.hero :focus-visible {
  outline-color: var(--white);
}

.em {
  display: block;
  padding-top: var(--project-header-height);
  overflow-x: clip;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--g);
}
.sec {
  position: relative;
  padding: clamp(96px, 11vw, 170px) 0;
}
.sec-marble {
  background: var(--marble);
}
.sec-white {
  background: var(--white);
}
.sec-graphite {
  background: var(--graphite);
  color: var(--marble);
}

/* Testi -------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--lapis);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.eyebrow span {
  letter-spacing: 0.1em;
}
.eyebrow::after {
  content: '';
  flex: 0 0 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.sec-graphite .eyebrow {
  color: var(--silver);
}
.sec-head {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(48px, 6vw, 90px);
}
.sec-head h2 {
  max-width: 17ch;
  font-size: clamp(38px, 5.4vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.em h2 em,
.hero-lead em {
  color: var(--lapis);
  font-style: italic;
  font-weight: 500;
}
.sec-graphite h2 em {
  color: var(--silver);
}
.sub {
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Entrate */
.reveal-ready [data-reveal] {
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.9s var(--out) var(--d, 0ms);
}
.reveal-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

/* APERTURA ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  min-height: max(640px, calc(100svh - var(--project-header-height)));
  overflow: hidden;
  background: var(--lapis);
  color: var(--white);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px) 0 0 / 100% calc(100% / 8),
    linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px) 0 0 / calc(100% / 17) 100%;
  -webkit-mask: radial-gradient(ellipse 80% 75% at 55% 45%, #000 30%, transparent 100%);
  mask: radial-gradient(ellipse 80% 75% at 55% 45%, #000 30%, transparent 100%);
}
.crop {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-color: rgb(255 255 255 / 70%);
  border-style: solid;
  border-width: 0;
}
.crop-tl {
  top: 24px;
  left: 24px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.crop-tr {
  top: 24px;
  right: 24px;
  border-top-width: 1px;
  border-right-width: 1px;
}
.crop-bl {
  bottom: 24px;
  left: 24px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.crop-br {
  right: 24px;
  bottom: 24px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--g) clamp(36px, 4.5vw, 60px);
}
.hero .eyebrow {
  color: var(--white);
}
.hero .eyebrow span {
  opacity: 0.6;
}
.hero-title {
  align-self: center;
  margin: clamp(28px, 4vw, 56px) 0;
  font: inherit;
}
.hero-logo {
  display: block;
  width: min(100%, 900px, calc((100svh - var(--project-header-height) - 390px) * 1.94));
  min-width: min(100%, 420px);
  height: auto;
  overflow: visible;
  fill: var(--white);
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: end;
  gap: clamp(28px, 5vw, 90px);
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 30%);
}
.hero-lead {
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: end;
  gap: 18px clamp(22px, 3vw, 46px);
}
.hero-meta dt {
  margin-bottom: 6px;
  color: rgb(255 255 255 / 64%);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-meta dd {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Il marchio si monta all'apertura */
.motion-ok .hero-logo .lg-mod {
  animation: mod-in 1.1s var(--out) both;
  animation-delay: calc(0.25s + var(--i) * 0.12s);
}
.motion-ok .hero-logo .lg-ray {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ray-in 0.7s var(--out) both;
  animation-delay: calc(1.05s + var(--i) * 0.08s);
}
.motion-ok .hero-logo .lg-spin {
  animation: spin-in 1.4s var(--out) 0.15s both;
}
.motion-ok .hero-logo .lg-letter {
  animation: letter-in 0.9s var(--out) both;
  animation-delay: calc(1.25s + var(--i) * 0.06s);
}
.motion-ok .hero-logo .lg-tag {
  animation: fade-in 1s ease 1.9s both;
}
.motion-ok .hero-grid {
  animation: fade-in 1.6s ease both;
}
.motion-ok .hero-inner > :not(.hero-title) {
  animation: rise-in 1s var(--out) 1.6s both;
}
@keyframes mod-in {
  from {
    opacity: 0;
    transform: translate(420px, -420px);
  }
}
@keyframes ray-in {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
}
@keyframes spin-in {
  from {
    transform: rotate(-35deg);
  }
  to {
    transform: rotate(11.556deg);
  }
}
@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(46px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.hero-logo .lg-spin {
  transform: rotate(11.556deg);
}

/* Icone (le icone originali, ricolorate con una maschera) */
.ico {
  display: block;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

/* 01 BRIEF ------------------------------------------------------------------- */
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 120px);
}
.brief .sec-head {
  grid-column: 1 / -1;
}
.brief-copy {
  grid-column: 2;
  display: grid;
  gap: 1.1em;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
}
.brief-copy p:last-child {
  color: var(--muted);
}
.areas {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.areas-label {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.areas ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.areas li {
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 22px;
  aspect-ratio: 1 / 1.08;
  padding: 26px 10px 18px;
  background: var(--lapis);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.4s var(--out), background 0.3s;
}
.areas li .ico {
  margin-top: auto;
}
.areas li:hover {
  background: var(--lapis-deep);
  transform: translateY(-4px);
}

/* 02 GENESI ------------------------------------------------------------------- */
.genesi {
  padding-top: 0;
}
.genesi-art {
  position: relative;
  height: clamp(380px, 70svh, 780px);
  overflow: hidden;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.genesi-art img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 62%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.04);
  will-change: transform;
}
.genesi-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(18 18 18 / 85%));
}
.genesi-art figcaption {
  position: absolute;
  right: var(--g);
  bottom: 22px;
  z-index: 1;
  color: var(--muted-dark);
  font-size: 12px;
}
.genesi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 120px);
}
.genesi-copy {
  display: grid;
  gap: 1.1em;
  align-self: end;
  color: #d9d9dc;
  font-size: clamp(17px, 1.4vw, 20px);
}
.values {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line-dark);
}
.values li {
  display: grid;
  grid-template-rows: 150px auto auto;
  gap: 12px;
  padding: 40px clamp(16px, 2.5vw, 40px) 8px;
}
.values li + li {
  border-left: 1px solid var(--line-dark);
}
.values img {
  align-self: center;
  width: auto;
  max-height: 120px;
  filter: brightness(0) invert(1);
}
.values li:first-child img {
  max-height: 96px;
}
.values li:last-child img {
  max-height: 74px;
}
.values h3 {
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.values p {
  color: var(--muted-dark);
  font-size: 15px;
}
.motion-ok .values .is-in img {
  animation: float 6s ease-in-out infinite;
}
.motion-ok .values li:nth-child(2).is-in img {
  animation-delay: -2s;
}
.motion-ok .values li:nth-child(3).is-in img {
  animation-delay: -4s;
}
@keyframes float {
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

/* 03 MARCHIO: costruzione ------------------------------------------------------- */
.marchio {
  padding-bottom: 0;
}
.build {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--g);
}
.build-stage {
  position: sticky;
  top: var(--project-header-height);
  display: grid;
  place-items: center;
  height: calc(100svh - var(--project-header-height));
}
.st {
  width: 100%;
  max-height: 78%;
  overflow: visible;
}
.build-steps {
  padding: 22svh 0 30svh;
}
.build-steps li {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 68svh;
  max-width: 440px;
  padding-left: clamp(0px, 3vw, 40px);
  opacity: 0.28;
  transition: opacity 0.5s;
}
.build-steps li.is-active {
  opacity: 1;
}
.build-steps span {
  color: var(--lapis);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.build-steps h3 {
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.build-steps p {
  color: var(--muted);
}
.build-steps em {
  color: var(--lapis);
  font-weight: 500;
}
.build-dots {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.build-dots li {
  width: 26px;
  height: 3px;
  background: var(--line);
  transition: background 0.3s;
}

/* Stato della scena per ogni passo */
.st * {
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--out),
    fill 0.5s,
    stroke 0.5s;
}
.st path {
  vector-effect: non-scaling-stroke;
}
.st-grid path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.st-grid {
  opacity: 0;
}
.st-sym {
  transform: translate(339px, 150px) scale(0.31);
}
.st-rot {
  transform: rotate(0deg);
}
.st-axis,
.st-vert {
  fill: none;
  stroke: var(--lapis);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0;
}
.st-arc {
  fill: none;
  stroke: var(--lapis);
  stroke-width: 1.5;
  opacity: 0;
}
.st-kite,
.st-tail {
  fill: none;
  stroke: var(--lapis);
  stroke-width: 1.5;
}
.st-kite {
  stroke-dasharray: 6 6;
}
.st-bow {
  fill: var(--lapis);
}
.st-mod {
  fill: var(--lapis);
  opacity: 0;
  transform: translate(140px, -140px);
}
.st-ray {
  fill: var(--lapis);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.st-spark {
  fill: var(--lapis-soft);
  opacity: 0;
}
.st-word,
.st-tag {
  fill: var(--silver);
}
.st-letter,
.st-tag {
  opacity: 0;
  transform: translateX(-40px);
}
.st-path {
  fill: none;
  stroke: var(--lapis);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  opacity: 0;
}
/* 1: moduli */
[data-step='1'] .st-mod,
[data-step='2'] .st-mod,
[data-step='3'] .st-mod,
[data-step='4'] .st-mod {
  opacity: 1;
  transform: none;
}
[data-step='1'] .st-mod {
  transition-delay: calc(var(--i) * 0.12s);
}
[data-step='1'] .st-kite,
[data-step='2'] .st-kite,
[data-step='3'] .st-kite,
[data-step='4'] .st-kite {
  opacity: 0.35;
}
[data-step='1'] .st-tail,
[data-step='1'] .st-bow,
[data-step='2'] .st-tail,
[data-step='2'] .st-bow,
[data-step='3'] .st-tail,
[data-step='3'] .st-bow,
[data-step='4'] .st-tail,
[data-step='4'] .st-bow,
[data-step='4'] .st-kite {
  opacity: 0;
}
/* 2: scintilla e raggi */
[data-step='2'] .st-mod {
  opacity: 0.18;
}
[data-step='2'] .st-spark {
  opacity: 1;
}
[data-step='2'] .st-ray,
[data-step='3'] .st-ray,
[data-step='4'] .st-ray {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.2s + var(--i) * 0.08s);
}
/* 3: inclinazione */
[data-step='3'] .st-rot,
[data-step='4'] .st-rot {
  transform: rotate(11.556deg);
}
[data-step='3'] .st-axis,
[data-step='3'] .st-vert,
[data-step='3'] .st-arc {
  opacity: 1;
}
/* 4: logotipo e traiettoria */
[data-step='4'] .st-sym {
  transform: translate(575.47px, 102.51px) scale(0.17778);
}
[data-step='4'] .st-grid {
  opacity: 1;
}
[data-step='4'] .st-letter,
[data-step='4'] .st-tag {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s + var(--i, 7) * 0.05s);
}
[data-step='4'] .st-path {
  opacity: 0.8;
  transition-delay: 0.6s;
}
[data-step='0'] .build-dots li:nth-child(1),
[data-step='1'] .build-dots li:nth-child(-n + 2),
[data-step='2'] .build-dots li:nth-child(-n + 3),
[data-step='3'] .build-dots li:nth-child(-n + 4),
[data-step='4'] .build-dots li {
  background: var(--lapis);
}

/* 04 SISTEMA ------------------------------------------------------------------- */
.construct {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(80px, 9vw, 140px);
}
.construct-fig {
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: clamp(20px, 3vw, 44px);
  background: var(--white);
}
.construct-fig svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.construct-fig figcaption {
  color: var(--muted);
  font-size: 14px;
}
.construct-fig b {
  color: var(--graphite);
  font-weight: 600;
}
.g-lines path {
  fill: none;
  stroke: rgb(18 18 18 / 38%);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.g-dims path {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.g-dims text,
.c-svg text {
  fill: var(--graphite);
  font: italic 600 22px var(--font);
  text-anchor: middle;
}
.g-logo {
  fill: var(--lapis);
}
.c-zone {
  fill: rgb(147 147 148 / 34%);
}
.c-line {
  fill: none;
  stroke: rgb(18 18 18 / 45%);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.c-x {
  fill: rgb(147 147 148 / 60%);
}
.reveal-ready .construct-fig[data-reveal='draw'] .g-lines path,
.reveal-ready .construct-fig[data-reveal='draw'] .c-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 2.2s var(--ease) 0.2s;
}
.reveal-ready .construct-fig.is-in .g-lines path,
.reveal-ready .construct-fig.is-in .c-line {
  stroke-dashoffset: 0;
}

.versions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(80px, 9vw, 140px);
}
.versions li {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  aspect-ratio: 4 / 3.4;
  padding: clamp(18px, 2vw, 28px);
}
.versions svg {
  align-self: center;
  width: 82%;
  height: auto;
  aspect-ratio: 678 / 334;
  margin: auto;
}
.versions p {
  font-size: 13px;
  font-weight: 600;
}
.versions p span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  opacity: 0.7;
}
.v-primary {
  background: var(--white);
  --wm: var(--silver);
  --sym: var(--lapis);
}
.v-negative {
  background: var(--lapis);
  color: var(--white);
  --wm: var(--white);
  --sym: var(--white);
}
.v-dark {
  background: var(--graphite);
  color: var(--marble);
  --wm: var(--marble);
  --sym: var(--marble);
}
.v-light {
  background: var(--marble);
  box-shadow: inset 0 0 0 1px var(--line);
  --wm: var(--graphite);
  --sym: var(--graphite);
}
.versions .lg-word,
.versions .lg-tag {
  fill: var(--wm);
}
.versions .lg-sym {
  fill: var(--sym);
}

.icons-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.icons-copy p {
  max-width: 36ch;
  color: var(--muted);
}
.icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.icons li {
  display: grid;
  grid-template-rows: 96px auto auto;
  align-items: end;
  padding: 22px 22px 20px;
  background: var(--white);
  color: var(--graphite);
  transition: background 0.3s, color 0.3s;
}
.icons li .ico {
  align-self: center;
  color: var(--lapis);
  transition: color 0.3s, transform 0.5s var(--out);
}
.icons b {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}
.icons li > span:last-child {
  color: var(--muted);
  font-size: 13px;
}
.icons li:hover {
  background: var(--lapis);
  color: var(--white);
}
.icons li:hover .ico {
  color: var(--white);
  transform: scale(1.12);
}
.icons li:hover > span:last-child {
  color: rgb(255 255 255 / 72%);
}

/* 05 COLORI ------------------------------------------------------------------- */
.colori {
  padding-bottom: 0;
}
.palette {
  display: flex;
  height: clamp(460px, 72svh, 760px);
}
.swatch {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  color: var(--white);
  outline: none;
  transition: flex-grow 0.7s var(--out);
}
.swatch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--out);
}
.swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--sw);
  opacity: 0.55;
  transition: opacity 0.6s;
}
.swatch-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 36px);
}
.swatch h3 {
  font-size: clamp(26px, 2.6vw, 40px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.swatch-codes {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.swatch-text {
  max-width: 38ch;
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0;
  transition:
    max-height 0.7s var(--out),
    opacity 0.5s;
}
.sw-lapis {
  --sw: var(--lapis);
}
.sw-silver {
  --sw: var(--silver);
  color: var(--graphite);
}
.sw-marble {
  --sw: var(--marble);
  color: var(--graphite);
}
.sw-graphite {
  --sw: var(--graphite);
}
.swatch:hover,
.swatch:focus-visible {
  flex-grow: 2.4;
}
.swatch:hover img,
.swatch:focus-visible img {
  transform: scale(1);
}
.swatch:hover::before,
.swatch:focus-visible::before {
  opacity: 0.82;
}
.swatch:hover .swatch-text,
.swatch:focus-visible .swatch-text {
  max-height: 220px;
  opacity: 1;
}
.swatch:focus-visible {
  box-shadow: inset 0 0 0 3px var(--white);
}

/* 06 APPLICAZIONI ---------------------------------------------------------------- */
.applicazioni {
  border-top: 1px solid var(--line-dark);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--graphite-2);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--out);
}
.tile:hover img {
  transform: scale(1.03);
}
.m-pad img {
  object-fit: contain;
  padding: clamp(12px, 2vw, 28px);
}
.tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgb(0 0 0 / 62%));
  color: var(--marble);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s,
    transform 0.45s var(--out);
}
.tile:hover figcaption,
.tile:focus-within figcaption {
  opacity: 1;
  transform: none;
}
.m-12 {
  grid-column: span 12;
  aspect-ratio: 1800 / 651;
}
.m-8 {
  grid-column: span 8;
  aspect-ratio: 3 / 2;
}
.m-7 {
  grid-column: span 7;
  aspect-ratio: 3 / 2;
}
.m-6 {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}
.m-5 {
  grid-column: span 5;
}
.m-4 {
  grid-column: span 4;
}
.m-3 {
  grid-column: span 3;
  aspect-ratio: 6 / 5;
}

.film {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.spline[hidden] {
  display: none;
}
.film:has(> .spline[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.film-frame,
.spline {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
}
.film-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--graphite-2);
}
.film-frame figcaption,
.spline figcaption {
  padding-top: 12px;
  color: var(--muted-dark);
  font-size: 13px;
}
.film-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  background: rgb(18 18 18 / 55%);
  color: var(--white);
  font: 500 12px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.spline-frame {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
  background: var(--lapis);
  color: var(--white);
  text-align: center;
}
.spline-frame .spline-mark {
  width: min(180px, 46%);
  height: auto;
  aspect-ratio: 1;
  fill: var(--white);
}
.motion-ok .spline-frame .spline-mark {
  animation: slow-spin 24s linear infinite;
}
@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}
.spline-frame button {
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid rgb(255 255 255 / 70%);
  background: transparent;
  color: var(--white);
  font: 600 13px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.spline-frame button:hover {
  background: var(--white);
  color: var(--lapis);
}
.spline-frame p {
  max-width: 28ch;
  font-size: 12px;
  opacity: 0.75;
}
.spline-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer ------------------------------------------------------------------------- */
.project-emilcam .portfolio-footer {
  padding: 80px var(--g) 28px;
  background: var(--lapis);
  color: var(--white);
  font-family: var(--font);
}
.project-emilcam .portfolio-footer .signature img {
  width: 52px;
  height: auto;
  filter: brightness(0) invert(1);
}
.project-emilcam .portfolio-footer .label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.project-emilcam .footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
  gap: 45px;
  margin-bottom: 75px;
}
.project-emilcam .footer-top > div p:last-child {
  margin: 14px 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: 14px;
  line-height: 1.7;
}
.project-emilcam .footer-top > a:last-child {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.project-emilcam .project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 36px 0;
  border-top: 1px solid rgb(255 255 255 / 30%);
  border-bottom: 1px solid rgb(255 255 255 / 30%);
}
.project-emilcam .project-link p {
  margin: 15px 0 0;
  font-size: clamp(36px, 5.6vw, 92px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.project-emilcam .project-link > span {
  font-size: clamp(40px, 5vw, 90px);
  font-weight: 200;
  transition: transform 0.3s var(--out);
}
.project-emilcam .project-link:hover > span {
  transform: translate(6px, -6px);
}
.project-emilcam .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 30px;
  color: rgb(255 255 255 / 70%);
  font-size: 11px;
  line-height: 1.6;
}

/* Responsive ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: start;
  }
  .icons-block {
    grid-template-columns: minmax(0, 1fr);
  }
  .construct {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .brief-grid,
  .genesi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brief-copy,
  .areas {
    grid-column: 1;
    grid-row: auto;
  }
  .areas {
    margin-top: 48px;
  }
  .genesi-copy {
    margin-top: 0;
  }
  .values {
    grid-template-columns: minmax(0, 1fr);
  }
  .values li + li {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
  .values li {
    grid-template-rows: 120px auto auto;
  }
  /* costruzione: scena in alto, testi che scorrono sotto */
  .build {
    grid-template-columns: minmax(0, 1fr);
  }
  .build-stage {
    z-index: 1;
    height: 46svh;
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
  }
  .st {
    max-height: 92%;
  }
  .build-steps {
    padding: 0 0 30svh;
  }
  .build-steps li {
    align-content: end;
    min-height: 42svh;
    padding: 0 0 26px;
  }
  .build-dots {
    bottom: 10px;
  }
  .versions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .palette {
    flex-direction: column;
    height: auto;
  }
  .swatch {
    min-height: 240px;
  }
  .swatch::before {
    opacity: 0.82;
  }
  .swatch-text {
    max-height: none;
    opacity: 1;
  }
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m-12,
  .m-8,
  .m-7,
  .m-6,
  .m-5,
  .m-4 {
    grid-column: span 2;
  }
  .m-3 {
    grid-column: span 1;
  }
  .tile figcaption {
    position: static;
    padding: 10px 2px 4px;
    background: none;
    color: var(--muted-dark);
    opacity: 1;
    transform: none;
  }
  .film {
    grid-template-columns: minmax(0, 1fr);
  }
  .spline-frame {
    min-height: 320px;
  }
  .project-emilcam .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-emilcam .footer-top > a:last-child {
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .hero .eyebrow {
    flex-wrap: wrap;
    gap: 6px 10px;
    letter-spacing: 0.22em;
  }
  .hero .eyebrow::after {
    display: none;
  }
  .areas ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .versions {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .crop {
    display: none;
  }
}
/* Senza animazioni: la costruzione diventa un elenco con il marchio completo. */
:root:not(.motion-ok) .build-stage {
  position: relative;
  height: auto;
  padding-block: 40px;
}
:root:not(.motion-ok) .build-steps li {
  min-height: 0;
  padding-block: 18px;
  opacity: 1;
}
:root:not(.motion-ok) .build-steps {
  padding: 0 0 80px;
}
:root:not(.motion-ok) .build-dots {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .project-emilcam *,
  .project-emilcam *::before,
  .project-emilcam *::after {
    animation: none !important;
    transition: none !important;
  }
}
