/* ============================================================
   ZION ELE — experimental minimal editorial
   black bg / white type / serif accents
   ============================================================ */

@font-face {
  font-family: "Ivy Ora Display";
  src: url("assets/IvyOraDisplay-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/Geist-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #050505;
  --white: #f2efe9;
  --grey: #8a8a86;
  --line: rgba(242, 239, 233, 0.18);
  --sans: "Geist", Helvetica, Arial, sans-serif;
  --display: "Archivo", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

/* visually hidden but readable by search engines & screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* protect artwork: block native drag-to-save on all images */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* stop iOS "Save Image" long-press menu */
}

html { scroll-behavior: smooth; scroll-padding-top: 3.75rem; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--white); color: var(--black); }

a { color: inherit; text-decoration: none; }
sup, sub { font-size: 0.55em; letter-spacing: 0.1em; }

.serif-i { font-family: var(--serif); font-style: italic; text-transform: lowercase; letter-spacing: 0; }
.serif { font-family: var(--serif); }

/* ============ PLACEHOLDER IMAGE FRAMES ============ */
/* grainy grayscale blocks — swap for real photos of his work */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, #3a3a38 0%, #191918 55%, #0c0c0b 100%);
  filter: grayscale(1);
}
.ph::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 0.6em 1em;
  white-space: nowrap;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ============ LANDING ============ */
.landing {
  position: relative;
  height: 100vh;
  height: 100svh; /* stable on mobile — no jump when the URL bar shows/hides */
  overflow: hidden;
}
.landing__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.7);
}
.landing__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5,5,5,0.15) 0%, rgba(5,5,5,0.55) 100%);
}
.landing__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* animate children, not the wrapper: an animated-opacity ancestor isolates
   the blend group and the logo's screen blend stops working */
.landing__logo,
.landing__tagline {
  opacity: 0;
  animation: landingIn 1.6s 0.3s ease forwards;
}
@keyframes landingIn { to { opacity: 1; } }

.landing__logo {
  /* pre-inverted transparent SVG — no filter/blend hacks needed
     (the old invert()+screen-blend combo rendered with a black box in Safari) */
  width: clamp(64px, 6.3vw, 88px);
  height: auto;
}
.landing__tagline {
  margin-top: 2.5rem;
  max-width: 304px; /* wraps "WORN AS [ WORD ]" onto its own row */
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #fff;
}
.landing__bracket { color: var(--grey); }
.landing__rest { visibility: hidden; }
.landing__rest.is-on { visibility: visible; }
#wordCycle { font-weight: 400; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.25rem;
  padding: 1.1rem var(--pad);
  font-size: 12px;
  letter-spacing: 0.2em;
  mix-blend-mode: difference;
}
.nav__left { display: flex; flex-direction: column; gap: 0.45em; }
.nav__logo { font-weight: 400; letter-spacing: 0.15em; }
.nav__loc { letter-spacing: 0.2em; }
.nav__loc:hover { opacity: 0.55; }
.nav__coords { color: var(--grey); letter-spacing: 0.12em; }
/* right-anchored group: the typing wordmark on the left can't shift it */
.nav__links { margin-left: auto; }
.nav__slash {
  display: inline-block;
  transform: skewX(-12deg) scaleY(1.4);
  transform-origin: center;
  color: var(--white);
}
.nav__logo #logoType { font-variant-ligatures: none; }
.nav__cursor {
  display: inline-block;
  margin-left: 0.1em;
  animation: cursorBlink 1.1s steps(2, start) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }
.nav__links { display: flex; gap: 2.25rem; }
.nav__links a:hover, .nav__ig:hover { opacity: 0.55; }

/* hamburger — hidden on desktop */
.nav__burger { display: none; }

/* ============ WORKING TOGETHER — accordion on banner ============ */
/* curtain reveal: the wrapper clips the banner, which JS pins to the
   viewport bottom until the section scrolls into its natural place */
.together-wrap { overflow: hidden; }
.together { will-change: transform; }

.together {
  position: relative;
  overflow: hidden;
  /* fixed banner: opening items never resizes it — overflow fades out below */
  height: 100vh;
  height: 100svh;
  padding: clamp(6rem, 12vw, 10rem) var(--pad);
  background: #0c0c0b;
}
/* dark fade at the bottom, like the gallery */
.together::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 168px;
  background: linear-gradient(to bottom, transparent, var(--black) 85%);
  pointer-events: none;
  z-index: 2;
}
/* the art lives on a constant-height layer, so the section growing
   (accordion opening) reveals more of it instead of rescaling it */
.together::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150vh;
  background: url("assets/banner.jpg?v=2") center top / cover no-repeat;
}
.together__title,
.together__list {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.together__title {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 72px;
}
.together__item { border-bottom: 1px solid var(--line); }
.together__body { overflow: hidden; }
.together__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.7rem 0;
  cursor: pointer;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.15em;
  list-style: none;
}
.together__item summary::-webkit-details-marker { display: none; }
.together__item summary:focus { outline: none; }
.together__item summary:hover { opacity: 0.7; }
.together__label {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.together__plus {
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1;
}
.together__plus::before { content: "+"; }
.together__item[open] .together__plus::before { content: "−"; }
.together__item p {
  max-width: 100%;
  padding: 0.4rem 0 2.2rem;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.25em;
}
.section-head__num { color: var(--grey); }
.section-head__label {
  background: var(--white);
  color: var(--black);
  padding: 0.15em 0.5em;
  font-weight: 400;
}
.section-head__year { color: var(--grey); }

/* ============ ABOUT — portrait + statement ============ */
.about__stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
}
.about__portrait {
  display: block;
  width: min(28vw, 392px);
  height: auto;
  filter: grayscale(1) brightness(0.9);
}
.about__lead,
.about__tail {
  position: absolute;
  z-index: 2;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.05em;
  color: #fff;
  font-size: clamp(20px, 2.15vw, 32px);
}
.about__lead {
  top: 21vh;
  left: var(--pad);
  max-width: 41rem;
}
.about__tail {
  top: 61%;
  right: var(--pad);
  text-align: left;
  max-width: 29rem;
}

/* texts: slide-in-bottom (à la Webflow preset) — 100px rise, outQuart, 1s */
.about__lead.reveal,
.about__tail.reveal {
  transform: translateY(calc(100px + var(--py, 0px)));
  transition:
    opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s,
    transform 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}
.about__lead.reveal.is-in,
.about__tail.reveal.is-in { transform: translateY(var(--py, 0px)); }

/* portrait keeps the gallery-style blur fade */
.about__portrait.reveal {
  filter: grayscale(1) brightness(0.9) blur(18px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.6s ease;
}
.about__portrait.reveal.is-in { filter: grayscale(1) brightness(0.9) blur(0); }
/* hovering blurs it back softly (parallax handled in JS) */
.about__portrait.reveal.is-in:hover { filter: grayscale(1) brightness(0.9) blur(10px); }

@media (max-width: 760px) {
  .about__stage {
    position: relative;
    flex-direction: column;
    min-height: auto;
    padding: clamp(4rem, 14vw, 6rem) var(--pad);
    align-items: center;
    justify-content: center;
  }
  /* image as the centered backdrop, text overlaid top & bottom */
  .about__portrait {
    width: auto;
    height: 48vh;
    object-fit: cover;
    margin: 0;
  }
  .about__lead, .about__tail {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    z-index: 2;
    max-width: none;
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.3;
    transform: none !important; /* drop desktop parallax offset on mobile */
  }
  .about__lead { top: 8%; }
  .about__tail { bottom: 8%; }
}

.placeholder-note {
  padding: 0 var(--pad);
  font-size: 8px;
  color: var(--grey);
  letter-spacing: 0.15em;
}

/* ============ WORK — overlapping editorial collage ============ */
.work { padding-bottom: 6rem; }
.work__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: clamp(5rem, 11vw, 10rem);
  align-items: start;
  /* centered canvas — sized so row 2 still peeks into the first screen */
  max-width: 1320px;
  margin: 0 auto;
  /* extra bottom padding keeps the translated items inside the fade */
  padding: clamp(6rem, 10vw, 9rem) var(--pad) clamp(11rem, 17vw, 15rem);
}
/* collage placement — loose scatter: rows use different columns and sizes
   so nothing lines up vertically (--ty offsets applied via .reveal) */
.wi-1 { grid-column: 2 / span 3;  grid-row: 1; z-index: 1; --ty: 26%; }
.wi-3 { grid-column: 6 / span 3;  grid-row: 1; z-index: 2; }
.wi-2 { grid-column: 10 / span 3; grid-row: 1; z-index: 1; --ty: 4%; }
.wi-4 { grid-column: 1 / span 3;  grid-row: 2; z-index: 1; --ty: 50%; }
.wi-5 { grid-column: 5 / span 3;  grid-row: 2; z-index: 2; --ty: 16%; }
.wi-6 { grid-column: 9 / span 3;  grid-row: 2; z-index: 1; --ty: 40%; }
.work__item { transform: translateY(var(--ty, 0%)); }

/* dark gradient swallowing the bottom of the grid */
.work__grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--black) 82%);
  pointer-events: none;
  z-index: 5;
}

/* scroll reveal: work images arrive blurred + transparent */
.work__item.reveal {
  filter: blur(18px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1.2s ease;
}
.work__item.reveal.is-in { filter: blur(0); }

.ph--sq { aspect-ratio: 1; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--hero { }

/* real photos — b/w editorial treatment */
.pic {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
}
.pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02) brightness(0.72);
}

.work__item .ph,
.work__item .pic {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work__item:hover .ph,
.work__item:hover .pic { transform: scale(0.97); }


/* ============ QUOTE ============ */
.quote {
  position: relative;
  padding: 32px 0 7rem;
}
/* face mark floating right of the form — follows the mouse (parallax) */
.quote__face {
  position: absolute;
  top: 72px;
  right: clamp(2rem, 11vw, 12rem);
  width: clamp(152px, 17vw, 240px);
  filter: invert(1);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.quote__heading,
.press__heading {
  padding: 0 var(--pad);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.quote__attach {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.25em;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.3s;
}
.quote__attach:hover { border-color: var(--white); }
.quote__attach:disabled { opacity: 0.4; cursor: default; }
.quote__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.quote__previews figure { position: relative; margin: 0; }
.quote__previews img {
  display: block;
  height: 96px; /* fixed preview height */
  width: auto;
  filter: grayscale(1);
}
.quote__previews button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.8);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.quote__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem clamp(2rem, 5vw, 4rem);
  padding: 0 var(--pad);
  max-width: 900px;
}
.field { display: flex; flex-direction: column; gap: 0.6rem; }
/* author display:flex would otherwise override the UA [hidden] rule */
.field[hidden] { display: none; }
.field__other { margin-top: 0.6rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--grey);
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 0.6rem 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; }

/* preferred-days multi-select chips (Mexico mode) */
/* scoped under .daychips so they outrank the generic ".field label" color */
.daychips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* author display:flex would otherwise override the UA [hidden] rule */
.daychips[hidden] { display: none; }
.daychips .daychip {
  border: 1px solid var(--line);
  color: var(--white);
  padding: 0.7rem 1rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.daychips .daychip input { position: absolute; opacity: 0; pointer-events: none; }
.daychips .daychip:hover { border-color: var(--white); }
.daychips .daychip:has(input:checked) {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
/* keyboard focus ring for the hidden checkbox */
.daychips .daychip:focus-within { outline: 1px solid var(--white); outline-offset: 2px; }
.field select option { background: var(--black); }
.field input::placeholder,
.field textarea::placeholder { color: #55534f; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--white); }

.quote__submit {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3em;
  padding: 1.1rem 2.25rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.quote__submit:hover { background: transparent; color: var(--white); }
.quote__arrow { transition: transform 0.3s; }
.quote__submit:hover .quote__arrow { transform: translateX(6px); }

.quote__note {
  grid-column: 1 / -1;
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--grey);
}

/* ============ PRESS ============ */
.press { padding-bottom: 6rem; }
.press__heading { margin-bottom: 32px; }
.press__list {
  list-style: none;
  padding: 0 var(--pad) 1.5rem;
}
.press__list li {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.press__list li:first-child { border-top: 1px solid var(--line); }
.press__year { color: var(--grey); flex-shrink: 0; }
.press__title { flex: 1; font-weight: 400; transition: opacity 0.3s; }
.press__title:hover { opacity: 0.55; text-decoration: underline; text-underline-offset: 0.25em; }
.press__link { color: var(--grey); flex-shrink: 0; }
.press__link:hover { color: var(--white); }

@media (max-width: 760px) {
  .press__list li { flex-wrap: wrap; gap: 0.75rem; }
  .press__title { flex-basis: 100%; order: 3; }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem var(--pad);
  display: flex;
  justify-content: center;
}
.footer__powered {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__gl {
  width: 12px;
  height: auto;
  display: block;
}

/* ============ REVEAL ON SCROLL ============ */
/* --ty preserves per-item collage offsets through the reveal transition */
.reveal {
  opacity: 0;
  transform: translateY(calc(var(--ty, 0%) + 28px));
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(var(--ty, 0%)); }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .nav__links { gap: 1.1rem; }
  .nav__coords { display: none; }

  .work__grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; column-gap: 1rem; }
  .work__grid::after { display: none; }
  .together { height: auto; }
  .together::after { display: none; }
  .quote__face { display: none; }
  .wi-1, .wi-2, .wi-3, .wi-4, .wi-5, .wi-6 {
    grid-column: auto / span 1;
    grid-row: auto;
    --ty: 0%;
  }

  .quote__form { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 0.5rem; }
}

/* ============ CUSTOM CURSOR — dot + trailing ring (mouse devices only) ============ */
@media (pointer: fine) {
  * { cursor: none !important; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    left: -100px;
    top: -100px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: left, top;
  }
  .cursor-dot.is-visible,
  .cursor-ring.is-visible { opacity: 1; }

  .cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    z-index: 9999;
    transition: background 0.2s, width 0.2s, height 0.2s, opacity 0.2s;
  }
  .cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--white);
    z-index: 9998;
    transition:
      width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      background 0.25s,
      border-color 0.25s,
      opacity 0.2s;
  }

  /* interactive hover: ring grows and fills faintly, dot shrinks */
  .cursor-dot.hovered { width: 4px; height: 4px; }
  .cursor-ring.hovered {
    width: 64px;
    height: 64px;
    background: rgba(242, 239, 233, 0.08);
    border-color: rgba(242, 239, 233, 0.6);
  }
}

/* ============ HERO CURTAIN — landing pinned, content scrolls over it ============ */
.landing {
  position: sticky;
  top: 0;
  z-index: 0;
}
.page-body {
  position: relative;
  z-index: 1;
  background: var(--black);
}

/* ============ NAV — scrolled state ============ */
/* background lives on a pseudo-element so it can shrink
   without the nav box (and its content) ever moving */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease, bottom 0.4s ease;
}
.nav--scrolled { mix-blend-mode: normal; }
.nav--scrolled::before {
  opacity: 1;
  bottom: 8px;
}


/* first gallery hidden — using the horizontal filmstrip instead */
.work { display: none; }

/* ============ WORK ALT — filmstrip collage ============ */
.work-alt {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 10rem);
  overflow: hidden;
}

.work-alt__intro {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding: 0 var(--pad);
}
.work-alt__caption {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  margin: 0 auto;
}
.work-alt__strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112%;
  margin-left: -6%;
}
/* dark fade over the lower part of the photos, like the main gallery */
.work-alt__strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -88px;
  height: 68%;
  background: linear-gradient(to bottom, transparent, var(--black) 78%);
  pointer-events: none;
  z-index: 5;
}
.work-alt__piece {
  display: block;
  width: auto;
  position: relative;
  border-radius: 16px;
  filter: grayscale(1) brightness(0.78);
}
/* varied heights + slight overlaps, alternating stacking */
.work-alt__piece:nth-child(1) { height: 20vw; z-index: 1; }
.work-alt__piece:nth-child(2) { height: 30vw; z-index: 2; margin-left: -2.5vw; }
.work-alt__piece:nth-child(3) { height: 24vw; z-index: 1; margin-left: -2vw; }
.work-alt__piece:nth-child(4) { height: 35vw; z-index: 3; margin-left: -2.5vw; }
.work-alt__piece:nth-child(5) { height: 26vw; z-index: 1; margin-left: -2vw; }
.work-alt__piece:nth-child(6) { height: 20vw; z-index: 2; margin-left: -2.5vw; }
.work-alt__piece:nth-child(7) { height: 31vw; z-index: 1; margin-left: -2vw; }
.work-alt__piece:nth-child(8) { height: 22vw; z-index: 2; margin-left: -2.5vw; }

/* same blur reveal language as the main gallery */
.work-alt__piece.reveal {
  filter: grayscale(1) brightness(0.78) blur(18px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1.2s ease;
}
.work-alt__piece.reveal.is-in { filter: grayscale(1) brightness(0.78) blur(0); }

@media (max-width: 760px) {
  /* horizontal carousel stays horizontal — the bug was overflow-x:auto with
     no overflow-y set, which per spec makes the cross-axis 'auto' too, and
     the flex-column parent (justify-content:center + min-height:100svh) was
     squeezing the strip shorter than its cards, clipping them and adding an
     unwanted vertical inner scroll that fought the page scroll. */
  .work-alt {
    overflow: visible;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .work-alt__intro { margin-bottom: clamp(2.5rem, 9vw, 4rem); }
  .work-alt__strip {
    width: 100%;
    margin-left: 0;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden; /* pin the cross-axis: never clips, never scrolls */
    justify-content: flex-start;
    padding: 0 var(--pad);
    gap: 0.75rem;
    /* horizontal swipes stay here; vertical drags fall through to the page */
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .work-alt__strip::-webkit-scrollbar { display: none; }
  .work-alt__strip::after { display: none; } /* desktop-only bottom fade */
  .work-alt__piece,
  .work-alt__piece:nth-child(n) {
    height: 48vh;
    flex-shrink: 0;
    margin-left: 0;
  }
}


/* ============ LIGHTBOX (filmstrip enlarge view) ============ */
.work-alt__piece { cursor: pointer; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(5, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(90vw, 900px);
  max-height: 88vh;
  border-radius: 8px;
  filter: grayscale(1); /* keep the b/w treatment */
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s;
}
.lightbox__close:hover { border-color: var(--white); }


/* ============ NAV — mobile hamburger ============ */
@media (max-width: 760px) {
  .nav { mix-blend-mode: normal; }

  .nav__slash, .nav__ig { display: none; }

  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 60;
  }
  .nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
  }
  /* open → X */
  /* bars sit (gap + bar-height)/2 = (8 + 2)/2 = 5px from center */
  body.nav-open .nav__burger span:first-child { transform: translateY(5px) rotate(45deg); }
  body.nav-open .nav__burger span:last-child  { transform: translateY(-5px) rotate(-45deg); }

  /* full-screen menu overlay */
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    margin-left: 0;
    background: var(--black);
    font-size: 24px;
    letter-spacing: 0.15em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  body.nav-open .nav__links { opacity: 1; visibility: visible; }
}