/* ==========================================================================
   MUSTAFA İNAN — MULTI-PAGE ETHAN & TOM ARCHITECTURE + SPLIT ENTRANCE
   Font: Gilroy + JetBrains Mono
   Fluid Scale: 1rem = 0.625vw (10px @ 1600px) | Mobile: 2.666vw
   ========================================================================== */

@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy Regular'), local('Gilroy-Regular'),
       url('https://fonts.cdnfonts.com/s/16219/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy Medium'), local('Gilroy-Medium'),
       url('https://fonts.cdnfonts.com/s/16219/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy SemiBold'), local('Gilroy-SemiBold'),
       url('https://fonts.cdnfonts.com/s/16219/Gilroy-Bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy Bold'), local('Gilroy-Bold'),
       url('https://fonts.cdnfonts.com/s/16219/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-user-select: none;
  user-select: none;
}

html {
  font-size: 0.625vw;
  font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #010101;
  color: #ffffff;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 767px) {
  html {
    font-size: 2.6666666667vw;
  }
}

:root {
  --ease-smooth-fast: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-out: 0.09s;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-fast);
  animation-timing-function: var(--ease-smooth-fast);
}

@keyframes pageEnterSmoothFast {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  min-height: 100vh;
  background: #010101;
  color: #ffffff;
  line-height: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: pageEnterSmoothFast var(--dur-fast) var(--ease-smooth-fast);
  transition: opacity 0.11s var(--ease-smooth-fast),
              transform 0.11s var(--ease-smooth-fast),
              filter 0.11s var(--ease-smooth-fast);
}

body.is-page-leaving {
  opacity: 0;
  transform: scale(0.992);
  filter: blur(3px);
  pointer-events: none;
}

a {
  color: inherit;
  outline: none;
  text-decoration: none;
  cursor: pointer;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
}

:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 4px;
}

/* ==========================================================================
   SHARED WEB COMPONENTS (<brand-mark>, <site-header>, <site-footer>)
   ========================================================================== */

site-header,
site-footer {
  display: contents;
}

brand-mark,
.brand-mark,
.nav__logo__wordmark,
.split-brand {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* ==========================================================================
   PAGE 0: SPLIT ENTRANCE PAGE (/ — Left: Photography | Right: Cinematography)
   ========================================================================== */

body.page-split {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.split-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  mix-blend-mode: difference;
  color: #ffffff;
  pointer-events: none;
}

.split-topbar__link {
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1.32rem;
  letter-spacing: -0.02px;
  font-weight: 600;
  padding-bottom: 0.15rem;
  color: #ffffff;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

.split-topbar__link::before {
  content: "";
  position: absolute;
  inset: -2.2rem -2.4rem -1.2rem -2.4rem;
}

.split-topbar__link .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-fast) var(--ease-smooth-fast),
              opacity var(--dur-fast) var(--ease-smooth-fast);
}

.split-topbar__link:hover .line,
.split-topbar__link.is-active .line {
  transform: scaleX(1);
  transform-origin: left center;
}

.split-brand {
  position: fixed;
  top: 2.2rem;
  left: 50%;
  font-size: 1.1rem;
  line-height: 1.32rem;
  transform: translate(-50%, 0) scale(1);
  transform-origin: center center;
  z-index: 30;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: top var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

body.page-split.is-info-open .split-brand {
  transform: translate(-50%, 5.2rem) scale(1.2);
}

@media (max-width: 767px) {
  .split-topbar {
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    transform: none;
    padding: 0 0.85rem;
  }

  .split-topbar__link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding-bottom: 0;
    padding-left: 0.2rem;
  }

  .split-topbar__link--left {
    transform: rotate(180deg);
  }

  .split-topbar__link::before {
    inset: -2.4rem -1.4rem;
  }

  .split-topbar__link .line {
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: bottom center;
  }

  .split-topbar__link:hover .line,
  .split-topbar__link.is-active .line {
    transform: scaleY(1);
    transform-origin: top center;
  }

  .split-brand {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
  }

  body.page-split.is-info-open .split-brand {
    top: 5.4rem;
    transform: translate(-50%, 0) scale(1.18);
  }
}

.split-entrance {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  background: #010101;
}

@media (max-width: 767px) {
  .split-entrance {
    flex-direction: column;
  }
}

.split-divider {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.14);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 767px) {
  .split-divider {
    width: 100%;
    height: 1px;
  }
}

.split-pane {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--dur-fast) var(--ease-smooth-fast),
              opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

@media (min-width: 768px) {
  .split-entrance:hover .split-pane {
    flex: 0.88;
    opacity: 0.45;
  }

  .split-entrance .split-pane:hover,
  .split-entrance .split-pane:focus-visible {
    flex: 1.18;
    opacity: 1;
  }
}

.split-pane__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: #010101;
}

.split-pane__img,
.split-pane__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.72);
  transform: scale(1.03);
  transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.55s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.split-pane:hover .split-pane__img--main,
.split-pane:hover .split-pane__video,
.split-pane:focus-visible .split-pane__img--main,
.split-pane:focus-visible .split-pane__video {
  filter: contrast(1.05) brightness(0.92);
  transform: scale(1);
}

.split-pane__img--glitch {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: hard-light;
}

.split-pane__flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.22) 0px,
      rgba(255, 255, 255, 0.22) 2px,
      transparent 2px,
      transparent 5px
    ),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.35) 65%, transparent 100%);
  mix-blend-mode: overlay;
  will-change: opacity, transform;
}

/* ==========================================================================
   PHOTOGRAPHY LANDING REEL — 3 DISTINCT TRANSITION MODES
   1. .is-fx-impact : Flash Transition + Stark Negative Impact Frames
   2. .is-fx-whip   : Sports Promo Motion (Kinetic Whip-Pan + Speed-Zoom)
   3. .is-fx-glitch : Hype Edit Split-Slice Geometric Glitch Tear
   ========================================================================== */

/* --- MODE 1: IMPACT FRAME & FLASH STROBE (.is-fx-impact) --- */
@keyframes fxImpactMain {
  0% {
    filter: contrast(1.1) brightness(0.68);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  15% {
    filter: contrast(2.4) brightness(1.35);
    transform: scale(1.09) translate3d(-1.1%, 0.6%, 0);
  }
  34% {
    filter: contrast(1.8) brightness(1.18);
    transform: scale(1.06) translate3d(0.8%, -0.5%, 0);
  }
  52% {
    filter: contrast(2.1) brightness(1.25);
    transform: scale(1.07) translate3d(-0.4%, 0.3%, 0);
  }
  70% {
    filter: contrast(1.18) brightness(0.88);
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  100% {
    filter: contrast(1.04) brightness(0.72);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}

@keyframes fxImpactGhost {
  0%, 100% {
    opacity: 0;
    transform: scale(1.04);
  }
  16% {
    opacity: 0.68;
    clip-path: inset(0 0 0 0);
    filter: contrast(2.2) brightness(1.35);
    transform: scale(1.14);
  }
  48% {
    opacity: 0.38;
    clip-path: inset(0 0 0 0);
    filter: contrast(1.6) brightness(1.15);
    transform: scale(1.07);
  }
  68% {
    opacity: 0;
  }
}

@keyframes fxImpactFlash {
  0%, 100% {
    opacity: 0;
  }
  14% {
    opacity: 0.72;
  }
  30% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.58;
  }
  72% {
    opacity: 0;
  }
}

.split-pane__media.is-fx-impact .split-pane__img--main {
  animation: fxImpactMain 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.split-pane__media.is-fx-impact .split-pane__img--glitch-a {
  animation: fxImpactGhost 0.36s ease-out forwards;
}

.split-pane__media.is-fx-impact .split-pane__flash {
  animation: fxImpactFlash 0.36s ease-out forwards;
}

/* --- MODE 2: SPORTS PROMO MOTION / KINETIC WHIP-ZOOM (.is-fx-whip) --- */
@keyframes fxWhipMain {
  0% {
    filter: contrast(1.08) brightness(0.68);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  22% {
    filter: contrast(1.55) brightness(1.15);
    transform: scale(1.14, 1.04) translate3d(-4.5%, 0, 0);
  }
  46% {
    filter: contrast(1.45) brightness(1.1);
    transform: scale(1.11, 1.03) translate3d(3.8%, 0, 0);
  }
  72% {
    filter: contrast(1.15) brightness(0.84);
    transform: scale(1.05) translate3d(-0.4%, 0, 0);
  }
  100% {
    filter: contrast(1.04) brightness(0.72);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}

@keyframes fxWhipTrailA {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  20% {
    opacity: 0.62;
    clip-path: inset(0 0 0 0);
    filter: contrast(1.5) brightness(1.15);
    transform: translate3d(5.5%, 0, 0) scale(1.16, 1.03);
  }
  48% {
    opacity: 0.42;
    clip-path: inset(0 0 0 0);
    filter: contrast(1.3) brightness(1.05);
    transform: translate3d(-2.5%, 0, 0) scale(1.08, 1.02);
  }
  68% {
    opacity: 0;
  }
}

@keyframes fxWhipFlash {
  0%, 100% {
    opacity: 0;
  }
  24% {
    opacity: 0.32;
  }
  55% {
    opacity: 0;
  }
}

.split-pane__media.is-fx-whip .split-pane__img--main {
  animation: fxWhipMain 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.split-pane__media.is-fx-whip .split-pane__img--glitch-a {
  animation: fxWhipTrailA 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.split-pane__media.is-fx-whip .split-pane__flash {
  animation: fxWhipFlash 0.3s ease-out forwards;
}

/* --- MODE 3: HYPE EDIT SPLIT-SLICE GLITCH TEAR (.is-fx-glitch) --- */
@keyframes fxGlitchMain {
  0% {
    filter: contrast(1.08) brightness(0.68);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  18% {
    filter: contrast(1.75) brightness(1.15);
    transform: scale(1.06) translate3d(1.2%, -0.4%, 0);
  }
  38% {
    filter: contrast(1.9) brightness(1.2);
    transform: scale(1.08) translate3d(-1.3%, 0.4%, 0);
  }
  58% {
    filter: contrast(1.35) brightness(0.95);
    transform: scale(1.05) translate3d(0.6%, -0.2%, 0);
  }
  100% {
    filter: contrast(1.04) brightness(0.72);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}

@keyframes fxGlitchSliceA {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  12% {
    opacity: 0.85;
    clip-path: inset(6% 0 62% 0);
    filter: contrast(1.9) brightness(1.25);
    transform: translate3d(-4%, 0, 0) scale(1.09);
  }
  32% {
    opacity: 0.82;
    clip-path: inset(38% 0 28% 0);
    filter: contrast(2.1) brightness(1.3);
    transform: translate3d(3.8%, 0, 0) scale(1.08);
  }
  52% {
    opacity: 0.75;
    clip-path: inset(16% 0 50% 0);
    filter: contrast(1.7) brightness(1.15);
    transform: translate3d(-2.4%, 0, 0) scale(1.06);
  }
  70% {
    opacity: 0;
  }
}

@keyframes fxGlitchSliceB {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  16% {
    opacity: 0.82;
    clip-path: inset(58% 0 8% 0);
    filter: contrast(2) brightness(1.25);
    transform: translate3d(4.2%, 0, 0) scale(1.09);
  }
  36% {
    opacity: 0.84;
    clip-path: inset(12% 0 66% 0);
    filter: contrast(2.2) brightness(1.3);
    transform: translate3d(-3.5%, 0, 0) scale(1.08);
  }
  56% {
    opacity: 0.72;
    clip-path: inset(66% 0 6% 0);
    filter: contrast(1.6) brightness(1.15);
    transform: translate3d(2.4%, 0, 0) scale(1.05);
  }
  74% {
    opacity: 0;
  }
}

.split-pane__media.is-fx-glitch .split-pane__img--main {
  animation: fxGlitchMain 0.38s steps(3, end) forwards;
}

.split-pane__media.is-fx-glitch .split-pane__img--glitch-a {
  animation: fxGlitchSliceA 0.36s steps(2, end) forwards;
}

.split-pane__media.is-fx-glitch .split-pane__img--glitch-b {
  animation: fxGlitchSliceB 0.36s steps(2, end) forwards;
}

.split-pane__video--deck {
  opacity: 0;
  z-index: 1;
  transition: opacity 0.08s ease-out,
              transform 0.55s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.split-pane__video--deck.is-active {
  opacity: 1;
  z-index: 2;
}

@keyframes cinemaRapidCut {
  0% {
    filter: contrast(1.85) brightness(1.25);
    transform: scale(1.08) translate3d(0, -0.8%, 0);
  }
  38% {
    filter: contrast(1.35) brightness(0.95);
    transform: scale(1.05) translate3d(0, 0.3%, 0);
  }
  100% {
    filter: contrast(1.04) brightness(0.72);
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}

@keyframes cinemaFlashCut {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}

.split-pane__media.is-cinema-cut .split-pane__video--deck.is-active,
.split-pane__media.is-cinema-cut .split-pane__img--main {
  animation: cinemaRapidCut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.split-pane__media.is-cinema-cut .split-pane__flash {
  animation: cinemaFlashCut 0.16s ease-out forwards;
}

.split-pane__scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at center, rgba(1, 1, 1, 0.08) 0%, rgba(1, 1, 1, 0.52) 100%);
}

.split-pane__button {
  position: relative;
  z-index: 5;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.split-pane__label {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.split-pane__button .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.split-pane:hover .split-pane__button .line,
.split-pane:focus-visible .split-pane__button .line {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   FULL-SCREEN HOVER BACKGROUND STAGE (Behind Grid & Index)
   ========================================================================== */

.stage-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.stage-bg.is-visible {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .stage-bg {
    display: none !important;
  }
}

.stage-bg__img,
.stage-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08) brightness(0.45);
  transform: scale(1.03);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.45s ease;
  opacity: 0;
}

.stage-bg__img.is-active,
.stage-bg__video.is-active {
  opacity: 1;
  transform: scale(1);
}

.stage-bg__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(1, 1, 1, 0.2) 0%, rgba(1, 1, 1, 0.72) 100%);
}

/* ==========================================================================
   FIXED TOP NAVIGATION (Exact Ethan & Tom Layout)
   ========================================================================== */

.nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 25;
  mix-blend-mode: difference;
  color: #ffffff;
}

.nav__logo {
  position: relative;
  left: 0;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.2rem;
  transform: translate(0, 0) scale(1);
  transform-origin: center center;
  z-index: 26;
  transition: left var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

body.is-info-open .nav__logo {
  left: calc(50vw - 1.8rem);
  transform: translate(-50%, 5.2rem) scale(1.2);
  pointer-events: none;
}

@media (max-width: 767px) {
  .nav {
    padding: 1.2rem 1.2rem 0;
  }
  body.is-info-open .nav__logo {
    left: calc(50vw - 1.2rem);
    transform: translate(-50%, 4.6rem) scale(1.2);
  }
}

.nav__right {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.nav__list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  column-gap: 0.9rem;
  margin-right: 0;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast),
              filter var(--dur-fast) var(--ease-smooth-fast),
              visibility var(--dur-fast);
  will-change: opacity, transform, filter;
}

body.is-info-open .nav__list {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -0.45rem, 0);
  filter: blur(2px);
  pointer-events: none;
}

body.is-info-open .nav__list .nav__item {
  pointer-events: none;
}

.nav__item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  pointer-events: auto;
}

.nav__item--left {
  justify-self: end;
}

.nav__item--right {
  justify-self: start;
}

.nav__item--info {
  align-items: flex-end;
  z-index: 2;
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.45rem);
  filter: blur(2px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast),
              filter var(--dur-fast) var(--ease-smooth-fast),
              visibility var(--dur-fast);
}

.nav__sub::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1.8rem;
  right: -1.8rem;
  height: 1.4rem;
}

.nav__sub--info {
  left: auto;
  right: 0;
  align-items: flex-end;
}

.nav__item.is-open .nav__sub,
body.is-info-open .nav__item--info .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  filter: blur(0px);
  pointer-events: auto;
}

.nav__sublink {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.15rem;
  opacity: 0.54;
  transform: translateY(-0.15rem);
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

.nav__sublink::before {
  content: "";
  position: absolute;
  inset: -0.4rem -1.8rem;
}

.nav__sublink:nth-child(1) {
  transition-delay: 0.01s;
}

.nav__sublink:nth-child(2) {
  transition-delay: 0.03s;
}

.nav__sublink:nth-child(3) {
  transition-delay: 0.05s;
}

.nav__item.is-open .nav__sublink,
body.is-info-open .nav__item--info .nav__sublink {
  transform: translateY(0);
}

.nav__sublink:hover,
.nav__sublink.is-active {
  opacity: 1;
}

body.is-info-open .nav__sub--info .nav__sublink.is-active .line {
  transform: scaleX(1);
  transform-origin: left center;
}

@media (max-width: 767px) {
  .nav__list {
    column-gap: 0.6rem;
  }
}

.nav__link,
.nav__slash,
.nav__time,
.nav__button {
  font-size: 1rem;
  line-height: 1.2rem;
  letter-spacing: -0.02px;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.15rem;
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              color var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

.nav__link,
.nav__button {
  display: inline-block;
  z-index: 2;
}

.nav__link::before {
  content: "";
  position: absolute;
  inset: -2.2rem -1.8rem -1.05rem -1.8rem;
}

.nav__item--left > .nav__link::before {
  inset: -2.2rem -0.45rem -1.05rem -3.2rem;
}

.nav__item--right > .nav__link::before {
  inset: -2.2rem -3.2rem -1.05rem -0.45rem;
}

.nav__button::before,
.nav__logo::before {
  content: "";
  position: absolute;
  inset: -2.2rem -2.4rem -1.2rem -2.4rem;
}

.nav__link {
  opacity: 0.52;
}

.nav__link.is-active,
.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__item.is-open > .nav__link {
  opacity: 1;
}

.nav__slash {
  opacity: 0.45;
}

.nav__link .line,
.nav__sublink .line,
.nav__button .line,
.info__nav__button .line,
.project__next__link .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-fast) var(--ease-smooth-fast),
              opacity var(--dur-fast) var(--ease-smooth-fast);
}

/* Directional flow across center "/" between Photography (left) and Cinematography (right) */
.nav__item--left > .nav__link .line {
  transform-origin: right center;
}

.nav__item--right > .nav__link .line {
  transform-origin: left center;
}

.nav__link:hover .line,
.nav__link.is-active .line {
  transform: scaleX(1);
}

.nav__sublink:hover .line,
.nav__button:hover .line,
.info__nav__button:hover .line,
.project__next__link:hover .line {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__time {
  margin-left: 19.4rem;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .nav__time {
    display: none;
  }
}

/* ==========================================================================
   HOME / 5-COLUMN GRID & INDEX VIEW
   ========================================================================== */

.home,
.photo,
.project {
  position: relative;
  width: 100%;
  z-index: 2;
  display: none;
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast),
              filter var(--dur-fast) var(--ease-smooth-fast);
}

.home--active,
.photo--active,
.project--active {
  display: block;
}

.home.is-view-out,
.photo.is-view-out,
.project.is-view-out {
  opacity: 0;
  transform: translate3d(0, 0.8rem, 0);
  filter: blur(3px);
  pointer-events: none;
  will-change: opacity, transform, filter;
  transition: opacity var(--dur-out) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-out) cubic-bezier(0.4, 0, 0.2, 1),
              filter var(--dur-out) ease;
}

.home.is-view-in,
.photo.is-view-in,
.project.is-view-in {
  opacity: 0;
  transform: translate3d(0, 0.85rem, 0);
  filter: blur(3px);
  will-change: opacity, transform, filter;
}

.home__wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home__projects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: clamp(9.5rem, 15.5vh, 15.5rem) 1.8rem clamp(1.6rem, 3vh, 3.2rem);
  column-gap: 1.6rem;
  row-gap: clamp(2.4rem, 4.8vh, 4.8rem);
}

@media (max-width: 767px) {
  .home__projects {
    grid-template-columns: repeat(2, 1fr);
    padding: 11rem 1.2rem 3.2rem;
    column-gap: 2.4rem;
    row-gap: 3.2rem;
  }
}

.home__projects.list__view {
  row-gap: 2.8rem;
}

.home__projects.list__view .home__project__link {
  display: none;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 0.85rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.home__project {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  cursor: pointer;
  animation: cardFadeUp var(--dur-fast) var(--ease-smooth-fast) both;
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

@media (hover: hover) and (pointer: fine) {
  .home__projects.is-hovering .home__project:not(:hover) {
    opacity: 0.32;
  }
}

@media (max-width: 767px) {
  .home__project {
    gap: 1.2rem;
  }
}

.home__project__header {
  display: flex;
  gap: 3.2rem;
}

@media (max-width: 767px) {
  .home__project__header {
    flex-direction: column;
    gap: 0.6rem;
  }
}

.home__project__number,
.home__project__title {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.home__project__number {
  width: 2.2rem;
  height: fit-content;
  color: rgba(255, 255, 255, 0.72);
}

.home__project__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.6rem;
  letter-spacing: 0.5px;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.home__project__link {
  position: relative;
  width: 30rem;
  height: 16.9rem;
  overflow: hidden;
  background: #0b0b0b;
  display: block;
}

@media (max-width: 767px) {
  .home__project__link {
    width: 100%;
    height: 9.2rem;
  }
}

.home__project__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.01);
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home__project:hover .home__project__media {
    filter: grayscale(0%) contrast(1.02);
    transform: scale(1.05);
  }
}

/* ==========================================================================
   BOTTOM FOOTER
   ========================================================================== */

.footer {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem;
  z-index: 3;
  mix-blend-mode: difference;
}

.photo > site-footer > .footer,
.photo > .footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.footer__socials {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
  opacity: 0.78;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}

.footer__social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer__social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__right {
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .footer {
    padding: 1.2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .footer__socials {
    position: static;
    transform: none;
    gap: 0.65rem;
  }
  .footer__social-link {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.footer__link,
.footer__text,
.footer__year {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
}

/* ==========================================================================
   PHOTOGRAPHY DECK STAGE (Ethan & Tom /photo Click-to-Advance Deck)
   ========================================================================== */

.photo__wrapper {
  position: relative;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .photo__wrapper {
    min-height: 100dvh;
    max-height: 100dvh;
  }
}

.photo__cursor {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(24px, -50%);
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  z-index: 10001;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.photo__cursor.is-visible,
.photo__wrapper:hover .photo__cursor {
  opacity: 1;
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .photo__cursor {
    display: none !important;
  }
}

.photo__figure {
  position: relative;
  width: 124.8rem;
  height: 70rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .photo__figure {
    width: calc(100% - 2.4rem);
    height: calc(100dvh - 12rem);
  }
}

@keyframes photoDeckColorIn {
  0% {
    filter: grayscale(100%) contrast(1.06);
  }
  100% {
    filter: grayscale(0%) contrast(1);
  }
}

.photo__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
  display: none;
  filter: grayscale(0%);
}

.photo__image.is-active {
  display: block;
  animation: photoDeckColorIn 0.45s ease forwards;
}

.photo__hud {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 5;
  mix-blend-mode: difference;
  pointer-events: none;
}

@media (max-width: 767px) {
  .photo__hud {
    padding: 1.2rem;
  }
}

.photo__counter,
.photo__caption,
.photo__mode-toggle {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.photo__caption {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.photo__mode-toggle {
  pointer-events: all;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ==========================================================================
   INFO OVERLAY (5-Layer Progressive Backdrop Blur)
   ========================================================================== */

.info {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              visibility var(--dur-fast);
}

.info.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.info__container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.info__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: start;
}

.info__blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) var(--start), rgb(0, 0, 0) var(--end));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) var(--start), rgb(0, 0, 0) var(--end));
  background: rgba(1, 1, 1, 0.52);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  pointer-events: none;
}

.info__about-stack {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 11.2rem 2.4rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0.9rem, 0);
  filter: blur(3px);
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast),
              filter var(--dur-fast) var(--ease-smooth-fast),
              visibility var(--dur-fast);
  will-change: opacity, transform, filter;
}

.info__about-stack.is-panel-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -0.6rem, 0);
  filter: blur(3px);
  transition: opacity var(--dur-out) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-out) cubic-bezier(0.4, 0, 0.2, 1),
              filter var(--dur-out) ease,
              visibility var(--dur-out);
}

.info__about-stack.is-panel-in {
  opacity: 0;
  transform: translate3d(0, 0.9rem, 0);
  filter: blur(3px);
}

.info.is-open .info__about-stack.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
}

.info__about-stack > * {
  opacity: 0;
  transform: translate3d(0, 0.6rem, 0);
  transition: opacity var(--dur-fast) var(--ease-smooth-fast),
              transform var(--dur-fast) var(--ease-smooth-fast);
}

.info.is-open .info__about-stack.is-active:not(.is-panel-in) > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.info.is-open .info__about-stack.is-active:not(.is-panel-in) > *:nth-child(1) {
  transition-delay: 0.01s;
}

.info.is-open .info__about-stack.is-active:not(.is-panel-in) > *:nth-child(2) {
  transition-delay: 0.035s;
}

.info.is-open .info__about-stack.is-active:not(.is-panel-in) > *:nth-child(3) {
  transition-delay: 0.06s;
}

.info.is-open .info__about-stack.is-active:not(.is-panel-in) > *:nth-child(4) {
  transition-delay: 0.085s;
}

.info__social-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.6rem;
}

.info__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #ffffff;
  opacity: 0.72;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.info__social-icon:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.06);
}

.info__social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.info__panel-link {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  color: #ffffff;
  padding-bottom: 0.2rem;
  cursor: pointer;
}

.info__panel-link--email {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 0;
  cursor: pointer;
  pointer-events: auto;
}

.info__panel-link--email * {
  pointer-events: none;
}

.info__email-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
  color: #ffffff;
  opacity: 0.78;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.info__panel-link--email:hover .info__email-icon {
  opacity: 1;
  transform: translateY(-2px) scale(1.06);
}

.info__email-text {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.info__panel-link .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease-smooth-fast);
}

.info__panel-link:hover .line {
  transform: scaleX(1);
  transform-origin: left;
}

.info__about-stack[data-info-panel="about"] {
  padding-top: 9.8rem;
  gap: 1.5rem;
}

.info__about-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.info__about-portrait {
  width: 15.6rem;
  height: 15.6rem;
  margin: 0.4rem 0 0.2rem;
  overflow: hidden;
  border-radius: 2px;
  background: #0a0a0a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.info__about-portrait__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 767px) {
  body.page-split .info__about-stack {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 8.6rem;
  }

  .info__about-stack[data-info-panel="about"] {
    padding-top: 8.6rem;
    gap: 1.2rem;
  }

  .info__about-portrait {
    width: 12.4rem;
    height: 12.4rem;
  }
}

.info__about-divider {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.info__about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.72rem;
  font-weight: 500;
  color: #ffffff;
  max-width: 44rem;
}

.info__about-bio p {
  margin: 0;
}

.info__about-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.info__about-heading {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.info__about-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.info__infos__awards {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.8rem;
}

.info__infos__awards__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.info__infos__awards__text,
.info__infos__awards__link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   PROJECT DETAIL VIEW
   ========================================================================== */

.project {
  background: #010101;
  min-height: 100vh;
}

.project__header {
  position: fixed;
  top: 37.8rem;
  left: 0;
  width: 100%;
  display: flex;
  gap: 3.2rem;
  padding: 0 1.8rem;
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: difference;
}

@media (max-width: 767px) {
  .project__header {
    top: 42dvh;
    padding: 0 1.2rem;
    flex-direction: column;
    gap: 0.8rem;
  }
}

.project__header__title,
.project__header__number {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.project__header__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.6rem;
  letter-spacing: 0.5px;
  font-weight: 300;
  text-transform: uppercase;
}

.project__hero__button {
  position: fixed;
  top: 37.8rem;
  left: 33rem;
  z-index: 7;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  mix-blend-mode: difference;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.project__close__button {
  position: fixed;
  top: 37.8rem;
  right: 1.8rem;
  z-index: 7;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

@media (max-width: 767px) {
  .project__hero__button {
    top: 42dvh;
    left: auto;
    right: 7.5rem;
  }
  .project__close__button {
    top: 42dvh;
    right: 1.2rem;
  }
}

.project__hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
}

.project__hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.project__hero__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 4;
  display: none;
}

.project__hero__player.is-playing {
  display: block;
}

.project__hero__player iframe,
.project__hero__player video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}

.project__video-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2.2rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project__timecode {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(5, 5, 5, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 0.65rem;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.project__timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  touch-action: none;
}

.project__timeline__track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  transition: height 0.18s ease, background 0.18s ease;
}

.project__timeline:hover .project__timeline__track,
.project__timeline.is-scrubbing .project__timeline__track {
  height: 5px;
  background: rgba(255, 255, 255, 0.32);
}

.project__timeline__progress {
  height: 100%;
  width: 0%;
  background: #ffffff;
  position: relative;
}

.project__timeline__progress::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.project__timeline:hover .project__timeline__progress::after,
.project__timeline.is-scrubbing .project__timeline__progress::after {
  transform: translateY(-50%) scale(1);
}

.project__sound-btn,
.project__fullscreen-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project__sound-btn:hover,
.project__fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.project__sound-btn .sound-icon,
.project__fullscreen-btn .fs-icon {
  width: 15px;
  height: 15px;
  display: block;
  pointer-events: none;
}

.project__sound-btn .sound-icon--off,
.project__fullscreen-btn .fs-icon--exit {
  display: none;
}

.project__sound-btn.is-muted {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
}

.project__sound-btn.is-muted .sound-icon--on {
  display: none;
}

.project__sound-btn.is-muted .sound-icon--off {
  display: block;
}

.project__fullscreen-btn.is-fullscreen .fs-icon--enter {
  display: none;
}

.project__fullscreen-btn.is-fullscreen .fs-icon--exit {
  display: block;
}

.project__hero__player:fullscreen,
.project__hero__player:-webkit-full-screen {
  background: #000000;
  width: 100vw;
  height: 100vh;
}

.project__hero__player:fullscreen video,
.project__hero__player:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

@media (max-width: 767px) {
  .project__hero {
    height: auto;
    min-height: 0;
    padding-top: 7.4rem;
    background: #010101;
  }

  .project__hero__media {
    width: 100%;
    height: auto;
    max-height: 75dvh;
    object-fit: contain;
    display: block;
  }

  .project__hero__player {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project__hero__player iframe,
  .project__hero__player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.96);
  }

  .project__video-controls {
    bottom: 0.7rem;
    right: 0.75rem;
    gap: 0.35rem;
  }

  .project__timecode {
    height: 28px;
    font-size: 0.58rem;
    padding: 0 0.5rem;
  }

  .project__sound-btn,
  .project__fullscreen-btn {
    width: 30px;
    height: 30px;
  }

  .project__sound-btn .sound-icon,
  .project__fullscreen-btn .fs-icon {
    width: 13px;
    height: 13px;
  }
}

.project__hero__player__bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
  mix-blend-mode: difference;
}

.project__role__meta,
.project__scroll__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 300;
  text-transform: uppercase;
}

.project__gallery {
  padding: 4.2rem 4.8rem 10rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2.4rem;
  row-gap: 8.5rem;
  align-items: start;
  max-width: 184rem;
  margin: 0 auto;
}

.project__editorial-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.4rem;
  padding: 0 0 3.2rem;
  margin-bottom: -2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project__editorial-bar__left {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
}

.project__editorial-bar__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.08em;
}

.project__editorial-bar__title {
  font-size: 2.2rem;
  line-height: 2.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.project__editorial-bar__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 0.3rem;
}

.project__editorial-bar__center {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.project__editorial-bar__dot {
  opacity: 0.35;
}

.project__editorial-bar__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding-bottom: 0.3rem;
  cursor: pointer;
}

.project__gallery__item {
  position: relative;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  opacity: 0;
  transform: translate3d(0, 3.6rem, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.project__gallery__item.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project__gallery__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #080808;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

/* Scattered 8-Slot Editorial Composition */
.project__gallery__item--slot-1 {
  grid-column: 1 / 6;
}
.project__gallery__item--slot-1 .project__gallery__frame {
  aspect-ratio: 4 / 5;
}

.project__gallery__item--slot-2 {
  grid-column: 7 / 13;
  margin-top: 11.5rem;
}
.project__gallery__item--slot-2 .project__gallery__frame {
  aspect-ratio: 16 / 10;
}

.project__gallery__item--slot-3 {
  grid-column: 3 / 11;
  margin-top: 2.5rem;
}
.project__gallery__item--slot-3 .project__gallery__frame {
  aspect-ratio: 16 / 9;
}

.project__gallery__item--slot-4 {
  grid-column: 1 / 5;
  margin-top: 9.5rem;
}
.project__gallery__item--slot-4 .project__gallery__frame {
  aspect-ratio: 3 / 4;
}

.project__gallery__item--slot-5 {
  grid-column: 6 / 12;
  margin-top: -1.5rem;
}
.project__gallery__item--slot-5 .project__gallery__frame {
  aspect-ratio: 3 / 2;
}

.project__gallery__item--slot-6 {
  grid-column: 2 / 8;
  margin-top: 1.5rem;
}
.project__gallery__item--slot-6 .project__gallery__frame {
  aspect-ratio: 16 / 10;
}

.project__gallery__item--slot-7 {
  grid-column: 9 / 13;
  margin-top: 12rem;
}
.project__gallery__item--slot-7 .project__gallery__frame {
  aspect-ratio: 4 / 5;
}

.project__gallery__item--slot-8 {
  grid-column: 4 / 12;
  margin-top: 2rem;
}
.project__gallery__item--slot-8 .project__gallery__frame {
  aspect-ratio: 16 / 9;
}

.project__gallery__item .item {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.84) contrast(1.03);
  transform: scale(1.001);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s ease;
}

.project__gallery__item:hover .item {
  transform: scale(1.045);
  filter: brightness(0.98) contrast(1.04);
}

.project__gallery__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  padding: 0 0.2rem;
  transition: color 0.35s ease;
}

.project__gallery__item:hover .project__gallery__meta {
  color: rgba(255, 255, 255, 0.85);
}

.project__gallery__index {
  color: rgba(255, 255, 255, 0.72);
}

.project__editorial-next {
  grid-column: 1 / -1;
  margin-top: 6rem;
  padding: 4.2rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1.4rem;
}

.project__editorial-next__info {
  cursor: pointer;
}

.project__editorial-next__eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.project__editorial-next__title {
  font-size: 2.4rem;
  line-height: 2.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project__editorial-next__info:hover .project__editorial-next__eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.project__editorial-next__info:hover .project__editorial-next__title {
  opacity: 0.82;
  transform: translate3d(-0.4rem, 0, 0);
}

.project__editorial-next__info:hover + .project__editorial-next__btn .line::after {
  transform: scaleX(1);
  transform-origin: left;
}

.project__editorial-next__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  line-height: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding-bottom: 0.4rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .project__gallery {
    padding: 3.2rem 2.4rem 7rem;
    column-gap: 1.8rem;
    row-gap: 6rem;
  }
}

@media (max-width: 767px) {
  .project__gallery {
    padding: 2.4rem 1.4rem 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 4.2rem;
  }

  .project__editorial-bar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding-bottom: 2rem;
    margin-bottom: 0;
  }

  .project__editorial-bar__title {
    font-size: 1.7rem;
    line-height: 2.1rem;
  }

  .project__gallery__item,
  .project__gallery__item--slot-1,
  .project__gallery__item--slot-2,
  .project__gallery__item--slot-3,
  .project__gallery__item--slot-4,
  .project__gallery__item--slot-5,
  .project__gallery__item--slot-6,
  .project__gallery__item--slot-7,
  .project__gallery__item--slot-8 {
    margin-top: 0;
  }

  .project__gallery__item:nth-of-type(odd) {
    width: 88%;
    align-self: flex-start;
  }

  .project__gallery__item:nth-of-type(even) {
    width: 86%;
    align-self: flex-end;
  }

  .project__gallery__item:nth-of-type(3n) {
    width: 96%;
    align-self: center;
  }

  .project__editorial-next {
    width: 100%;
    margin-top: 2rem;
    padding-top: 2.8rem;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 1.4rem;
  }

  .project__editorial-next__title {
    font-size: 1.7rem;
    line-height: 2.2rem;
  }
}

.project__next {
  position: relative;
  min-height: 85vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
}

.project__next__header {
  display: flex;
  justify-content: space-between;
  padding: 0 1.8rem 3.2rem;
}

@media (max-width: 767px) {
  .project__next__header {
    flex-direction: column;
    gap: 1.2rem;
    padding: 4rem 1.2rem 2.4rem;
  }
}

.project__next__number,
.project__next__title {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.project__next__right {
  display: flex;
  gap: 23.8rem;
  align-items: baseline;
}

@media (max-width: 767px) {
  .project__next__right {
    gap: 0;
    justify-content: space-between;
  }
}

.project__next__infos {
  width: 30rem;
}

@media (max-width: 767px) {
  .project__next__infos {
    width: auto;
  }
}

.project__next__text,
.project__next__link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.6rem;
  letter-spacing: 0.5px;
  font-weight: 300;
  text-transform: uppercase;
  position: relative;
}

.project__next__media__link {
  position: relative;
  width: 61.6rem;
  height: 34.7rem;
  margin: 0 1.8rem 4.5rem auto;
  overflow: hidden;
  cursor: pointer;
}

@media (max-width: 767px) {
  .project__next__media__link {
    width: calc(100% - 2.4rem);
    height: 19.8rem;
    margin: 0 1.2rem 4.5rem;
  }
}

.project__next__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.45s ease;
}

.project__next__media__link:hover .project__next__media {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* ==========================================================================
   AUTO-HIDING FLOATING OVERLAY SCROLLBAR (Appears while scrolling, draggable)
   ========================================================================== */

.auto-scrollbar {
  position: fixed;
  top: 8px;
  right: 5px;
  bottom: 8px;
  width: 4px;
  z-index: 9999;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s var(--ease-smooth-fast),
              width 0.18s var(--ease-smooth-fast),
              background-color 0.18s ease;
}

.auto-scrollbar.is-visible,
.auto-scrollbar.is-dragging {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.08s ease-out,
              width 0.18s var(--ease-smooth-fast),
              background-color 0.18s ease;
}

.auto-scrollbar:hover,
.auto-scrollbar.is-dragging {
  width: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.auto-scrollbar__thumb {
  width: 100%;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.75);
  transform: translate3d(0, 0, 0);
  will-change: transform, height;
}

/* ==========================================================================
   GLOBAL INVERTED CIRCLE CURSOR (mix-blend-mode: difference)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor *,
  body.has-custom-cursor *::before,
  body.has-custom-cursor *::after {
    cursor: none !important;
  }
}

.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 10000;
  opacity: 0;
}

.custom-cursor-dot {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  transition: opacity 0.14s ease;
}

.custom-cursor-ring {
  width: 96px;
  height: 96px;
  margin-left: -48px;
  margin-top: -48px;
  z-index: 9999;
  transition: opacity 0.16s ease;
}

.custom-cursor-dot svg,
.custom-cursor-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.custom-cursor-dot.is-visible,
.custom-cursor-ring.is-visible {
  opacity: 1;
}

.custom-cursor-dot.is-expanded {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

