/* ═══════════════════════════════════════════════════════
   SA PEDRA — versione cinematografica
   ═══════════════════════════════════════════════════════ */
:root {
  --sand: #EFE9E1; --sand-2: #E4DCD0; --stone: #C9BEAE;
  --char: #1B1815; --char-2: #262119; --ink: #2E2921; --muted: #7C7264;
  --terra: #B0603A; --terra-soft: #C97F58;
  --line: rgba(27,24,21,0.14); --line-light: rgba(239,233,225,0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--sand); color: var(--ink);
  font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terra); color: var(--sand); }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--terra);
  display: flex; align-items: center; gap: 1rem;
}
.eyebrow::after { content: ""; height: 1px; width: 4.5rem; background: var(--terra); opacity: 0.5; }

/* ── loader: sabbia di granito ─────────────────────── */
.dust { position: fixed; inset: 0; z-index: 300; background: var(--char); cursor: pointer; transition: opacity 0.7s ease; }
.dust.is-done { opacity: 0; pointer-events: none; }
.dust canvas { display: block; width: 100%; height: 100%; }
.dust__hint {
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
}
body.hold { overflow: hidden; }

/* ── nav ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1.2rem, 4vw, 3.5rem);
  color: var(--sand);
  transition: transform 0.5s var(--ease-out), color 0.4s ease;
}
.nav.on-light { color: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 0.7rem; position: relative; }
.nav__ring { width: 2.6rem; height: 2.6rem; transform: rotate(-90deg); }
.nav__ring circle { fill: none; stroke-width: 1.4; }
.nav__ring-bg { stroke: rgba(255,255,255,0.22); }
.nav__ring-fg { stroke: currentColor; stroke-dasharray: 125.6; stroke-dashoffset: 125.6; }
.nav__mark {
  position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em;
}
.nav__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; line-height: 1.05; display: flex; flex-direction: column; }
.nav__name em { font-family: var(--font-body); font-style: normal; font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; opacity: 0.7; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a[data-nav] { position: relative; font-size: 0.92rem; font-weight: 400; letter-spacing: 0.04em; }
.nav__links a[data-nav]::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.nav__links a[data-nav]:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0.62rem 1.5rem; border: 1px solid currentColor; border-radius: 99px; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em; will-change: transform; }
.nav__burger { display: none; flex-direction: column; gap: 7px; background: none; border: 0; cursor: pointer; padding: 6px; color: inherit; }
.nav__burger span { width: 30px; height: 1.5px; background: currentColor; display: block; transition: transform 0.4s var(--ease-out); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--char); display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(1.5rem, 8vw, 5rem); clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-expo); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__link { display: flex; align-items: baseline; gap: 1.2rem; font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 300; color: var(--sand); padding: 0.55rem 0; border-bottom: 1px solid var(--line-light); opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.2s; } .menu.is-open .menu__link:nth-child(2) { transition-delay: 0.28s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.36s; } .menu.is-open .menu__link:nth-child(4) { transition-delay: 0.44s; }
.menu__link span { font-family: var(--font-body); font-size: 0.85rem; color: var(--terra-soft); letter-spacing: 0.2em; }
.menu__foot { margin-top: 3rem; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ── il volo ───────────────────────────────────────── */
.flight { position: relative; height: 560vh; background: var(--char); color: var(--sand); }
.flight--static { height: auto; }
.flight__stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.flight--static .flight__stage { position: relative; }
.flight__video, .flight__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flight__canvas { opacity: 0; transition: opacity 0.5s ease; }
.flight.is-frames .flight__canvas { opacity: 1; }
.flight.is-frames .flight__video { opacity: 0; }
.flight__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,24,21,0.42) 0%, rgba(27,24,21,0.05) 38%, rgba(27,24,21,0.78) 100%); }

.flight__kinetic { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: 0; }
.kinetic__line { white-space: nowrap; font-family: var(--font-display); font-weight: 300; line-height: 0.95; will-change: transform; }
.kinetic__line span { display: inline-block; }
.kinetic__line--a { font-size: clamp(3.4rem, 11vw, 11rem); font-style: italic; color: var(--sand); }
.kinetic__line--b { font-size: clamp(2.4rem, 8vw, 8rem); color: transparent; -webkit-text-stroke: 1px rgba(239,233,225,0.7); margin-top: 0.3em; }

.flight__title { position: absolute; left: clamp(1.2rem, 4vw, 3.5rem); right: clamp(1.2rem, 4vw, 3.5rem); bottom: clamp(5.5rem, 12vh, 8rem); max-width: 1400px; z-index: 2; }
.flight__kicker span { display: inline-block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.5rem; }
.flight__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.7rem, 8vw, 7rem); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 1.6rem; }
.flight__h1 em { font-style: italic; color: var(--terra-soft); }
.flight__h1 .line { display: block; overflow: hidden; }
.flight__h1 .line > span { display: block; transform: translateY(112%); }
.flight__sub { font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(239,233,225,0.82); max-width: 46ch; line-height: 1.7; overflow: hidden; }
.flight__sub span { display: block; transform: translateY(112%); }
.flight__kicker { overflow: hidden; }
.flight__kicker span { transform: translateY(112%); }

.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hud__corner { position: absolute; width: 26px; height: 26px; border: 1.5px solid rgba(239,233,225,0.55); }
.hud__corner--tl { top: 5rem; left: 1.4rem; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 5rem; right: 1.4rem; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 1.4rem; left: 1.4rem; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 1.4rem; right: 1.4rem; border-left: 0; border-top: 0; }
.hud__rec { position: absolute; top: 5.7rem; left: 2.6rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; font-variant-numeric: tabular-nums; }
.hud__rec i { width: 9px; height: 9px; border-radius: 50%; background: #E0483A; animation: recBlink 1.2s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: 0.15; } }
.hud__rec b { font-weight: 400; color: var(--stone); }
.hud__meta { position: absolute; top: 5.7rem; right: 2.6rem; font-size: 0.7rem; letter-spacing: 0.28em; color: rgba(239,233,225,0.6); }
.hud__chapter { position: absolute; right: 2.6rem; bottom: 3.4rem; display: grid; text-align: right; }
.hud__ch { grid-area: 1/1; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.6rem); opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
.hud__ch.is-on { opacity: 0.92; transform: none; }
.hud__progress { position: absolute; left: 2.6rem; right: 2.6rem; bottom: 1.9rem; height: 1px; background: rgba(239,233,225,0.2); }
.hud__progress i { display: block; height: 100%; width: 0; background: var(--terra-soft); }
.hud__hint { position: absolute; left: 50%; bottom: 3rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone); }
.hud__hint i { width: 1px; height: 54px; background: rgba(239,233,225,0.28); position: relative; overflow: hidden; }
.hud__hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--sand); animation: drip 2s var(--ease-out) infinite; }
@keyframes drip { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(280%); } }

/* ── manifesto ─────────────────────────────────────── */
.manifesto { padding: clamp(7rem, 16vh, 12rem) clamp(1.2rem, 6vw, 8rem); max-width: 1200px; margin: 0 auto; }
.manifesto__eyebrow { margin-bottom: 2rem; }
.manifesto__eyebrow span { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--terra); }
.manifesto__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.28; letter-spacing: -0.01em; text-wrap: balance; }
.manifesto__text .w { opacity: 0.12; display: inline-block; transition: opacity 0.4s ease; }
.manifesto__text .w.lit { opacity: 1; }

/* ── striscia foto a velocità ──────────────────────── */
.strip { overflow: hidden; padding: 1rem 0 clamp(5rem, 12vh, 9rem); }
.strip__track { display: flex; gap: 1rem; width: max-content; will-change: transform; }
.strip figure { width: clamp(220px, 26vw, 380px); flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── lastre servizi ────────────────────────────────── */
.slabs { position: relative; background: var(--char); }
.slab { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; align-items: flex-end; color: var(--sand); transform-origin: center top; will-change: transform, filter; }
.slab__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slab::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,24,21,0.15) 0%, rgba(27,24,21,0.05) 45%, rgba(27,24,21,0.85) 100%); }
.slab__inner { position: relative; z-index: 2; padding: 0 clamp(1.2rem, 5vw, 5rem) clamp(3.5rem, 9vh, 6rem); max-width: 1400px; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
.slab__num { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(3.5rem, 12vw, 11rem); line-height: 0.8; color: var(--terra-soft); grid-row: span 2; }
.slab__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; }
.slab__text { color: rgba(239,233,225,0.72); max-width: 48ch; font-size: 1.02rem; }
.slab__inner > * { opacity: 0; transform: translateY(40px); }
.slab.is-in .slab__inner > * { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.9s var(--ease-out); }
.slab.is-in .slab__title { transition-delay: 0.1s; }
.slab.is-in .slab__text { transition-delay: 0.2s; }

/* ── il cantiere orizzontale ───────────────────────── */
.build { background: var(--char-2); color: var(--sand); }
.build__pin { height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; position: relative; }
.build__head { padding: 0 clamp(1.2rem, 4vw, 3.5rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; }
.build__head .eyebrow { color: var(--terra-soft); }
.build__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.015em; text-align: right; }
.build__scene { position: absolute; right: clamp(1.2rem, 4vw, 3.5rem); top: 50%; transform: translateY(-58%); width: clamp(220px, 24vw, 360px); z-index: 4; pointer-events: none; opacity: 0.95; }
.build__scene svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.build__counter { position: absolute; right: 0; bottom: -0.2rem; font-variant-numeric: tabular-nums; font-size: 0.8rem; letter-spacing: 0.22em; color: rgba(239,233,225,0.8); }
.build__counter b { font-weight: 500; color: var(--terra-soft); }
.build__track { display: flex; gap: clamp(1.5rem, 3vw, 3rem); padding: 0 clamp(1.2rem, 4vw, 3.5rem); width: max-content; will-change: transform; }
.panel { width: clamp(300px, 52vw, 760px); flex-shrink: 0; display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.panel__img { overflow: hidden; border-radius: 3px; height: clamp(220px, 46vh, 440px); }
.panel__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.panel__txt { display: grid; grid-template-columns: 3rem 1fr; gap: 0.3rem 1rem; }
.panel__txt span { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--terra-soft); padding-top: 0.5rem; }
.panel__txt h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.01em; }
.panel__txt p { grid-column: 2; color: rgba(239,233,225,0.62); max-width: 52ch; font-size: 0.98rem; }
.build__bar { position: absolute; left: clamp(1.2rem, 4vw, 3.5rem); right: clamp(1.2rem, 4vw, 3.5rem); bottom: 1.6rem; height: 1px; background: var(--line-light); }
.build__bar i { display: block; height: 100%; width: 0; background: var(--terra-soft); }

/* scena: la casetta che si costruisce (gate per fase) */
.tex--footing { clip-path: inset(0 100% 0 0); transition: clip-path 0.8s var(--ease-out) 0.05s; }
.tex--wall { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out) 0.1s; }
.tex--roof { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out) 0.25s; }
.tex--chimney { clip-path: inset(100% 0 0 0); transition: clip-path 0.5s var(--ease-out) 0.5s; }
.tex--boulder { opacity: 0; transition: opacity 0.9s ease 0.3s; }
.smoke__p { fill: var(--stone); opacity: 0; }
@keyframes smokeRise { 0% { opacity: 0; transform: translateY(0) scale(0.7); } 22% { opacity: 0.32; } 100% { opacity: 0; transform: translateY(-48px) scale(1.55); } }
.crane { opacity: 0; transition: opacity 0.7s ease 0.1s; }
.crane .c { stroke: var(--stone); stroke-width: 1.6; opacity: 0.85; }
.crane .thin { stroke-width: 0.9; opacity: 0.5; }
.crane .cw { fill: #322C24; stroke: var(--stone); stroke-width: 1.2; }
.crane__trolley { animation: trolleyMove 5.5s ease-in-out infinite alternate; }
@keyframes trolleyMove { from { transform: translateX(0); } to { transform: translateX(175px); } }
.crane__hoist { transform-box: fill-box; transform-origin: 50% 0; animation: hoistSway 2.4s ease-in-out infinite alternate; }
@keyframes hoistSway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
.scn .el { opacity: 0; transition: opacity 0.65s ease 0.12s; }
.scn.on-0 .s0, .scn.on-1 .s1, .scn.on-2 .s2, .scn.on-3 .s3, .scn.on-4 .s4, .scn.on-5 .s5 { opacity: 1; }
.scn .ln { stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scn .lf { stroke-width: 1.2; } .scn.on-0 .lf { opacity: 0.5; }
.scn .lt { stroke-width: 1.3; }
.scn .ldim { stroke: var(--stone); stroke-width: 1.1; } .scn.on-1 .ldim { opacity: 0.75; }
.scn .pdim { fill: var(--stone); font-family: var(--font-body); font-weight: 300; font-size: 15px; letter-spacing: 0.16em; } .scn.on-1 .pdim { opacity: 0.75; }
.scn .pspray { fill: #C9503D; font-family: "Caveat", cursive; font-size: 27px; }
.scn.on-0 .pspray.s0, .scn.on-1 .pspray.s1 { opacity: 0.95; }
.scn .pspray-line { stroke: #C9503D; stroke-width: 2.4; stroke-dasharray: 12 7; } .scn.on-1 .pspray-line { opacity: 0.85; }
.scn .pfill--door { fill: #7A5236; } .scn .pfill--pergola { fill: #6E5138; } .scn .pfill--glass { fill: #232A33; }
.scn.on-3 .pfill.s3, .scn.on-4 .pfill.s4 { opacity: 0.96; }
.scn .glow { fill: #F2C077; } .scn.on-5 .glow.s5 { opacity: 0.92; } .scn.on-5 .glow--halo { opacity: 0.48; } .scn.on-5 .glow--door { opacity: 0.5; }
.scn.on-1 .tex--footing { clip-path: inset(0 0 0 0); }
.scn.on-2 .tex--wall { clip-path: inset(0 0 0 0); }
.scn.on-3 .tex--roof, .scn.on-3 .tex--chimney { clip-path: inset(0 0 0 0); }
.scn.on-0 .tex--boulder { opacity: 0.96; }
.scn.on-2 .crane { opacity: 1; } .scn.on-5 .crane { opacity: 0 !important; }
.scn.on-5 .smoke__p { animation: smokeRise 2.8s ease-out infinite; }
.scn.on-5 .smoke__p--2 { animation-delay: 0.95s; } .scn.on-5 .smoke__p--3 { animation-delay: 1.8s; }

/* ── galleria ──────────────────────────────────────── */
.gallery { padding: clamp(6rem, 13vh, 10rem) clamp(1.2rem, 4vw, 3.5rem); max-width: 1400px; margin: 0 auto; }
.gallery__head { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.gallery__note { color: var(--muted); font-size: 0.95rem; font-style: italic; font-family: var(--font-display); }
.gallery__grid { columns: 3 300px; column-gap: 0.9rem; }
.tile { margin-bottom: 0.9rem; overflow: hidden; border-radius: 3px; break-inside: avoid; cursor: zoom-in; clip-path: inset(100% 0 0 0); }
.tile img { transition: transform 0.9s var(--ease-out); transform: scale(1.12); }
.tile.is-in img { transform: scale(1); }
.tile:hover img { transform: scale(1.05); }

/* ── CTA scolpito ──────────────────────────────────── */
.cta { background: var(--char); color: var(--sand); padding: clamp(7rem, 15vh, 11rem) clamp(1.2rem, 4vw, 3.5rem) 2.2rem; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.cta__stone {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(4.2rem, 17vw, 16rem); line-height: 0.95; letter-spacing: -0.03em;
  background-image: url("../assets/img/posa-acciottolato.jpg"); background-size: 130%; background-position: 50% 30%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: contrast(1.05) brightness(1.05);
}
.cta__sub { color: rgba(239,233,225,0.68); max-width: 52ch; margin: 1.6rem 0 2.6rem; }
.cta__actions { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 0.7rem; padding: 1.05rem 2.2rem; border-radius: 99px; font-size: 1rem; font-weight: 500; letter-spacing: 0.03em; border: 1px solid transparent; will-change: transform; transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.btn:active { transform: scale(0.97); }
.btn--wa { background: #46B96A; color: #FFFDFA; box-shadow: 0 14px 34px -14px rgba(70,185,106,0.55); }
.btn--wa:hover { background: #3EA65E; }
.btn--ghost { border-color: var(--line-light); color: var(--sand); }
.btn--ghost:hover { border-color: var(--sand); }
.footer { margin-top: clamp(5rem, 10vh, 8rem); width: 100%; max-width: 1400px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--line-light); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }

/* ── lightbox + wa ─────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(20,17,14,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 88vw; max-height: 86vh; border-radius: 3px; }
.lightbox__close, .lightbox__arrow { position: absolute; background: none; border: 0; cursor: pointer; color: var(--sand); font-size: 1.6rem; padding: 1rem; font-family: var(--font-body); }
.lightbox__close { top: 1rem; right: 1.4rem; font-size: 2.2rem; line-height: 1; }
.lightbox__arrow--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80; display: flex; align-items: center; gap: 0.6rem; background: #46B96A; color: #FFFDFA; padding: 0.9rem 1.1rem; border-radius: 99px; box-shadow: 0 16px 38px -12px rgba(70,185,106,0.6); transform: translateY(140%); transition: transform 0.6s var(--ease-expo); }
.wa-float.is-in { transform: translateY(0); }
.wa-float__label { font-size: 0.92rem; font-weight: 500; }

/* ── responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .flight { height: 420vh; }
  .hud__meta, .hud__chapter { display: none; }
  .hud__corner--tl, .hud__corner--tr { top: 4.4rem; }
  .hud__corner { width: 20px; height: 20px; }
  .hud__rec { top: 5rem; left: 2.2rem; font-size: 0.7rem; }
  .hud__progress { left: 2.2rem; right: 2.2rem; bottom: 1.6rem; }
  .hud__hint { display: none; }
  .kinetic__line--b { -webkit-text-stroke-width: 0.7px; }
  .slab__inner { grid-template-columns: 1fr; gap: 0.6rem; }
  .slab__num { grid-row: auto; font-size: 4rem; }
  .build__head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .build__title { text-align: left; font-size: 1.6rem; }
  .build__scene { position: static; transform: none; width: min(60vw, 240px); margin: 0.6rem auto 0.4rem clamp(1.2rem, 4vw, 3.5rem); opacity: 1; }
  .build__counter { right: 0.4rem; }
  .panel { width: 80vw; }
  .panel__img { height: clamp(180px, 34vh, 300px); }
  .panel__txt { grid-template-columns: 2.4rem 1fr; }
  .gallery__grid { columns: 2 160px; column-gap: 0.6rem; }
  .tile { margin-bottom: 0.6rem; }
  .wa-float__label { display: none; }
  .wa-float { padding: 1rem; }
  .cta__stone { background-size: 200%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .flight__h1 .line > span, .flight__sub span, .flight__kicker span { transform: none; }
  .manifesto__text .w { opacity: 1; }
  .tile { clip-path: none; } .tile img { transform: none; }
  .slab__inner > * { opacity: 1; transform: none; }
}
