/* ==========================================================================
   ATELIER STUDIO — Swiss typography + liquid glass, Apple-style spacing
   Inter, tight tracking, generous whitespace, red + black.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --paper: #f0eee8;
  --paper-dim: #c9c7c1;
  --red: #8c1a1a;
  --red-bright: #b32424;
  --red-text: #ee5a50;
  --grey: #8a8a8a;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: blur(22px) saturate(180%);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-leading: 1.15;
  --text-tracking: -0.035em;

  /* type hierarchy (all centred):
     1 title 700 / 2 heading 700 / 3 lead 700 / 4 body 400 / 5 label 700 caps.
     Two weights only: 700 for titles, lead, labels and buttons; 400 for text you read. */
  --fs-title: clamp(48px, 7.4vw, 100px);
  --fs-heading: clamp(28px, 3.5vw, 46px);
  --fs-body: 18px;
  --fs-label: 12.5px;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--red); color: var(--paper); }

/* subtle grain to keep the flat colour blocks from feeling too digital */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }

/* ---------- liquid glass ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled::before {
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  justify-self: start;
}
.logo img {
  height: 28px;
  width: auto;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 6px);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.main-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: baseline;
  color: rgba(240, 238, 232, 0.55);
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--paper); background: rgba(255,255,255,0.06); }
.main-nav a.active {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 12px;
  margin-right: -12px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--paper);
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 55%, #150707 100%);
}
.hero-bg-img {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 124%;
  background: url("../assets/studio.png") center 58% / cover no-repeat;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.05) 30%, rgba(5,5,5,0.15) 60%, rgba(5,5,5,0.75) 100%);
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(40vw, 440px);
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.btn-invert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 16px 26px;
  white-space: nowrap;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  background: var(--paper);
  color: var(--black);
}
.btn-invert:hover { background: var(--black); color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.notify-submit { border: 0; cursor: pointer; font-family: inherit; }

/* ---------- sections ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(100px, 13vw, 192px) var(--gutter);
}
.section--flush { padding-top: 0; padding-bottom: 0; }

.section-head {
  margin-bottom: clamp(56px, 7vw, 96px);
  text-align: center;
}
.section-title {
  font-size: var(--fs-title);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* line-mask reveal — text rises up from behind a hidden band, à la 1367studio */
.reveal-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.reveal-mask .reveal-line {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}
.reveal-mask.is-visible .reveal-line {
  transform: translateY(0);
  opacity: 1;
}

/* staggered reveal for grouped text/blocks */
.spec-row.reveal:nth-child(2) { transition-delay: 0.08s; }
.spec-row.reveal:nth-child(3) { transition-delay: 0.16s; }
.spec-row.reveal:nth-child(4) { transition-delay: 0.24s; }
.spec-row.reveal:nth-child(5) { transition-delay: 0.32s; }
.spec-row.reveal:nth-child(6) { transition-delay: 0.4s; }

/* scheda tecnica: the actual text emerges sideways from behind a hidden mask, alternating with the red/white rows */
.reveal-mask-h {
  display: block;
  overflow: hidden;
}
.reveal-line-h {
  display: block;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.spec-row:nth-child(even) .reveal-line-h { transform: translateX(100%); }
.spec-row.is-visible .reveal-line-h { transform: translateX(0); opacity: 1; }
.spec-row.is-visible .spec-items-inline .reveal-line-h { transition-delay: 0.08s; }


/* ---------- studio ---------- */
.studio-lead-wrap {
  position: relative;
  height: 190vh;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.studio-lead-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}
.studio-lead {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
  text-transform: none;
  text-align: center;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 auto;
}
.studio-lead .word {
  display: inline-block;
  opacity: 0.25;
}

/* ---------- studio gallery: swipe / arrows / dots, no auto-advance ---------- */
.gallery { padding-bottom: clamp(16px, 3vw, 40px); }
.gallery-stage { position: relative; }
.gallery-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.gallery-track::-webkit-scrollbar { display: none; }
.studio-photo {
  flex: 0 0 clamp(280px, 52vw, 720px);
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 60% at 25% 85%, rgba(179, 36, 36, 0.45), transparent 65%),
    linear-gradient(160deg, #171010 0%, #0a0a0a 60%);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}
.studio-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.photo-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 238, 232, 0.4);
  background: rgba(10, 10, 10, 0.62);
  color: var(--paper);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .studio-photo:hover img { transform: scale(1.04); }
  .studio-photo:hover .photo-expand { background: var(--paper); color: var(--black); transform: scale(1.08); }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 238, 232, 0.3);
  background: rgba(10, 10, 10, 0.78);
  color: var(--paper);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.gallery-prev { left: 0; transform: translate(-50%, -50%); }
.gallery-next { right: 0; transform: translate(50%, -50%); }
.gallery-arrow:hover:not(:disabled) { background: var(--paper); color: var(--black); }
.gallery-arrow:disabled { opacity: 0.25; cursor: default; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
}
.gallery-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 238, 232, 0.3);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.gallery-dot::after { content: ""; position: absolute; inset: -14px -5px; }
.gallery-dot.is-active { width: 30px; background: var(--red-text); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: lbIn 0.25s ease; }
.lightbox::backdrop { background: rgba(6, 6, 6, 0.97); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 2 * clamp(20px, 9vw, 140px));
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-caption {
  font-size: 15px;
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
  color: var(--paper-dim);
  text-align: center;
}
.lightbox-count {
  position: absolute;
  top: 26px;
  left: clamp(20px, 3vw, 40px);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 238, 232, 0.3);
  background: rgba(10, 10, 10, 0.78);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close { top: 16px; right: clamp(16px, 3vw, 36px); }
.lightbox-arrow { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: clamp(12px, 3vw, 40px); }
.lightbox-next { right: clamp(12px, 3vw, 40px); }
.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--paper); color: var(--black); }

/* ---------- notify dialog: waitlist form for Atelier App ---------- */
.notify-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 460px);
  max-height: min(88vh, 720px);
  padding: clamp(32px, 5vw, 48px);
  border: 0;
  border-radius: 24px;
  background: #121212;
  color: var(--paper);
  overflow-y: auto;
}
.notify-dialog[open] { animation: lbIn 0.25s ease; }
.notify-dialog::backdrop { background: rgba(6, 6, 6, 0.85); }
.notify-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 238, 232, 0.3);
  background: rgba(10, 10, 10, 0.5);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.notify-close:hover { background: var(--paper); color: var(--black); }
.notify-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
  padding-right: 32px;
}
.notify-lead {
  font-size: 15px;
  line-height: var(--text-leading);
  color: var(--paper-dim);
  margin: 0 0 28px;
}
.notify-hp { display: none; }
.notify-row { display: flex; gap: 16px; }
.notify-row .notify-field { flex: 1; min-width: 0; }
.notify-field {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  margin-bottom: 18px;
}
.notify-optional { text-transform: none; font-weight: 400; letter-spacing: 0; opacity: 0.7; }
.notify-field input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 2px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: var(--text-tracking);
  color: var(--paper);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(240, 238, 232, 0.28);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.notify-field input:focus { outline: none; border-bottom-color: var(--red-text); }
.notify-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--paper-dim);
  margin-bottom: 24px;
  cursor: pointer;
}
.notify-consent input { margin-top: 3px; flex: none; }
.notify-submit { width: 100%; justify-content: center; }
.notify-feedback { font-size: 14px; margin-top: 16px; text-align: center; color: var(--paper-dim); }
.notify-feedback[data-state="ok"] { color: var(--red-text); }
.notify-feedback[data-state="error"] { color: var(--red-text); }

/* ---------- maclam ---------- */
.maclam-wrap {
  position: relative;
  height: 180vh;
}
.maclam-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(80px, 10vh, 120px) var(--gutter) 40px;
}
.maclam-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.maclam-role,
.maclam-name,
.maclam-photo,
.maclam-desc,
.muso-card,
#maclam-cta {
  opacity: 0;
}
.maclam-role {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-text);
  margin-bottom: 14px;
}
.maclam-name {
  font-size: var(--fs-heading);
  font-weight: 700;
  margin-bottom: 32px;
}
.maclam-photo {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 32px;
}
.maclam-photo img { width: 100%; height: 100%; object-fit: cover; }
.maclam-desc {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
  color: var(--paper-dim);
  text-transform: none;
  margin-bottom: 32px;
  max-width: 48ch;
}
.maclam-desc .word { display: inline-block; }

/* ---------- muso.ai profile card — faithful to muso's own dark/teal styling ---------- */
.muso-card {
  --muso-bg: #0a0a0a;
  --muso-card: #171717;
  --muso-primary: #6be7c8;
  --muso-fg: #f5f5f5;
  --muso-fg-secondary: #a3a3a3;
  --muso-fg-tertiary: #737373;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 32px;
  background: var(--muso-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}
.muso-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 24px 24px;
}
.muso-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #222;
}
.muso-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.muso-body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.muso-claimed {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muso-primary);
}
.muso-claimed svg { width: 15px; height: 15px; flex-shrink: 0; }
.muso-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--muso-fg);
}
.muso-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muso-fg-secondary);
}
.muso-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.08);
  font-size: 13px;
  font-weight: 600;
}
.muso-sep { color: var(--muso-fg-tertiary); }
.muso-pop { display: inline-flex; align-items: center; gap: 8px; }
.muso-meter { display: inline-flex; gap: 2px; width: 72px; }
.muso-meter span { flex: 1; height: 4px; border-radius: 999px; background: rgba(245, 245, 245, 0.12); }
.muso-meter span.on { background: var(--muso-primary); }
.muso-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--muso-fg-tertiary);
}
.muso-location svg { width: 13px; height: 13px; flex-shrink: 0; }
.muso-credits {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.muso-credits-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--muso-fg);
}
.muso-credits-label {
  font-size: 13px;
  color: var(--muso-fg-tertiary);
}
.muso-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--muso-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muso-fg);
  text-decoration: none;
  transition: background 0.15s ease;
}
.muso-link:hover { background: #111; }
.muso-logo { height: 18px; width: auto; flex-shrink: 0; }
.muso-link-text {
  font-size: 14px;
  font-weight: 600;
}
.muso-link-arrow { color: var(--muso-primary); transition: transform 0.15s ease; }
.muso-link:hover .muso-link-arrow { transform: translateX(3px); }

@media (min-width: 720px) {
  .muso-card-main {
    flex-direction: row;
    text-align: left;
    padding: 28px 32px;
  }
  .muso-avatar { width: 112px; height: 112px; }
  .muso-body { align-items: flex-start; flex: 1; min-width: 0; }
  .muso-claimed, .muso-meta, .muso-location { justify-content: flex-start; }
  .muso-credits { flex-direction: column; align-items: center; gap: 2px; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ---------- scheda tecnica: horizontal ledger rows, same DNA as servizi ---------- */
.spec-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 auto clamp(48px, 7vw, 88px);
}
.spec-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #141010;
}
.spec-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* info hotspots on the regia photo — white dot with "i", tooltip on hover/tap, à la Cashmere Studio */
.spec-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(240, 238, 232, 0.92);
  border: 2px solid rgba(10, 10, 10, 0.75);
  color: var(--black);
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.spec-hotspot-dot {
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  pointer-events: none;
}
.spec-hotspot:hover,
.spec-hotspot:focus-visible,
.spec-hotspot.is-open {
  background: var(--red-bright);
  color: var(--paper);
  transform: translate(-50%, -50%) scale(1.15);
}
.spec-hotspot-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10, 10, 10, 0.94);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(240, 238, 232, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.spec-hotspot:hover .spec-hotspot-tip,
.spec-hotspot:focus-visible .spec-hotspot-tip,
.spec-hotspot.is-open .spec-hotspot-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.spec-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #141010, #141010 12px, #181212 12px, #181212 24px);
  border: 1px dashed rgba(240, 238, 232, 0.28);
}
.spec-photo-note {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}
.spec-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid rgba(240, 238, 232, 0.28);
}
.spec-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid rgba(240, 238, 232, 0.28);
  text-align: left;
  transition: border-color 0.4s ease;
}
.spec-row:hover { border-bottom-color: rgba(240, 238, 232, 0.75); }
.spec-category {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  margin-bottom: 0;
}
.spec-category--red { color: var(--red-bright); }
.spec-category--white { color: var(--paper); }
.spec-items-inline {
  font-size: 17px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: var(--text-tracking);
  line-height: var(--text-leading);
  color: var(--paper-dim);
  text-align: left;
}
@media (max-width: 700px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- servizi: fixed video left, accordion right ---------- */
.svc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0 clamp(56px, 7vw, 96px);
  align-items: start;
}
.svc-photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  background: #141010;
  --glow-r: clamp(120px, 16vw, 200px);
}
.svc-photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-glow-trail {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--glow-r);
  height: var(--glow-r);
  margin-left: calc(var(--glow-r) / -2);
  margin-top: calc(var(--glow-r) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-bright), transparent 70%);
  mix-blend-mode: color;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.svc-glow-trail.is-fading { opacity: 0; transform: scale(1.5); }

.svc-side {
  --svc-pr: clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc-list { border-top: 1px solid rgba(240, 238, 232, 0.28); }
.svc-row { border-bottom: 1px solid rgba(240, 238, 232, 0.28); transition: border-color 0.4s ease; }
.svc-row:not(:last-child):hover { border-bottom-color: rgba(240, 238, 232, 0.75); }
.svc-h { font-size: inherit; letter-spacing: 0; line-height: 1; text-transform: none; }
.svc-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  background: none;
  border: 0;
  cursor: pointer;
  padding: clamp(24px, 2.8vw, 32px) var(--svc-pr);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  text-align: left;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.svc-btn:hover { opacity: 0.85; }
.svc-btn[aria-expanded="true"] { opacity: 1; }

.svc-panel { padding: 0 var(--svc-pr) clamp(22px, 2.4vw, 32px); }
.svc-panel p {
  max-width: 46ch;
  font-size: var(--fs-body);
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
  color: var(--paper-dim);
}
.svc-pdf-link {
  margin-top: clamp(32px, 5vw, 48px);
  text-align: left;
}
.svc-pdf-link a {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.svc-pdf-link a:hover { color: var(--red-text); }
@media (max-width: 800px) {
  .svc-split { grid-template-columns: 1fr; gap: clamp(32px, 8vw, 48px); }
  .svc-photo { aspect-ratio: 4 / 3; }
}

/* ---------- footer: legal info, reads as the tail of Contatti ---------- */
.site-footer {
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  text-align: center;
}
.site-footer p {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  letter-spacing: var(--text-tracking);
}

/* ---------- portale ---------- */
.portal {
  padding: 0;
  max-width: none;
}
.portal-inner {
  background: linear-gradient(155deg, var(--red) 0%, #5c1010 60%, var(--black) 100%);
  padding: clamp(88px, 12vw, 168px) var(--gutter);
}
.portal-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.portal .section-head { max-width: var(--container); margin-left: auto; margin-right: auto; }

.portal-headline {
  font-size: var(--fs-heading);
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.portal-desc {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
  text-transform: none;
  color: rgba(240, 238, 232, 0.85);
  max-width: 48ch;
  margin: 0 auto;
}

.portal-status {
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 22px;
  font-size: 18px;
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
}
.portal-notify {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  font-weight: 400;
  color: rgba(240, 238, 232, 0.85);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.portal-notify:hover { color: var(--paper); }

.portal-preview {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 5 / 4;
  margin: clamp(24px, 4vw, 48px) auto 0;
}
.portal-preview::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 70, 70, 0.28), transparent 65%);
  pointer-events: none;
}
.portal-preview img,
.portal-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portal-preview img { object-fit: contain; transition: opacity 0.7s ease; }
.portal-preview canvas { opacity: 0; pointer-events: none; transition: opacity 0.7s ease; }
.portal-preview.is-3d img { opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.portal-preview.is-3d canvas { opacity: 1; }

@media (max-width: 700px) {
  .studio-photo { flex-basis: 84vw; }
  .gallery-arrow { display: none; }
  .lightbox-arrow { display: none; }
  .lightbox-figure { max-width: calc(100vw - 32px); }
  .lightbox-img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .portal-preview { aspect-ratio: 4 / 5; }
}

/* ---------- contatti ---------- */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(40px, 5vw, 56px) clamp(32px, 6vw, 72px);
  border-radius: 28px;
}
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  color: var(--red-text);
  margin-bottom: 4px;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-label {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}
.contact-value {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  line-height: var(--text-leading);
  letter-spacing: var(--text-tracking);
}
.contact-value a:hover { color: var(--red-text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 66px 0 0 0;
    justify-self: stretch;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 24px var(--gutter);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .main-nav a {
    width: 100%;
    padding: 16px 14px;
    font-size: 20px;
  }
  .nav-toggle { display: flex; }

  .contact-bar { gap: 40px; }
}

@media (max-width: 700px) {

  .maclam-pin { padding-top: 84px; padding-bottom: 24px; }
  .maclam-name { margin-bottom: 18px; }
  .maclam-photo { aspect-ratio: auto; height: clamp(140px, 30svh, 230px); margin-bottom: 20px; }
  .maclam-desc { margin-bottom: 22px; }

  .contact-value a { display: inline-block; padding: 12px 0; }
}

/* phones too short to hold the pinned Chi sono sequence: show it plainly, no pin */
@media (max-width: 700px) and (max-height: 600px) {
  .maclam-wrap { height: auto; }
  .maclam-pin { position: static; height: auto; padding: 0 0 8px; }
  .maclam-role, .maclam-name, .maclam-photo, .maclam-desc, .muso-card, #maclam-cta { opacity: 1 !important; transform: none !important; }
  .maclam-desc .word { opacity: 1 !important; text-shadow: none !important; }
}

@media (max-width: 520px) {
  .contact-bar { flex-direction: column; align-items: center; gap: 28px; }
  .notify-row { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
  .notify-dialog[open] { animation: none; }
  .studio-photo img, .photo-expand { transition: none; }
  .spec-hotspot, .spec-hotspot-tip { transition: none; }
  html { scroll-behavior: auto; }
  .studio-lead-wrap { height: auto; }
  .studio-lead-pin { position: static; height: auto; padding: 0; }
  .studio-lead .word { opacity: 1; }

  .maclam-wrap { height: auto; }
  .maclam-pin { position: static; height: auto; padding: 0; }
  .maclam-role, .maclam-name, .maclam-photo, .maclam-desc, .muso-card, #maclam-cta { opacity: 1; }
  .maclam-desc .word { opacity: 1; }

  .svc-btn, .svc-row { transition: none; }
}
