.hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: none;
  transition:
    filter 520ms var(--ease-cinema),
    transform 720ms var(--ease-cinema);
}

body.is-work-open .hero-video,
body.is-info-open .hero-video,
body.is-project-open .hero-video {
  filter: blur(9px) brightness(0.46) saturate(0.78);
  transform: scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 54px;
  text-align: center;
  z-index: 5;
  transition:
    opacity 3000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 3000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 3000ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-work-open .hero-content,
body.is-project-open .hero-content,
body.is-info-open .hero-content {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(6px);
  pointer-events: none;
}

.site-title {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(20px, 2.5vw, 38px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  filter: blur(0.18px);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.nav-button {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: var(--tracking-medium);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  filter: blur(0.12px);
  transition:
    color 280ms ease,
    opacity 280ms ease,
    transform 280ms ease,
    letter-spacing 380ms var(--ease-cinema);
}

.nav-button:hover {
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.34em;
  transform: translateY(-1px);
}

/* WORK OVERLAY */

.work-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  padding-top: 96px;
  transition: opacity 650ms var(--ease-cinema);
}

body.is-work-open .work-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-work-soft-exit .work-overlay {
  opacity: 0;
  pointer-events: none;
}

.work-background-blur {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.76)),
    rgba(0, 0, 0, 0.32);
}

.work-overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 18vh;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
}

.work-overlay::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
}

.work-topbar {
  display: none;
}

.work-list {
  position: relative;
  z-index: 10;
  width: min(1180px, 82vw);
  margin: 10vh auto 24vh;
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8.2vh, 112px);
  padding-bottom: 12vh;
}

.work-card {
  position: relative;
  width: 100%;
  aspect-ratio: 2.85 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  transform: translateY(22px);
  opacity: 0;
  transition:
    opacity 900ms var(--ease-cinema),
    transform 900ms var(--ease-cinema),
    box-shadow 700ms var(--ease-cinema);
}

body.is-work-open .work-card {
  opacity: 1;
  transform: translateY(0);
}

body.is-work-soft-exit .work-card {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.995) !important;
  transition-delay: 0ms !important;
  transition-duration: 220ms !important;
}

.work-card:hover {
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.work-card-poster,
.work-card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-poster {
  z-index: 0;
  opacity: 1;
  filter: none;
  transform: scale(1.01);
  transition:
    opacity 760ms var(--ease-cinema),
    transform 1100ms var(--ease-cinema),
    filter 900ms var(--ease-cinema);
}

.work-card-preview {
  z-index: 0;
  opacity: 0;
  filter: none;
  transform: scale(1.018);
  transition:
    opacity 760ms var(--ease-cinema),
    transform 1100ms var(--ease-cinema),
    filter 900ms var(--ease-cinema);
}

.work-card.is-previewing .work-card-poster {
  opacity: 0;
  transform: scale(1.018);
}

.work-card.is-previewing .work-card-preview {
  opacity: 1;
  transform: scale(1.01);
}

.work-card:hover .work-card-poster,
.work-card.is-previewing .work-card-preview {
  filter: none;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.work-card-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-main);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  filter: blur(0.14px);
  transition:
    opacity 500ms ease,
    letter-spacing 650ms var(--ease-cinema),
    filter 650ms var(--ease-cinema);
}

.work-card:hover .work-card-title {
  color: #fff;
  letter-spacing: 0.5em;
  filter: blur(0);
}

/* PROJECT MODAL */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  padding: 84px 24px 28px;
  transition: opacity 600ms var(--ease-cinema);
}

body.is-project-open .project-modal {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.project-window {
  position: relative;
  z-index: 2;
  width: min(1560px, 94vw);
  max-height: calc(100vh - 112px);
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.72);
  box-shadow:
    0 44px 150px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transform: translateY(24px) scale(0.985);
  transition:
    transform 700ms var(--ease-cinema),
    opacity 700ms var(--ease-cinema);
}

body.is-project-open .project-window {
  transform: translateY(0) scale(1);
}

.project-window .modal-close {
  display: none;
}

.project-video-wrap {
  width: calc(100% - 48px);
  max-width: 1480px;
  margin: 24px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}

.project-video-wrap.is-vimeo-wide {
  aspect-ratio: 16 / 9;
}

.project-video-wrap.is-vimeo-vertical {
  width: min(520px, calc(100% - 48px));
  aspect-ratio: 9 / 16;
}

.project-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.project-info {
  width: calc(100% - 84px);
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px 0 56px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-main);
  font-weight: 300;
}

.project-info h2 {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  filter: blur(0.1px);
}

.project-meta {
  margin: 0 0 28px;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.project-description {
  max-width: none;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.035em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.project-description > p {
  max-width: 760px;
  margin: 0 0 18px;
}

.project-description strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

/* PROJECT STILLS */

.project-stills-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.project-stills-label {
  margin: 0 0 20px !important;
  max-width: none !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  filter: blur(0.08px);
}

.project-stills-grid {
  display: grid;
  gap: 14px;
}

/* 16:9 projects: 2 across x 4 rows */
.project-stills-grid.is-wide-stills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-stills-grid.is-wide-stills .project-still {
  aspect-ratio: 16 / 9;
}

/* 9:16 vertical projects: 4 across x 2 rows */
.project-stills-grid.is-vertical-stills {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-stills-grid.is-vertical-stills .project-still {
  aspect-ratio: 9 / 16;
}

.project-still {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 24px 76px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.project-still img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none;
  transform: none;
}

/* INFO OVERLAY */

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 96px 32px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-cinema);
}

body.is-info-open .info-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-info-soft-exit .info-overlay {
  opacity: 0;
  pointer-events: none;
}

.info-panel {
  position: relative;
  width: min(1040px, 86vw);
  max-height: 76vh;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.68);
  box-shadow:
    0 40px 140px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  padding: 46px 52px 52px;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.info-panel.is-switching,
body.is-info-soft-exit .info-panel {
  opacity: 0;
  transform: translateY(8px);
}

.info-panel .modal-close {
  position: absolute;
  top: 22px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: none;
  border-radius: 0;
  filter: blur(0.08px);
  transition:
    color 240ms ease,
    opacity 240ms ease,
    transform 240ms ease,
    letter-spacing 280ms var(--ease-cinema);
}

.info-panel .modal-close:hover {
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  transform: translateY(-1px);
  letter-spacing: 0.26em;
  box-shadow: none;
}

.info-panel h2 {
  margin: 0 0 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  filter: blur(0.1px);
}

.info-copy {
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.035em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.info-copy p {
  margin: 0 0 18px;
}

/* ABOUT CONTENT */

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.about-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(var(--about-photo-brightness, 1));
}

.about-copy {
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.035em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.84);
}

.about-copy p {
  margin: 0 0 18px;
}

.about-copy strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.about-links a {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  filter: blur(0.1px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.about-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* LOGO BELT */

.logo-belt-section {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.logo-belt-label {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.logo-belt-wrap {
  position: relative;
  overflow: hidden;
}

/* Removed edge gradients. The belt should feel cleaner and less boxed-in. */
.logo-belt-wrap::before,
.logo-belt-wrap::after {
  display: none;
}

.logo-belt {
  display: flex;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.logo-card,
.stat-card {
  flex: 0 0 auto;
  height: 74px;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
}

/* Logos float freely and read much larger */
.logo-card {
  min-width: 118px;
  padding: 0 4px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.logo-card img {
  max-width: 156px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1) contrast(1.04);
}

/* Only text/stat callouts stay boxed */
.stat-card {
  min-width: 190px;
  border-radius: 12px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stat-card span {
  padding: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}
/* SCROLLBARS */

.project-window,
.info-panel,
.work-overlay,
.logo-belt {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(255, 255, 255, 0.04);
}

.project-window::-webkit-scrollbar,
.info-panel::-webkit-scrollbar,
.work-overlay::-webkit-scrollbar {
  width: 10px;
}

.logo-belt::-webkit-scrollbar {
  height: 10px;
}

.project-window::-webkit-scrollbar-track,
.info-panel::-webkit-scrollbar-track,
.work-overlay::-webkit-scrollbar-track,
.logo-belt::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.project-window::-webkit-scrollbar-thumb,
.info-panel::-webkit-scrollbar-thumb,
.work-overlay::-webkit-scrollbar-thumb,
.logo-belt::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.34);
}

.project-window::-webkit-scrollbar-thumb:hover,
.info-panel::-webkit-scrollbar-thumb:hover,
.work-overlay::-webkit-scrollbar-thumb:hover,
.logo-belt::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* SITE LOADER / HOME INTRO */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background: #050505;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 760ms var(--ease-cinema),
    visibility 760ms var(--ease-cinema);
}

body.is-site-loaded .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

.loader-core {
  display: grid;
  place-items: center;
  gap: 18px;
}

.loader-mark {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  opacity: 0.92;
  filter: blur(0.12px);
}

.loader-mark span {
  display: block;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 28px rgba(255, 255, 255, 0.035);
  animation: loaderPulse var(--loader-speed, 1.15s) infinite ease-in-out;
}

.loader-mark span:nth-child(1) {
  animation-delay: 0ms;
}

.loader-mark span:nth-child(2) {
  animation-delay: 140ms;
}

.loader-mark span:nth-child(3) {
  animation-delay: 280ms;
}

.loader-mark span:nth-child(4) {
  animation-delay: 420ms;
}

.loader-progress {
  width: 72px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.loader-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.78);
  transform-origin: left center;
  transition: width 220ms ease;
}

@keyframes loaderPulse {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.92);
  }

  42% {
    background: rgba(255, 255, 255, 0.78);
    transform: scale(1);
  }
}

/* Hide home title/nav during boot sequence */

body.is-site-loading .hero-content,
body.is-site-intro .hero-content {
  opacity: 0;
  transform: scale(0.975);
  filter: blur(12px);
  pointer-events: none;
}

body.is-site-ready .hero-content {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  pointer-events: auto;
}

/* Keep home title/nav hidden once a section is active */
body.is-site-ready.is-work-open .hero-content,
body.is-site-ready.is-info-open .hero-content,
body.is-site-ready.is-project-open .hero-content {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(8px);
  pointer-events: none;
}

/* MOBILE */

@media (max-width: 760px) {
  .hero-content {
    gap: 44px;
  }

  .site-title {
    font-size: 17px;
    letter-spacing: 0.26em;
  }

  .home-nav {
    gap: 22px;
  }

  .nav-button {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
  }

  .work-overlay,
  .project-modal,
  .info-overlay {
    padding-top: 78px;
  }

  .work-list {
    width: 86vw;
    margin-top: 8vh;
    gap: 48px;
  }

  .work-card {
    aspect-ratio: 1.85 / 1;
    border-radius: 10px;
  }

  .work-card-title {
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .work-card:hover .work-card-title {
    letter-spacing: 0.3em;
  }

  .project-window {
    width: 94vw;
    max-height: calc(100vh - 94px);
    border-radius: 14px;
  }

  .project-video-wrap {
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 9px;
  }

  .project-video-wrap.is-vimeo-vertical {
    width: min(420px, calc(100% - 24px));
  }

  .project-info {
    width: calc(100% - 44px);
    padding: 28px 0 38px;
  }

  .project-stills-section {
    margin-top: 34px;
    padding-top: 22px;
  }

  .project-stills-grid {
    gap: 10px;
  }

  .project-stills-grid.is-wide-stills {
    grid-template-columns: 1fr;
  }

  .project-stills-grid.is-vertical-stills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-still {
    border-radius: 5px;
  }

  .project-info h2 {
    font-size: 12px;
    letter-spacing: 0.28em;
  }

  .project-description,
  .info-copy,
  .about-copy {
    font-size: 13px;
  }

  .info-overlay {
    padding: 78px 22px 22px;
  }

  .info-panel {
    width: 90vw;
    max-height: 78vh;
    padding: 34px 28px 38px;
  }

  .info-panel .modal-close {
    top: 18px;
    right: 22px;
    font-size: 8px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    aspect-ratio: 16 / 10;
  }

    .logo-belt {
    gap: 24px;
    padding-bottom: 14px;
  }

  .logo-card,
  .stat-card {
    height: 64px;
  }

  .logo-card {
    min-width: 96px;
    padding: 0 2px;
  }

  .logo-card img {
    max-width: 126px;
    max-height: 42px;
  }

  .stat-card {
    min-width: 168px;
    padding: 0 18px;
  }

  .stat-card span {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
}