/* =========================================================
   TZ — v2 home
   ========================================================= */

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
/* Three channels, one per thing he does. They share the viewport evenly
   until the cursor picks one, then that channel takes the room back from
   the other two. The name floats over all three on a single line, so it
   can never collide with anything underneath it. */
.hero{
  position: relative;
  min-height: 100svh;
}

.hero__panels{
  position: absolute; inset: 0;
  display: flex;
}
.pan{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  transition: flex-grow 1s var(--ease);
}
.pan:last-child{ border-right: 0; }
.pan__media{ position: absolute; inset: 0; }
.pan__media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.74);
  transform: scale(1.09);
  transition: filter 1.1s var(--ease), transform 1.5s var(--ease);
}
/* a dark band through the middle so the name stays legible over any photo */
.pan::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,11,.38) 0%,
    rgba(10,10,11,.7) 40%,
    rgba(10,10,11,.7) 60%,
    rgba(10,10,11,.44) 100%);
  pointer-events: none;
}

.pan__tag,
.pan__foot{ position: absolute; left: clamp(16px, 2.2vw, 34px); z-index: 2; }
.pan__tag{
  top: clamp(100px, 15vh, 156px);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color .5s var(--ease);
}
.pan__foot{
  bottom: clamp(78px, 12vh, 118px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(16px, 1.6vw, 26px);
  letter-spacing: -.02em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .5s var(--ease), transform .8s var(--ease);
}
.pan__foot i{
  display: block; width: clamp(18px, 2vw, 34px); height: 1px;
  background: currentColor;
  transform: scaleX(.4); transform-origin: left;
  transition: transform .7s var(--ease);
}

@media (hover: hover) and (pointer: fine){
  .hero__panels:hover .pan{ flex-grow: .8; }
  .hero__panels .pan:hover{ flex-grow: 1.75; }
  .pan:hover .pan__media img{
    filter: grayscale(.2) contrast(1.02) brightness(.9);
    transform: scale(1);
  }
  .pan:hover .pan__tag{ color: var(--accent); }
  .pan:hover .pan__foot{ color: var(--ink); transform: translateX(8px); }
  .pan:hover .pan__foot i{ transform: scaleX(1); }
}

/* no z-index here on purpose: an explicit stacking context would cut the
   name off from the photos it is supposed to blend against */
.hero__mid{
  position: relative;
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero__name{
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  /* Syne runs about 16.3em wide for this string, so 5.4vw is the largest
     size that still clears the gutters on one line */
  font-size: clamp(30px, 5.4vw, 128px);
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  mix-blend-mode: difference;
}
.hero__blurb{
  margin: clamp(18px, 2.8vh, 34px) auto 0;
  max-width: 46ch;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 760px){
  /* stacked, the name can no longer float over the panels without landing
     on their labels, so it moves above them and the panels take the rest */
  .hero{ display: flex; flex-direction: column; }
  .hero__mid{
    order: -1;
    min-height: 0;
    place-content: start center;
    padding: clamp(96px, 17vh, 150px) var(--gutter) clamp(22px, 4vh, 38px);
  }
  .hero__name{ white-space: normal; font-size: 10vw; line-height: .92; }
  .hero__blurb{ max-width: 34ch; }

  .hero__panels{ position: static; flex: 1; flex-direction: column; }
  .pan{
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 88px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    padding: 0 var(--gutter);
  }
  .pan__tag,
  .pan__foot{ position: static; }
  .pan__foot{ font-size: 15px; }
  .pan::after{
    background: linear-gradient(to right, rgba(10,10,11,.78), rgba(10,10,11,.42));
  }
}

.hero__scroll{
  position: absolute;
  left: 50%; bottom: clamp(14px, 2.4vh, 26px);
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 5;
}
.hero__scroll i{
  display: block; width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine{
  0%{ transform: scaleY(0); opacity: 0; }
  35%{ opacity: 1; }
  100%{ transform: scaleY(1); opacity: 0; }
}
@media (max-width: 700px){ .hero__scroll{ display: none; } }

/* ---------------------------------------------------------
   3D GALLERY
   --------------------------------------------------------- */
.gal{
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(92px, 15vh, 150px) 0 clamp(84px, 13vh, 124px);
}

.gal__head{
  position: absolute;
  top: clamp(84px, 13vh, 130px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
  z-index: 6;
  pointer-events: none;
}
.gal__count{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; color: var(--ink-3);
}
.gal__count b{ color: var(--ink); font-weight: 400; }

.gal__stage{
  position: relative;
  width: 100%;
  height: clamp(300px, 46vh, 520px);
  perspective: 1500px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

/* invisible native horizontal scroller that drives the 3D stage */
.gal__rail{
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gal__rail i{
  flex: none;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

.gcard{
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(215px, 25vw, 380px);
  height: clamp(287px, 33.3vw, 507px);
  margin: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: none;
  backface-visibility: hidden;
}
.gcard__media{
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 3px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.gcard__media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.78);
  transform: scale(1.06);
  transition: filter .8s var(--ease), transform 1.1s var(--ease);
}
.gcard.is-active .gcard__media img{
  filter: grayscale(0) contrast(1.02) brightness(1);
  transform: scale(1);
}
/* landscape shot: keep the crop on the right hand side of the frame */
.gcard__img--right{ object-position: 88% center; }
.gcard__media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,.86) 0%, rgba(10,10,11,.1) 48%, transparent 70%);
}
.gcard__num{
  position: absolute; top: 14px; left: 15px;
  z-index: 2;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; color: rgba(241,236,228,.7);
}
.gcard__label{
  position: absolute; left: 15px; right: 15px; bottom: 15px;
  z-index: 2;
}
.gcard__label h3{
  font-family: var(--display); font-weight: 700;
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.gcard__label p{
  margin: 0;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.gcard__frame{
  position: absolute; inset: -1px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.gcard.is-active .gcard__frame{ opacity: .9; transform: scale(1); }

/* Big title crossfade under the stage */
.gal__titles{
  position: relative;
  height: clamp(50px, 7.2vw, 104px);
  margin-top: clamp(16px, 3vh, 38px);
  text-align: center;
  pointer-events: none;
}
.gal__title{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
  white-space: nowrap;
}
.gal__title.is-on{ opacity: 1; transform: none; }

.gal__cta{
  position: absolute;
  left: 50%; bottom: clamp(26px, 6vh, 64px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
}
.gal__enter{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px 22px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: border-color .4s var(--ease), color .4s var(--ease), background-color .4s var(--ease);
  white-space: nowrap;
}
.gal__enter:hover{ background: var(--accent); border-color: var(--accent); color: #0a0a0b; }
.gal__enter svg{ width: 11px; height: 11px; }
.gal__hint{
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 760px){ .gal__hint{ display: none; } }

.gal__bar{
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(12px, 2vh, 20px);
  height: 1px;
  background: var(--line);
  z-index: 6;
}
.gal__bar i{
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transform-origin: left;
}

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */
.about{
  margin: clamp(80px, 14vh, 200px) var(--gutter) 0;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}
.about__media{
  position: sticky;
  top: clamp(90px, 15vh, 150px);
}
.about__media .clip-img{ aspect-ratio: 3 / 4; }
.about__media img{ filter: grayscale(.2) contrast(1.05); }
.about__cap{
  margin-top: 12px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}

.about__txt > .eyebrow{ margin-bottom: clamp(20px, 3vw, 38px); }
.about__big{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.85vw, 46px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 clamp(26px, 3.5vw, 48px);
}
.about__big span{ color: var(--ink-3); }
.about__cols{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 46px);
}
.about__cols p{ margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

.facts{
  margin-top: clamp(38px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
}
.fact{
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  padding-right: 18px;
}
.fact b{
  display: block;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: .9; letter-spacing: -.04em;
  color: var(--accent);
}
.fact span{
  display: block;
  margin-top: 9px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}

@media (max-width: 900px){
  .about{ grid-template-columns: 1fr; }
  .about__media{ position: static; }
  .about__media .clip-img{ aspect-ratio: 16 / 11; }
}

/* ---------------------------------------------------------
   PHOTO RAIL
   --------------------------------------------------------- */
.rail{
  margin-top: clamp(70px, 12vh, 170px);
  overflow: hidden;
  padding: clamp(16px, 2vw, 26px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rail__track{
  display: flex;
  gap: clamp(10px, 1.4vw, 20px);
  width: max-content;
  will-change: transform;
}
.rail__track figure{
  margin: 0;
  width: clamp(150px, 19vw, 290px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  flex: none;
  background: var(--bg-soft);
}
.rail__track img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.85);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.rail__track figure:hover img{ filter: none; transform: scale(1.05); }
