/* ============================================================
   ROTOLO — Fine Homes & Estates
   Palette: Notte (warm near-black) · Avorio (ivory stone) ·
            Ottone (muted brass) · Pietra (stone) · Fumo (smoke)
   Type:    Italiana (display) · Cormorant Garamond (italic accent)
            Hanken Grotesk (body & utility)
   ============================================================ */

:root {
  --notte:   #131110;
  --carbone: #1b1815;
  --avorio:  #eae6de;
  --ottone:  #b29a63;
  --pietra:  #b3aa99;
  --fumo:    #6f675a;
  --linea-dark:  rgba(234, 230, 222, 0.14);
  --linea-light: rgba(19, 17, 16, 0.16);

  --font-display: 'Italiana', 'Didot', serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;
  --font-body:    'Hanken Grotesk', 'Helvetica Neue', sans-serif;

  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.77, 0, 0.18, 1);

  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--notte);
  color: var(--avorio);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection { background: var(--ottone); color: var(--notte); }

:focus-visible {
  outline: 1px solid var(--ottone);
  outline-offset: 4px;
}

section[id] { scroll-margin-top: 4.5rem; }

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--pad-x);
  z-index: 300;
  padding: 0.6rem 1.2rem;
  background: var(--ottone);
  color: var(--notte);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Shared type roles ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pietra);
  margin-bottom: 2rem;
}
.eyebrow--brass { color: var(--ottone); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}
.section-title em,
.statement em,
.hero-title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Reveal choreography ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 1s var(--ease-lux), transform 1.1s var(--ease-lux);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PRELOADER
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--notte);
  transition: transform 1s var(--ease-curtain);
}
.loader.is-done { transform: translateY(-100%); }
.loader.is-gone { display: none; }

.loader-mark {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  animation: loader-in 1.2s var(--ease-lux) both;
}
.loader-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* optically recenter tracked caps */
}
.loader-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-right: -0.42em;
}
@keyframes loader-in {
  from { opacity: 0; transform: translateY(1.4rem); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--pad-x);
  transition: transform 0.55s var(--ease-lux), background 0.55s, padding 0.55s, border-color 0.55s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 0.85rem;
  background: color-mix(in srgb, var(--notte) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--linea-dark);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav-brand { display: grid; line-height: 1.25; }
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.34em;
}
.nav-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pietra);
}

.nav-links {
  display: flex;
  gap: 2.6rem;
}
.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avorio);
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ottone);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-lux);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--avorio);
  border: 1px solid var(--linea-dark);
  padding: 0.75rem 1.5rem;
  transition: background 0.45s var(--ease-lux), color 0.45s, border-color 0.45s;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--avorio);
  border-color: var(--avorio);
  color: var(--notte);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.lang-btn {
  font-weight: 600;
  color: var(--pietra);
  padding: 0.4rem 0.2rem;
  transition: color 0.3s;
}
.lang-btn:hover { color: var(--ottone); }
.lang-btn.is-on { color: var(--avorio); }
.lang-sep { color: color-mix(in srgb, var(--pietra) 50%, transparent); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--avorio);
  transition: transform 0.45s var(--ease-lux), opacity 0.3s;
}
.nav-burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Full-screen overlay menu */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4rem;
  padding: var(--pad-x);
  background: var(--notte);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-lux), visibility 0.6s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.overlay-links { display: grid; gap: 0.6rem; }
.overlay-links a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1.15;
  transform: translateY(1.5rem);
  opacity: 0;
  transition: opacity 0.7s var(--ease-lux), transform 0.7s var(--ease-lux), color 0.3s;
}
.overlay.is-open .overlay-links a { opacity: 1; transform: none; }
.overlay.is-open .overlay-links a:nth-child(2) { transition-delay: 0.07s; }
.overlay.is-open .overlay-links a:nth-child(3) { transition-delay: 0.14s; }
.overlay.is-open .overlay-links a:nth-child(4) { transition-delay: 0.21s; }
.overlay-links a:hover { color: var(--ottone); }

.overlay-foot {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pietra);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-slide.is-active img {
  animation: kenburns 9s linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19,17,16,0.60) 0%, rgba(19,17,16,0.14) 26%, rgba(19,17,16,0.40) 58%, rgba(19,17,16,0.92) 100%),
    linear-gradient(90deg, rgba(19,17,16,0.55) 0%, rgba(19,17,16,0.12) 42%, rgba(19,17,16,0) 68%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(7rem, 16vh, 10rem);
  max-width: 1200px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--avorio);
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 18px rgba(19, 17, 16, 0.55);
}
.hero-eyebrow b { color: var(--ottone); font-weight: inherit; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.3vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 34px rgba(19, 17, 16, 0.5);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .line > span { display: inline-block; }

.hero-sub {
  max-width: 34rem;
  margin-top: 2rem;
  color: color-mix(in srgb, var(--avorio) 95%, transparent);
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  text-shadow: 0 1px 24px rgba(19, 17, 16, 0.55);
}

.hero-cta, .btn-line {
  display: inline-block;
  margin-top: 2.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--avorio);
}
.cta-line {
  display: block;
  height: 1px;
  margin-top: 0.7rem;
  background: var(--ottone);
  transform-origin: left;
  transition: transform 0.6s var(--ease-lux);
}
.hero-cta:hover .cta-line, .hero-cta:focus-visible .cta-line,
.btn-line:hover .cta-line, .btn-line:focus-visible .cta-line {
  transform: scaleX(0.55);
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  bottom: clamp(7rem, 16vh, 10rem);
  text-align: right;
  max-width: 21rem;
}
.hero-caption-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-bottom: 0.7rem;
  transition: opacity 0.5s ease;
}
.hero-caption-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  display: grid;
  gap: 0.1rem;
  transition: opacity 0.5s ease;
}
.hero-caption-price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--avorio);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 18px rgba(19, 17, 16, 0.55);
}
.hero-caption.is-switching .hero-caption-eyebrow,
.hero-caption.is-switching .hero-caption-name { opacity: 0; }

.hero-progress {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  bottom: clamp(4rem, 9vh, 5.6rem);
  display: flex;
  gap: 0.6rem;
}
.hero-progress .bar {
  position: relative;
  width: 3.4rem;
  height: 18px;
  padding: 0;
}
.hero-progress .bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(234, 230, 222, 0.3);
}
.hero-progress .bar i {
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 1px;
  background: var(--avorio);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-progress .bar.is-active i {
  animation: fill var(--slide-ms, 6500ms) linear forwards;
}
@keyframes fill { to { transform: scaleX(1); } }

.hero-scrollcue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: clamp(3.4rem, 8vh, 5rem);
  background: rgba(234, 230, 222, 0.18);
  overflow: hidden;
}
.hero-scrollcue i {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--ottone);
  animation: cue 2.4s var(--ease-lux) infinite;
}
@keyframes cue {
  from { transform: translateY(-110%); }
  to   { transform: translateY(280%); }
}

/* Hero intro choreography (after preloader) */
.js .hero [data-intro] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 1.1s var(--ease-lux), transform 1.2s var(--ease-lux);
}
.js .hero-title [data-intro] { transform: translateY(105%); }
.js body.is-ready .hero [data-intro] {
  opacity: 1;
  transform: none;
}
.js body.is-ready .hero .hero-eyebrow  { transition-delay: 0.15s; }
.js body.is-ready .hero-title .line:nth-child(1) > span { transition-delay: 0.3s; }
.js body.is-ready .hero-title .line:nth-child(2) > span { transition-delay: 0.42s; }
.js body.is-ready .hero .hero-sub      { transition-delay: 0.62s; }
.js body.is-ready .hero .hero-cta      { transition-delay: 0.74s; }
.js body.is-ready .hero .hero-caption  { transition-delay: 0.9s; }
.js body.is-ready .hero .hero-progress { transition-delay: 1.0s; }
.js body.is-ready .hero .hero-scrollcue{ transition-delay: 1.15s; }

/* ============================================================
   MANIFESTO (light)
   ============================================================ */

.manifesto {
  background: var(--avorio);
  color: var(--notte);
  padding: clamp(6rem, 12vw, 10rem) var(--pad-x) clamp(4rem, 8vw, 7rem);
}
.manifesto .eyebrow { color: color-mix(in srgb, var(--notte) 64%, var(--avorio)); }

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  max-width: 1500px;
  margin-inline: auto;
}

.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.1;
}

.manifesto-body {
  max-width: 36rem;
  margin-top: 2.4rem;
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--notte) 90%, var(--avorio));
}

.manifesto-figure {
  margin-top: clamp(0rem, 4vw, 4rem);
}
.manifesto-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.manifesto-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--notte) 62%, var(--avorio));
}

.manifesto-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1500px;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--linea-light);
}
.manifesto-notes dt {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
}
.manifesto-notes dd {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--notte) 68%, var(--avorio));
}

/* ============================================================
   COLLECTION (dark) — signature index
   ============================================================ */

.collection {
  position: relative;
  background: var(--notte);
  padding: clamp(6rem, 12vw, 10rem) var(--pad-x);
}

.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.collection-note {
  margin-top: 1.4rem;
  color: var(--pietra);
  font-size: 0.95rem;
}

.collection-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pietra);
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.filter:hover { color: var(--avorio); }
.filter.is-on {
  color: var(--avorio);
  border-color: var(--linea-dark);
}

.index {
  max-width: 1500px;
  margin-inline: auto;
  border-top: 1px solid var(--linea-dark);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.9rem 0.2rem;
  border-bottom: 1px solid var(--linea-dark);
  transition: opacity 0.45s ease, padding-left 0.5s var(--ease-lux);
}
.row.is-hidden { display: none; }

.row-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  transition: color 0.3s;
}
.row-locale, .row-meta {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--pietra);
}
.row-price {
  text-align: right;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--avorio);
}
.row-media { display: none; }

/* hover: focused row advances, siblings recede */
@media (hover: hover) and (pointer: fine) {
  .index:hover .row { opacity: 0.3; }
  .index .row:hover {
    opacity: 1;
    padding-left: 1.4rem;
  }
  .index .row:hover .row-name { color: var(--ottone); }
}

/* floating cursor-tracked preview (transform is driven by JS) */
.collection-preview {
  position: fixed;
  z-index: 90;
  top: 0; left: 0;
  width: min(24vw, 350px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-lux);
}
.collection-preview.is-on { opacity: 1; }
.collection-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 0.7s var(--ease-lux);
}
.collection-preview.is-on img { transform: scale(1); }

/* ============================================================
   ESTATE OF THE SEASON — parallax showcase
   ============================================================ */

.season {
  position: relative;
  display: grid;
  justify-items: end;
  align-items: end;
  min-height: clamp(38rem, 105vh, 64rem);
  background: var(--carbone);
  overflow: hidden;
}
.season-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.season-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.season-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(19, 17, 16, 0.22) 0%,
    rgba(19, 17, 16, 0) 32%,
    rgba(19, 17, 16, 0.42) 100%);
}

.season-panel {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: clamp(6rem, 14vh, 9rem) var(--pad-x) clamp(3rem, 9vh, 5.5rem);
  padding: clamp(2.4rem, 4vw, 3.6rem);
  background: color-mix(in srgb, var(--notte) 75%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(234, 230, 222, 0.16);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .season-panel { background: var(--notte); }
}

.season-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.05;
}
.season-locale {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pietra);
}
.season-body {
  margin-top: 1.6rem;
  color: color-mix(in srgb, var(--avorio) 92%, transparent);
}
.season-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea-dark);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--pietra);
  font-variant-numeric: tabular-nums;
}
.season-panel .btn-line { margin-top: 2.2rem; }

/* ============================================================
   SERVICES (light)
   ============================================================ */

.services {
  background: var(--avorio);
  color: var(--notte);
  padding: clamp(6rem, 12vw, 10rem) var(--pad-x);
}
.services .eyebrow {
  color: color-mix(in srgb, var(--notte) 64%, var(--avorio));
  max-width: 1200px;
  margin-inline: auto;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem 4rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--linea-light);
}
.service:last-of-type { border-bottom: none; padding-bottom: 0; }
.service:nth-of-type(1) { border-top: 1px solid var(--linea-light); }

.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}
.service p {
  max-width: 34rem;
  color: color-mix(in srgb, var(--notte) 88%, var(--avorio));
  align-self: center;
}

/* ============================================================
   FOUNDER'S LETTER (light continues)
   ============================================================ */

.letter {
  background: var(--avorio);
  color: var(--notte);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: 0 max(var(--pad-x), calc((100% - 1200px) / 2)) clamp(6rem, 12vw, 10rem);
}
.letter .eyebrow { color: color-mix(in srgb, var(--notte) 64%, var(--avorio)); }

.letter-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.letter-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--notte) 62%, var(--avorio));
}

.letter-body {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.6;
  color: var(--notte);
  max-width: 36rem;
}
.letter-body + .letter-body { margin-top: 1.2rem; }

.letter-sign {
  margin-top: 2.6rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
}
.letter-role {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--notte) 62%, var(--avorio));
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  background: var(--notte);
  border-block: 1px solid var(--linea-dark);
  padding: 1.6rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--avorio) 62%, transparent);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT (dark)
   ============================================================ */

.contact {
  background: var(--notte);
  padding: clamp(6rem, 12vw, 10rem) var(--pad-x);
}
.contact-intro {
  max-width: 1200px;
  margin-inline: auto;
}
.contact-note {
  margin-top: 1.6rem;
  max-width: 30rem;
  color: var(--pietra);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1200px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.contact-form { display: grid; gap: 2rem; align-content: start; }

.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pietra);
}
.field .optional { color: var(--pietra); font-weight: 400; letter-spacing: 0.1em; text-transform: none; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--avorio);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--linea-dark);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.4s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23a59c8c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  cursor: pointer;
}
.field select option { background: var(--notte); color: var(--avorio); }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ottone);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.btn-solid {
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--notte);
  background: var(--avorio);
  padding: 1.05rem 2.4rem;
  transition: background 0.4s var(--ease-lux), color 0.4s;
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: var(--ottone);
  color: var(--notte);
}

.form-error {
  font-size: 0.85rem;
  color: #c98f7a;
}

.form-success {
  border: 1px solid var(--linea-dark);
  padding: 2.6rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}
.form-success p { color: var(--pietra); }

.contact-aside {
  display: grid;
  gap: 2.2rem;
  align-content: start;
  padding-top: 0.4rem;
}
.office h3 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-bottom: 0.6rem;
}
.office p { color: color-mix(in srgb, var(--avorio) 92%, transparent); }
.office a:hover { color: var(--ottone); }
.office-note {
  padding-top: 1.8rem;
  border-top: 1px solid var(--linea-dark);
  font-size: 0.9rem;
  color: var(--pietra);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--notte);
  border-top: 1px solid var(--linea-dark);
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x) 2.4rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.95;
  letter-spacing: 0.14em;
  text-align: center;
  color: color-mix(in srgb, var(--avorio) 22%, transparent);
  user-select: none;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin-inline: auto;
  padding-bottom: 3.4rem;
}
.footer-col { display: grid; gap: 0.5rem; align-content: start; justify-items: start; }
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-bottom: 0.7rem;
}
.footer-col a, .footer-col p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--avorio) 88%, transparent);
}
.footer-col a:hover { color: var(--avorio); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linea-dark);
  font-size: 0.82rem;
  color: var(--pietra);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 900px) {
  .hero-caption { display: none; }
  .hero-progress { right: auto; left: var(--pad-x); }

  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-figure { max-width: 26rem; }
  .manifesto-notes { grid-template-columns: 1fr; gap: 1.6rem; }

  /* index rows become cards */
  .index { border-top: none; }
  .row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0.4rem 1rem;
    padding: 0 0 3.2rem;
    border-bottom: none;
  }
  .row-media {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    overflow: hidden;
  }
  .row-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .row-name { grid-column: 1 / -1; }
  .row-price { text-align: left; grid-column: 1 / -1; margin-top: 0.3rem; }
  .collection-preview { display: none; }

  .season {
    display: block;
    min-height: 0;
    padding-bottom: clamp(4rem, 10vw, 6rem);
  }
  .season-media {
    position: relative;
    inset: auto;
    height: min(62vh, 30rem);
  }
  .season-panel {
    margin: -3.5rem var(--pad-x) 0;
    max-width: none;
    background: var(--notte);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--linea-dark);
  }

  .service { grid-template-columns: 1fr; gap: 0.8rem; padding: 2rem 0; }

  .letter { grid-template-columns: 1fr; }
  .letter-figure { max-width: 26rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal],
  .js .hero [data-intro] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; }
  .hero-progress .bar.is-active i { animation: none; transform: scaleX(1); }
  .hero-scrollcue i { animation: none; }
  .marquee-track { animation: none; }
  .loader { transition: none; }
  .loader-mark { animation: none; }
  .season-media img { transform: none !important; height: 100%; }
  .collection-preview { display: none; }
}
