:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --card: #151515;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .32);
  --text: #f2eee8;
  --muted: #8f8b85;
  --accent: #ff5b22;
  --accent-soft: rgba(255, 91, 34, .16);
  --paper: #ece9e3;
  --gutter: max(clamp(16px, 3vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* no double-tap zoom on controls (that also took the tap delay away); pinch zoom stays */
a, button, [role="button"], [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* words for a mouse or for a finger ("Passa sopra" / "Tocca") */
.for-touch { display: none; }
@media (hover: none) { .for-mouse { display: none; } .for-touch { display: inline; } }
img { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #0a0a0a; }

.tag { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.fineprint { margin: 28px 0 0; font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* ---------- preloader, cursor, curtain ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; }
.preloader-inner { display: grid; justify-items: center; gap: 14px; }
.preloader-mark { font-size: 12px; font-weight: 500; letter-spacing: .4em; padding-left: .4em; }
.preloader-mark i { font-style: normal; color: var(--accent); margin: 0 .5em; }
.preloader-count { font-size: clamp(72px, 13vw, 200px); font-weight: 300; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.preloader-note { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.cursor { position: fixed; z-index: 90; top: 0; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); pointer-events: none; display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; }
.cursor span { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #0a0a0a; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255, 91, 34, .25); }
.cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.cursor.is-label span { opacity: 1; }
@media (pointer: coarse), (hover: none) { .cursor { display: none; } }

.curtain { position: fixed; inset: 0; z-index: 95; background: var(--bg); transform: translateY(101%); pointer-events: none; }

/* ---------- navigation ---------- */
.nav { position: fixed; z-index: 60; inset: calc(16px + var(--safe-top)) var(--gutter) auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; transition: transform .6s var(--ease); }
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-140%); }
.nav-logo { justify-self: start; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: -.02em; background: rgba(10, 10, 10, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-logo span { display: none; }
.nav-logo b { font-weight: 500; }
.nav-pills { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 14, 14, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-pills a { position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(242, 238, 232, .72); transition: color .3s; }
.nav-pills a.is-active { color: var(--text); }
.nav-pill-glow { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: var(--accent); opacity: 0; transition: left .5s var(--ease), width .5s var(--ease), opacity .3s; }
.nav-pills a.is-active { color: #0a0a0a; }
.nav-cta { justify-self: end; padding: 14px 22px; border-radius: 999px; background: var(--accent); color: #0a0a0a; font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.nav-burger { display: none; justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(10, 10, 10, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); place-content: center; gap: 6px; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: grid; align-content: safe center; padding: calc(90px + var(--safe-top)) var(--gutter) calc(40px + var(--safe-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(28px, min(9vw, 8.5svh), 80px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.menu a span { font-size: 12px; letter-spacing: .2em; color: var(--accent); width: 26px; }

/* ---------- 00 intro ---------- */
.intro { position: relative; }
.intro-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); --k: .17; }
.intro-frame { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; background: #1a1b2a; overflow: hidden; }
.intro-poster, .intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-poster { object-fit: cover; object-position: 47% 50%; }
.intro-poster--on { opacity: var(--lights, 0); }
.intro-poster--on:not([src]) { display: none; }
.has-webgl .intro-poster { visibility: hidden; }
.intro-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 8, 12, .62) 0, rgba(8, 8, 12, 0) 26%), linear-gradient(0deg, rgba(8, 8, 12, .78) 0, rgba(8, 8, 12, 0) 44%); }

/* the drawn building in 3D over the photo (which takes over while scrolling), the name along the street */
.intro-3d { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.intro-3d:active { cursor: grabbing; }
.intro-veil { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 10, .7) 0, rgba(10, 10, 10, 0) 22%), linear-gradient(0deg, rgba(10, 10, 10, .9) 0, rgba(10, 10, 10, .45) 22%, rgba(10, 10, 10, 0) 40%); }
.intro-title { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(60px, 8.5vh, 100px); margin: 0; display: flex; align-items: flex-end; justify-content: space-between; font-size: clamp(60px, 12vw, 240px); font-weight: 300; letter-spacing: -.055em; line-height: .78; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.intro-word { display: block; will-change: transform; }
.intro-word[data-intro-word="right"] { color: var(--accent); }
.intro-hint { color: var(--muted); }

.intro-kicker { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: 96px; margin: 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.intro-lines { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(84px, 13vh, 150px); pointer-events: none; }
.intro-line { margin: 0; font-size: clamp(38px, 5.6vw, 104px); font-weight: 300; letter-spacing: -.035em; line-height: 1; visibility: hidden; }
.intro-line--serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
.intro-line .char { display: inline-block; transform-origin: 50% 100%; }

.intro-chips { position: absolute; z-index: 4; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.intro-chips li { position: absolute; left: 0; top: 0; opacity: 0; }
.intro-chips li::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 91, 34, .6); animation: pulse 2.2s infinite; }
.chip-line { position: absolute; top: 0; height: 1px; width: 64px; background: var(--line-strong); transform-origin: left; }
.chip-box { position: absolute; top: -26px; display: grid; gap: 2px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(12, 12, 14, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); white-space: nowrap; }
.intro-chips li[data-side="right"] .chip-line { left: 0; }
.intro-chips li[data-side="right"] .chip-box { left: 64px; }
.intro-chips li[data-side="left"] .chip-line { right: 0; transform-origin: right; }
.intro-chips li[data-side="left"] .chip-box { right: 64px; }
.chip-box b { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chip-box span { font-size: 15px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 34, .55); } 70% { box-shadow: 0 0 0 14px rgba(255, 91, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 34, 0); } }

.intro-foot { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: calc(26px + var(--safe-bottom)); display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.intro-scroll { display: flex; align-items: center; gap: 12px; color: var(--text); }
.intro-scroll i { width: 34px; height: 1px; background: currentColor; transform-origin: left; animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- section heads ---------- */
section { position: relative; }
.sec-head { padding: 0 var(--gutter); margin-bottom: clamp(36px, 6vw, 90px); }
/* SplitText clips each line to reveal its words: the clip box is enlarged (and the layout kept) so that the tails of
   g, p, q and the italic serif are not cut by the tight line height */
[data-split] > div { padding: .14em .12em .24em; margin: -.14em -.12em -.24em; }
.sec-head h2, .contact-title { margin: 18px 0 0; font-size: clamp(44px, 6.4vw, 124px); font-weight: 300; letter-spacing: -.045em; line-height: .95; max-width: 14ch; }
.sec-head h2 em, .contact-title em { color: var(--accent); }
.sec-head--row { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.sec-aside { max-width: 30ch; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- 01 manifesto ---------- */
.manifesto { padding: clamp(120px, 20vh, 240px) var(--gutter) clamp(80px, 12vh, 160px); }
.manifesto-text { margin: 28px 0 0; max-width: 24ch; font-size: clamp(30px, 4.3vw, 80px); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; }
.manifesto-text em { color: var(--accent); }
.manifesto-text .word { opacity: .14; }
.stats { margin: clamp(80px, 14vh, 160px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats > div { padding: 24px 20px 0 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: 20px; }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 18px 0 0; font-size: clamp(54px, 7vw, 132px); font-weight: 300; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats small { font-size: .26em; letter-spacing: 0; margin-left: .3em; color: var(--muted); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-bottom: clamp(100px, 16vh, 200px); }
.marquee-track { display: flex; width: max-content; gap: 3vw; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(42px, 7vw, 130px); font-weight: 300; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(242, 238, 232, .45); white-space: nowrap; text-transform: uppercase; }
.marquee i { font-style: normal; font-size: clamp(20px, 2.6vw, 44px); color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 02 residences / plan ---------- */
.residences { padding-bottom: clamp(120px, 18vh, 220px); }
.plan { display: grid; grid-template-columns: minmax(280px, 30%) 1fr; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); }
.plan-side { display: flex; flex-direction: column; gap: 34px; }
.plan-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.plan-tabs button { position: relative; flex: 1; padding: 6px 0 18px; font-size: clamp(54px, 5.4vw, 96px); font-weight: 300; line-height: 1; color: rgba(242, 238, 232, .28); transition: color .4s; }
.plan-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .6s var(--ease); }
.plan-tabs button[aria-selected="true"] { color: var(--text); }
.plan-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.plan-kind { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.plan-area { margin: 12px 0 0; font-size: clamp(64px, 6vw, 110px); font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.plan-area small { font-size: .26em; letter-spacing: 0; margin-left: .3em; color: var(--muted); }
.plan-tagline { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.8vw, 30px); line-height: 1.15; }
.plan-rooms { list-style: none; margin: 26px 0 0; padding: 0; display: grid; }
.plan-rooms li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.plan-rooms li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.plan-rooms li b { order: 2; font-weight: 400; font-variant-numeric: tabular-nums; }
.plan-fee { display: flex; justify-content: space-between; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
.plan-fee b { color: var(--text); font-weight: 500; }
.plan-steps { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.plan-steps[hidden] { display: none; }        /* no WebGL: the turning model's video, no steps */
.plan-steps button { width: 100%; display: grid; gap: 6px; padding: 14px 12px 12px; text-align: left; border-top: 2px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); transition: color .3s, border-color .3s; }
.plan-steps button span { font-size: 10px; letter-spacing: .2em; }
.plan-steps button[aria-current="step"] { border-color: var(--accent); color: var(--text); }

.plan-stage { --plan-mix: 0; position: relative; height: min(80vh, 860px); min-height: 460px; border-radius: 4px; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--paper) calc(var(--plan-mix) * 100%), #0e0e0e); outline-offset: -2px; }
.plan-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.plan-labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s; }
.plan-stage:not([data-state="line"]) .plan-labels { opacity: 0; }
.plan-label { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 4px; text-align: center; white-space: nowrap; }
.plan-label b { font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 238, 232, .78); }
.plan-label i { font-family: var(--serif); font-size: 17px; color: var(--accent); }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid color-mix(in srgb, #1c1b19 calc(var(--plan-mix) * 100%), rgba(255, 255, 255, .5)); }
.corner--tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.plan-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #0a0a0a; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.plan-north { position: absolute; top: 22px; right: 46px; margin: 0; font-size: 11px; letter-spacing: .18em; color: color-mix(in srgb, #1c1b19 calc(var(--plan-mix) * 100%), var(--muted)); }
.plan-north i { font-style: normal; }
.plan-loading { position: absolute; top: 22px; left: 46px; margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f6b64; opacity: 0; transition: opacity .3s; }
.plan-stage.is-loading .plan-loading { opacity: 1; }

/* ---------- 03 building deck ---------- */
.building { padding-bottom: clamp(120px, 18vh, 220px); }
.deck { position: relative; margin: 0 var(--gutter); perspective: 1800px; }
.deck-card { display: grid; grid-template-columns: 1.15fr .95fr .9fr; min-height: min(64vh, 620px); border: 1px solid var(--line); border-radius: 4px; background: var(--card); transform-style: preserve-3d; overflow: hidden; }
.deck-word { margin: 0; align-self: center; padding: 0 clamp(18px, 2.6vw, 44px); font-size: clamp(40px, 5.2vw, 104px); font-weight: 300; letter-spacing: -.045em; line-height: .95; text-transform: uppercase; color: var(--accent); white-space: nowrap; overflow: hidden; }
.deck-media { position: relative; border-inline: 1px solid var(--line); background: #0d0d0d; display: grid; place-items: center; overflow: hidden; }
.deck-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(22px, 2.6vw, 44px); }
.deck-index { font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: auto; }
.deck-copy h3 { margin: 0; font-size: clamp(26px, 2.3vw, 42px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.deck-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(242, 238, 232, .72); }
.deck-note { font-size: 10.5px; letter-spacing: .08em; color: var(--accent); }
.deck-note[hidden] { display: none; }
.deck-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line); overflow: hidden; }
.deck-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.deck-tabs { margin: 22px var(--gutter) 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.deck-tabs button { padding: 10px 4px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.deck-tabs button[aria-selected="true"] { color: var(--accent); }

.deck-photo { position: absolute; inset: -2%; background-repeat: no-repeat; animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1%, -1%); } }

/* ---------- 04 interiors ---------- */
.interiors { padding-bottom: clamp(120px, 18vh, 220px); }
.strip { display: flex; gap: 10px; height: min(74vh, 760px); padding: 0 var(--gutter); }
.shot { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; border-radius: 3px; background: var(--card); transition: flex-grow .9s var(--ease); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .9s; filter: grayscale(.5) brightness(.72); }
.shot.is-open { flex-grow: 3.2; }
.shot.is-open img { transform: scale(1); filter: none; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; justify-content: space-between; gap: 10px; align-items: end; background: linear-gradient(0deg, rgba(8, 8, 8, .8), rgba(8, 8, 8, 0)); }
.shot figcaption b { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.shot figcaption span { font-family: var(--serif); font-style: italic; font-size: 22px; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.shot.is-open figcaption span { opacity: 1; transform: none; }
.finishes { margin: clamp(70px, 10vh, 120px) var(--gutter) 0; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.finishes h3 { margin: 0; font-size: clamp(26px, 2.6vw, 46px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.finishes h3 em { color: var(--accent); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.swatch { display: grid; gap: 10px; }
.swatch i { display: block; aspect-ratio: 1; border-radius: 3px; background-size: cover; background-position: center; border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.swatch span { font-size: 11px; color: var(--muted); }

/* ---------- 05 district ---------- */
.district { padding-bottom: clamp(120px, 18vh, 220px); }
.district-pin { position: relative; height: 100vh; height: 100svh; }
.district-stage { position: absolute; inset: 0; background: #0b0b0b; overflow: hidden; }
.district-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, rgba(11, 11, 11, 0) 55%, rgba(11, 11, 11, .75) 100%), linear-gradient(0deg, rgba(11, 11, 11, .85) 0, rgba(11, 11, 11, 0) 28%); }
/* the vector map (home-map.js, MapLibre): the few rules of maplibre-gl.css it needs, the house and the metro signs */
.district-map { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.district-stage.is-ready .district-map { opacity: 1; }
.maplibregl-map { overflow: hidden; -webkit-tap-highlight-color: transparent; }   /* .district-map keeps its absolute box */
.maplibregl-canvas { position: absolute; left: 0; top: 0; outline: none; }
.maplibregl-marker { position: absolute; top: 0; left: 0; will-change: transform; }
.map-home { display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.map-home span { padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #0a0a0a; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 24px rgba(255, 91, 34, .35); }
.map-home i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 91, 34, .6); animation: pulse 2.2s infinite; }
/* Milan's metro sign: a white M on red */
.map-metro { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 6px; background: rgba(10, 10, 10, .82); border: 1px solid var(--line-strong); white-space: nowrap; pointer-events: none; opacity: .72; transform-origin: 50% 100%; transition: opacity .4s, transform .5s var(--ease), border-color .4s; }
.map-metro b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: #e2001a; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.map-metro span { display: grid; font-size: 13px; font-weight: 500; line-height: 1.15; color: var(--text); }
.map-metro small { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.map-metro.is-current { opacity: 1; }
.map-metro.is-reached { border-color: var(--accent); transform: scale(1.08); }
.district-stage.is-failed::before { content: "Mappa non disponibile su questo dispositivo"; position: absolute; left: var(--gutter); top: 40%; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.district-ui { position: absolute; z-index: 2; left: var(--gutter); bottom: calc(clamp(28px, 6vh, 56px) + var(--safe-bottom)); display: grid; gap: 14px; }
.district-kicker { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.district-routes { display: flex; flex-wrap: wrap; gap: 10px; }
.district-routes button { display: grid; gap: 4px; padding: 14px 20px; text-align: left; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(10, 10, 10, .65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, background .3s; }
.district-routes button b { font-size: 16px; font-weight: 500; }
.district-routes button span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.district-routes button[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 91, 34, .12); }
.district-routes button[aria-pressed="true"] span { color: var(--accent); }
.district-credit { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(12px + var(--safe-bottom)); margin: 0; font-size: 10px; color: var(--muted); }
.district-credit a { text-decoration: underline; }
.places { list-style: none; margin: clamp(40px, 6vw, 80px) var(--gutter) 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 72px); border-top: 1px solid var(--line); }
.place { display: grid; grid-template-columns: 104px 1fr; gap: 6px 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.place-time { grid-row: span 2; font-size: clamp(40px, 3.6vw, 64px); font-weight: 300; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; transition: color .3s; }
.place-time small { font-size: .3em; letter-spacing: 0; color: var(--muted); margin-left: .2em; }
.place-name { font-size: 17px; }
.place-meta { font-size: 12px; color: var(--muted); }

/* ---------- 06 costs ---------- */
.costs { padding-bottom: clamp(120px, 18vh, 220px); }
.costs .fineprint, .district .fineprint { padding: 0 var(--gutter); }
.costs-big { margin: 0; display: grid; justify-items: end; text-align: right; gap: 4px; }
.costs-big b { font-size: clamp(64px, 8vw, 150px); font-weight: 300; letter-spacing: -.05em; line-height: .9; color: var(--accent); }
.costs-big small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.accordion { margin: 0 var(--gutter); border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line); }
.acc button { width: 100%; display: grid; grid-template-columns: 1fr auto 40px; align-items: center; gap: 20px; padding: 26px 0; text-align: left; }
.acc-title { font-size: clamp(22px, 2.2vw, 38px); font-weight: 300; letter-spacing: -.03em; }
.acc-value { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-plus { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s, transform .6s var(--ease); }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin-left: -6px; background: currentColor; transition: transform .5s var(--ease); }
.acc-plus::after { transform: rotate(90deg); }
.acc.is-open .acc-plus { background: var(--accent); border-color: var(--accent); color: #0a0a0a; transform: rotate(180deg); }
.acc.is-open .acc-plus::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 0 26px; max-width: 60ch; font-size: 15px; line-height: 1.65; color: rgba(242, 238, 232, .72); }
.acc-panel small { display: block; margin-top: 8px; color: var(--accent); font-size: 11px; letter-spacing: .06em; }

/* ---------- 07 the listing, the agency, the night footer ---------- */
.contact { padding: 0 var(--gutter) clamp(100px, 16vh, 180px); }
.contact-title { max-width: 12ch; font-size: clamp(56px, 9vw, 190px); }
.contact-links { margin-top: clamp(50px, 8vh, 90px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.contact-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(220px, 30vh, 320px); padding: clamp(24px, 3vw, 44px); border-radius: 6px; border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), border-color .3s; }
.contact-card span { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.contact-card b { font-size: clamp(30px, 3.4vw, 62px); font-weight: 300; letter-spacing: -.035em; line-height: 1; max-width: 12ch; }
.contact-card i { position: absolute; right: clamp(22px, 2.6vw, 40px); top: clamp(18px, 2.4vw, 36px); font-style: normal; font-size: 30px; transition: transform .5s var(--ease); }
.contact-card--listing { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.contact-card--agency { background: #111; }
.contact-card--agency span { color: #c79a5e; }
.contact-card--agency img { width: min(380px, 82%); height: auto; }

.footer { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #070708; }
.night { position: absolute; inset: 0; }
.night canvas { display: block; width: 100%; height: 100%; }
.night.is-failed { background: radial-gradient(circle at 50% 70%, #1a120b, #070708 70%); }
.footer-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0, rgba(10, 10, 10, 0) 22%), linear-gradient(0deg, rgba(7, 7, 8, .92) 0, rgba(7, 7, 8, 0) 46%); }
.footer-inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) calc(28px + var(--safe-bottom)); }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer-agency img { display: block; width: clamp(170px, 17vw, 280px); height: auto; transition: opacity .3s; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.footer-nav a { color: rgba(242, 238, 232, .78); transition: color .3s; }
.footer-mark { margin: 3vh 0 0; overflow: hidden; font-size: 15.6vw; font-weight: 300; letter-spacing: -.06em; line-height: .86; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(242, 238, 232, .85); }
.footer-mark .char { display: inline-block; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- the hours ---------- */
.hours-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.hours-stack { position: absolute; inset: 0; }
.hours-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity; }
.hours-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 6, 8, .72) 0, rgba(6, 6, 8, 0) 46%), linear-gradient(0deg, rgba(6, 6, 8, .7) 0, rgba(6, 6, 8, 0) 34%), linear-gradient(180deg, rgba(6, 6, 8, .55) 0, rgba(6, 6, 8, 0) 26%); }
.hours-head { position: absolute; left: var(--gutter); top: clamp(96px, 14vh, 140px); }
.hours-head h2 { margin: 14px 0 0; font-size: clamp(44px, 6vw, 112px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.hours-head h2 em { color: var(--accent); }
.hours-clock { position: absolute; right: var(--gutter); top: clamp(96px, 14vh, 140px); display: grid; justify-items: end; }
.hours-arc { width: clamp(150px, 14vw, 220px); overflow: visible; }
.hours-arc path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-dasharray: 2 5; }
.hours-arc line { stroke: rgba(255, 255, 255, .25); }
.hours-disc { fill: var(--disc, #e9edf7); filter: drop-shadow(0 0 7px var(--glow, rgba(223, 230, 255, .8))); }
.hours-time { margin: 6px 0 0; font-size: clamp(72px, 9vw, 170px); font-weight: 300; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.hours-label { margin: 10px 0 0; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.hours-text { position: absolute; left: var(--gutter); bottom: clamp(96px, 15vh, 150px); max-width: 26ch; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 42px); line-height: 1.15; }
.hours-tabs { position: absolute; right: var(--gutter); bottom: calc(clamp(28px, 6vh, 56px) + var(--safe-bottom)); display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 10, 10, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hours-tabs button { padding: 10px 16px; border-radius: 999px; font-size: 12px; font-weight: 500; color: rgba(242, 238, 232, .72); transition: background .3s, color .3s; }
.hours-tabs button[aria-selected="true"] { background: var(--accent); color: #0a0a0a; }
.hours-note { position: absolute; left: var(--gutter); bottom: calc(clamp(28px, 6vh, 56px) + var(--safe-bottom)); margin: 0; font-size: 11px; letter-spacing: .06em; color: rgba(242, 238, 232, .6); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-pills { display: none; }
  .nav { grid-template-columns: 1fr auto auto; gap: 10px; }
  .nav-burger { display: grid; }
  .plan { grid-template-columns: 1fr; }
  .plan-stage { order: -1; height: 72vh; min-height: 420px; }
  .plan-steps { margin-top: 0; }
  .deck-card { grid-template-columns: 1fr 1fr; }
  .deck-word { grid-column: 1 / -1; padding-top: 30px; padding-bottom: 10px; }
  .deck-media { min-height: 340px; border-left: 0; border-top: 1px solid var(--line); }
  .deck-copy { border-top: 1px solid var(--line); }
  .finishes { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .places { grid-template-columns: 1fr; }
  .place { grid-template-columns: 78px 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .hours-head { top: 88px; }
  .hours-clock { top: auto; bottom: 150px; right: var(--gutter); }
  .hours-time { font-size: 64px; }
  .hours-arc { width: 120px; }
  .hours-text { bottom: 260px; font-size: 22px; max-width: 18ch; }
  .hours-tabs { left: var(--gutter); right: var(--gutter); justify-content: space-between; bottom: calc(70px + var(--safe-bottom)); }
  .hours-tabs button { padding: 9px 10px; font-size: 11px; white-space: nowrap; }
  .hours-note { bottom: calc(30px + var(--safe-bottom)); }
  .district-routes button { padding: 10px 14px; }
  .district-routes button b { font-size: 14px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .nav-cta { padding: 12px 16px; font-size: 11px; }
  .intro-title { flex-direction: column; align-items: flex-start; gap: 0; font-size: 19vw; bottom: calc(92px + var(--safe-bottom)); }
  .intro-hint { display: none; }
  .intro-kicker { top: 84px; flex-direction: column; gap: 6px; }
  .intro-line { font-size: 11vw; }
  .chip-box { padding: 8px 11px; }
  .chip-box span { font-size: 13px; }
  .chip-line { width: 34px; }
  .intro-chips li[data-side="right"] .chip-box { left: 34px; }
  .intro-chips li[data-side="left"] .chip-box { right: 34px; }
  .intro-foot { flex-direction: column; gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(2n) { border-right: 0; padding-left: 12px; }
  .stats > div:nth-child(2n+1) { padding-left: 0; }
  .sec-head--row { flex-direction: column; align-items: start; }
  .costs-big { justify-items: start; text-align: left; }
  .deck-card { grid-template-columns: 1fr; }
  .deck-media { min-height: 300px; border-top: 1px solid var(--line); }
  .deck-tabs { justify-content: flex-start; gap: 4px 14px; }
  .strip { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78vw; height: 62vh; scroll-snap-align: center; }
  .shot img { filter: none; transform: none; }
  .shot figcaption span { opacity: 1; transform: none; }
  .footer-row { flex-direction: column; gap: 10px; }
  .acc button { grid-template-columns: 1fr 40px; }
  .acc-value { grid-column: 1; grid-row: 2; }
  .acc-plus { grid-column: 2; grid-row: 1 / 3; }
}

/* the narrowest phones (Galaxy Fold's cover screen, 280-360 px): the three hour tabs on one line */
@media (max-width: 360px) {
  .hours-tabs { gap: 2px; padding: 4px; }
  .hours-tabs button { padding: 9px 6px; font-size: 10.5px; }
  .plan-tabs button { font-size: 48px; }
  .stats dd { font-size: min(54px, 13.5vw); }     /* "28–37 m²" ran out of its column at 280 px */
}

/* a phone held sideways (or any screen under 500 px tall): the pinned screens and the plan fit the height */
@media (orientation: landscape) and (max-height: 500px) {
  .intro-title { font-size: min(12vw, 30svh); bottom: calc(48px + var(--safe-bottom)); }
  .intro-kicker { top: calc(76px + var(--safe-top)); }
  .intro-kicker span + span, .intro-hint { display: none; }
  .intro-foot { bottom: calc(14px + var(--safe-bottom)); }
  .intro-lines { bottom: calc(64px + var(--safe-bottom)); }
  .intro-line { font-size: min(5.6vw, 11svh); }
  .plan { grid-template-columns: minmax(230px, 36%) 1fr; }
  .plan-stage { order: 0; height: calc(100svh - 96px); min-height: 250px; }
  .plan-side { gap: 18px; }
  .plan-tabs button { font-size: 40px; padding-bottom: 10px; }
  .plan-area { font-size: 48px; }
  .plan-rooms li { padding: 7px 0; }
  .hours-head { top: calc(72px + var(--safe-top)); }
  .hours-head h2 { font-size: min(6vw, 13svh); }
  .hours-clock { top: calc(72px + var(--safe-top)); }
  .hours-time { font-size: min(9vw, 20svh); }
  .hours-arc { width: min(14vw, 26svh); }
  .hours-text { bottom: calc(76px + var(--safe-bottom)); font-size: 18px; }
  .deck-card { min-height: 0; }
  .deck-media { min-height: 220px; }
  .strip { height: calc(100svh - 40px); }
  .district-routes button { padding: 8px 12px; }
  .footer { min-height: 0; padding-top: 120px; }
}

/* fingers: every control at least 44 px tall (Apple 44 pt, Android 48 dp, WCAG 2.5.8) */
@media (pointer: coarse) {
  .nav-cta, .nav-pills a { display: inline-flex; align-items: center; min-height: 44px; }
  .hours-tabs button, .deck-tabs button { min-height: 44px; }
  .plan-steps button { min-height: 52px; }
  .footer-nav a, .footer-row a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-nav { gap: 0 24px; }
}

/* two screens side by side (Surface Duo, a folding phone spanned; Chrome 138+): the plan on one, its data on the
   other, nothing under the hinge */
@media (horizontal-viewport-segments: 2) {
  .plan, .contact-links { grid-template-columns: calc(env(viewport-segment-right 0 0) - 2 * var(--gutter)) 1fr;
    column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 2 * var(--gutter)); }
  .plan-stage { order: 0; }
}

/* hover effects only where something hovers: on a phone the last photo or card tapped stayed lit */
@media (hover: hover) {
  .nav-pills a:hover { color: var(--text); }
  .plan-tabs button:hover { color: var(--text); }
  .plan-steps button:hover { color: var(--text); }
  .deck-tabs button:hover { color: var(--text); }
  .shot:hover { flex-grow: 3.2; }
  .shot:hover img { transform: scale(1); filter: none; }
  .shot:hover figcaption span { opacity: 1; transform: none; }
  .swatch:hover i { transform: translateY(-6px) rotate(-2deg); border-color: var(--accent); }
  .place:hover { padding-left: 12px; }
  .place:hover .place-time { color: var(--accent); }
  .acc button:hover .acc-plus { border-color: var(--accent); }
  .contact-card:hover i { transform: translate(5px, -5px); }
  .contact-card--agency:hover { border-color: #c79a5e; }
  .footer-agency:hover img { opacity: .8; }
  .footer-nav a:hover { color: var(--accent); }
}
