/* =====================================================
   EquiVista — Stylesheet principale
   Tipografia: Fraunces (serif), Manrope (sans), JetBrains Mono (mono)
   Palette: dark editoriale con accento ottone (#c69b6d)
   ===================================================== */

:root {
  --bg: #0a0908;
  --bg-deep: #050403;
  --bg-soft: #14110f;
  --bg-card: #1a1714;
  --ink: #f5f1ea;
  --ink-soft: #e0d9cd;
  --ink-muted: #c7beaf;
  --ink-faint: #4a4640;
  --border: rgba(245, 241, 234, 0.14);
  --border-soft: rgba(245, 241, 234, 0.08);
  --border-strong: rgba(245, 241, 234, 0.25);
  --accent: #00d2ff;
  --accent-soft: rgba(0, 210, 255, 0.12);
  --accent-bright: #00f0ff;
  --serif: 'Lora', 'Georgia', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

body.touch-device {
  cursor: auto;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* CURSOR */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 241, 234, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
}

body.cursor-active .cursor {
  width: 4px;
  height: 4px;
}

body.cursor-active .cursor-ring {
  width: 70px;
  height: 70px;
  border-color: var(--accent);
  background: rgba(198, 155, 109, 0.08);
}

body.touch-device .cursor,
body.touch-device .cursor-ring {
  display: none;
}

body.hide-custom-cursor .cursor,
body.hide-custom-cursor .cursor-ring {
  opacity: 0;
  visibility: hidden;
}

input,
select,
textarea,
button,
label {
  cursor: auto;
}

/* SELECTION & FOCUS */
::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent-bright);
}

/* Inline links with icon (WhatsApp etc.) */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}

.loader-mark {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader-mark em {
  font-style: italic;
  margin-left: -0.04em;
}

.loader-mark::before {
  content: '';
  width: 44px;
  height: 44px;
  background-image: url('assets/img/logo-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  filter: brightness(0) invert(0.95);
}

.loader-bar {
  width: 240px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.loader-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  opacity: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px 48px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  mix-blend-mode: difference;
  color: var(--ink);
  transition: padding 0.4s ease, background 0.4s ease, border-bottom 0.4s ease;
}

nav.scrolled {
  padding: 20px 48px;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 241, 234, 0.05);
  mix-blend-mode: normal;
}

.nav-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-mark em {
  font-style: italic;
  margin-left: -0.04em;
}

.nav-mark::before {
  content: '';
  width: 28px;
  height: 28px;
  background-image: url('assets/img/logo-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  filter: brightness(0) invert(0.95);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scale(1);
}

.nav-cta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  padding: 11px 22px;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-cta::after {
  content: '↗';
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* HERO */
.hero {
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
}

.hero-video {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.08) saturate(0.85);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.75) 0%, transparent 22%, transparent 60%, rgba(10, 9, 8, 0.95) 100%),
    radial-gradient(ellipse 100% 70% at 50% 50%, transparent 20%, rgba(10, 9, 8, 0.7) 100%);
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 120px 56px 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.hero-top {
  flex-shrink: 0;
}

.hero-meta {
  display: flex;
  justify-content: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding-bottom: 40px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: inherit;
}

.hero-title .line-mask {
  display: block;
  overflow: visible;
  transform-style: preserve-3d;
}

.hero-title .line-mask>span {
  display: block;
}

.hero-bottom {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.55;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.4s;
}

.hero-scroll-line {
  width: 60px;
  height: 1px;
  background: var(--ink-muted);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollIndicator 2.4s ease-in-out infinite;
}

@keyframes scrollIndicator {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* SECTIONS */
section {
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

.eyebrow-num {
  font-family: var(--mono);
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}


/* DESKTOP HINTS & ACCORDION DEFAULTS */
.tech-hint,
.sectors-swipe-hint {
  display: none;
}

.tech-card-header {
  display: contents;
}

.tech-card-toggle {
  display: none;
}

/* MANIFESTO */
.manifesto {
  padding: 140px 48px;
  background: var(--bg);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 120px;
  max-width: 1600px;
}

.manifesto-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 16px;
}

.manifesto-meta-line {
  margin-bottom: 8px;
}

.manifesto-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.manifesto-text em {
  font-style: italic;
  color: inherit;
}

.manifesto-text .muted {
  color: var(--ink-muted);
}

/* TECHNOLOGIES (4 cards grid) */
.technologies {
  padding: 140px 48px;
  background: var(--bg-deep);
}

.tech-header {
  max-width: 900px;
  margin-bottom: 100px;
}

.tech-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tech-header h2 em {
  font-style: italic;
  color: inherit;
}

.tech-header p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-top: 32px;
  max-width: 620px;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.tech-card {
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s ease;
  position: relative;
}

.tech-card:nth-child(odd):last-child {
  grid-column: span 1;
}

.tech-card:nth-child(2n) {
  border-right: none;
}

.tech-card:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--border);
}

.tech-card:hover {
  background: var(--bg-soft);
}

.tech-card-toggle {
  display: none;
}

.tech-card-visual {
  aspect-ratio: 2 / 1;
  height: auto;
  margin-bottom: 36px;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-soft);
}

.tech-card-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

@media (hover: hover) {
  .tech-card:hover .tech-card-video {
    opacity: 1;
  }
}

.tech-card-visual-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  z-index: 2;
}

.tech-card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 400;
}

.tech-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tech-card-title em {
  font-style: italic;
  color: var(--accent-bright);
}

.tech-card-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 28px;
  flex: 1;
}

.tech-card-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tech-card-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  transition: border-color 0.3s, color 0.3s;
}

.tech-card:hover .tech-card-chip {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* SECTORS — applications grid */
.sectors {
  padding: 140px 48px;
  background: var(--bg);
}

.sectors-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 100px;
}

.sectors-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sectors-header h2 em {
  font-style: italic;
  color: inherit;
}

.sectors-header p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.5;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sector-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
}

.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s;
  will-change: transform;
}

.sector-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.7) contrast(1.05);
}

.sector-card-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.4) 0%, transparent 30%, transparent 60%, rgba(10, 9, 8, 0.85) 100%);
}

.sector-card-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.7);
}

.sector-card-cat {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.sector-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.sector-card-title em {
  font-style: italic;
  color: var(--accent-bright);
}

.sector-card-applications {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 300;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sector-card:hover .sector-card-applications {
  transform: translateY(0);
  opacity: 1;
}

/* FULLBLEED */
.fullbleed {
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
}

.fullbleed-img {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.fullbleed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.05);
}

.fullbleed-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 48px;
  z-index: 2;
}

.fullbleed-eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fullbleed-eyebrow::before,
.fullbleed-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.fullbleed-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  max-width: 1200px;
}

.fullbleed-title em {
  font-style: italic;
  color: inherit;
}

.fullbleed-title .line-mask {
  display: block;
  overflow: hidden;
}

.fullbleed-title .line-mask>span {
  display: block;
  will-change: transform;
}

.fullbleed-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.5;
}

/* DELIVERABLES */
.deliverables {
  padding: 140px 48px;
  background: var(--bg-deep);
}

.deliverables-header {
  max-width: 900px;
  margin-bottom: 100px;
}

.deliverables-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.deliverables-header h2 em {
  font-style: italic;
  color: inherit;
}

.deliverables-header p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-top: 32px;
  max-width: 620px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deliverable-cell {
  padding: 48px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.4s;
}

.deliverable-cell:last-child {
  border-right: none;
}

.deliverable-cell:hover {
  background: var(--bg-soft);
}

.deliverable-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  position: relative;
}

.deliverable-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55) contrast(1.1);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  will-change: transform, filter;
}

.deliverable-cell:hover .deliverable-media img {
  transform: scale(1.06);
  filter: grayscale(0.2) brightness(0.8) contrast(1);
}

.deliverable-format {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.deliverable-cell-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.deliverable-cell-title em {
  font-style: italic;
  color: var(--accent-bright);
}

.deliverable-cell-desc {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
  font-weight: 400;
}

/* PROCESS */
.process {
  padding: 140px 48px;
  background: var(--bg);
}

.process-header {
  max-width: 900px;
  margin-bottom: 120px;
}

.process-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.process-header h2 em {
  font-style: italic;
  color: inherit;
}

.process-track {
  display: grid;
  grid-template-columns: 1fr;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 160px 1fr 200px;
  align-items: center;
  gap: 60px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  position: relative;
  transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:last-child {
  border-bottom: 1px solid var(--border);
}

.process-step:hover {
  padding: 56px 0;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:hover::before {
  width: 100%;
}

.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 300;
}

.process-time {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.process-content h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.process-content p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  font-weight: 400;
}

.process-tools {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.8;
}

/* QUOTE (rendered as a fullbleed image ribbon) */
.fullbleed--quote .fullbleed-img img {
  /* Affresco stays visible; only the area behind the quote is darkened */
  filter: brightness(0.72) contrast(1.05) saturate(1);
}

.fullbleed--quote .fullbleed-content::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 65% at 50% 50%, rgba(5, 4, 3, 0.62) 0%, rgba(5, 4, 3, 0.15) 75%, transparent 100%);
}

.fullbleed--quote .quote-mark,
.fullbleed--quote .quote-text {
  position: relative;
  z-index: 1;
}

.quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.55;
}

.quote-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 1000px;
}

.quote-text em {
  font-style: italic;
  color: var(--accent-bright);
}

/* CONTACT */
.contact {
  background: var(--bg);
  padding: 140px 48px;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.2;
  will-change: transform;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1) saturate(0.7);
}

.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 60%);
}

.contact-inner {
  position: relative;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.contact-left h2 em {
  font-style: italic;
  color: inherit;
}

.contact-left h2 .line-mask {
  display: block;
  overflow: hidden;
}

.contact-left h2 .line-mask>span {
  display: block;
  will-change: transform;
}

.contact-intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 64px;
  max-width: 480px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.contact-info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: baseline;
}

.contact-info-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-info-value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.contact-info-value em {
  font-style: italic;
}

.contact-info-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.contact-info-value a:hover {
  border-color: var(--accent);
}

.contact-form-wrap {
  padding: 56px 48px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.contact-form-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-form-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.4s ease;
  width: 100%;
  border-radius: 0;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(245, 241, 234, 0.55);
  font-style: italic;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-bright);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.form-field select option {
  background: var(--bg-soft);
  color: var(--ink);
}

.form-submit {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 28px;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.4s, color 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-submit::after {
  content: '→';
  font-family: serif;
  font-size: 1.2rem;
}

.form-submit:hover {
  background: var(--ink);
  color: var(--bg);
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 48px 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand em {
  font-style: italic;
  color: var(--accent);
  margin-left: -0.04em;
}

.footer-brand::before {
  content: '';
  width: 36px;
  height: 36px;
  background-image: url('assets/img/logo-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  filter: brightness(0) invert(0.95);
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.5;
}

.footer-col h6 {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li,
.footer-col a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* FUNDING / SPONSORS */
.hero-funding {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero-funding-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.hero-funding-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-funding-logos img {
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.9) contrast(1.1) opacity(0.6);
  transition: filter 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-funding-logos img.logo-lazio {
  height: 24px;
}

.hero-funding-logos img.logo-innova {
  height: 28px;
}

.hero-funding-logos img:hover {
  filter: grayscale(0) brightness(1) contrast(1) opacity(1);
}

.footer-funding {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-funding-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.footer-funding-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-funding-logos img {
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.9) contrast(1.1) opacity(0.6);
  transition: filter 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-funding-logos img.logo-lazio {
  height: 12px;
}

.footer-funding-logos img.logo-innova {
  height: 18px;
}

.footer-funding-logos img:hover {
  filter: grayscale(0) brightness(1) contrast(1) opacity(1);
}

/* REVEALS */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.line-mask {
  overflow: hidden;
  display: block;
}

.line-mask>* {
  display: block;
  will-change: transform;
  padding: 0.12em 0.2em 0.12em 0;
  margin: -0.12em -0.2em -0.12em 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  nav {
    grid-template-columns: 1fr auto;
    padding: 24px 28px;
  }

  nav.scrolled {
    padding: 18px 28px;
  }

  .manifesto,
  .technologies,
  .sectors,
  .deliverables,
  .process,
  .contact {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-content {
    padding: 100px 28px 40px;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sectors-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sectors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    border-right: none;
  }

  .tech-card:not(:last-child) {
    border-bottom: none;
  }

  .deliverables-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deliverable-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .deliverable-cell:nth-child(2n) {
    border-right: none;
  }

  .deliverable-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .deliverable-cell:last-child {
    border-bottom: none;
  }

  .deliverable-media {
    max-height: 180px;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  /* Film-grain overlay is GPU-expensive while scrolling on mobile */
  body::after {
    display: none;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }

  .manifesto {
    padding: 80px 20px 60px;
  }

  .technologies {
    padding: 70px 20px;
  }

  .sectors {
    padding: 70px 20px;
  }

  .deliverables {
    padding: 70px 20px;
  }

  .process {
    padding: 70px 20px;
  }

  .contact {
    padding: 80px 20px;
  }

  nav {
    padding: 20px;
  }

  nav.scrolled {
    padding: 14px 20px;
  }

  .nav-mark {
    font-size: 1.15rem;
  }

  .nav-cta {
    padding: 10px 16px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .hero {
    height: 100vh;
    height: 100svh;
  }

  .hero-content {
    padding: 90px 20px 32px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 32px;
    font-size: 0.72rem;
  }

  .hero-title {
    margin-bottom: 28px;
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-scroll {
    font-size: 0.72rem;
  }

  .hero-scroll-line {
    width: 40px;
  }

  .manifesto-text {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .tech-header h2,
  .sectors-header h2,
  .deliverables-header h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .tech-header p,
  .sectors-header p,
  .deliverables-header p {
    font-size: 1rem;
  }

  /* TECH ACCORDION MOBILE */
  .tech-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0.7;
  }

  .tech-hint::before,
  .tech-hint::after {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--accent);
  }

  .tech-card {
    padding: 24px 20px;
  }

  .tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 8px 0;
  }

  .tech-card-toggle {
    display: block;
    font-family: var(--mono);
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
    line-height: 1;
    margin-top: -4px;
  }

  .tech-card-num {
    margin-bottom: 0;
  }

  .tech-card-title {
    font-size: 1.3rem;
    margin-bottom: 0;
    margin-left: 16px;
    flex: 1;
  }

  .tech-card-visual,
  .tech-card-desc,
  .tech-card-chips {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease,
      margin 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .tech-card.is-open .tech-card-visual {
    max-height: 220px;
    opacity: 1;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid var(--border-soft) !important;
  }

  .tech-card.is-open .tech-card-desc {
    max-height: 220px;
    opacity: 1;
    margin-bottom: 24px !important;
    font-size: 0.92rem;
  }

  .tech-card.is-open .tech-card-chips {
    max-height: 150px;
    opacity: 1;
    padding-top: 20px !important;
    border-top: 1px solid var(--border) !important;
  }

  .tech-card.is-open .tech-card-toggle {
    transform: rotate(45deg);
  }

  /* SECTORS CAROUSEL MOBILE */
  .sectors-swipe-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0.7;
  }

  .sectors-swipe-hint::before,
  .sectors-swipe-hint::after {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--accent);
  }

  .sectors-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px 20px !important;
    margin: 0 -20px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sectors-grid::-webkit-scrollbar {
    display: none;
  }

  .sector-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
    aspect-ratio: 4/5;
    margin-bottom: 0;
  }

  .sector-card-content {
    padding: 24px;
  }

  .sector-card-content::after {
    content: '↗';
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--sans);
    font-size: 1.25rem;
    color: var(--accent);
    opacity: 1;
    line-height: 1;
  }

  .sector-card-title {
    font-size: 1.3rem;
  }

  .sector-card-applications {
    transform: translateY(0);
    opacity: 1;
    font-size: 0.84rem;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .deliverable-cell {
    border-right: none;
    padding: 32px 20px;
  }

  .deliverable-cell:nth-child(2n) {
    border-right: none;
  }

  .deliverable-media {
    max-height: 180px;
  }

  .fullbleed-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    margin-bottom: 24px;
  }

  .fullbleed-eyebrow::before,
  .fullbleed-eyebrow::after {
    width: 20px;
  }

  .fullbleed-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
    margin-bottom: 24px;
  }

  .fullbleed-sub {
    font-size: 0.95rem;
  }

  .process-header {
    margin-bottom: 60px;
  }

  .process-header h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .process-step {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px 20px;
    padding: 32px 0;
  }

  .process-step:hover {
    padding: 32px 0;
  }

  .process-num {
    grid-row: 1;
    font-size: 1.8rem;
  }

  .process-time {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    text-align: right;
    justify-self: end;
    font-size: 0.72rem;
  }

  .process-content {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .process-content h4 {
    font-size: 1.5rem;
  }

  .process-content p {
    font-size: 0.92rem;
  }

  .process-tools {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
    font-size: 0.72rem;
  }

  .quote-mark {
    font-size: 4rem;
  }

  .quote-text {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-left h2 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    margin-bottom: 28px;
  }

  .contact-intro {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .contact-info-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-info-label {
    font-size: 0.72rem;
  }

  .contact-info-value {
    font-size: 1rem;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .contact-form-title {
    font-size: 1.3rem;
    margin-bottom: 28px;
  }

  .contact-bg {
    width: 100%;
    opacity: 0.1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }

  .footer-brand {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .hero-funding {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .hero-funding-logos {
    gap: 12px;
  }

  .hero-funding-logos img.logo-lazio {
    height: 13px;
  }

  .hero-funding-logos img.logo-innova {
    height: 18px;
  }

  .footer-funding {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .footer-funding-logos img.logo-lazio {
    height: 11px;
  }

  .footer-funding-logos img.logo-innova {
    height: 16px;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 9px 12px;
  }

  .nav-mark {
    font-size: 1.05rem;
    gap: 6px;
  }

  .nav-mark::before {
    width: 24px;
    height: 24px;
  }
}

/* VIDEO MODAL LIGHTBOX */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 24px;
}

.video-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  z-index: 10102;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.is-active .video-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.video-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(10, 9, 8, 0.6);
  color: var(--ink-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10110;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-modal-close:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(198, 155, 109, 0.12);
  transform: rotate(90deg);
}

.video-modal-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.video-modal-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-modal-caption {
  padding: 32px 40px;
  background: var(--bg-card);
}

.video-modal-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.video-modal-title em {
  font-style: italic;
  color: var(--accent-bright);
}

.video-modal-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 800px;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .video-modal {
    padding: 16px;
  }
  
  .video-modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  
  .video-modal-caption {
    padding: 20px;
  }
  
  .video-modal-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  /* Content must be visible even if JS animations are skipped */
  .fade-up {
    opacity: 1;
    transform: none;
  }

  .line-mask>span,
  .hero-title .line-mask>span {
    transform: none !important;
  }
}

/* JS unavailable or animation libs failed to load: reveal everything */
html.no-anim .fade-up {
  opacity: 1 !important;
  transform: none !important;
}

html.no-anim .line-mask>span,
html.no-anim .hero-title .line-mask>span {
  transform: none !important;
}

html.no-anim .loader {
  display: none !important;
}

html.no-anim body {
  overflow: auto !important;
  cursor: auto;
}

html.no-anim .cursor,
html.no-anim .cursor-ring {
  display: none;
}

/* =====================================================
   EQUIVISTA — NUOVI ELEMENTI DI CONVERSIONE & GRAFICA
   ===================================================== */

/* Hero CTA Button */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  padding: 18px 36px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
  border: 1.5px solid var(--accent);
}

.hero-cta-btn span {
  position: relative;
  z-index: 2;
}

.hero-cta-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

/* Contact Value Propositions List */
.contact-value-props {
  list-style: none;
  margin: 32px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-value-props li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-value-props .prop-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-value-props div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-value-props strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}

.contact-value-props span {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
  font-weight: 300;
}

/* Contact Form Actions & Buttons */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 20px;
  border: 1.5px solid var(--border-strong);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  cursor: pointer;
}

.form-submit::after {
  content: none;
}

.form-submit--email {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.form-submit--email:hover {
  background: rgba(245, 241, 234, 0.1);
  color: var(--ink);
  border-color: var(--ink);
}

.form-submit--whatsapp {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.form-submit--whatsapp:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

.form-submit--whatsapp svg {
  flex-shrink: 0;
  transition: transform 0.4s;
}

.form-submit--whatsapp:hover svg {
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .form-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* Sending state for buttons */
.form-submit.is-sending {
  pointer-events: none !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.form-submit.is-sending span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-submit.is-sending span::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: buttonSpinner 0.8s linear infinite;
  display: inline-block;
}

@keyframes buttonSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* Form Success State */
.form-success-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  margin-top: 20px;
}

.form-success-state.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: successFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-bright);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.form-success-state h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--ink);
}

.success-message {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.success-btn {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.4s;
  cursor: pointer;
  border-radius: 0;
}

.success-btn--wa {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.success-btn--wa:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

.success-btn--reset {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.success-btn--reset:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  text-decoration: none;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  max-width: 54px;
  height: 54px;
}

.whatsapp-float:hover {
  max-width: 200px;
  background: var(--accent);
  border-color: var(--accent);
}

.whatsapp-float-body {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  width: 180px;
  padding-left: 4px;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.4s, transform 0.4s;
}

.whatsapp-float:hover svg {
  color: var(--bg);
  transform: rotate(15deg) scale(1.1);
}

.whatsapp-float-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-float:hover .whatsapp-float-text {
  opacity: 1;
  transform: translateX(0);
  color: var(--bg-deep);
}

/* Pulsing effect for the floating badge */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 40px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  opacity: 1;
  animation: floatPulse 2.4s ease-out infinite;
}

@keyframes floatPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    max-width: 54px; /* remain circle on mobile */
  }
  .whatsapp-float:hover {
    max-width: 54px;
    background: rgba(10, 9, 8, 0.85);
  }
  .whatsapp-float:hover svg {
    color: var(--accent);
    transform: none;
  }
  .whatsapp-float:hover .whatsapp-float-text {
    display: none;
  }
}

/* Character Split Point-Cloud Animation Style */
.point-char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

/* Elevation Legend Sidebar */
.elevation-legend {
  position: fixed;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.elevation-legend.is-visible {
  opacity: 0.65;
}

.legend-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  user-select: none;
}

.legend-bar-container {
  position: relative;
  width: 6px;
  height: 180px;
}

.legend-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #ff1e1e 0%, #ffaa00 25%, #00e664 50%, #00d2ff 75%, #0055ff 100%);
  border-radius: 6px;
  opacity: 0.8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-tracker {
  position: absolute;
  left: 50%;
  top: 0%; /* Driven dynamically by JS from 0% to 100% */
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  transition: background-color 0.15s, box-shadow 0.15s;
  will-change: top;
}

@media (max-width: 1024px) {
  .elevation-legend {
    display: none !important;
  }
}

/* 3D Hardware Acceleration for Point-Cloud Materialization Animations */
.tech-grid, .deliverables-grid, .sectors-grid, .process-track, .contact-inner, .fullbleed {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tech-card, .deliverable-cell, .sector-card, .process-step, .contact-form-wrap, .fullbleed-content {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.hero-title .line-mask,
.manifesto-text .line-mask,
.fullbleed-title .line-mask,
.tech-header .line-mask,
.deliverables-header .line-mask,
.process-header .line-mask,
.sectors-header .line-mask,
.contact-left h2 .line-mask {
  overflow: visible !important;
  transform-style: preserve-3d;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: calc(100% - 60px);
  max-width: 420px;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 32px;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cookie-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--ink);
}

.cookie-desc {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 24px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cookie-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn--accept {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cookie-btn--accept:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-soft);
}

.cookie-btn--reject:hover {
  background: rgba(245, 241, 234, 0.08);
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    padding: 24px;
  }
}

/* 3D SHOWCASE SECTION */
.showcase3d {
  padding: 140px 48px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.showcase3d-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  max-width: 1600px;
  margin: 0 auto;
}

.showcase3d-viewer {
  position: relative;
  width: 100%;
}

.viewer-canvas-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  width: 100%;
  background: radial-gradient(ellipse at center, var(--bg-soft) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.viewer-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  /* Let vertical swipes scroll the page; horizontal drag rotates, pinch zooms */
  touch-action: pan-y;
}

.viewer-canvas-wrap canvas:active {
  cursor: grabbing;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.viewer-spinner {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border-strong);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: buttonSpinner 0.8s linear infinite;
}

.viewer-loading span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.viewer-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 9, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--border);
  padding: 10px 18px;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 5;
}

.viewer-hint svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.viewer-hint span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Touch hint hidden on pointer/desktop, swapped in on small screens */
.viewer-hint .hint-touch {
  display: none;
}

@media (max-width: 1024px) {
  .showcase3d-grid {
    gap: 44px;
  }
  .viewer-canvas-wrap {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .showcase3d {
    padding: 96px 24px;
  }
  .viewer-hint .hint-desktop {
    display: none;
  }
  .viewer-hint .hint-touch {
    display: inline;
  }
}

@media (max-width: 480px) {
  .showcase3d {
    padding: 80px 20px;
  }
  .viewer-canvas-wrap {
    aspect-ratio: 1 / 1;
  }
  .viewer-hint {
    bottom: 14px;
    gap: 8px;
    padding: 8px 14px;
    max-width: calc(100% - 32px);
  }
  .viewer-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .viewer-hint span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }
}