/* ==========================================================================
   Maglificio Beby — design tokens
   Palette: Casheart brand — logo grey #797979 + taupe #BCB2AA,
            Instagram mood: cream, sand, mocha, espresso
   Type: Frank Ruhl Libre (Casheart serif) + Montserrat
   ========================================================================== */
:root {
  color-scheme: light;

  --bg: #f6f3ef;            /* cream */
  --bg-alt: #ebe4dc;        /* sand */
  --surface: #fbf9f6;
  --ink: #2b2826;
  --ink-2: #4a4542;
  --muted: #5f5f5f;         /* Casheart grey, darkened: 5.9:1 on --bg, 5.1:1 on --bg-alt */
  --line-strong: #8a8178;   /* control borders, 3.5:1 on --bg (WCAG 1.4.11) */
  --error: #9b2c1f;         /* 6.8:1 on --bg */
  --line: #dcd4cb;
  --taupe: #bcb2aa;         /* Casheart logo rings — decorative / on dark only */
  --accent: #7a6250;        /* mocha, 5.1:1 on --bg */
  --dark: #2f2723;          /* espresso */
  --on-dark: #f6f3ef;
  --on-dark-muted: #bcb2aa; /* 7.2:1 on --dark */
  --line-dark: rgba(246, 243, 239, .16);

  --font-display: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(96px, 14vw, 200px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* expo-out: soft landing */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 200ms;
  --dur: 450ms;
  --dur-slow: 1100ms;

  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: var(--bg);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.015em;
}
.display em { font-style: italic; font-weight: 300; }

.h1 { font-size: clamp(3.1rem, 8.4vw, 8rem); }
.h2 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); }
.h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 34em;
}
.body-text { color: var(--ink-2); max-width: 36em; }
.body-text + .body-text { margin-top: 1.2em; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(1); transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}
.btn--solid { color: var(--bg); }
.btn--solid:hover::before { transform: scaleY(0); transform-origin: top; }
.btn--solid:hover { color: var(--ink); }
.btn--ghost::before { transform: scaleY(0); transform-origin: top; }
.btn--ghost:hover::before { transform: scaleY(1); transform-origin: bottom; }
.btn--ghost:hover { color: var(--bg); }
.btn--light { border-color: var(--on-dark); }
.btn--light::before { background: var(--on-dark); }
.btn--light.btn--solid { color: var(--dark); }
.btn--light.btn--solid:hover { color: var(--on-dark); }
.btn--light.btn--ghost { color: var(--on-dark); }
.btn--light.btn--ghost:hover { color: var(--dark); }
.btn .arrow { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.link-line {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
  padding-bottom: 2px;
}
.link-line:hover, .link-line:focus-visible { background-size: 100% 1px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(246, 243, 239, .8);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 1px 0 rgba(43, 40, 38, .08);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 18px; min-height: 44px; }
.brand img { width: 168px; }
.brand .brand-sep { width: 1px; height: 34px; background: var(--line); }
.brand .brand-casheart { width: 92px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding-block: 12px;
}
.nav a[aria-current="true"] { background-size: 100% 1px; }

.header-tools { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 11.5px; letter-spacing: .14em; }
.lang-switch button {
  min-width: 36px; min-height: 44px; color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang-switch span { color: var(--line); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 700ms var(--ease-in-out), visibility 0s 700ms;
}
.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0); visibility: visible;
  transition: clip-path 700ms var(--ease-in-out), visibility 0s;
}
.mobile-menu ol { counter-reset: m; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1;
  transform: translateY(105%);
  transition: transform 700ms var(--ease-out);
}
.mobile-menu a::before {
  counter-increment: m; content: "0" counter(m);
  font-family: var(--font-body); font-size: 11px; letter-spacing: .2em; color: var(--accent);
}
.menu-open .mobile-menu a { transform: none; }
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: 220ms; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 270ms; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 320ms; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 370ms; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 420ms; }
.mobile-menu .mobile-meta {
  margin-top: 40px; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(64px, 8vw, 120px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-copy .eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-copy .lead { margin-top: clamp(24px, 3vw, 40px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 4vw, 52px); }

.hero-media {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter) var(--gutter) 0;
  background: var(--bg-alt);
}
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  will-change: transform;
}
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 var(--gutter) clamp(20px, 3vw, 36px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  pointer-events: none;
  width: 50%;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i {
  position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--ink); animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 100%; } }

/* Hero intro (only when motion is allowed) */
.motion .hero-title .line > span { transform: translateY(110%); }
.motion .hero-copy .eyebrow,
.motion .hero-copy .lead,
.motion .hero-actions,
.motion .hero-meta { opacity: 0; transform: translateY(16px); }
.motion .hero-media { clip-path: inset(100% 0 0 0); }
.motion .hero-media img { transform: scale(1.18); }

.is-loaded .hero-title .line > span { transform: none; transition: transform 1300ms var(--ease-out); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 110ms; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 220ms; }
.is-loaded .hero-copy .eyebrow,
.is-loaded .hero-copy .lead,
.is-loaded .hero-actions,
.is-loaded .hero-meta {
  opacity: 1; transform: none;
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}
.is-loaded .hero-copy .lead { transition-delay: 450ms; }
.is-loaded .hero-actions { transition-delay: 560ms; }
.is-loaded .hero-meta { transition-delay: 900ms; }
.is-loaded .hero-media { clip-path: inset(0 0 0 0); transition: clip-path 1500ms var(--ease-in-out) 100ms; }
.is-loaded .hero-media img { transform: scale(1); transition: transform 2200ms var(--ease-out) 100ms; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: clamp(18px, 2.4vw, 30px);
  user-select: none;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1.1; white-space: nowrap;
  padding-inline: clamp(18px, 2.6vw, 40px);
}
.marquee-group svg { width: 10px; height: 10px; color: var(--accent); flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--taupe); }
.section--dark .h2 em, .section--dark .h1 em { color: var(--taupe); }
.section--dark .lead, .section--dark .body-text { color: var(--on-dark-muted); }

.section-head { display: grid; gap: clamp(20px, 2.6vw, 32px); max-width: 860px; }
.section-head .h2 { margin-top: 28px; }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end; gap: clamp(28px, 6vw, 120px);
}

/* Statement */
.statement {
  padding-block: clamp(110px, 16vw, 230px);
}
.statement p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 4.1rem); line-height: 1.12; letter-spacing: -.01em;
  max-width: 21em;
}
.statement .word { display: inline-block; }
.motion .statement .word { opacity: .14; }

/* Company */
.company-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 140px); align-items: start;
}
.company-grid .h2 { margin-top: 28px; }
.company-copy { padding-top: clamp(0px, 6vw, 96px); }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.fact { padding: clamp(28px, 3.4vw, 48px) clamp(0px, 2vw, 32px) 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: clamp(16px, 3vw, 48px); }
.fact-num {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.6rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.fact-num sup { font-size: .42em; vertical-align: .9em; margin-left: .06em; }
.fact-label {
  margin-top: 14px; font-size: 11.5px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

/* Production */
.production-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 120px);
}
.production-copy { align-self: start; position: sticky; top: calc(var(--header-h) + 48px); }
.production-copy .h2 { margin-top: 28px; margin-bottom: clamp(28px, 3vw, 40px); }
.spec-list { margin-top: 40px; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: .04em;
}
.spec-list li span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; }

.production-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.production-media figure:nth-child(1) { grid-column: 1 / -1; }
.production-media figure:nth-child(3) { margin-top: clamp(48px, 9vw, 140px); }

.frame { position: relative; overflow: hidden; background: var(--bg-alt); }
.frame img {
  width: 100%; height: 118%; object-fit: cover;
  position: absolute; inset: -9% 0 auto 0;
  will-change: transform;
}
.frame--wide { aspect-ratio: 5 / 4; }
.frame--tall { aspect-ratio: 2 / 3; }
.frame--land { aspect-ratio: 1800 / 1415; }
figcaption {
  margin-top: 14px; display: flex; gap: 12px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
figcaption b { font-weight: 500; color: var(--accent); }

/* Casheart */
.casheart-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 140px); align-items: center;
}
.casheart-logo-wrap {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.casheart-logo-wrap::before {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(closest-side, rgba(188, 178, 170, .22), transparent 70%);
  animation: glow 9s var(--ease-in-out) infinite alternate;
}
@keyframes glow { from { transform: translate(-8%, -6%); } to { transform: translate(8%, 6%); } }
.casheart-logo-wrap img { width: 46%; max-width: 340px; position: relative; }
.casheart-copy .h2 { margin: 28px 0 clamp(24px, 3vw, 36px); }
.casheart-copy .btn { margin-top: clamp(32px, 4vw, 48px); }

/* Expertise */
.expertise-list { margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.expertise-item {
  position: relative;
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px; align-items: baseline;
  padding: clamp(28px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}
.expertise-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
.expertise-item:hover::after { transform: scaleX(1); }
.expertise-item .num { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.expertise-item h3 { transition: transform var(--dur) var(--ease-out); }
.expertise-item:hover h3 { transform: translateX(12px); }
.expertise-item p { color: var(--ink-2); max-width: 30em; }

/* Collections */
.season { margin-top: clamp(72px, 9vw, 130px); }
.season-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 3vw, 44px);
}
.season-head .h3 { margin-top: 18px; }
.season-head p { margin-top: 14px; color: var(--ink-2); max-width: 36em; }
.season-controls { display: flex; align-items: center; gap: 10px; }
.season-counter {
  font-size: 12px; letter-spacing: .14em; color: var(--muted); min-width: 64px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.icon-btn {
  width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

.rail {
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .look { pointer-events: none; }
.rail > li {
  flex: 0 0 clamp(240px, 27vw, 420px);
  scroll-snap-align: start;
}
.look {
  display: block; width: 100%;
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 3; background: var(--bg-alt);
}
.look img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease-out);
  -webkit-user-drag: none; user-select: none;
}
.look:hover img { transform: scale(1.045); }
.look .look-zoom {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246, 243, 239, .88);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.look .look-zoom svg { width: 18px; height: 18px; }
.look:hover .look-zoom, .look:focus-visible .look-zoom { opacity: 1; transform: none; }
.look:focus-visible { outline-offset: -4px; }
.rail-progress {
  margin-top: 28px; height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.rail-progress i {
  position: absolute; inset: 0; background: var(--ink);
  transform-origin: left; transform: scaleX(0);
}

/* Museum */
.museum-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px); align-items: start;
}
.museum-head { margin-bottom: clamp(48px, 6vw, 88px); }
.museum-head .h2 { margin-top: 28px; }
.museum-side { display: grid; gap: clamp(36px, 5vw, 64px); }
.museum-note {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.3;
  padding-left: 24px; border-left: 1px solid var(--accent);
}
.museum-opening { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.museum-opening .frame { aspect-ratio: 9 / 16; }
.museum-opening p { color: var(--ink-2); font-size: 14.5px; }
.museum-opening .eyebrow { margin-bottom: 14px; }

/* Private label */
.pl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 140px);
}
.pl-copy .h2 { margin: 28px 0 clamp(24px, 3vw, 36px); }
.pl-copy .btn { margin-top: clamp(32px, 4vw, 48px); }
.process { position: relative; padding-left: 40px; }
.process::before, .process::after {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px;
}
.process::before { background: var(--line-dark); }
.process::after { background: var(--taupe); transform-origin: top; transform: scaleY(var(--p, 1)); }
.motion .process { --p: 0; }
.reveal-all .process { --p: 1 !important; }
.process li {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--line-dark);
}
.process li::before {
  content: ""; position: absolute; left: -38px; top: 50%; width: 9px; height: 9px;
  margin-top: -4.5px; border-radius: 50%;
  background: var(--dark); border: 1px solid var(--taupe);
}
.process .num { font-size: 12px; letter-spacing: .2em; color: var(--taupe); }
.process .step {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15;
}

/* Contacts */
.contact-cta { text-align: left; }
.contact-cta .h1 { margin-top: 28px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: clamp(36px, 5vw, 64px);
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.1;
  min-height: 44px;
}
.contact-mail svg { width: .6em; height: .6em; transition: transform var(--dur) var(--ease-out); }
.contact-mail:hover svg { transform: translate(6px, -6px); }
.locations {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line);
}
.location { padding: clamp(28px, 3vw, 40px) clamp(0px, 2vw, 32px) 0 0; }
.location + .location { border-left: 1px solid var(--line); padding-left: clamp(16px, 3vw, 40px); }
.location h3 {
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.location address { font-style: normal; color: var(--ink-2); line-height: 1.8; }
.location a { display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: .06em; padding-block: 8px; }

/* Footer */
.site-footer {
  background: var(--dark); color: var(--on-dark-muted);
  padding: clamp(64px, 8vw, 110px) 0 32px;
  font-size: 13px;
}
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px; padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-logo { width: 190px; filter: invert(1) brightness(.96); }
.footer-claim {
  margin-top: 24px; max-width: 26em;
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--on-dark);
}
.footer-col h3 {
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark); margin-bottom: 18px;
}
.footer-col li a { display: inline-block; padding-block: 7px; transition: color var(--dur-fast); }
.footer-col li a:hover { color: var(--on-dark); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 28px; font-size: 12px; line-height: 1.7;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(47, 39, 35, .97); color: var(--on-dark);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: opacity 300ms var(--ease-out), transform 600ms var(--ease-out);
}
.lightbox-stage img.is-swapping { opacity: 0; transform: scale(.985); }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.lightbox .icon-btn { border-color: var(--line-dark); color: var(--on-dark); }
.lightbox .icon-btn:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

/* ==========================================================================
   Scroll reveals
   ========================================================================== */
.motion [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-delay="1"] { --d: 120ms; }
[data-delay="2"] { --d: 240ms; }
/* Clip reveals: the clip goes on the children, so the observed element itself
   stays unclipped (Chrome treats a fully clipped target as not intersecting). */
.motion [data-reveal="clip"] { opacity: 1; transform: none; }
.motion [data-reveal="clip"] > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1400ms var(--ease-in-out);
  transition-delay: var(--d, 0ms);
}
.motion [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-all [data-reveal], .reveal-all [data-reveal] > *,
.reveal-all .hero-title .line > span,
.reveal-all .hero-copy .eyebrow, .reveal-all .hero-copy .lead,
.reveal-all .hero-actions, .reveal-all .hero-meta, .reveal-all .hero-media, .reveal-all .hero-media img,
.reveal-all .statement .word {
  opacity: 1 !important; transform: none !important; clip-path: none !important;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 var(--section); }
.legal .h2 { margin: 24px 0 16px; }
.legal-updated { font-size: 13px; color: var(--muted); }
.legal-body { max-width: 760px; margin-top: clamp(40px, 6vw, 72px); color: var(--ink-2); }
.legal-body h2 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2;
  margin: 2.4em 0 .7em;
}
.legal-body p, .legal-body ul { margin-bottom: 1em; }
.legal-body ul { padding-left: 1.2em; list-style: disc; }
.legal-body li { margin-bottom: .4em; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1em 0 1.6em; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.legal-body .table-wrap { overflow-x: auto; }
html[lang="it"] [data-lang-block="en"], html[lang="en"] [data-lang-block="it"] { display: none; }
.legal-back { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-block: 12px; }
@media (max-width: 560px) { .legal-back { display: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { width: 142px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { order: -1; margin: 0; height: 68svh; min-height: 420px; }
  .hero-copy { padding-top: 40px; padding-bottom: 72px; }
  .hero-meta { display: none; }

  .section-head--split, .company-grid, .production-grid, .casheart-grid,
  .museum-grid, .pl-grid { grid-template-columns: 1fr; }
  .company-copy { padding-top: 0; }
  .production-copy { position: static; }
  .casheart-logo-wrap { aspect-ratio: 16 / 9; }
  .casheart-logo-wrap img { width: 52%; max-width: 260px; }
  .expertise-item { grid-template-columns: 56px 1fr; }
  .expertise-item p { grid-column: 2; }
  .season-head { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand img { width: 112px; }
  .brand .brand-casheart { width: 64px; }
  .brand .brand-sep { height: 22px; }
}

@media (max-width: 640px) {
  .facts, .locations { grid-template-columns: 1fr; }
  .fact + .fact, .location + .location { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .fact { padding-right: 0; }
  .production-media { grid-template-columns: 1fr; }
  .production-media figure:nth-child(3) { margin-top: 0; }
  .museum-opening { grid-template-columns: 1fr 1fr; }
  .rail > li { flex-basis: 76vw; }
  .look .look-zoom { opacity: 1; transform: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Accessibility additions
   ========================================================================== */
.section--dark :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--taupe); }
.site-header:focus-within { transform: none; }
[data-ext]::after { content: " \2197"; content: " \2197" / ""; }
.contact-form-link { margin-top: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-wrap { max-width: 860px; margin-top: clamp(40px, 6vw, 72px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(122, 98, 80, .22); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .help { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; font-weight: 500; color: var(--error); }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check label { font-weight: 400; color: var(--ink-2); }
.check label a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 22px; }
.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.form-msg { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink); }
.form-msg[data-type="error"] { border-left-color: var(--error); }
.form-msg:empty { display: none; }
.form-msg ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.form-msg a { color: var(--error); text-decoration: underline; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
/* consistency with the home + touch feedback (ui-ux-pro-max audit) */
a, button, input, select, textarea, label { touch-action: manipulation; }
.btn:active, .icon-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn:active, .icon-btn:active { transform: none; } }
/* Frontend-design pass: sentence-case labels, consistent with the home */
.display { font-weight: 300; letter-spacing: -.02em; }
.eyebrow, .btn, .nav a, .lang-switch, .legal-back, .location h3, .footer-col h3, figcaption,
.fact-label, .spec-list li span:first-child, .legal-body th, .season-counter, .mobile-menu a::before {
  text-transform: none; letter-spacing: .01em;
}
.btn, .legal-back { font-size: 15px; }
.eyebrow::before { display: none; }
.footer-legal a + a { margin-left: 18px; }
.legal .h2 { margin-top: 0; }.display, .contact-mail, .footer-claim, .museum-note, .marquee-group span, .legal-body h2 { font-style: normal; font-synthesis: none; }