/* ============ base ============ */
:root {
  --bg: #0c0c0e;
  --bg-soft: #131316;
  --ink: #ececea;
  --ink-dim: #9b9b97;
  --accent: #d8b98a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

::selection { background: var(--accent); color: #111; }

/* ============ preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.done { transform: translateY(-100%); }
.preloader-name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  letter-spacing: 0.35em;
  display: flex;
}
.preloader-name span {
  opacity: 0; transform: translateY(0.6em);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.preloader-name .sp { width: 0.6em; }
.preloader-sub {
  font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0; animation: rise 0.8s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============ cursor ============ */
.cursor {
  position: fixed; z-index: 99; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
}
.cursor span {
  font-size: 0; letter-spacing: 0.15em; text-transform: uppercase;
  color: #111; transition: font-size 0.2s;
}
.cursor.grow {
  width: 72px; height: 72px;
  background: var(--ink);
  mix-blend-mode: normal;
}
.cursor.grow span { font-size: 0.65rem; }
@media (hover: none) { .cursor { display: none; } }

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s, padding 0.4s;
}
.nav.visible { transform: translateY(0); }
.nav.solid {
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: 0.04em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid rgba(236, 236, 234, 0.3);
  padding: 8px 18px; border-radius: 99px;
  color: var(--ink) !important;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover { background: var(--ink); color: #111 !important; }

/* ============ hero ============ */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: -12% 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 18s ease-out forwards;
  transform-origin: center 35%;
}
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,12,14,0.45), rgba(12,12,14,0.08) 35%, rgba(12,12,14,0.05) 60%, rgba(12,12,14,0.85));
}
.hero-content { position: relative; text-align: center; padding: 0 20px; }
.hero-kicker span, .hero-tag span { display: inline-block; }
.hero-kicker {
  font-size: 0.78rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: 1.02; letter-spacing: 0.04em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.loaded .hero-title .line:nth-child(1) .word { transition-delay: 0.15s; }
.loaded .hero-title .line:nth-child(2) .word { transition-delay: 0.3s; }
.loaded .hero-title .word { transform: translateY(0); }
.hero-tag { margin-top: 22px; color: rgba(236,236,234,0.85); font-size: clamp(0.9rem, 1.6vw, 1.1rem); }
.reveal-line { overflow: hidden; }
.reveal-line span { transform: translateY(120%); transition: transform 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.loaded .reveal-line span { transform: translateY(0); }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 0.8s 1.4s;
}
.loaded .hero-scroll { opacity: 1; }
.hero-scroll-text { font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-dim); }
.hero-scroll-bar {
  width: 1px; height: 56px; background: rgba(236,236,234,0.25);
  position: relative; overflow: hidden;
}
.hero-scroll-bar::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--ink);
  animation: scrolldrop 2s ease-in-out infinite;
}
@keyframes scrolldrop { 60% { top: 100%; } 100% { top: 100%; } }

/* ============ scroll reveals ============ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* The curtain reveal is driven by .in on the WRAPPER (.story-media): Chromium's
   IntersectionObserver reports zero visibility for a fully clip-pathed target,
   so the clipped element itself must never be the observed one. */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  height: 100%;
}
.in > .img-reveal { clip-path: inset(0 0 0 0); }
.img-reveal img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.in > .img-reveal img { transform: scale(1.04); }

/* ============ intro ============ */
.intro {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(90px, 14vw, 180px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.intro-text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  line-height: 1.4;
}
.intro-text .w {
  display: inline-block; opacity: 0.12;
  transition: opacity 0.45s ease;
}
.intro-text .w.lit { opacity: 1; }
.intro-stats {
  margin-top: clamp(48px, 7vw, 90px);
  display: flex; justify-content: center; gap: clamp(36px, 8vw, 110px);
}
.intro-stats div { display: flex; flex-direction: column; gap: 4px; }
.intro-stats strong {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--accent);
}
.intro-stats span {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============ stories ============ */
.story {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 90px); align-items: center;
  padding: clamp(60px, 9vw, 130px) clamp(20px, 5vw, 64px);
  max-width: 1440px; margin: 0 auto;
}
.story.flip { grid-template-columns: 1fr 1.15fr; }
.story.flip .story-media { order: 2; }
.story-media { overflow: hidden; border-radius: 4px; position: relative; }
.story-media.tall { aspect-ratio: 3 / 3.8; }
.story-media.wide { aspect-ratio: 3 / 2.4; }
/* Overscan so the parallax translate never exposes the background */
.story-media .img-reveal { position: absolute; inset: -8% 0; height: auto; }
.parallax-inner img { will-change: transform; }
.story-index {
  display: block; font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.story-text h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.12;
  margin-bottom: 22px;
}
.story-text p { color: var(--ink-dim); max-width: 44ch; margin-bottom: 28px; }
.story-link {
  color: var(--ink); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(236,236,234,0.3); padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.story-link:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 800px) {
  .story, .story.flip { grid-template-columns: 1fr; }
  .story.flip .story-media { order: 0; }
}

/* ============ filmstrip ============ */
.strip {
  overflow: hidden; padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px solid rgba(236,236,234,0.07);
  border-bottom: 1px solid rgba(236,236,234,0.07);
}
.strip-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 26s linear infinite;
}
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track img {
  height: clamp(150px, 22vw, 240px); width: auto; border-radius: 3px;
  filter: saturate(0.92);
  transition: filter 0.4s, transform 0.4s;
}
.strip-track img:hover { filter: saturate(1.1); transform: scale(1.03); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ gallery ============ */
.gallery-section { padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 64px); max-width: 1560px; margin: 0 auto; }
.gallery-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(32px, 5vw, 56px);
}
.gallery-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  background: none; border: 1px solid rgba(236,236,234,0.18);
  color: var(--ink-dim); font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 99px; cursor: pointer;
  transition: all 0.3s;
}
.filter:hover { border-color: rgba(236,236,234,0.5); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #111; }

.masonry { columns: 3 320px; column-gap: 22px; }
.m-item {
  break-inside: avoid; margin-bottom: 22px;
  position: relative; overflow: hidden; border-radius: 4px;
  cursor: pointer;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.m-item.in { opacity: 1; transform: translateY(0); }
.m-item.hidden { display: none; }
.m-item img {
  width: 100%; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
  background: var(--bg-soft);
}
.m-item:hover img { transform: scale(1.05); }
.m-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(10,10,12,0.85), transparent);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.m-item:hover figcaption { opacity: 1; transform: translateY(0); }
.m-item .t { font-family: var(--serif); font-size: 1.05rem; }
.m-item .l { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }

/* ============ finale ============ */
.finale {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.finale-bg { position: absolute; inset: -14% 0; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; }
.finale::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,12,14,0.75), rgba(12,12,14,0.25) 45%, rgba(12,12,14,0.8));
}
.finale-content { position: relative; z-index: 1; padding: 0 20px; max-width: 900px; }
.finale-content h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 4.8vw, 3.8rem); line-height: 1.18; margin-bottom: 18px;
}
.finale-content p { color: rgba(236,236,234,0.75); font-size: 0.95rem; }

/* ============ about ============ */
.about { padding: clamp(90px, 13vw, 170px) clamp(20px, 5vw, 64px); }
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 26px;
}
.about p { color: var(--ink-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.85; }

/* ============ contact ============ */
.contact {
  border-top: 1px solid rgba(236,236,234,0.08);
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 64px) 40px;
  text-align: center;
}
.contact-kicker {
  font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
.contact-mail {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 4.5vw, 3.6rem);
  color: var(--ink); text-decoration: none;
  display: inline-block; position: relative;
}
.contact-mail::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--ink-dim);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.contact-mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-bottom {
  margin-top: clamp(70px, 9vw, 120px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: var(--ink-dim);
}
.contact-bottom a { color: var(--ink-dim); text-decoration: none; transition: color 0.3s; }
.contact-bottom a:hover { color: var(--ink); }

/* ============ lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 8, 10, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure {
  max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; gap: 14px;
}
.lightbox img {
  max-width: 92vw; max-height: 80vh; object-fit: contain;
  border-radius: 3px;
  transform: scale(0.97); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.45s;
}
.lightbox.open img { transform: scale(1); opacity: 1; }
.lightbox figcaption {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 0.85rem; color: var(--ink-dim);
}
.lightbox button {
  position: absolute; background: none; border: none;
  color: var(--ink); font-size: 1.6rem; cursor: pointer;
  padding: 16px; opacity: 0.6; transition: opacity 0.3s;
  font-family: var(--sans);
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 14px; right: 18px; font-size: 2.2rem !important; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ============ misc ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
