/* ════════════════════════════════════════
   TOKENS
════════════════════════════════════════ */
    :root {
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    [data-theme="dark"] {
      --c-bg: #0d0c0b;
      --c-bg-alt: #131210;
      --c-bg-card: #191714;
      --c-border: rgba(255, 255, 255, 0.07);
      --c-border-hi: rgba(255, 255, 255, 0.15);
      --c-ink: #f2ede6;
      --c-ink-2: rgba(242, 237, 230, 0.45);
      --c-ink-3: rgba(242, 237, 230, 0.22);
      --c-accent: #e05c1a;
      /* burnt orange */
      --c-accent-lo: rgba(224, 92, 26, 0.12);
      --c-accent-2: #f0c060;
      /* warm gold */
      --c-scan: rgba(224, 92, 26, 0.03);
      --c-shadow: rgba(0, 0, 0, 0.7);
    }

    [data-theme="light"] {
      --c-bg: #f7f4ef;
      --c-bg-alt: #eeebe4;
      --c-bg-card: #ffffff;
      --c-border: rgba(0, 0, 0, 0.08);
      --c-border-hi: rgba(0, 0, 0, 0.18);
      --c-ink: #1c1a17;
      --c-ink-2: rgba(28, 26, 23, 0.5);
      --c-ink-3: rgba(28, 26, 23, 0.25);
      --c-accent: #c94a08;
      --c-accent-lo: rgba(201, 74, 8, 0.08);
      --c-accent-2: #b07818;
      --c-scan: rgba(201, 74, 8, 0.02);
      --c-shadow: rgba(0, 0, 0, 0.12);
    }

    /* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      /* scroll-behavior gestito via JS per compatibilità iOS Safari */
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: 'DM Mono', monospace;
      background: var(--c-bg);
      color: var(--c-ink);
      overflow-x: hidden;
      transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
      /* Subtle grain */
      position: relative;
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9000;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      will-change: transform;
    }

    /* Scan lines (dark only) */
    [data-theme="dark"] body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 8999;
      background: repeating-linear-gradient(0deg,
          var(--c-scan) 0px,
          var(--c-scan) 1px,
          transparent 1px,
          transparent 3px);
      animation: scanShift 8s linear infinite;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      will-change: transform;
    }

    @keyframes scanShift {
      0% {
        background-position: 0 0;
      }

      100% {
        background-position: 0 300px;
      }
    }

    /* ════════════════════════════════════════
   THEME SWITCHER
════════════════════════════════════════ */
    .toggle-wrap {
      display: flex;
      align-items: center;
    }

    .toggle-track {
      width: 56px;
      height: 28px;
      border-radius: 14px;
      background: var(--c-bg-card);
      border: 1px solid var(--c-border-hi);
      position: relative;
      cursor: pointer;
      transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
      box-shadow: 0 2px 12px var(--c-shadow);
    }

    .toggle-thumb {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--c-accent);
      transition: transform 0.35s var(--ease-spring), background 0.4s var(--ease-out);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    [data-theme="light"] .toggle-thumb {
      transform: translateX(28px);
    }

    .toggle-icon {
      width: 10px;
      height: 10px;
      stroke: #fff;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
    }

    .toggle-label {
      font-family: 'DM Mono', monospace;
      font-size: 0.55rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--c-ink-2);
      margin-right: 0.6rem;
      transition: color 0.4s;
      user-select: none;
    }

    /* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
    .site-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 400;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.1rem 1.4rem;
      padding-top: calc(1.1rem + env(safe-area-inset-top, 0));
    }

    .site-nav::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, var(--c-bg) 30%, transparent);
      opacity: 0.92;
      z-index: -1;
      pointer-events: none;
      transition: background 0.5s;
    }

    .logo {
      display: flex;
      align-items: baseline;
      gap: 0.3rem;
      text-decoration: none;
    }

    .logo-word {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.6rem;
      letter-spacing: 0.06em;
      color: var(--c-ink);
      line-height: 1;
      transition: color 0.4s;
    }

    .logo-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--c-accent);
      flex-shrink: 0;
      animation: breathe 3s ease-in-out infinite;
      margin-bottom: 2px;
    }

    @keyframes breathe {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.3;
        transform: scale(0.6);
      }
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .nav-year {
      font-size: 0.6rem;
      font-weight: 300;
      letter-spacing: 0.1em;
      color: var(--c-ink-3);
      transition: color 0.4s;
      display: none;
    }

    /* ── Nav menu (mobile: fullscreen overlay with clip-path reveal) ── */
    .nav-menu {
      list-style: none;
      position: fixed;
      inset: 0;
      z-index: 399;
      background: var(--c-bg);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      padding: 5rem 2rem;
      clip-path: circle(0% at calc(100% - 2.4rem) 1.6rem);
      visibility: hidden;
      transition: clip-path 0.65s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.65s;
    }

    .nav-menu.open {
      clip-path: circle(150% at calc(100% - 2.4rem) 1.6rem);
      visibility: visible;
      transition: clip-path 0.65s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0s;
    }

    /* Decorative accent line across overlay */
    .nav-menu::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 120px;
      height: 1px;
      background: var(--c-accent);
      opacity: 0;
      transform: translate(-50%, -50%) scaleX(0);
      transition: opacity 0.4s 0.3s, transform 0.6s 0.3s var(--ease-out);
    }

    .nav-menu.open::before {
      opacity: 0.25;
      transform: translate(-50%, -50%) scaleX(1);
    }

    /* Staggered entrance for menu items */
    .nav-menu li {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-spring);
    }

    .nav-menu.open li {
      opacity: 1;
      transform: translateY(0);
    }

    .nav-menu.open li:nth-child(1) { transition-delay: 0.18s; }
    .nav-menu.open li:nth-child(2) { transition-delay: 0.24s; }
    .nav-menu.open li:nth-child(3) { transition-delay: 0.30s; }
    .nav-menu.open li:nth-child(4) { transition-delay: 0.36s; }
    .nav-menu.open li:nth-child(5) { transition-delay: 0.42s; }

    /* Closing: fast uniform fade-out */
    .nav-menu:not(.open) li {
      transition-delay: 0s;
      transition-duration: 0.2s;
    }

    .nav-link {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2.4rem;
      letter-spacing: 0.06em;
      color: var(--c-ink);
      text-decoration: none;
      padding: 0.35rem 0;
      position: relative;
      transition: color 0.25s, transform 0.25s var(--ease-out);
      display: inline-block;
    }

    .nav-link:hover,
    .nav-link:focus {
      color: var(--c-accent);
      transform: translateX(6px);
    }

    /* Underline sweep from left */
    .nav-link::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 2px;
      width: 0;
      height: 2px;
      background: var(--c-accent);
      transition: width 0.35s var(--ease-out);
    }

    .nav-link:hover::after {
      width: 100%;
    }

    /* Tiny index number before each link */
    .nav-link::before {
      content: attr(data-index);
      position: absolute;
      right: calc(100% + 10px);
      top: 50%;
      transform: translateY(-50%);
      font-family: 'DM Mono', monospace;
      font-size: 0.55rem;
      font-weight: 300;
      color: var(--c-accent);
      opacity: 0.5;
      letter-spacing: 0;
    }

    /* ── Hamburger ── */
    .nav-burger {
      display: flex;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      z-index: 401;
      -webkit-tap-highlight-color: transparent;
    }

    .burger-line {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--c-ink);
      border-radius: 1px;
      transition: transform 0.4s var(--ease-spring), opacity 0.25s, background 0.3s, width 0.3s var(--ease-out);
      transform-origin: center;
    }

    .nav-burger.active .burger-line:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
      width: 22px;
    }

    .nav-burger.active .burger-line:nth-child(2) {
      opacity: 0;
      width: 0;
    }

    .nav-burger.active .burger-line:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
      width: 22px;
    }

    /* Hover: stagger line widths */
    .nav-burger:not(.active):hover .burger-line:nth-child(1) {
      width: 16px;
    }

    .nav-burger:not(.active):hover .burger-line:nth-child(3) {
      width: 12px;
    }

    /* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
    .hero {
      min-height: 100svh;
      display: grid;
      grid-template-rows: 1fr auto;
      position: relative;
      overflow: hidden;
      padding-top: 6rem;
    }

    /* ── Animated gear / piston SVG background ── */
    .hero-mech {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-right: 0;
      pointer-events: none;
      z-index: 0;
    }

    .mech-svg {
      width: min(85vw, 420px);
      height: auto;
      opacity: 0;
      animation: mechReveal 1.4s 0.6s var(--ease-out) forwards;
      transform-origin: center;
    }

    [data-theme="dark"] .mech-svg {
      opacity: 0;
    }

    [data-theme="light"] .mech-svg {
      filter: invert(0) brightness(0.96);
    }

    @keyframes mechReveal {
      from {
        opacity: 0;
        transform: scale(0.92) rotate(-4deg);
      }

      to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
      }
    }

    /* Gear rotation animations */
    .gear-main {
      transform-origin: 200px 200px;
      animation: spin 12s linear infinite;
    }

    .gear-small {
      transform-origin: 320px 130px;
      animation: spin 6s linear infinite reverse;
    }

    .gear-tiny {
      transform-origin: 95px 310px;
      animation: spin 8s linear infinite;
    }

    .piston-rod {
      animation: pistonMove 1.5s ease-in-out infinite alternate;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes pistonMove {
      from {
        transform: translateY(0);
      }

      to {
        transform: translateY(14px);
      }
    }

    /* Diagonal stripe accent */
    .hero-stripe {
      position: absolute;
      top: 0;
      bottom: 0;
      left: -10%;
      width: 52%;
      background: var(--c-accent);
      clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
      opacity: 0.04;
      pointer-events: none;
      z-index: 0;
    }

    [data-theme="light"] .hero-stripe {
      opacity: 0.06;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      padding: 0 1.4rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      flex: 1;
    }

    .hero-eyebrow {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 1.4rem;
      opacity: 0;
      animation: slideUp 0.7s 0.2s var(--ease-out) forwards;
    }

    .hero-eyebrow span {
      font-size: 0.58rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--c-accent);
    }

    .eyebrow-line {
      flex: 1;
      max-width: 32px;
      height: 1px;
      background: var(--c-accent);
    }

    .hero-h1 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(4.5rem, 18vw, 8rem);
      line-height: 0.88;
      letter-spacing: 0.01em;
      margin-bottom: 0.15em;
      opacity: 0;
      animation: slideUp 0.8s 0.35s var(--ease-out) forwards;
    }

    .hero-h1 .line-accent {
      color: var(--c-accent);
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: 0.68em;
      letter-spacing: 0;
      display: block;
    }

    .hero-sub {
      font-size: 0.8rem;
      font-weight: 300;
      line-height: 1.75;
      color: var(--c-ink-2);
      max-width: 32ch;
      margin-bottom: 2.2rem;
      opacity: 0;
      animation: slideUp 0.8s 0.5s var(--ease-out) forwards;
      transition: color 0.4s;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 1.4rem;
      flex-wrap: wrap;
      opacity: 0;
      animation: slideUp 0.8s 0.65s var(--ease-out) forwards;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      background: var(--c-accent);
      color: #fff;
      text-decoration: none;
      font-family: 'DM Mono', monospace;
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      padding: 0.95rem 1.6rem;
      border-radius: 3px;
      transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, filter 0.2s;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .btn-primary:hover,
    .btn-primary:active {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 10px 30px rgba(224, 92, 26, 0.35);
      filter: brightness(1.08);
    }

    .btn-primary svg {
      flex-shrink: 0;
      transition: transform 0.25s var(--ease-spring);
    }

    .btn-primary:hover svg {
      transform: translateX(3px);
    }

    .btn-ghost-link {
      font-size: 0.65rem;
      font-weight: 300;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--c-ink-2);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      transition: color 0.2s;
    }

    .btn-ghost-link::after {
      content: '';
      display: block;
      width: 0;
      height: 1px;
      background: var(--c-accent);
      transition: width 0.3s var(--ease-out);
    }

    .btn-ghost-link:hover {
      color: var(--c-accent);
    }

    .btn-ghost-link:hover::after {
      width: 20px;
    }

    /* Hero bottom bar */
    .hero-bar {
      position: relative;
      z-index: 2;
      border-top: 1px solid var(--c-border);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      transition: border-color 0.4s;
      opacity: 0;
      animation: fadeIn 1s 1s var(--ease-out) forwards;
    }

    .hero-stat {
      padding: 1.2rem 1.4rem;
      border-right: 1px solid var(--c-border);
      transition: border-color 0.4s;
    }

    .hero-stat:last-child {
      border-right: none;
    }

    .stat-val {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.9rem;
      letter-spacing: 0.04em;
      line-height: 1;
      color: var(--c-ink);
      transition: color 0.4s;
    }

    .stat-val em {
      font-style: normal;
      color: var(--c-accent);
      font-size: 0.65em;
    }

    .stat-lbl {
      font-size: 0.5rem;
      font-weight: 300;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--c-ink-3);
      margin-top: 0.15rem;
      transition: color 0.4s;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(28px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    /* ════════════════════════════════════════
   MARQUEE
════════════════════════════════════════ */
    .marquee {
      overflow: hidden;
      background: var(--c-accent);
      padding: 0.65rem 0;
      position: relative;
      z-index: 10;
    }

    .marquee-inner {
      display: flex;
      white-space: nowrap;
      animation: marqueeMov 20s linear infinite;
      will-change: transform;
    }

    .marquee-inner:hover {
      animation-play-state: paused;
    }

    .marquee-inner span {
      font-family: 'DM Mono', monospace;
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.9);
      padding: 0 2.5rem;
      flex-shrink: 0;
    }

    .marquee-sep {
      color: rgba(255, 255, 255, 0.3) !important;
      padding: 0 !important;
      letter-spacing: 0 !important;
    }

    @keyframes marqueeMov {
      from {
        transform: translateX(0);
      }

      to {
        transform: translateX(-50%);
      }
    }

    /* ════════════════════════════════════════
   SECTION COMMONS
════════════════════════════════════════ */
    .section {
      padding: 4.5rem 1.4rem;
      transition: background 0.4s;
    }

    .section-alt {
      background: var(--c-bg-alt);
    }

    .sec-header {
      margin-bottom: 2.5rem;
    }

    .sec-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.55rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--c-accent);
      margin-bottom: 0.9rem;
    }

    .sec-eyebrow::before {
      content: '';
      display: block;
      width: 18px;
      height: 1px;
      background: var(--c-accent);
    }

    .sec-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.4rem, 9vw, 3.8rem);
      line-height: 0.93;
      letter-spacing: 0.02em;
      transition: color 0.4s;
    }

    .sec-desc {
      font-size: 0.78rem;
      font-weight: 300;
      line-height: 1.8;
      color: var(--c-ink-2);
      max-width: 40ch;
      margin-top: 0.9rem;
      transition: color 0.4s;
    }

    /* ════════════════════════════════════════
   SERVICES
════════════════════════════════════════ */
    #servizi {
      background: var(--c-bg);
    }

    .services-list {
      display: flex;
      flex-direction: column;
      gap: 1px;
      border: 1px solid var(--c-border);
      border-radius: 6px;
      overflow: hidden;
      transition: border-color 0.4s;
    }

    .svc-item {
      background: var(--c-bg-card);
      display: flex;
      align-items: stretch;
      gap: 0;
      min-height: 88px;
      cursor: default;
      transition: background 0.2s;
      position: relative;
      overflow: hidden;
    }

    .svc-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--c-accent);
      transform: scaleY(0);
      transform-origin: bottom;
      transition: transform 0.35s var(--ease-out);
    }

    .svc-item:hover::before {
      transform: scaleY(1);
    }

    .svc-item:hover {
      background: var(--c-bg-alt);
    }

    .svc-num {
      flex-shrink: 0;
      width: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.1rem;
      color: var(--c-ink-3);
      border-right: 1px solid var(--c-border);
      transition: color 0.25s, border-color 0.4s;
    }

    .svc-item:hover .svc-num {
      color: var(--c-accent);
    }

    .svc-icon-wrap {
      flex-shrink: 0;
      width: 68px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-right: 1px solid var(--c-border);
      transition: border-color 0.4s;
    }

    .svc-icon {
      width: 36px;
      height: 36px;
      transition: transform 0.4s var(--ease-spring);
    }

    .svc-item:hover .svc-icon {
      transform: scale(1.15) rotate(-6deg);
    }

    .svc-body {
      flex: 1;
      padding: 1.1rem 1.2rem 1.1rem 1rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .svc-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.2rem;
      letter-spacing: 0.04em;
      line-height: 1;
      margin-bottom: 0.35rem;
      transition: color 0.4s;
    }

    .svc-desc {
      font-size: 0.7rem;
      font-weight: 300;
      line-height: 1.6;
      color: var(--c-ink-2);
      transition: color 0.4s;
    }

    .svc-pill {
      align-self: flex-start;
      margin-top: 0.55rem;
      font-size: 0.5rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--c-accent);
      border: 1px solid var(--c-accent);
      padding: 0.18rem 0.55rem;
      border-radius: 2px;
      opacity: 0.75;
      transition: opacity 0.2s;
    }

    .svc-item:hover .svc-pill {
      opacity: 1;
    }

    /* ════════════════════════════════════════
   WHY
════════════════════════════════════════ */
    .why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      border: 1px solid var(--c-border);
      border-radius: 6px;
      overflow: hidden;
      transition: border-color 0.4s;
    }

    .why-card {
      background: var(--c-bg-card);
      padding: 1.6rem 1.2rem;
      transition: background 0.2s;
      position: relative;
    }

    .why-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--c-accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s var(--ease-out);
    }

    .why-card:hover::after {
      transform: scaleX(1);
    }

    .why-card:hover {
      background: var(--c-bg-alt);
    }

    .why-icon {
      width: 28px;
      height: 28px;
      margin-bottom: 0.9rem;
      transition: transform 0.4s var(--ease-spring);
    }

    .why-card:hover .why-icon {
      transform: scale(1.2);
    }

    .why-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1rem;
      letter-spacing: 0.04em;
      margin-bottom: 0.4rem;
      line-height: 1.1;
      transition: color 0.4s;
    }

    .why-text {
      font-size: 0.68rem;
      font-weight: 300;
      line-height: 1.65;
      color: var(--c-ink-2);
      transition: color 0.4s;
    }

    /* ════════════════════════════════════════
   PROCESS
════════════════════════════════════════ */
    .process-track {
      position: relative;
      padding-left: 1.4rem;
    }

    .process-track::before {
      content: '';
      position: absolute;
      left: 0;
      top: 10px;
      bottom: 10px;
      width: 1px;
      background: linear-gradient(to bottom, var(--c-accent), var(--c-border));
    }

    .proc-step {
      position: relative;
      padding: 0 0 2.2rem 1.6rem;
    }

    .proc-step:last-child {
      padding-bottom: 0;
    }

    .proc-step::before {
      content: '';
      position: absolute;
      left: -5px;
      top: 5px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--c-bg);
      border: 2px solid var(--c-accent);
      transition: background 0.3s, transform 0.3s var(--ease-spring);
    }

    .proc-step:hover::before {
      background: var(--c-accent);
      transform: scale(1.4);
    }

    .proc-num {
      font-size: 0.62rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--c-accent);
      margin-bottom: 0.3rem;
    }

    .proc-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.4rem;
      letter-spacing: 0.04em;
      margin-bottom: 0.45rem;
      transition: color 0.4s;
    }

    .proc-desc {
      font-size: 0.78rem;
      font-weight: 300;
      line-height: 1.75;
      color: var(--c-ink-2);
      opacity: 0.85;
      transition: color 0.4s;
    }

    /* ════════════════════════════════════════
   HOW-TO / TRACKING
════════════════════════════════════════ */
    .howto-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1px;
      border: 1px solid var(--c-border);
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 2.5rem;
      transition: border-color 0.4s;
    }

    .howto-card {
      background: var(--c-bg-card);
      padding: 1.8rem 1.4rem;
      position: relative;
      transition: background 0.2s;
      text-align: center;
    }

    .howto-card:hover {
      background: var(--c-bg-alt);
    }

    .howto-num {
      position: absolute;
      top: 0.8rem;
      right: 1rem;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2.8rem;
      line-height: 1;
      color: var(--c-accent);
      opacity: 0.1;
      transition: opacity 0.3s;
    }

    .howto-card:hover .howto-num {
      opacity: 0.2;
    }

    .howto-icon {
      margin-bottom: 1rem;
      transition: transform 0.4s var(--ease-spring);
    }

    .howto-card:hover .howto-icon {
      transform: scale(1.15);
    }

    .howto-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.2rem;
      letter-spacing: 0.04em;
      margin-bottom: 0.5rem;
      transition: color 0.4s;
    }

    .howto-text {
      font-size: 0.72rem;
      font-weight: 300;
      line-height: 1.7;
      color: var(--c-ink-2);
      max-width: 30ch;
      margin: 0 auto;
      transition: color 0.4s;
    }

    .howto-cta {
      text-align: center;
    }

    /* ════════════════════════════════════════
   CONTACT BAND
════════════════════════════════════════ */
    .contact-band {
      background: var(--c-accent);
      padding: 3.5rem 1.4rem;
      position: relative;
      overflow: hidden;
    }

    .contact-band::before {
      content: '';
      position: absolute;
      top: -40%;
      right: -20%;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
      pointer-events: none;
    }

    .contact-band::after {
      content: '';
      position: absolute;
      bottom: -50%;
      left: -10%;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.06);
      pointer-events: none;
    }

    .cb-eyebrow {
      font-size: 0.55rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.55);
      margin-bottom: 0.7rem;
    }

    .cb-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.8rem, 11vw, 5rem);
      line-height: 0.9;
      letter-spacing: 0.01em;
      color: #fff;
      margin-bottom: 2rem;
    }

    .cb-links {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .cb-link {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      text-decoration: none;
      background: rgba(0, 0, 0, 0.35);
      color: #fff;
      padding: 1.05rem 1.2rem;
      border-radius: 4px;
      font-family: 'DM Mono', monospace;
      font-size: 0.85rem;
      font-weight: 400;
      letter-spacing: 0.04em;
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: background 0.2s, transform 0.25s var(--ease-spring), border-color 0.2s;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .cb-link:hover,
    .cb-link:active {
      background: rgba(0, 0, 0, 0.45);
      border-color: rgba(255, 255, 255, 0.15);
      transform: translateX(4px);
    }

    .cb-link-icon {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cb-link-label {
      opacity: 0.75;
      font-size: 0.55rem;
      letter-spacing: 0.15em;
      display: block;
      margin-bottom: 0.1rem;
    }

    /* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
    footer {
      background: var(--c-bg);
      padding: 2rem 1.4rem;
      padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
      border-top: 1px solid var(--c-border);
      transition: background 0.4s, border-color 0.4s;
    }

    .footer-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .footer-brand .logo-word {
      font-size: 1.3rem;
    }

    .footer-meta {
      font-size: 0.65rem;
      font-weight: 300;
      color: var(--c-ink-2);
      line-height: 1.8;
      letter-spacing: 0.06em;
      text-align: right;
      transition: color 0.4s;
    }

    .footer-copy {
      margin-top: 1.5rem;
      padding-top: 1.2rem;
      border-top: 1px solid var(--c-border);
      font-size: 0.6rem;
      font-weight: 300;
      color: var(--c-ink-2);
      letter-spacing: 0.08em;
      transition: color 0.4s, border-color 0.4s;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .footer-link {
      color: var(--c-accent);
      text-decoration: none;
      transition: opacity 0.3s;
    }

    .footer-link:hover {
      opacity: 0.7;
    }

    /* ════════════════════════════════════════
   SCROLL DOT NAV
════════════════════════════════════════ */
    .dot-nav {
      position: fixed;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      z-index: 300;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }

    .dn-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--c-border-hi);
      cursor: pointer;
      border: none;
      padding: 0;
      transition: background 0.3s, transform 0.3s var(--ease-spring), height 0.3s var(--ease-spring);
    }

    .dn-dot.active {
      background: var(--c-accent);
      height: 16px;
      border-radius: 3px;
    }

    /* ════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════ */
    .sr {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .sr.in {
      opacity: 1;
      transform: none;
    }

    .sr-d1 {
      transition-delay: 0.08s;
    }

    .sr-d2 {
      transition-delay: 0.16s;
    }

    .sr-d3 {
      transition-delay: 0.24s;
    }

    .sr-d4 {
      transition-delay: 0.32s;
    }

    /* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
    @media (min-width: 480px) {
      .cb-links {
        flex-direction: row;
      }

      .cb-link {
        flex: 1;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
      }

      .cb-link-icon {
        align-self: center;
      }
    }

    @media (min-width: 720px) {
      /* Nav becomes horizontal bar */
      .nav-menu {
        position: static;
        flex-direction: row;
        background: none;
        clip-path: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        gap: 0.2rem;
        inset: auto;
      }

      .nav-menu::before {
        display: none;
      }

      .nav-menu li {
        opacity: 1;
        transform: none;
        transition: none;
      }

      .nav-link {
        font-family: 'DM Mono', monospace;
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 0.35rem 0.6rem;
      }

      .nav-link::before {
        display: none;
      }

      .nav-link:hover,
      .nav-link:focus {
        transform: none;
      }

      .nav-burger {
        display: none;
      }

      .nav-year {
        display: inline;
      }

      .section {
        padding: 5.5rem 2.5rem;
      }

      .services-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .hero-content {
        padding: 0 2.5rem;
      }

      .hero-bar {
        grid-template-columns: repeat(3, 1fr);
      }

      .howto-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .contact-band {
        padding: 4.5rem 2.5rem;
      }

      footer {
        padding: 2.5rem;
      }

      .dot-nav {
        right: 1.5rem;
      }

      .mech-svg {
        width: min(60vw, 520px);
      }
    }

    /* ── Desktop extra gears (hidden on mobile) ── */
    .hero-extra-gears {
      display: none;
    }

    @media (min-width: 1024px) {
      .section {
        padding: 6rem 3rem;
      }

      .hero-content {
        padding: 0 4rem;
        max-width: 48%;
      }

      .services-list {
        grid-template-columns: 1fr 1fr 1fr;
      }

      .why-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .mech-svg {
        width: clamp(500px, 55vw, 780px);
      }

      .hero-mech {
        align-items: center;
        justify-content: center;
        padding-right: 0;
        left: 35%;
        right: 0;
      }

      /* Extra gears visible on desktop */
      .hero-extra-gears {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
      }

      .extra-gear {
        position: absolute;
        opacity: 0;
        animation: mechReveal 1.4s 0.9s var(--ease-out) forwards;
      }

      .extra-gear-1 {
        width: 180px;
        height: 180px;
        bottom: 8%;
        left: 20%;
      }

      .extra-gear-2 {
        width: 100px;
        height: 100px;
        top: 12%;
        right: 8%;
      }

      .extra-gear-3 {
        width: 60px;
        height: 60px;
        top: 30%;
        left: 42%;
      }

      .eg-spin {
        transform-origin: center;
        animation: spin 15s linear infinite;
      }

      .eg-spin-rev {
        transform-origin: center;
        animation: spin 10s linear infinite reverse;
      }

      .eg-spin-slow {
        transform-origin: center;
        animation: spin 20s linear infinite;
      }
    }

    @media (min-width: 1440px) {
      .hero-content {
        padding: 0 5rem;
        max-width: 45%;
      }

      .mech-svg {
        width: clamp(650px, 50vw, 900px);
      }

      .hero-mech {
        left: 30%;
      }

      .site-nav {
        padding: 1.1rem 3rem;
        padding-top: calc(1.1rem + env(safe-area-inset-top, 0));
      }

      .extra-gear-1 {
        width: 240px;
        height: 240px;
        bottom: 10%;
        left: 15%;
      }

      .extra-gear-2 {
        width: 140px;
        height: 140px;
        top: 10%;
        right: 5%;
      }

      .extra-gear-3 {
        width: 80px;
        height: 80px;
        top: 28%;
        left: 38%;
      }
    }

/* ============================================================
   FOOTER CREDIT — design powered by vzapps.it
   Discreto, monogramma + underline animata su hover
   ============================================================ */
    footer .footer-credit {
      margin-top: 14px;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: lowercase;
      display: flex;
      justify-content: center;
      color: var(--c-ink-3);
      line-height: 1;
    }

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-ink-2);
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.footer-credit-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--c-accent-lo);
    color: var(--c-accent);
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--c-accent-lo);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    flex: 0 0 auto;
}

.footer-credit-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.footer-credit-text .sep {
    opacity: 0.4;
}

.footer-credit-text .domain {
    position: relative;
    color: var(--c-ink);
    font-weight: 500;
    opacity: 0.55;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-credit-text .domain::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .footer-credit-link:hover {
        color: var(--c-ink);
    }
    .footer-credit-link:hover .footer-credit-mono {
        background: var(--c-accent);
        color: var(--c-bg);
        border-color: var(--c-accent);
        transform: rotate(-6deg) scale(1.08);
        box-shadow: 0 0 0 4px var(--c-accent-lo);
    }
    .footer-credit-link:hover .footer-credit-text .domain {
        color: var(--c-accent);
        opacity: 1;
    }
    .footer-credit-link:hover .footer-credit-text .domain::after {
        transform: scaleX(1);
    }
}

.footer-credit-link:active .footer-credit-mono {
    transform: scale(0.95);
}
.footer-credit-link:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-credit-link,
    .footer-credit-mono,
    .footer-credit-text .domain,
    .footer-credit-text .domain::after {
        transition: none !important;
    }
}
