/* =========================================================
   AudiophileBerry · Alessandro Gornati — stile comune
   Palette: #1F1F1F background · #EDEDEB accent
   Lo stesso file è usato da entrambi i siti (le aggiunte sono in fondo)
   ========================================================= */

/* Font inclusi nel sito (nessuna connessione esterna). Licenze SIL OFL in assets/fonts/
   Michroma = titoli · Montserrat = testi · JetBrains Mono = etichette tecniche */
@font-face { font-family: "Michroma"; src: url("assets/fonts/michroma-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-extrabold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrainsmono-regular.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }

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

:root {
  --bg: #0E0E0F;
  --bg-deep: #0A0A0B;
  --panel: #161617;
  --panel-2: #1B1B1C;
  --text: #EDEDEB;
  --muted: #9EA1A5;
  --dim: #6C6F73;
  --line: rgba(255,255,255,.09);
  --accent: #EDEDEB;
  --accent-soft: rgba(255,255,255,.05);
  --accent-line: rgba(255,255,255,.24);
  --wave-rgb: 200,200,200;
  --it-green: #009246;
  --it-white: #F1F2F1;
  --it-red: #CE2B37;
  --max: 1240px;
  --gutter: max(24px, calc((100vw - var(--max)) / 2));
  --ease: cubic-bezier(.22,.8,.24,1);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
  --display: "Michroma", "Montserrat", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0E0E0F; }

/* ---------- INTRO ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 34px;
  background: var(--bg-deep);
  transition: opacity .7s var(--ease) .1s, visibility 0s linear .8s;
}
body:not(.is-loading) .intro { opacity: 0; visibility: hidden; }
.intro-mark { position: relative; width: 110px; aspect-ratio: 800/803; }
.intro-part {
  position: absolute; inset: 0; width: 100%; opacity: 0;
  animation: introPart .9s var(--ease) forwards;
}
.intro-part.p1 { --from: translate(-60px,-40px) rotate(-25deg); animation-delay: .05s; }
.intro-part.p2 { --from: translate(60px,-40px) rotate(25deg);  animation-delay: .18s; }
.intro-part.p3 { --from: translate(0,60px) rotate(-15deg);     animation-delay: .31s; }
@keyframes introPart {
  from { opacity: 0; transform: var(--from) scale(.6); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: drop-shadow(0 0 6px rgba(237,237,235,0.09)); }
}
.intro-bar { width: 120px; height: 2px; background: var(--line); overflow: hidden; }
.intro-bar span {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform-origin: left; animation: introBar 1.1s var(--ease) forwards;
}
@keyframes introBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- BACKGROUND FX ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform-origin: left; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 10px var(--accent);
}
/* Simbolo AudiophileBerry che segue il mouse */
.cursor-logo {
  position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  transform: translate3d(var(--lx, -100px), var(--ly, -100px), 0);
  opacity: 0; transition: opacity .3s;
}
.cursor-logo.is-visible { opacity: .85; }
.cursor-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(237,237,235,0.125));
  transition: transform .35s var(--ease), opacity .3s;
}
.cursor-logo.is-hover img { transform: scale(1.7) rotate(-8deg); opacity: .55; }
.cursor-logo.is-down img { transform: scale(.75); }
main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .4s, border-color .4s, transform .5s var(--ease);
}
/* Lo sfondo sfocato sta in un livello separato: così il menu a tutto schermo
   su smartphone non resta "intrappolato" dentro la barra */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(27,27,27,.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled {
  padding-block: 10px;
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand-logo {
  width: clamp(210px, 18vw, 300px); height: auto;
  transition: width .4s var(--ease), filter .4s;
}
.site-header.is-scrolled .brand-logo { width: clamp(190px, 15vw, 250px); }
.brand:hover .brand-logo { filter: drop-shadow(0 0 6px rgba(237,237,235,0.09)); }

.nav { display: flex; gap: 30px; align-items: center; font-size: .9rem; }
.nav a { position: relative; color: var(--muted); transition: color .25s; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 9px 18px !important; border: 1px solid var(--accent-line); color: var(--accent) !important;
  overflow: hidden; isolation: isolate;
  transition: color .3s, border-color .3s !important;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .35s var(--ease);
}
.nav-cta:hover { color: #0E0E0F !important; border-color: var(--accent); }
.nav-cta:hover::before { transform: none; }
/* Selettore di lingua EN | IT */
.nav .lang-switch { display: inline-flex; align-items: stretch; padding: 0; border: 1px solid var(--accent-line); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; line-height: 1; }
.nav .lang-switch::after { display: none; }
.lang-switch span { padding: 7px 9px; color: var(--muted); transition: color .25s, background .25s; }
.lang-switch span.on { background: var(--accent); color: #0E0E0F; }
.lang-switch:hover span:not(.on) { color: var(--text); background: var(--accent-soft); }
.legal-lang { margin-left: 18px; color: var(--muted); font-size: .9rem; }

.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--accent);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- LAYOUT ---------- */
.hero, .section, .contact, .site-footer, .italian-rule, .statement {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.section { padding: 120px 0; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; color: var(--accent);
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em;
}
.eyebrow .idx {
  color: var(--dim); padding-right: 12px; border-right: 1px solid var(--line);
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: -.01em; line-height: 1.14; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.7rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-family: "Montserrat", Arial, sans-serif; font-weight: 700; letter-spacing: -.005em; line-height: 1.25; }

.section-heading { margin-bottom: 56px; max-width: 760px; }
.section-heading > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin: 18px 0 0; }

/* ---------- BUTTONS ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; font-weight: 600; font-size: .95rem;
  overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
  will-change: transform;
}
.button span { position: relative; z-index: 1; display: inline-block; transition: transform .35s var(--ease); }
.button.primary { background: var(--accent); color: #0E0E0F; }
.button.primary::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.button.primary:hover { box-shadow: 0 10px 40px -8px rgba(237,237,235,0.325); }
.button.primary:hover::before { transform: translateX(120%); }
.button.secondary { border: 1px solid rgba(255,255,255,.2); color: var(--text); }
.button.secondary::before {
  content: ""; position: absolute; inset: 0; background: var(--accent-soft); z-index: 0;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.button.secondary:hover { border-color: var(--accent-line); }
.button.secondary:hover::before { transform: none; }
.button-lg { min-height: 58px; padding: 0 36px; font-size: 1.02rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 120px 0 90px;
}
.hero-wave {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100vw; height: 46%; pointer-events: none; z-index: -1; opacity: .9;
}
.hero-content { position: relative; z-index: 2; }

.made-in-italy {
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
  color: #8f969e; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.flag { display: inline-grid; grid-template-columns: repeat(3, 4px); height: 17px; overflow: hidden; border-radius: 1px; }
.flag i:nth-child(1) { background: var(--it-green); }
.flag i:nth-child(2) { background: var(--it-white); }
.flag i:nth-child(3) { background: var(--it-red); }
.flag-small { grid-template-columns: repeat(3, 3px); height: 12px; }

/* Equalizer animato */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 100%; background: var(--accent); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .9s; }
.eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.3s; }
.eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
@keyframes eq { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.hero-title {
  font-size: clamp(2.05rem, 4.5vw, 3.9rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.1;
  max-width: 12ch; margin-bottom: 26px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 0%, #FFFFFF 35%, var(--accent) 60%, #8E9195 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Split text (parole che salgono) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .24em; margin-bottom: -.24em; } /* spazio per le "gambe" di g, p, y */
.word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 80ms + 150ms); }
.is-ready .word > span { transform: none; }
.hero-title em .word > span {
  background: linear-gradient(100deg, var(--accent) 0%, #FFFFFF 35%, var(--accent) 60%, #8E9195 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

[data-hero] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready [data-hero] { opacity: 1; transform: none; }
.is-ready .eyebrow[data-hero] { transition-delay: .12s; }
.is-ready .hero-kicker { transition-delay: .55s; }
.is-ready .hero-text { transition-delay: .68s; }
.is-ready .hero-actions { transition-delay: .8s; }

.hero-kicker { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--text); font-weight: 500; margin: 0 0 14px; max-width: 34ch; }
.hero-text { color: var(--muted); max-width: 52ch; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }

.hero-mark { position: relative; width: 82%; aspect-ratio: 800/803; animation: float 7s ease-in-out infinite; }
.mark-part {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 0 8px rgba(237,237,235,0.06));
  transition: transform 1.3s var(--ease), opacity 1.3s var(--ease);
  opacity: 0;
}
.mark-part.m1 { transform: translate(-30%, -20%) rotate(-18deg); }
.mark-part.m2 { transform: translate(30%, -20%) rotate(18deg); transition-delay: .1s; }
.mark-part.m3 { transform: translate(0, 32%) rotate(-10deg); transition-delay: .2s; }
.is-ready .mark-part { opacity: 1; transform: translate3d(var(--px,0), var(--py,0), 0); }
.is-assembled .mark-part { transition: transform .9s var(--ease), opacity 1.3s var(--ease); transition-delay: 0s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 14px;
  opacity: 0; transition: opacity 1s ease 1.4s;
}
.is-ready .scroll-cue { opacity: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- ITALIAN RULE ---------- */
.italian-rule { position: relative; display: flex; justify-content: center; height: 3px; }
.italian-rule span { width: 34px; height: 3px; transform: scaleX(0); transition: transform .7s var(--ease); }
.italian-rule span:nth-child(1) { background: var(--it-green); transform-origin: right; }
.italian-rule span:nth-child(2) { background: var(--it-white); transition-delay: .15s; }
.italian-rule span:nth-child(3) { background: var(--it-red); transform-origin: left; transition-delay: .3s; }
.italian-rule.is-in span { transform: none; }
.rule-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: var(--line);
  transform: scaleX(0); transition: transform 1.4s var(--ease);
}
.rule-line.is-in::before { transform: none; }
.rule-line span { position: relative; }

/* ---------- MARQUEE ---------- */
.marquee {
  margin-top: 70px; overflow: hidden; border-block: 1px solid var(--line);
  padding: 22px 0; background: rgba(0,0,0,.12);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-size: clamp(1.05rem, 1.9vw, 1.55rem); font-weight: 400; letter-spacing: 0;
  color: transparent; -webkit-text-stroke: 1px rgba(245,247,250,.28); white-space: nowrap;
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.marquee span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.marquee b { color: var(--accent); font-weight: 400; font-size: 1.1rem; opacity: .7; }
@keyframes marquee { to { transform: translateX(calc(-50% - 18px)); } }

/* ---------- REVEAL ---------- */
[data-reveal]:not([data-reveal="rule"]) {
  opacity: 0; transform: translateY(46px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="wipe"] { opacity: 1 !important; transform: none !important; border-color: transparent !important; transition: border-color 1s ease .9s !important; }
[data-reveal="wipe"].is-in { border-color: rgba(237,237,235,0.07) !important; }
[data-reveal="wipe"] > img { clip-path: inset(0 0 100% 0); }
[data-reveal="wipe"].is-in > img { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease), filter .6s; }
[data-reveal="wipe"] > span { opacity: 0; transition: opacity .6s ease 1.1s; }
[data-reveal="wipe"].is-in > span { opacity: 1; }

/* ---------- GALLERY (Projects + Lab) ---------- */
.project-list { display: grid; gap: 120px; }
.project { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.project-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.project-flip .gallery { order: 2; }
.project-copy { position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.project-copy::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--accent);
  transition: height 1.2s var(--ease) .4s;
}
.project.is-in .project-copy::before { height: 64px; }
.project-type { margin: 0 0 10px; color: var(--accent); font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.project-copy h3 { font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 400; letter-spacing: 0; line-height: 1.12; margin-bottom: 18px; }
.project-copy > p:not(.project-type) { margin: 0; color: var(--muted); font-size: 1.02rem; }
.project-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; }
.project-points li { position: relative; padding-left: 22px; color: var(--text); font-size: .94rem; line-height: 1.5; }
.project-points li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 9px; height: 9px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent);
}
.project-facts { margin: 24px 0 0; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.project-facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.project-facts dd { margin: 0; font-size: .9rem; color: var(--muted); }

/* Riquadro "Your product could be next" */
.project-soon {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center;
  padding: 48px 52px; border: 1px solid var(--accent-line);
  background: linear-gradient(120deg, rgba(237,237,235,0.035), transparent 55%), var(--bg-deep);
}
.project-soon::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(237,237,235,0.035) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.soon-mark img { width: 100%; opacity: .9; filter: drop-shadow(0 0 8px rgba(237,237,235,0.075)); animation: float 7s ease-in-out infinite; }
.soon-copy h3 { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 16px; }
.soon-copy > p:not(.project-type) { margin: 0; color: var(--muted); max-width: 70ch; }
.soon-copy .project-type { display: flex; align-items: center; gap: 10px; }
.project-soon { transition: border-color .3s, transform .5s var(--ease), opacity 1s var(--ease) !important; }
.project-soon:hover { border-color: var(--accent); }
.soon-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--accent); font-weight: 600; }
.soon-link b { font-weight: 400; transition: transform .35s var(--ease); }
.project-soon:hover .soon-link b { transform: translateX(6px); }

/* Riquadro "Now in development" */
.now {
  width: min(calc(100% - 48px), var(--max)); margin: 64px auto 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border: 1px solid var(--accent-line); background: rgba(237,237,235,0.025);
  transition: background .3s, border-color .3s;
}
.now:hover { background: rgba(237,237,235,0.05); border-color: var(--accent); }
.now-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.now-text { color: var(--text); font-size: .95rem; flex: 1; min-width: 240px; }
.now-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.now-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.now + .marquee { margin-top: 40px; }

.gallery { display: grid; gap: 12px; }
/* Miniature: sempre 8 visibili; dalla nona in poi si scorre verso destra */
.thumbs {
  --visible: 8; --tgap: 8px;
  display: grid; grid-auto-flow: column; gap: var(--tgap);
  grid-auto-columns: calc((100% - (var(--visible) - 1) * var(--tgap)) / var(--visible));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(237,237,235,0.3) rgba(255,255,255,.06);
}
.thumbs.has-more { padding-bottom: 8px; }
.thumbs.has-more:not(.at-end) {
  -webkit-mask-image: linear-gradient(90deg, #000 86%, rgba(0,0,0,.25));
  mask-image: linear-gradient(90deg, #000 86%, rgba(0,0,0,.25));
}
.thumbs::-webkit-scrollbar { height: 4px; }
.thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
.thumbs::-webkit-scrollbar-thumb { background: rgba(237,237,235,0.3); }
.thumb { scroll-snap-align: start; }
/* Lab: foto quadrate -> riquadro quadrato, miniature quadrate sotto */
.gallery-lab .gallery-stage { aspect-ratio: 1 / 1; }
.gallery-lab .thumb { aspect-ratio: 1 / 1; }

.gallery-stage {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4;
  background: #111; border: 1px solid var(--line);
  touch-action: pan-y;
}
.gallery-blur {
  position: absolute; inset: -40px; background: var(--bg) center / cover no-repeat;
  filter: blur(36px) brightness(.45) saturate(1.2); transform: scale(1.1);
  transition: background-image .6s;
}
.gallery-main {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  transition: opacity .55s var(--ease), transform 1.2s var(--ease), filter .55s;
}
.gallery-stage:hover .gallery-main { transform: scale(1.035); }
.gallery-main.is-out { opacity: 0; transform: scale(1.06); filter: blur(8px); }
.gallery-main.is-in-left { animation: slideL .7s var(--ease); }
.gallery-main.is-in-right { animation: slideR .7s var(--ease); }
@keyframes slideR { from { opacity: 0; transform: translateX(40px) scale(1.02); filter: blur(6px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px) scale(1.02); filter: blur(6px); } }

.image-kind, .gallery-count {
  position: absolute; z-index: 2; top: 16px;
  padding: 6px 11px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(16,16,16,.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
}
.image-kind { left: 16px; color: var(--accent); }
.gallery-count { right: 16px; color: var(--muted); }
.gallery-count b { color: var(--text); font-weight: 500; }

.gallery-arrow {
  position: absolute; z-index: 3; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  background: rgba(16,16,16,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 1.6rem; line-height: 1; color: var(--text);
  opacity: 0; transition: opacity .35s, transform .35s var(--ease), background .25s, border-color .25s;
}
.gallery-arrow.prev { left: 16px; transform: translateX(-12px); }
.gallery-arrow.next { right: 16px; transform: translateX(12px); }
.gallery-stage:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; transform: none; }
.gallery-arrow:hover { background: var(--accent); border-color: var(--accent); color: #0E0E0F; }

.gallery-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.gallery-progress span { display: block; height: 100%; background: var(--accent); width: calc(var(--pos, 1) / var(--total, 8) * 100%); transition: width .6s var(--ease); box-shadow: 0 0 8px var(--accent); }

.thumb {
  position: relative; padding: 0; border: 1px solid var(--line); background: #111; cursor: pointer;
  aspect-ratio: 5 / 4; overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(.6); transition: opacity .35s, filter .35s, transform .6s var(--ease); }
.thumb:hover img { opacity: .9; filter: none; transform: scale(1.08); }
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--accent); }
.thumb.is-active img { opacity: 1; filter: none; }
.thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--accent); opacity: 0; transition: opacity .3s; }
.thumb.is-active::after { opacity: 1; }

/* ---------- CAPABILITIES ---------- */
.capabilities { position: relative; }
#capabilities.section { padding-bottom: 90px; }
#capabilities .section-heading { margin-bottom: 32px; }
#capabilities h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
#capabilities .section-heading > p:last-child { margin-top: 10px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability {
  position: relative; padding: 26px 28px 28px; background: var(--bg); overflow: hidden;
  transform-style: preserve-3d;
  transition: background .4s, opacity 1s var(--ease), transform .5s var(--ease) !important;
  transition-delay: var(--d, 0s) !important;
}
.capability.is-in { transform: none; }
.capability.is-in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.capability::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--cx, 50%) var(--cy, 50%), rgba(237,237,235,0.065), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.capability::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.capability:hover { background: #222; }
.capability:hover::before { opacity: 1; }
.capability:hover::after { transform: scaleX(1); }
.cap-num { display: block; font-family: var(--mono); color: var(--accent); font-size: .8rem; margin-bottom: 16px; letter-spacing: .1em; }
.capability h3 { margin-bottom: 8px; transition: transform .4s var(--ease); }
.capability:hover h3 { transform: translateX(6px); }
.capability p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---------- PROCESS ---------- */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.process-steps li { position: relative; padding: 0 28px 0 0; }
.process-steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line);
}
.process-steps li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .3s);
}
.process-steps li.is-in::after { transform: none; }
.step-num {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px;
  font-family: var(--mono); font-size: .8rem; color: var(--accent); background: var(--bg);
  border: 1px solid var(--accent-line); box-shadow: 0 0 0 8px var(--bg);
}
.process-steps h3 { margin-bottom: 10px; }
.process-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- LAB ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 64px; align-items: center; }
.lab-copy { max-width: 520px; }
.lab-copy h2 { margin-bottom: 24px; }
.lab-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 0 0 14px; }
.origin { padding: 56px 0 0; border-top: 1px solid var(--line); }
.origin .lab-copy .project-type { margin: 0 0 10px; color: var(--accent); font-size: .72rem; }
.origin h3 { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 20px; }
.story .lab-copy em { font-style: italic; color: var(--text); }
.footer-disclaimer { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: #626970; font-size: .7rem; line-height: 1.6; text-align: center; max-width: none; }
/* "Not just DIY": gallery un po' più piccola su desktop (stesso formato quadrato) */
.lab.origin { grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); }

/* ---------- ABOUT ---------- */
.it-word { position: relative; display: inline-block; }
.it-word::after {
  content: ""; position: absolute; left: 0; right: .25em; bottom: -.08em; height: .08em;
  background: linear-gradient(90deg, var(--it-green) 0 33.3%, var(--it-white) 0 66.6%, var(--it-red) 0);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .5s;
}
.is-in .it-word::after { transform: none; }

.about-personal { display: grid; grid-template-columns: minmax(0, 820px); }
.about-copy .about-name { color: var(--text); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: 0; margin: 0 0 4px; }
.about-role { margin: 0 0 26px !important; color: var(--accent) !important; font-family: var(--mono); font-size: .78rem !important; letter-spacing: .1em; text-transform: uppercase; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 16px; }
.about-copy .about-note { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--accent); font-size: .95rem; color: var(--text); }

.portrait { position: relative; margin: 0; aspect-ratio: 1400 / 1120; overflow: hidden; border: 1px solid rgba(237,237,235,0.07); }
.portrait img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--par, 0px)); transition: filter .6s; filter: grayscale(1) contrast(1.05); }
.portrait:hover img { filter: grayscale(1) contrast(1.12) brightness(1.06); }
.portrait-corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); }
.portrait-corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.portrait-corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- CONTACT ---------- */
.contact { position: relative; padding: 150px 0 160px; text-align: center; overflow: hidden; }
.contact-eq {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px; pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}
.contact-eq i {
  flex: 1; max-width: 14px; height: 100%; background: linear-gradient(to top, rgba(237,237,235,0.175), rgba(237,237,235,0.0));
  transform-origin: bottom; transform: scaleY(.1);
  animation: eqBar var(--dur, 1.4s) ease-in-out var(--del, 0s) infinite alternate;
}
@keyframes eqBar { from { transform: scaleY(var(--lo, .08)); } to { transform: scaleY(var(--hi, .6)); } }
.contact-inner { position: relative; display: grid; justify-items: center; }
.contact-email { margin-top: 22px; font-family: var(--mono); font-size: .95rem; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-size: clamp(1.6rem, 3.8vw, 3.2rem); max-width: 18ch; margin-bottom: 22px; }
.contact p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0 0 40px; }

/* ---------- FOOTER ---------- */
.site-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center;
  padding: 40px 0 46px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem;
}
.trademark-note { margin-top: 4px; font-size: .74rem; color: #666d74; }
.footer-center { display: grid; justify-items: center; gap: 14px; }
.instagram-link { display: flex; align-items: center; gap: 12px; color: var(--text); transition: color .3s; }
.instagram-icon { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-back), stroke .3s; }
.instagram-icon circle:last-child { fill: currentColor; stroke: none; }
.instagram-copy { display: grid; line-height: 1.25; }
.instagram-title { font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.instagram-handle { font-weight: 600; font-size: .98rem; }
.instagram-link:hover { color: var(--accent); }
.instagram-link:hover .instagram-icon { transform: rotate(-10deg) scale(1.12); }
.footer-legal { display: flex; gap: 18px; font-size: .76rem; }
.footer-legal a { transition: color .25s; }
.footer-legal a:hover { color: var(--accent); }
.footer-origin { display: flex; align-items: center; gap: 10px; justify-self: end; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border: 1px solid var(--accent-line); background: rgba(24,24,24,.85);
  color: var(--accent); cursor: pointer; font-size: 1.1rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), background .25s, color .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #0E0E0F; }

/* ---------- LEGAL PAGES ---------- */
.legal-page { position: relative; z-index: 1; width: min(calc(100% - 48px), 820px); margin: 0 auto; padding: 90px 0 120px; animation: pageIn .9s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); } }
.legal-page h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 400; letter-spacing: -.01em; margin-bottom: 30px; }
.legal-page h2 { font-size: 1.15rem; margin: 46px 0 16px; letter-spacing: 0; }
.legal-page p { color: var(--muted); }
.legal-back { display: inline-flex; gap: 8px; margin-bottom: 60px; color: var(--muted); font-size: .9rem; transition: color .25s, gap .3s var(--ease); }
.legal-back:hover { color: var(--accent); gap: 14px; }
.legal-placeholder { padding: 20px 22px; border: 1px dashed var(--accent-line); background: var(--accent-soft); }
.legal-section { border-top: 1px solid var(--line); margin-top: 40px; }
.legal-updated { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--dim) !important; margin: -14px 0 30px; }
.legal-page a:not(.legal-back) { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.legal-page a:not(.legal-back):hover { border-color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .project { grid-template-columns: 1fr; gap: 30px; }
  .project-flip .gallery { order: 0; }
  .project-flip { grid-template-columns: 1fr; }
  .lab, .lab.origin { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 44px 0; }
  .project-soon { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .soon-mark { width: 140px; }
  .lab-copy { max-width: 760px; }
  .thumbs { --visible: 5; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-header.is-hidden { transform: none; }
  .site-header::before { background: rgba(24,24,24,.96); }
  .menu-toggle { background: rgba(24,24,24,.6); }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(20,20,20,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    font-size: 1.6rem; font-weight: 600;
    clip-path: circle(0 at calc(100% - 46px) 40px);
    transition: clip-path .7s var(--ease);
  }
  .nav.open { clip-path: circle(150% at calc(100% - 46px) 40px); }
  .nav a { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .25s; color: var(--text); }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(1) { transition-delay: .15s; }
  .nav.open a:nth-child(2) { transition-delay: .21s; }
  .nav.open a:nth-child(3) { transition-delay: .27s; }
  .nav.open a:nth-child(4) { transition-delay: .33s; }
  .nav.open a:nth-child(5) { transition-delay: .39s; }
  .nav-cta { font-size: 1.1rem; }
  .nav .lang-switch { font-size: 1rem; margin-top: 6px; }
  .lang-switch span { padding: 9px 16px; }
  .nav.open a:nth-child(6) { transition-delay: .45s; }
  .nav.open a:nth-child(7) { transition-delay: .51s; }

  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 28px; text-align: center; }
  .hero-visual { order: -1; max-width: 340px; width: 72%; justify-self: center; }
  .hero-title { margin-inline: auto; }
  .hero-kicker, .hero-text { margin-inline: auto; }
  .made-in-italy, .hero-actions { justify-content: center; }
  .hero .eyebrow { display: block; text-align: center; line-height: 1.7; }
  .hero .eyebrow .eq { margin-right: 8px; vertical-align: -1px; }
  .hero-wave { height: 35%; }
  .scroll-cue { display: none; }
  .section { padding: 90px 0; }
  .project-list { gap: 80px; }
  .about-personal { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 520px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-origin { justify-self: center; }
  .gallery-arrow { opacity: 1; transform: none; width: 40px; height: 40px; }
  .cursor-logo { display: none; }
}

@media (max-width: 560px) {
  .hero, .section, .contact, .site-footer, .italian-rule { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .capability-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .now { width: calc(100% - 32px); }
  .capability { padding: 32px 26px; }
  .cap-num { margin-bottom: 26px; }
  .hero-visual { width: 78%; max-width: 300px; }
  .hero-actions .button { flex: 1; }
  .portrait { max-width: none; }
  .contact { padding: 110px 0 120px; }
}


/* =========================================================
   v69 — SITI MULTI-PAGINA
   ========================================================= */

/* Voce del menu della pagina aperta */
.nav a[aria-current="page"]:not(.nav-cta) { color: var(--text); }
.nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }

/* ---------- Intestazione delle pagine interne ---------- */
.page-hero {
  position: relative; width: min(calc(100% - 48px), var(--max)); margin-inline: auto;
  padding: 190px 0 40px;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: 0; top: 40px; width: 620px; height: 620px; max-width: 70vw;
  background: radial-gradient(closest-side, rgba(237,237,235,0.05), transparent);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -.015em; line-height: 1.1;
  max-width: 17ch; margin-bottom: 26px;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero h1 em .word > span { color: var(--accent); }
.page-hero .lead { color: var(--text); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; max-width: 46ch; margin: 0; }
.page-hero .eyebrow[data-hero] { transition-delay: .1s; }
.page-hero .lead + .hero-text { margin: 16px 0 0; max-width: 60ch; }
.is-ready .page-hero .lead { transition-delay: .5s; }
.page-hero-mark {
  position: absolute; right: 0; top: 150px; width: clamp(160px, 22vw, 300px); opacity: .16; pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.page-hero-mark img, .page-hero-mark svg { width: 100%; height: auto; }

/* ---------- Testo su due colonne ---------- */
.split-text { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px 72px; align-items: start; }
.split-text .section-heading { margin-bottom: 0; position: sticky; top: 110px; }
.prose p { color: var(--muted); font-size: 1.06rem; margin: 0 0 18px; }
.prose p.eyebrow { font-size: .74rem; color: var(--accent); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .accent-line { color: var(--text); padding-left: 16px; border-left: 2px solid var(--accent); }
.prose .button { margin-top: 18px; }
.section-tight { padding: 90px 0; }
.section + .section-tight, .section-tight + .section-tight { padding-top: 40px; }
.divider { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; height: 1px; background: var(--line); }

/* Testo + immagine */
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 72px; align-items: center; }
.media-split.flip > .media-frame { order: -1; }
.media-frame {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 5 / 4;
  border: 1px solid var(--line); background: #111;
}
.media-frame.square { aspect-ratio: 1 / 1; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame figcaption {
  position: absolute; left: 16px; top: 16px; padding: 6px 11px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(16,16,16,.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08);
}
.media-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(237,237,235,0.04) 50%, transparent 65%);
  transform: translateX(-100%);
}
.media-frame.is-in::after { animation: sweep 2.4s var(--ease) .4s 1 forwards; }

/* ---------- Schede progetto (anteprime) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 28px; }
.work-card {
  position: relative; display: flex; flex-direction: column; background: var(--bg-deep);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .35s, opacity 1s var(--ease), transform 1s var(--ease) !important;
  transition-delay: var(--d, 0s) !important;
}
a.work-card:hover { border-color: var(--accent-line); }
.work-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #111; border-bottom: 1px solid var(--line); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
a.work-card:hover .work-media img { transform: scale(1.05); }
.work-media.blank {
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(237,237,235,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(237,237,235,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(closest-side, rgba(237,237,235,0.05), transparent) center / 100% 100% no-repeat,
    #141414;
}
.work-media.blank svg { width: 46%; height: auto; opacity: .85; }
.work-media .tag {
  position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 10px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(16,16,16,.7); border: 1px solid rgba(255,255,255,.08);
}
.work-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.work-body h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: 0; line-height: 1.2; margin-bottom: 12px; }
.work-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.work-more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.work-more b { font-weight: 400; transition: transform .35s var(--ease); }
a.work-card:hover .work-more b { transform: translateX(6px); }
.section-actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.section-actions.center { justify-content: center; }

/* Griglia di 4 card */
.capability-grid.four { grid-template-columns: repeat(4, 1fr); }
.capability h3 small { display: block; margin-top: 6px; font-family: "Montserrat", Arial, sans-serif; font-weight: 500; font-size: .86rem; color: var(--accent); letter-spacing: 0; }

/* ---------- Elenco servizi (Competenze) ---------- */
.service-list { display: grid; border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 110px minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px 48px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .2s);
}
.service.is-in::before { transform: scaleX(.12); }
.service:hover::before { transform: scaleX(1); transition-delay: 0s; }
.service .cap-num { font-size: 2rem; font-family: var(--display); color: transparent; -webkit-text-stroke: 1px var(--accent-line); letter-spacing: 0; margin: 0; line-height: 1; transition: color .4s, -webkit-text-stroke-color .4s; }
.service:hover .cap-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.service h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: 0; margin-bottom: 10px; }
.service .service-claim { margin: 0; color: var(--accent); font-weight: 600; }
.service .prose p { font-size: 1rem; }

/* ---------- Metodo: 6 passaggi ---------- */
.process-steps.six { grid-template-columns: repeat(3, 1fr); row-gap: 64px; }
.process-note { margin: 56px 0 0; color: var(--dim); font-style: italic; font-size: .95rem; }

/* ---------- Frase in evidenza ---------- */
.statement { padding: 110px 0; text-align: center; }
.statement p {
  margin: 0 auto; max-width: 30ch; font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 2.05rem); line-height: 1.35; letter-spacing: -.01em;
}
.statement p em { font-style: normal; color: var(--accent); }
.statement small { display: block; margin-top: 24px; color: var(--muted); font-size: 1.02rem; max-width: 56ch; margin-inline: auto; }

/* ---------- Riquadro con link (es. "Il designer", "Future developments") ---------- */
.project-soon.static { cursor: default; }
.project-soon .button { margin-top: 26px; }
.soon-mark.svg-mark svg { width: 100%; height: auto; animation: float 7s ease-in-out infinite; }

/* ---------- Footer (nuova struttura) ---------- */
.footer-brand { display: grid; gap: 2px; }
.footer-brand .footer-name { font-family: var(--display); color: var(--text); font-size: 1rem; letter-spacing: .02em; margin-bottom: 4px; }
.footer-brand .footer-tag { color: var(--accent); font-size: .82rem; }
.footer-meta { justify-self: end; text-align: right; display: grid; gap: 4px; }
.footer-meta .footer-origin { justify-self: end; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .76rem; }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-sister { font-size: .8rem; }
.footer-sister a { color: var(--text); border-bottom: 1px solid var(--accent-line); transition: color .25s, border-color .25s; }
.footer-sister a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Sito Alessandro Gornati: marchio testuale ---------- */
.brand-text { display: flex; align-items: center; gap: 14px; }
.brand-text .brand-mark { width: 38px; height: 38px; flex: none; transition: transform .6s var(--ease), filter .4s, width .4s, height .4s; }
.brand-logo-ag { object-fit: contain; }
.brand-text:hover .brand-mark { transform: rotate(-8deg); filter: drop-shadow(0 0 8px rgba(237,237,235,0.225)); }
.brand-text:hover .brand-logo-ag { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(255,255,255,.28)); }
.brand-words { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: clamp(.82rem, 1.05vw, .98rem); letter-spacing: .08em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.brand-sub { margin-top: 5px; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; transition: opacity .4s, max-height .4s; max-height: 2em; overflow: hidden; }
.site-header.is-scrolled .brand-sub { opacity: 0; max-height: 0; margin-top: 0; }
.site-header.is-scrolled .brand-text .brand-mark { width: 32px; height: 32px; }

/* Intro: il disegno del contenitore si traccia, poi compare il nome */
.intro-draw { width: 120px; height: auto; overflow: visible; }
.intro-draw path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards; }
.intro-draw path:nth-child(2) { animation-delay: .2s; }
.intro-draw path:nth-child(3) { animation-delay: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-name { font-family: var(--display); font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: var(--text); opacity: 0; animation: introName .8s var(--ease) .55s forwards; padding-left: .32em; }
@keyframes introName { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; } }

/* Hero: disegno isometrico dell'enclosure (si assembla e segue il mouse) */
.iso-drawing { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; animation: float 7s ease-in-out infinite; }
.iso-drawing svg { width: 100%; height: 100%; overflow: visible; }
.iso-part { transition: transform 1.4s var(--ease), opacity 1.2s var(--ease); opacity: 0; }
.iso-part.p-body  { transform: translate(0, 40px); }
.iso-part.p-cover { transform: translate(0, -150px); transition-delay: .15s; }
.iso-part.p-panel { transform: translate(-120px, 70px); transition-delay: .3s; }
.is-ready .iso-part { opacity: 1; transform: translate(var(--px, 0px), var(--py, 0px)); }
.is-ready .iso-part.p-cover { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 20px)); }
.is-ready .iso-part.p-panel { transform: translate(calc(var(--px, 0px) - 16px), calc(var(--py, 0px) + 9px)); }
/* Passando col mouse sopra il disegno, l'enclosure si "esplode" */
.is-ready .hero-visual:hover .iso-part.p-cover { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 70px)); }
.is-ready .hero-visual:hover .iso-part.p-panel { transform: translate(calc(var(--px, 0px) - 64px), calc(var(--py, 0px) + 37px)); }
.is-ready .hero-visual:hover .iso-part.p-body { transform: translate(var(--px, 0px), calc(var(--py, 0px) + 10px)); }
.is-assembled .iso-part { transition: transform .9s var(--ease); transition-delay: 0s; }
.iso-drawing .face { fill: rgba(237,237,235,0.018); stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.iso-drawing .face.top { fill: rgba(237,237,235,0.035); }
.iso-drawing .face.side { fill: rgba(237,237,235,0.01); }
.iso-drawing .detail { fill: none; stroke: rgba(237,237,235,0.275); stroke-width: 1; stroke-linecap: round; }
.iso-drawing .screen { fill: rgba(237,237,235,0.08); stroke: var(--accent); stroke-width: 1; }
.iso-drawing .screen-glow { fill: url(#screenGlow); }
.iso-drawing .hidden-line { fill: none; stroke: rgba(245,247,250,.18); stroke-width: 1; stroke-dasharray: 5 5; }
.iso-drawing .dim { stroke: rgba(245,247,250,.35); stroke-width: .8; fill: none; }
.iso-drawing .dim-text { fill: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.iso-drawing .frame { stroke: rgba(245,247,250,.22); stroke-width: 1; fill: none; }
.iso-drawing .title-block { fill: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.iso-drawing .title-block.accent { fill: var(--accent); }
.iso-drawing .annot { opacity: 0; transition: opacity 1s ease 1.6s; }
.is-ready .iso-drawing .annot { opacity: 1; }

/* Cursore a mirino (sito Alessandro Gornati) */
.cursor-logo svg { width: 100%; height: 100%; overflow: visible; transition: transform .35s var(--ease), opacity .3s; }
.cursor-logo svg * { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.cursor-logo.is-hover svg { transform: scale(1.6) rotate(45deg); opacity: .6; }
.cursor-logo.is-down svg { transform: scale(.7); }


/* Testi lunghi nelle schede progetto */
.project-copy > p:not(.project-type) + p { margin-top: 14px; }
.project-copy > p.project-claim { color: var(--text); font-weight: 600; font-size: 1.06rem; margin-bottom: 16px; }

/* Due immagini affiancate */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Pagina contatti */
.contact.contact-page { padding-top: 210px; min-height: 86vh; min-height: 86svh; display: grid; align-content: center; }
.contact-page h1 { font-size: clamp(1.8rem, 4.2vw, 3.4rem); max-width: 20ch; margin: 0 auto 24px; letter-spacing: -.015em; line-height: 1.12; }
.contact-page .contact-inner > p { max-width: 58ch; }
.contact-page .contact-inner > p + p { margin-top: -26px; }
.follow { text-align: center; padding: 30px 0 120px; }
.follow h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.follow p { color: var(--muted); margin: 0 0 30px; }
.follow .instagram-link { justify-content: center; display: inline-flex; padding: 18px 28px; border: 1px solid var(--accent-line); transition: color .3s, border-color .3s, background .3s; }
.follow .instagram-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.follow .instagram-icon { width: 42px; height: 42px; }
.follow .instagram-handle { font-size: 1.15rem; }
@media (max-width: 860px) { .media-pair { grid-template-columns: 1fr; } .contact.contact-page { padding-top: 150px; } }


/* =========================================================
   v70 — PAGINA UNICA
   ========================================================= */
/* AudiophileBerry: Instagram dentro la sezione contatti */
.follow-inline { margin-top: 56px; display: grid; justify-items: center; gap: 18px; }
.follow-inline p { margin: 0 !important; font-size: 1rem !important; }
.follow-inline strong { color: var(--text); font-weight: 600; }

/* Sito personale: hero con immagine reale */
.hero-pro { min-height: auto; padding: 170px 0 70px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; }
.hero-pro .hero-title { max-width: 11ch; }
.hero-figure { position: relative; margin: 0; border: 1px solid var(--line); background: #FFFFFF; aspect-ratio: 5 / 4; overflow: hidden; }
.hero-figure img { width: 100%; height: 100%; object-fit: contain; }
.hero-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(250,250,250,.94);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero-figure figcaption span { color: var(--text); }
.is-ready .hero-figure { transition-delay: .4s; }

/* Barra dei dati chiave */
.key-facts {
  width: min(calc(100% - 48px), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line);
}
.key-facts div { padding: 22px 24px; display: grid; gap: 6px; }
.key-facts div + div { border-left: 1px solid var(--line); }
.key-facts span { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.key-facts b { font-weight: 600; font-size: .95rem; color: var(--text); }

/* Casi studio */
.case-idx { color: var(--dim); padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); }
.case .project-copy h3 { margin-bottom: 14px; }
.case-link { display: inline-flex; gap: 10px; margin-top: 22px; font-weight: 600; font-size: .92rem; color: var(--text); border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; transition: border-color .3s; }
.case-link:hover { border-color: var(--text); }
.case-link b { font-weight: 400; transition: transform .35s var(--ease); }
.case-link:hover b { transform: translateX(5px); }

/* Chi sono con ritratto */
.about-pro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: start; }
.portrait-ph { margin: 0; position: sticky; top: 110px; }
.ph-box {
  aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  border: 2px dashed rgba(0,0,0,.28); background: #EAEAE7;
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0,0,0,.08) 50%, transparent calc(50% + 1px)),
                    linear-gradient(to top left, transparent calc(50% - 1px), rgba(0,0,0,.08) 50%, transparent calc(50% + 1px));
}
.ph-box span { font-weight: 600; font-size: 1.15rem; color: var(--text); background: #EAEAE7; padding: 4px 10px; }
.ph-box small { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: #EAEAE7; padding: 2px 8px; }
.about-pro h2 { margin-bottom: 6px; }
.about-pro .about-role { margin: 0 0 26px !important; }
.about-facts { margin-top: 30px; }
.about-facts div { grid-template-columns: 110px 1fr; }
.about-facts a { color: var(--text); border-bottom: 1px solid var(--accent-line); }

/* Contatti sobri (senza equalizzatore) */
.contact-pro { padding: 120px 0 130px; border-top: 1px solid var(--line); }
.contact-pro p:not(.eyebrow) { max-width: 60ch; }
.contact-pro h2 { max-width: 24ch; }

@media (max-width: 1080px) {
  .hero-pro { grid-template-columns: 1fr; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  .key-facts div:nth-child(3) { border-left: 0; }
  .key-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-pro { grid-template-columns: 1fr; }
  .portrait-ph { position: static; max-width: 380px; }
}
@media (max-width: 860px) {
  .hero-pro { padding-top: 120px; text-align: left; }
  .hero-pro .hero-title, .hero-pro .hero-kicker, .hero-pro .hero-text { margin-inline: 0; }
  .hero-pro .hero-actions { justify-content: flex-start; }
  .hero-pro .eyebrow { text-align: left; }
  .hero-pro .hero-figure { order: 0; }
}
@media (max-width: 560px) {
  .key-facts { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .key-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
}


/* Modello 3D di ONE nella hero (sito personale) */
.hero-3d { position: relative; margin: 0; }
.case3d {
  position: relative; aspect-ratio: 1 / .86; width: 100%; cursor: grab;
  background: radial-gradient(closest-side, rgba(254,254,253,.95), rgba(254,254,253,0));
  touch-action: pan-y;
}
.case3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .5s ease; }
/* immagine statica del case: sfumata mentre il 3D si carica, poi sparisce */
.case3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .35; filter: blur(2px) grayscale(1); transition: opacity .6s ease, filter .6s ease; }
.case3d.is-3d .case3d-fallback { opacity: 0; }
.case3d.is-3d-failed .case3d-fallback { opacity: 1; filter: none; }
.hero-3d figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 14px; margin-top: -6px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.hero-3d figcaption span:first-child { color: var(--text); }
.case3d-hint-touch { display: none; }
@media (max-width: 560px) { .hero-pro .button { white-space: nowrap; padding-inline: 18px; } }
@media (hover: none) { .case3d-hint { display: none; } .case3d-hint-touch { display: inline; } .case3d { cursor: pointer; } }


/* v71 — AudiophileBerry: investitori, logo AG, percorsi di contatto */
.investor-box { margin-top: 70px; }
.soon-mark.ag-mark img { width: 100%; height: auto; animation: float 7s ease-in-out infinite; }
.collab-line { margin-top: 14px !important; font-size: .95rem; color: var(--muted); }
.collab-line a { color: var(--text); border-bottom: 1px solid var(--accent-line); transition: color .25s, border-color .25s; }
.collab-line a:hover { color: var(--accent); border-color: var(--accent); }
.contact-paths {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  width: min(100%, 1080px); margin: 70px auto 0; text-align: left;
}
.contact-path {
  display: flex; flex-direction: column; padding: 26px 26px 24px; border: 1px solid var(--line);
  background: rgba(24,24,24,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .35s, transform .35s var(--ease), opacity 1s var(--ease) !important;
}
.contact-path:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.contact-path h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0; margin: 10px 0 10px; }
.contact-path p { margin: 0 0 18px; color: var(--muted); font-size: .94rem; }
.path-link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 8px; }
.path-link b { font-weight: 400; transition: transform .35s var(--ease); }
.contact-path:hover .path-link b { transform: translateX(5px); }
@media (max-width: 860px) { .contact-paths { grid-template-columns: 1fr; } }


/* v72 — divisori di sezione animati (AudiophileBerry: azzurro) */
.sec-rule {
  position: relative; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; height: 1px;
  display: flex; align-items: center; justify-content: space-between;
}
.sec-rule[data-reveal] { opacity: 1 !important; transform: none !important; }
.sec-rule::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(237,237,235,0.275), rgba(237,237,235,0.09) 60%, rgba(237,237,235,0.025));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.65,0,.2,1);
}
.sec-rule::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 140px; height: 3px; opacity: 0;
  background: radial-gradient(closest-side, rgba(150,225,255,.95), rgba(237,237,235,0.0)); filter: blur(.5px);
}
.sec-rule.is-in::before { transform: scaleX(1); }
.sec-rule.is-in::after { animation: ruleScan 2.6s cubic-bezier(.45,0,.2,1) .35s 1 forwards; }
@keyframes ruleScan { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: .9; } 100% { left: calc(100% - 140px); opacity: 0; } }
.sec-rule span {
  position: relative; z-index: 1; top: -15px; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); opacity: 0; transition: opacity .8s ease 1s;
}
.sec-rule.is-in span { opacity: 1; }
.sec-rule i { position: absolute; top: -4px; width: 1px; height: 9px; background: rgba(237,237,235,0.3); opacity: 0; transition: opacity .6s ease .2s; }
.sec-rule i:first-of-type { left: 0; } .sec-rule i:last-of-type { right: 0; transition-delay: 1.5s; }
.sec-rule.is-in i { opacity: 1; }
.site-ab .hero { padding-bottom: 60px; }
@media (max-width: 560px) { .sec-rule { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { .sec-rule::before { transform: none; transition: none; } .sec-rule::after { display: none; } }


/* v73 — AudiophileBerry: un solo stile per tutti i titoli */
/* titoli di sezione: stessa proporzione con i titoli dei progetti su computer e su telefono (circa 1,25) */
.site-ab main h2 { font-size: clamp(1.8rem, 2.45vw, 2.35rem); line-height: 1.12; letter-spacing: -.01em; }
.site-ab .contact h2 { font-size: clamp(1.8rem, 2.45vw, 2.35rem); }
/* titoli di progetto: ONE, SM FIVE, archivio DIY, riquadri */
.site-ab .project-copy h3, .site-ab .lab-copy h3, .site-ab .soon-copy h3 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 1.95vw, 1.9rem); line-height: 1.15; letter-spacing: 0;
}
/* titoli delle card piccole: filosofia e contatti */
.site-ab .capability h3, .site-ab .contact-path h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.25; letter-spacing: 0;
}
/* testi: due sole misure (paragrafi normali e testi delle card) */
.site-ab main .prose p:not(.eyebrow):not(.project-type), .site-ab main .section-heading p:not(.eyebrow),
.site-ab main .project-copy > p:not(.project-type), .site-ab main .lab-copy p:not(.project-type),
.site-ab main .soon-copy p:not(.project-type), .site-ab .contact .contact-inner > p:not(.eyebrow) {
  font-size: 1.06rem; line-height: 1.6;
}
.site-ab .project-copy > p.project-claim { font-size: 1.06rem; }
.site-ab .project-copy > .project-points + p { margin-top: 18px !important; }
.site-ab .capability p, .site-ab .contact-path p, .site-ab .project-points li, .site-ab .collab-line {
  font-size: .94rem !important; line-height: 1.55;
}
/* titolo su due righe esatte (una frase per riga) */
.split-text.stacked { grid-template-columns: 1fr; gap: 34px; }
.split-text.stacked .section-heading { position: static; }
.split-text.stacked .prose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
.split-text.stacked .prose p { margin: 0; }
@media (max-width: 860px) { .split-text.stacked .prose { grid-template-columns: 1fr; gap: 16px; } }
.split-text.stacked .prose p { break-inside: avoid; }
@media (min-width: 861px) { .two-lines span { white-space: nowrap; } }
/* v75 — un'unica misura per tutti i titoli principali (sezioni e progetti) */
.site-ab main h2,
.site-ab main .project-copy h3, .site-ab main .lab-copy h3, .site-ab main .soon-copy h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem) !important; line-height: 1.15 !important;
}
/* archivio DIY: niente bordo grigio, al suo posto il divisore animato */
.site-ab .lab.origin { border-top: 0; padding-top: 0; margin-top: 0; }
.sub-rule { width: 100%; margin: 90px 0 56px; }
.site-ab .project-list, .site-ag .project-list { gap: 0; }
.site-ab .project-list > .sub-rule:first-child, .site-ag .project-list > .sub-rule:first-child { margin-top: 34px; }

/* ---------- RESPONSIVE (aggiunte v69) ---------- */
@media (max-width: 1080px) {
  .capability-grid.four { grid-template-columns: repeat(2, 1fr); }
  .split-text, .media-split { grid-template-columns: 1fr; }
  .split-text .section-heading { position: static; }
  .media-split.flip > .media-frame { order: 0; }
  .service { grid-template-columns: 80px 1fr; }
  .service .prose { grid-column: 2; }
  .process-steps.six { grid-template-columns: repeat(2, 1fr); }
  .page-hero-mark { opacity: .08; }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 150px; text-align: left; }
  .footer-meta, .footer-meta .footer-origin { justify-self: center; text-align: center; }
  .iso-drawing { max-width: 360px; margin-inline: auto; }
  .brand-sub { display: none; }
  .brand-name { font-size: .78rem; }
}
@media (max-width: 560px) {
  .capability-grid.four { grid-template-columns: 1fr; }
  .page-hero, .divider { width: calc(100% - 32px); }
  .process-steps.six { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 36px 0; }
  .service .prose { grid-column: auto; }
  .statement { padding: 80px 0; }
  .brand-text { gap: 10px; }
  .brand-text .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: .7rem; letter-spacing: .05em; }
}

/* Chi preferisce meno movimento (impostazione del sistema operativo) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* v79 — sezione 01 AB allineata ad Alessandro Gornati */
.site-ab .value-grid { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.site-ab .value-grid .capability { padding: 34px 32px 36px; }
.site-ab .value-grid .capability h3 { margin: 18px 0 10px; }
@media (max-width: 1080px) { .site-ab .value-grid { grid-template-columns: 1fr; } }

/* v81 — fluidità: logo dell'intro e della hero su livelli dedicati della scheda grafica */
.site-ab .intro-part, .site-ab .hero-mark, .site-ab .mark-part { will-change: transform, opacity; backface-visibility: hidden; }
/* niente sfocatura dietro i riquadri contatti: sotto c'è l'equalizzatore animato, che la ricalcolerebbe a ogni fotogramma */
.site-ab .contact-path { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24,24,24,.88); }

/* ---------- Tema scuro: fondo sfumato ---------- */
html { background: #0B0B0C; }
body {
  background:
    radial-gradient(1200px 760px at 78% -8%, rgba(255,255,255,.075), rgba(255,255,255,0) 70%),
    radial-gradient(900px 700px at -12% 55%, rgba(255,255,255,.035), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #151516 0%, #0E0E0F 45%, #09090A 100%);
  background-attachment: fixed;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.brand-text .brand-mark { object-fit: contain; }
.brand-text:hover .brand-mark { transform: none; filter: drop-shadow(0 0 10px rgba(255,255,255,.25)); }
/* il vetro sfocato sta nel livello ::before, così il menu mobile a tutto schermo non resta chiuso dentro la barra */
.site-header { background: transparent !important; }
.site-header::before { opacity: 1; background: rgba(14,14,15,.62); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); }

/* titoli: Michroma per nome e titoli brevi, Montserrat per i titoli lunghi */
h2 { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.section-heading h2[lang="en"], .about-pro h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
.service h3 { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; letter-spacing: -.01em; }
.hero-title em .word > span { animation-duration: 9s; }
.project-copy::before { display: none; }

/* superfici */
.case .project-copy, .key-facts, .project-soon { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); }
.case .project-copy { padding: 32px 34px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gallery-stage, .thumb { background: #141415; }
.button.primary { background: #EDEDEB; color: #0E0E0F; }
.button.primary:hover { box-shadow: 0 14px 40px -14px rgba(255,255,255,.35); }
.button.secondary { border-color: rgba(255,255,255,.22); }
.service .cap-num { -webkit-text-stroke-color: rgba(255,255,255,.28); }
.statement p em, .page-hero h1 em .word > span { color: var(--muted); }

/* modello 3D: alone chiaro dietro il case */
.case3d { background: radial-gradient(closest-side, rgba(255,255,255,.09), rgba(255,255,255,0)); }
.case3d-fallback { opacity: .22; }

/* ritratto segnaposto */
.ph-box { border-color: rgba(255,255,255,.22); background-color: #151516;
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), rgba(255,255,255,.07) 50%, transparent calc(50% + 1px)),
                    linear-gradient(to top left, transparent calc(50% - 1px), rgba(255,255,255,.07) 50%, transparent calc(50% + 1px)); }
.ph-box span, .ph-box small { background: #151516; }

/* ---------- Divisori di sezione animati ---------- */
.sec-rule {
  position: relative; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; height: 1px;
  display: flex; align-items: center; justify-content: space-between;
}
.sec-rule[data-reveal] { opacity: 1 !important; transform: none !important; }
.sec-rule::before {            /* la linea si disegna da sinistra a destra */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.34), rgba(255,255,255,.12) 60%, rgba(255,255,255,.05));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.65,0,.2,1);
}
.sec-rule::after {             /* un punto di luce che la percorre */
  content: ""; position: absolute; top: -1px; left: 0; width: 140px; height: 3px; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0));
  filter: blur(.5px);
}
.sec-rule.is-in::before { transform: scaleX(1); }
.sec-rule.is-in::after { animation: ruleScan 2.6s cubic-bezier(.45,0,.2,1) .35s 1 forwards; }
@keyframes ruleScan { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: .9; } 100% { left: calc(100% - 140px); opacity: 0; } }
.sec-rule span {
  position: relative; z-index: 1; top: -15px; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); opacity: 0; transition: opacity .8s ease 1s;
}
.sec-rule.is-in span { opacity: 1; }
.sec-rule i {                   /* tacche alle estremità, come in una tavola */
  position: absolute; top: -4px; width: 1px; height: 9px; background: rgba(255,255,255,.4);
  opacity: 0; transition: opacity .6s ease .2s;
}
.sec-rule i:first-of-type { left: 0; } .sec-rule i:last-of-type { right: 0; transition-delay: 1.5s; }
.sec-rule.is-in i { opacity: 1; }
.contact-pro { border-top: 0; }
.sec-rule.sub-rule { width: 100%; margin: 90px 0 56px; }
.portrait-photo { position: relative !important; top: auto !important; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #141415;
  width: 100%; max-width: 320px; justify-self: center; align-self: center; }
.site-ag .about-pro { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; }
@media (max-width: 1080px) { .site-ag .about-pro { grid-template-columns: 1fr; } .portrait-photo { max-width: 260px; } }
.portrait-photo img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.02); transition: transform 1.4s var(--ease); }
@media (max-width: 1080px) { .portrait-photo { position: relative; top: auto; } }
.portrait-photo:hover img { transform: scale(1.03); }
.portrait-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,14,15,0) 60%, rgba(14,14,15,.35)); }
.coming-soon .soon-copy h3 { margin: 6px 0 12px; }
.coming-soon .soon-mark img { width: 100%; height: auto; opacity: .9; animation: float 7s ease-in-out infinite; }
.site-ag .project-list > .sub-rule:first-child { margin-top: 34px; }

/* ---------- v5: contenuti per aziende + dettagli Made in Italy ---------- */
.eyebrow-it { display: flex !important; align-items: center; gap: 12px; }
.eyebrow-it .flag { height: 12px; grid-template-columns: repeat(3, 3px); }
.trust-line { margin: 34px 0 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.trust-line b { color: var(--text); font-weight: 400; }
.trust-line span { margin: 0 10px; }
.is-ready .trust-line { transition-delay: .9s; }

.value-grid { grid-template-columns: repeat(3, 1fr); }
.value-grid .capability { background: rgba(255,255,255,.02); padding: 34px 32px 36px; }
.value-grid .capability h3 { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; margin: 18px 0 10px; }


.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.format { position: relative; padding: 28px 28px 30px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); transition: border-color .4s, background .4s; }
.format:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.035); }
.format h3 { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 10px; }
.format p { margin: 0; color: var(--muted); font-size: .95rem; }
.format::before { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 2px; background: var(--text); }
.process-note { display: flex; align-items: center; gap: 12px; font-style: normal !important; }
.process-note .flag, .contact-origin .flag, .it-word .flag { height: 11px; grid-template-columns: repeat(3, 3px); }

/* tricolore minimo nei divisori */
.it-dots { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.it-dots em { width: 4px; height: 4px; border-radius: 50%; display: block; }
.it-dots em:nth-child(1) { background: var(--it-green); } .it-dots em:nth-child(2) { background: var(--it-white); } .it-dots em:nth-child(3) { background: var(--it-red); }


.contact-origin { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px !important; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim) !important; }
.contact-pro .contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-social { margin-top: 14px; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.contact-social:hover { color: var(--text); border-color: var(--accent-line); }

/* Chi sono: come AudiophileBerry */
.about-pro .about-name { color: var(--text); font-family: var(--display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin: 18px 0 4px !important; }
.about-pro .about-role { color: var(--muted) !important; }
.made-in-italy { margin-bottom: 26px; }

/* Caso in evidenza (Volumio): galleria a tutta larghezza, testo sotto su due colonne */
.case-featured { grid-template-columns: 1fr !important; gap: 34px !important; }
.case-featured .gallery-stage { aspect-ratio: 16 / 9; }
.case-featured .project-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.case-featured .project-copy > .project-type, .case-featured .project-copy > h3 { grid-column: 1; }
.case-featured .project-copy > p:not(.project-type) { grid-column: 1; }
.case-featured .project-copy > .project-facts { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }

/* v6 — uniformità come su AudiophileBerry */
/* titoli principali: sezioni e progetti, stessa misura e stesso carattere */
.site-ag main h2, .site-ag main .project-copy h3, .site-ag main .soon-copy h3 {
  font-family: var(--display) !important; font-weight: 400 !important; letter-spacing: -.01em !important;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem) !important; line-height: 1.15 !important;
}
/* titoli delle card: vantaggi, servizi, passaggi, formule */
.site-ag main .capability h3, .site-ag main .service h3, .site-ag main .format h3, .site-ag main .process-steps h3 {
  font-family: var(--display) !important; font-weight: 400 !important; letter-spacing: 0 !important;
  font-size: 1.15rem !important; line-height: 1.25 !important;
}
/* testi: paragrafi normali */
.site-ag main .prose p:not(.eyebrow):not(.about-role):not(.about-name), .site-ag main .section-heading p:not(.eyebrow),
.site-ag main .project-copy > p:not(.project-type), .site-ag main .soon-copy p:not(.project-type), .site-ag main .service .prose p, .site-ag .contact-pro .contact-inner > p:not(.eyebrow),
.site-ag main .service .service-claim {
  font-size: 1.06rem !important; line-height: 1.6 !important;
}
/* testi delle card e delle schede */
.site-ag main .capability p, .site-ag main .format p, .site-ag main .process-steps p, .site-ag main .project-facts dd, .site-ag main .process-note {
  font-size: .94rem !important; line-height: 1.55 !important;
}
@media (max-width: 1080px) { .value-grid, .formats { grid-template-columns: 1fr; } .case-featured .project-copy { grid-template-columns: 1fr; } .case-featured .project-copy > .project-facts { grid-column: 1; grid-row: auto; margin-top: 22px; } }
@media (max-width: 560px) { .sec-rule { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { .sec-rule::before { transform: none; transition: none; } .sec-rule::after { display: none; } }

/* ---------- Intro logo AG (v11) — solo transform/opacity, animate dalla GPU ---------- */
.intro-ag { background: radial-gradient(ellipse at 50% 45%, #1a1a1c 0%, #0b0b0c 70%); transition: opacity .6s cubic-bezier(.4,0,.2,1), visibility 0s linear .6s; }
.agi-logo { position: relative; width: 176px; aspect-ratio: 1905 / 1845; transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .6s cubic-bezier(.4,0,.2,1); }
body:not(.is-loading) .agi-logo { transform: scale(1.06); opacity: 0; }
.agi-layer { position: absolute; inset: 0; will-change: transform, opacity; animation: agiIn .9s cubic-bezier(.22,1,.36,1) both; }
.agi-layer svg { width: 100%; height: 100%; display: block; }
.agi-frame-top    { --f: translate3d(0,-110px,0); animation-delay: .05s; }
.agi-frame-bottom { --f: translate3d(0,110px,0);  animation-delay: .12s; }
.agi-cube-left    { --f: translate3d(-46px,34px,0) scale(.9); animation-delay: .5s; animation-duration: .75s; }
.agi-cube-right   { --f: translate3d(46px,34px,0) scale(.9);  animation-delay: .56s; animation-duration: .75s; }
.agi-cube-top     { --f: translate3d(0,-56px,0) scale(.9);    animation-delay: .7s;  animation-duration: .75s; }
@keyframes agiIn { from { opacity: 0; transform: var(--f); } 45% { opacity: 1; } to { opacity: 1; transform: translate3d(0,0,0); } }
.agi-shine { position: absolute; inset: 0; overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; }
.agi-shine span { position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 35%, #fff 50%, rgba(255,255,255,.55) 65%, rgba(255,255,255,0) 100%); will-change: transform; transform: translate3d(-160%,0,0) skewX(-20deg); animation: agiShine .95s cubic-bezier(.45,0,.25,1) 1.1s both; }
@keyframes agiShine { from { transform: translate3d(-160%,0,0) skewX(-20deg); } to { transform: translate3d(360%,0,0) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .agi-layer { animation: none; } .agi-shine { display: none; } }

/* v12 — casi di studio: Obiettivo / Soluzione / Risultato */
.site-ag .project-facts div { grid-template-columns: 112px 1fr; }
.site-ag .case-brief { margin-top: 22px; }
.site-ag .case-brief dd { color: var(--text); }
.site-ag .case-brief + .project-facts { margin-top: 18px; }
.site-ag .project-copy > p:not(.project-type) { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; color: var(--text); }
@media (max-width: 560px) { .site-ag .project-facts div { grid-template-columns: 1fr; gap: 4px; } .site-ag .project-facts { gap: 16px; } }

/* v18 — foto profilo originale, senza effetti aggiunti */
.site-ag .portrait-photo { border: 1px solid rgba(255,255,255,.08); background: #141415; overflow: hidden; }
.site-ag .portrait-photo img { filter: none; }
.site-ag .portrait-photo::after { display: none; }

/* v20 — menu mobile pieno, senza trasparenza */
@media (max-width: 860px) {
  .site-header::before { background: #141415; }
  .site-ag .nav { background: #121213; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* v21 — pulsanti della hero su mobile: testo su due righe quando serve, come su AudiophileBerry */
@media (max-width: 560px) {
  .site-ag .hero-pro .button { white-space: normal; text-align: center; line-height: 1.25; padding: 8px 18px; }
  .site-ag .hero-pro .button span { white-space: normal; text-align: center; }
}

/* ---------- v22 ---------- */

/* ---------- v25 · approccio con immagine ---------- */
.why-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: center; padding-bottom: 96px; }
.why-split .section-heading { margin-bottom: 0; }
.why-figure { margin: 0; }
.why-figure img { width: 100%; border: 1px solid var(--line); }
.why-figure figcaption { margin-top: 12px; color: var(--dim); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 1080px) { .why-split { grid-template-columns: 1fr; gap: 40px; } .why-figure { max-width: 520px; } }

/* ---------- Modulo di contatto ---------- */
.contact-form { width: min(100%, 780px); margin: 6px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; text-align: left; }
.contact-form .field { display: grid; gap: 9px; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-form label i, .contact-form .check i { font-style: normal; color: var(--accent); }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea {
  width: 100%; margin: 0; padding: 14px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 0;
  background: rgba(255,255,255,.035); color: var(--text); font: inherit; font-size: .98rem; line-height: 1.4;
  transition: border-color .25s, background-color .25s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--dim); }
.contact-form input:not([type=checkbox]):focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.06); }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239EA1A5' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.contact-form select:invalid, .contact-form select:has(option[value=""]:checked) { color: var(--dim); }
.contact-form option { background: #161617; color: var(--text); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .check { display: flex; gap: 12px; align-items: flex-start; font-family: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; cursor: pointer; }
.contact-form .check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.contact-form .check a { color: var(--text); border-bottom: 1px solid var(--accent-line); }
.contact-form .form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.contact-form .form-foot .button { border: 0; cursor: pointer; font-family: inherit; }
.contact-form .form-foot .button:disabled { opacity: .6; cursor: wait; }
.contact-form .form-note { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--dim); }
.contact-form .form-status { grid-column: 1 / -1; min-height: 1.5em; font-size: .98rem; color: var(--muted); }
.contact-form .form-status.ok { color: var(--text); }
.contact-form .form-status.error { color: #E58C8C; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-social.first { margin-top: 56px; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } .contact-form .form-foot .button { width: 100%; } }
