/* =========================================================
   CINE PIENZA — front page
   Black & white, filmic, Tuscan. No backend.
   ========================================================= */

:root {
  --noir: #0b0b0a;
  --carbone: #151514;
  --pietra: #d9d5cf;      /* travertine, near-neutral */
  --pietra-2: #e8e5e0;
  --bianco: #f4f2ee;
  --nebbia: #8f8b85;
  --ink: #141413;

  --display: "Italiana", "Didot", "Bodoni 72", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --gx: clamp(20px, 6vw, 110px);   /* page side gutter */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.4em; }
em { font-family: var(--serif); font-style: italic; font-size: 1.12em; letter-spacing: .01em; }
strong { font-weight: 500; }
s { opacity: .6; }
::selection { background: var(--ink); color: var(--bianco); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 10000; background: var(--bianco); color: var(--noir); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .display-sm, .display-xs, .hero-title, .menu-nav li > a, .traits .t {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: .98;
  letter-spacing: .02em;
}
.display    { font-size: clamp(48px, 6.4vw, 112px); margin-bottom: .45em; }
.display-sm { font-size: clamp(30px, 3.2vw, 54px); margin-bottom: .7em; line-height: 1.12; }
.display-xs { font-size: clamp(26px, 2.6vw, 40px); margin-bottom: .8em; }
.caps-sm {
  font-family: var(--sans); font-weight: 400;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(14px, 1.2vw, 18px); line-height: 1.3;
  margin-bottom: 2em;
}
.scene {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  margin-bottom: 2.6em; opacity: .75;
}
.scene::before { content: ""; width: 44px; height: 1px; background: currentColor; }

.link-line {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 1.4em;
  text-decoration: none; text-transform: uppercase; letter-spacing: .32em; font-size: 11px; font-weight: 500;
}
.link-line i { position: relative; width: 70px; height: 1px; background: currentColor; transition: width .7s var(--ease); }
.link-line i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.link-line:hover i, .link-line:focus-visible i { width: 120px; }
.link-line.light { color: var(--bianco); }

.rule { position: absolute; height: 1px; background: currentColor; opacity: .55; }
.rule-right { right: 0; width: 50vw; top: 9vh; }
.rule-left  { left: 0; width: 42vw; top: 9vh; }

/* ---------- film grain (decorative) ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 9000; pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- letterbox intro (decorative) ---------- */
.letterbox { position: fixed; inset: 0; z-index: 9500; pointer-events: none; }
.letterbox span { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--noir); animation: lb-open 1.6s var(--ease-io) .25s forwards; }
.letterbox span:first-child { top: 0; }
.letterbox span:last-child { bottom: 0; --dir: 1; }
@keyframes lb-open { to { transform: translateY(calc(-101% + var(--dir, 0) * 202%)); } }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px var(--gx);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;            /* only the logo and button take clicks */
  transition: transform .7s var(--ease), padding .5s var(--ease), background-color .5s;
}
/* after scrolling: hide going down, return on a solid bar going up */
.header.is-solid { mix-blend-mode: normal; background-color: rgba(11, 11, 10, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 16px; padding-bottom: 16px; }
.header.is-hidden { transform: translateY(-105%); }
.menu-open .header { transform: none; background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header > * { pointer-events: auto; }
.menu-open .header { mix-blend-mode: normal; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.logo-img { width: clamp(150px, 12vw, 190px); height: auto; transition: width .5s var(--ease); }
.header.is-solid .logo-img { width: clamp(120px, 9vw, 150px); }
.menu-btn {
  display: flex; align-items: center; gap: 16px;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 10px 0 10px 10px;
  font: 500 10px/1 var(--sans); letter-spacing: .38em; text-transform: uppercase;
}
.menu-btn-lines { position: relative; width: 34px; height: 12px; }
.menu-btn-lines i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease), width .6s var(--ease); }
.menu-btn-lines i:first-child { top: 2px; }
.menu-btn-lines i:last-child { top: 10px; width: 66%; left: auto; }
.menu-btn:hover .menu-btn-lines i:last-child { width: 100%; }
.menu-open .menu-btn-lines i:first-child { top: 6px; transform: rotate(18deg); }
.menu-open .menu-btn-lines i:last-child { top: 6px; width: 100%; transform: rotate(-18deg); }

/* ---------- menu (fully hidden + non-interactive when closed) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: 42% 1fr;
  background: var(--noir); color: var(--bianco);
  visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-io), visibility 0s linear 1s;
}
.menu-open .menu {
  visibility: visible; pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io), visibility 0s;
}
.menu-media { position: relative; overflow: hidden; }
.menu-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.75) contrast(1.05);
  transform: scale(1.12); transition: transform 1.6s var(--ease), opacity .5s;
}
.menu-open .menu-media img { transform: scale(1); }
.menu-media img.is-swapping { opacity: .2; }
.menu-nav { display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gx) 60px clamp(30px, 6vw, 120px); }
.menu-nav ol { list-style: none; margin: 0; padding: 0; }
.menu-nav li { overflow: hidden; }
.menu-nav li > a {
  display: inline-flex; align-items: baseline; gap: 22px;
  font-size: clamp(36px, 5.2vw, 84px); line-height: 1.12;
  text-decoration: none; color: var(--bianco);
  transform: translateY(105%); transition: transform 1s var(--ease), color .3s, padding .5s var(--ease);
}
.menu-nav li > a small { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--nebbia); transform: translateY(-2.2em); }
.menu-open .menu-nav li > a { transform: none; }
.menu-open .menu-nav li:nth-child(1) a { transition-delay: .35s; }
.menu-open .menu-nav li:nth-child(2) a { transition-delay: .4s; }
.menu-open .menu-nav li:nth-child(3) a { transition-delay: .45s; }
.menu-open .menu-nav li:nth-child(4) a { transition-delay: .5s; }
.menu-open .menu-nav li:nth-child(5) a { transition-delay: .55s; }
.menu-open .menu-nav li:nth-child(6) a { transition-delay: .6s; }
.menu-open .menu-nav li:nth-child(7) a { transition-delay: .65s; }
.menu-nav ol:hover li > a { color: #5d5a56; }
.menu-nav ol li > a:hover, .menu-nav ol li > a:focus-visible { color: var(--bianco); padding-left: 24px; outline: none; }
.menu-foot { margin-top: 48px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--nebbia); opacity: 0; transition: opacity .8s .7s; }
.menu-foot p { margin: 0 0 6px; }
.menu-foot a { text-decoration: none; color: var(--bianco); }
.menu-foot a:hover { text-decoration: underline; }
.menu-open .menu-foot { opacity: 1; }

/* =========================================================
   CLICKABLE PHOTOS — black & white until hover
   ========================================================= */
.ph { position: relative; display: block; overflow: hidden; background: #1c1c1b; cursor: zoom-in; }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.001);
  transition: filter 1.1s var(--ease), transform 1.6s var(--ease);
}
.ph:hover img, .ph:focus-visible img, .ph.is-dev img { filter: grayscale(0) contrast(1); transform: scale(1.045); }
.ph:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Clip the <img>, never the observed element: Chrome's IntersectionObserver
   honours a target's own clip-path, so a clipped target would never reveal. */
.js .reveal-img .ph, .js .ph.reveal-img { background: transparent; }
.js .reveal-img img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease), filter 1.1s var(--ease), transform 1.6s var(--ease); }
.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--bianco); background: var(--noir); }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1) contrast(1.12) brightness(.72);
  animation: kenburns 14s var(--ease) both;
}
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45)); pointer-events: none; }
.hero-title {
  position: absolute; z-index: 2; right: var(--gx); top: 50%; transform: translateY(-46%);
  text-align: right; font-size: clamp(46px, 7.4vw, 136px); line-height: 1;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.6s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: 1.1s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.22s; }
.hero-title .line:nth-child(3) > span { animation-delay: 1.34s; }
.hero-title .line:nth-child(4) > span { animation-delay: 1.46s; }
.hero-title em { font-size: .7em; text-transform: none; letter-spacing: 0; }
@keyframes rise { to { transform: none; } }
.hero-meta {
  position: absolute; z-index: 2; left: var(--gx); bottom: 36px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: fade 1.2s 2s forwards;
}
.hero-meta p { margin: 0 0 6px; }
.rec { display: flex; align-items: center; gap: 10px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2) infinite; }
.timecode { font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade { to { opacity: .85; } }
.hero-scroll {
  position: absolute; z-index: 2; right: var(--gx); bottom: 30px;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; opacity: 0; animation: fade 1.2s 2.2s forwards;
}
.hero-scroll i { position: relative; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }

/* =========================================================
   MANIFESTO over fog
   ========================================================= */
.manifesto { position: relative; min-height: 115vh; display: flex; align-items: center; overflow: hidden; color: #e6e3de; background: var(--noir); }
.manifesto-bg { position: absolute; inset: -12% 0; will-change: transform; }
.manifesto-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5) contrast(1.15); }
.manifesto-text { position: relative; max-width: 540px; margin-left: calc(var(--gx) + 2vw); padding: 18vh 0; }
.manifesto-text .caps-sm { color: #fff; }
.manifesto .signoff { margin-top: 2.6em; font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: .02em; color: #fff; }

/* =========================================================
   ARTE PER IL CUORE
   ========================================================= */
.arte {
  position: relative; background: var(--pietra); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; align-items: center;
  padding: clamp(110px, 18vh, 200px) var(--gx) clamp(150px, 24vh, 260px);
}
.arte-media { grid-column: 1 / 7; position: relative; }
.arte-main { width: 82%; aspect-ratio: 3 / 4; }
.arte-small { position: absolute; width: 42%; aspect-ratio: 3 / 3.9; right: 0; bottom: -14%; box-shadow: 0 0 0 12px var(--pietra); }
.arte-text { grid-column: 8 / 13; }
.arte-text .lead { font-size: 15px; }

/* =========================================================
   STRADDLE (images across stone → fog)
   ========================================================= */
.straddle { position: relative; background: var(--noir); color: #e6e3de; padding-bottom: clamp(100px, 16vh, 180px); overflow: hidden; }
.straddle-top { height: clamp(120px, 16vw, 260px); background: var(--pietra); }
.straddle-bottom { position: absolute; left: 0; right: 0; bottom: 0; top: clamp(120px, 16vw, 260px); overflow: hidden; }
.straddle-bg { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.42) contrast(1.25); }
.straddle-imgs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; padding: 0 var(--gx); margin-top: calc(-1 * clamp(80px, 11vw, 190px)); }
.s-one { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.s-two { grid-column: 8 / 12; aspect-ratio: 3 / 4; margin-top: 10vw; }
.straddle-text { position: relative; z-index: 2; max-width: 520px; margin: clamp(80px, 12vw, 180px) var(--gx) 0 auto; padding-right: 3vw; }
.straddle-text .display-sm { color: #fff; }

/* =========================================================
   FILM STRIP
   ========================================================= */
.filmstrip { background: var(--noir); color: var(--nebbia); padding: 70px 0 90px; border-top: 1px solid #222; }
.filmstrip-head { display: flex; justify-content: space-between; gap: 20px; padding: 0 var(--gx) 26px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; }
.filmstrip-head p { margin: 0; }
.strip { overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: roll 80s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.frame {
  flex: none; width: clamp(220px, 22vw, 340px); padding: 34px 7px; background: #121211; color: #6f6b66;
}
.frame::before, .frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 9px, #d7d3cc 9px 19px, transparent 19px 27px);
  border-radius: 2px; opacity: .9;
}
.frame::before { top: 8px; }
.frame::after { bottom: 8px; }
.frame img { aspect-ratio: 3 / 2; height: auto; }
.frame:hover img { transform: scale(1.02); }
.fn { position: absolute; top: 19px; left: 12px; font-size: 8px; letter-spacing: .2em; z-index: 2; pointer-events: none; }
.frame:hover .fn { color: #fff; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { position: relative; background: #000; color: #d6d3ce; overflow: hidden; padding: clamp(110px, 18vh, 200px) var(--gx); }
.about-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(1) contrast(1.1); pointer-events: none; }
.about-inner { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; align-items: center; }
.arch { grid-column: 1 / 6; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.arch img { border-radius: inherit; }
.about-text { grid-column: 7 / 13; }
.about-text .display { color: #fff; }
.about-text .caps-sm { color: #fff; }
.hello { font-size: 17px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1.6em; }

/* =========================================================
   TRAITS
   ========================================================= */
.traits { background: var(--pietra-2); color: var(--ink); padding: clamp(90px, 14vh, 160px) var(--gx); position: relative; }
.traits-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(0,0,0,.18); }
.traits-list li {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 2vw;
  padding: clamp(18px, 2.6vw, 38px) 0; border-top: 1px solid rgba(0,0,0,.18);
  transition: opacity .5s, padding .7s var(--ease);
}
.traits-list .n { font-size: 10px; letter-spacing: .3em; color: var(--nebbia); }
.traits-list .t { font-size: clamp(34px, 6.4vw, 108px); transition: transform .8s var(--ease); }
.traits-list .it { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.5vw, 22px); color: #6b6863; letter-spacing: .02em; }
.traits-list:hover li { opacity: .3; }
.traits-list li:hover { opacity: 1; }
.traits-list li:hover .t { transform: translateX(2.5vw); }
.traits-float {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: clamp(200px, 19vw, 300px); aspect-ratio: 3 / 4; overflow: hidden;
  opacity: 0; transform: translate3d(-999px, -999px, 0);
  transition: opacity .4s;
}
.traits-float img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); scale: 1.2; transition: scale 1s var(--ease); }
.traits-float.is-on { opacity: 1; }
.traits-float.is-on img { scale: 1; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio { background: var(--bianco); color: var(--ink); padding: clamp(110px, 18vh, 200px) var(--gx); }
.portfolio-head { text-align: center; margin-bottom: clamp(70px, 10vw, 150px); }
.portfolio-head .scene { justify-content: center; }
.portfolio-head .scene::after { content: ""; width: 44px; height: 1px; background: currentColor; }
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; row-gap: clamp(50px, 7vw, 120px); }
.pg { margin: 0; }
.pg figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: #5f5c58; }
.pg figcaption span { font-family: var(--display); font-size: 18px; letter-spacing: .06em; color: var(--ink); }
.pg-1 { grid-column: 1 / 6;  grid-row: 1; } .pg-1 .ph { aspect-ratio: 3 / 4; }
.pg-2 { grid-column: 8 / 12; grid-row: 1; margin-top: 14vw; } .pg-2 .ph { aspect-ratio: 4 / 5; }
.pg-3 { grid-column: 2 / 7;  grid-row: 2; } .pg-3 .ph { aspect-ratio: 9 / 13; }
.pg-4 { grid-column: 8 / 13; grid-row: 2; align-self: center; } .pg-4 .ph { aspect-ratio: 14 / 9; }
.pg-5 { grid-column: 1 / 5;  grid-row: 3; margin-top: 6vw; } .pg-5 .ph { aspect-ratio: 7 / 10; }
.pg-6 { grid-column: 6 / 10; grid-row: 3; } .pg-6 .ph { aspect-ratio: 3 / 4; }
.pg-9 { grid-column: 10 / 13; grid-row: 3; margin-top: 16vw; } .pg-9 .ph { aspect-ratio: 7 / 10; }
.pg-7 { grid-column: 2 / 9;  grid-row: 4; } .pg-7 .ph { aspect-ratio: 3 / 2; }
.pg-8 { grid-column: 9 / 13; grid-row: 4; margin-top: 18vw; } .pg-8 .ph { aspect-ratio: 10 / 7; }
.portfolio-cta { text-align: center; margin-top: clamp(70px, 10vw, 140px); }

/* =========================================================
   QUOTE over leaf shadow
   ========================================================= */
.quote { position: relative; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; background: var(--pietra); color: var(--ink); padding: 120px var(--gx); }
.quote-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply; opacity: .85; pointer-events: none; }
.quote-text { position: relative; font-family: var(--display); text-transform: uppercase; font-size: clamp(38px, 6vw, 104px); line-height: 1.02; margin: 0 0 .7em; }
.quote-text em { font-size: .85em; text-transform: none; }
.quote-sub { position: relative; margin: 0; font-size: 11px; letter-spacing: .4em; }

/* =========================================================
   JOURNAL
   ========================================================= */
.journal { position: relative; background: var(--bianco); color: var(--ink); padding: clamp(120px, 20vh, 220px) var(--gx); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; }
.journal-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 140px; }
.journal-grid { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2vw; }
.story .ph { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.story-offset { margin-top: 14vw; }
.story-meta { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #6b6863; margin-bottom: 8px; }
.story h3 { font-family: var(--display); font-size: clamp(28px, 2.8vw, 44px); text-transform: uppercase; line-height: 1.05; }
.story h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.story h3 a:hover { background-size: 100% 1px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; background: var(--noir); color: #e6e3de; overflow: hidden; padding: clamp(120px, 18vh, 200px) var(--gx); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); opacity: .22; pointer-events: none; }
.contact-inner { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; align-items: start; }
.contact-head { grid-column: 1 / 6; }
.contact-head .display { color: #fff; font-size: clamp(40px, 4.6vw, 80px); }
.form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 2.4vw; padding-top: 12px; }
.f { position: relative; display: block; }
.f-full, .chips, .form-foot { grid-column: 1 / -1; }
.f input, .f textarea {
  width: 100%; background: transparent; color: #fff; border: 0; border-bottom: 1px solid rgba(255,255,255,.3);
  font: 300 18px/1.5 var(--serif); letter-spacing: .02em; padding: 20px 0 8px; border-radius: 0; resize: vertical;
  transition: border-color .4s;
}
.f span {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: #a29e98;
  transition: top .45s var(--ease), font-size .45s var(--ease), color .3s;
}
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: #fff; }
.f input:focus + span, .f input:not(:placeholder-shown) + span,
.f textarea:focus + span, .f textarea:not(:placeholder-shown) + span { top: 0; font-size: 8.5px; color: #fff; }
.f.is-error input { border-bottom-color: #fff; border-bottom-style: dashed; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 14px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: #a29e98; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; transition: background .35s, color .35s, border-color .35s; }
.chips label:hover span { border-color: #fff; }
.chips input:checked + span { background: #fff; color: var(--noir); border-color: #fff; }
.chips input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: 30px; margin-top: 10px; }
.btn-rsvp {
  position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; overflow: hidden;
  font: 500 11px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase;
}
.btn-rsvp::before { content: ""; position: absolute; inset: 0; background: #fff; border-radius: 50%; transform: scale(0); transition: transform .7s var(--ease); }
.btn-rsvp span { position: relative; padding-left: .42em; transition: color .4s; }
.btn-rsvp:hover::before, .btn-rsvp:focus-visible::before { transform: scale(1); }
.btn-rsvp:hover span, .btn-rsvp:focus-visible span { color: var(--noir); }
.form-note { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: #fff; max-width: 320px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--noir); color: #bdb9b3; padding: 100px var(--gx) 34px; border-top: 1px solid #222; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; }
.footer .caps-sm { font-size: 11px; letter-spacing: .34em; color: #fff; margin-bottom: 1.6em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 4px; }
.footer li a, .totop { text-decoration: none; transition: color .3s, padding .4s var(--ease); }
.footer li a:hover { color: #fff; padding-left: 8px; }
.footer-note { justify-self: end; text-align: right; max-width: 360px; }
.footer-note p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: #e6e3de; letter-spacing: .01em; }
.totop { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; }
.totop:hover { color: #fff; }
.footer-logo { display: block; width: min(1000px, 78%); height: auto; margin: 90px auto 40px; opacity: .1; user-select: none; pointer-events: none; }
.footer-copy { text-align: center; margin: 0; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: #6b6863; }

/* =========================================================
   LIGHTBOX (fully hidden + non-interactive when closed)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 9600;
  background: #080808; color: var(--bianco);
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.lightbox.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .5s var(--ease), visibility 0s; }
.lb-stage { position: absolute; inset: 70px 90px 90px; display: flex; align-items: center; justify-content: center; }
.lb-img {
  /* fit inside the screen (never upscaled, never cropped) */
  display: block; width: auto; height: auto;
  max-width: calc(100vw - 180px); max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  object-fit: contain; cursor: zoom-out;
  filter: grayscale(1); opacity: 0;
  transition: filter 1.1s var(--ease), opacity .6s var(--ease);
}
.lb-img.is-loaded { opacity: 1; }
.lb-img:hover, .lb-img.is-dev { filter: grayscale(0); }
.lb-bar { position: absolute; left: 90px; right: 90px; bottom: 30px; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: #a29e98; }
.lb-bar p { margin: 0; }
.lb-cap { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 18px; color: #e6e3de; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .7; transition: opacity .3s, transform .4s var(--ease); font: 300 26px/1 var(--sans); padding: 18px; }
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-close { top: 18px; right: 24px; font-size: 10px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translate(-6px, -50%); }
.lb-next:hover { transform: translate(6px, -50%); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .menu { grid-template-columns: 1fr; }
  .menu-media { position: absolute; inset: 0; opacity: .22; }
  .menu-nav { position: relative; }

  .arte { grid-template-columns: 1fr; row-gap: 120px; }
  .arte-media, .arte-text { grid-column: 1 / -1; }
  .arte-main { width: 78%; }

  .s-one { grid-column: 1 / 8; }
  .s-two { grid-column: 8 / 13; }
  .straddle-text { margin-left: var(--gx); }

  .about-inner { grid-template-columns: 1fr; row-gap: 70px; }
  .arch, .about-text { grid-column: 1 / -1; }
  .arch { width: min(420px, 80%); }

  .journal { grid-template-columns: 1fr; row-gap: 70px; }
  .journal-head, .journal-grid { grid-column: 1 / -1; position: static; }

  .contact-inner { grid-template-columns: 1fr; row-gap: 60px; }
  .contact-head, .form { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .header { padding: 20px var(--gx); }
  .logo { gap: 6px; }
  .logo-img { width: 124px; }
  .header.is-solid .logo-img { width: 104px; }
    .menu-btn-label { display: none; }

  .hero-title { left: var(--gx); right: var(--gx); top: auto; bottom: 120px; transform: none; font-size: clamp(34px, 10.6vw, 60px); }
  .hero-media img { object-position: 30% 35%; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6)); }
  .hero-meta p:last-child { display: none; }

  .manifesto { min-height: auto; }
  .manifesto-text { margin: 0 var(--gx); padding: 120px 0; }

  .arte { padding-bottom: 120px; }
  .arte-small { bottom: -18%; width: 46%; box-shadow: 0 0 0 7px var(--pietra); }

  .straddle-imgs { row-gap: 0; }
  .s-one { grid-column: 1 / 10; }
  .s-two { grid-column: 5 / 13; margin-top: -10vw; }
  .straddle-text { margin: 80px var(--gx) 0; padding: 0; }

  .frame { width: 200px; }
  .filmstrip-head { flex-direction: column; gap: 6px; font-size: 9px; }

  .traits-list li { grid-template-columns: 34px 1fr; }
  .traits-list .it { grid-column: 2; }

  .pgrid { grid-template-columns: repeat(6, 1fr); row-gap: 56px; }
  .pg { grid-row: auto !important; margin-top: 0 !important; }
  .pg-1, .pg-4, .pg-7 { grid-column: 1 / -1; }
  .pg-2, .pg-6 { grid-column: 2 / -1; }
  .pg-3, .pg-8 { grid-column: 1 / 6; }
  .pg-5 { grid-column: 1 / 4; }
  .pg-9 { grid-column: 4 / -1; margin-top: 30vw !important; }

  .journal-grid { grid-template-columns: 1fr; row-gap: 60px; }
  .story-offset { margin-top: 0; margin-left: 14vw; }

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

  .footer-logo { width: 92%; margin-top: 70px; }
  .lb-stage { inset: 64px 10px 140px; }
  .lb-img { max-width: calc(100vw - 20px); max-height: calc(100vh - 204px); max-height: calc(100dvh - 204px); }
  .lb-bar { left: 20px; right: 20px; bottom: 74px; flex-direction: column; gap: 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: none; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .strip { overflow-x: auto; }
  .strip-track { animation: none !important; }
  .grain { animation: none !important; }
}
