@font-face {
  font-family: "Monoblock";
  src: url("Monoblock-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --blue: #006aff;
  --white: #ffffff;
  --dark: #171717;
  --gray: #3b3b3b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Monoblock", "Space Grotesk", system-ui, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-nav {
  position: fixed;
  left: 2.4vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 24px;
  pointer-events: auto;
}

.page-nav::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: transparent;
  pointer-events: auto;
}

.nav-pill {
  display: inline-block;
  margin: -24px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: width 0.35s ease, height 0.35s ease, max-height 0.35s ease;
  overflow: hidden;
  max-height: 500px;
}

.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.9rem 0.8rem;
  align-items: center;
  transition: transform 0.35s ease, padding 0.35s ease, gap 0.35s ease;
}

.nav-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.25s ease, opacity 0.25s ease, margin 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  margin: 0;
  flex: 0 0 34px;
}

.nav-link:hover {
  transform: scale(1.05);
  border-color: rgba(0, 106, 255, 0.4);
  color: var(--white);
}

.nav-link.is-active {
  border-color: rgba(0, 106, 255, 0.6);
  color: var(--blue);
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.page-nav.is-hero {
  opacity: 0;
}

.page-nav.is-hero:hover {
  opacity: 1;
}

.page-nav.is-collapsed .nav-pill {
  width: 56px;
  height: 56px;
  max-height: 56px;
  max-width: 56px;
}

.page-nav.is-collapsed .nav-stack {
  padding: 0;
  transform: translateY(calc(-1 * var(--nav-shift, 0px)));
}

.page-nav.is-collapsed .nav-link {
  opacity: 0;
  margin: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition-delay: 0s;
}

.page-nav.is-collapsed .nav-link.is-active {
  opacity: 1;
  margin: 0;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.page-nav.is-collapsed.is-expanded .nav-link {
  opacity: 1;
  margin: 0;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: 0.12s;
}

.page-nav.is-collapsed.is-expanded .nav-pill {
  width: auto;
  height: auto;
  max-height: 500px;
  max-width: none;
}

.page-nav.is-collapsed.is-expanded .nav-stack {
  padding: 0.9rem 0.8rem;
  transform: translateY(0);
}

.page-nav.is-collapsed.is-expanded .nav-link.is-active {
  transition-delay: 0s;
}

.museum {
  display: flex;
  flex-direction: column;
}

.scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8vw;
  position: relative;
  opacity: 0;
  transform: translateY(12vh);
  transition: opacity 0.8s ease, transform 0.8s ease;
  scroll-margin-top: 14vh;
}

.scene.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scene-hero {
  text-align: left;
  background: var(--dark);
  opacity: 1;
  transform: none;
  transition: none;
  position: relative;
  z-index: 2;
  padding-bottom: 8vh;
}

.scene-hero .hero-text {
  opacity: 1;
  transform: none;
  transition: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 3rem;
  border-radius: 1rem;
  width: fit-content;
}

.scene-hero.is-hidden .hero-text {
  opacity: 1;
  transform: none;
}

.content {
  width: 100%;
  max-width: 1100px;
  margin-left: 3vw;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.08em;
  color: var(--blue);
}

.scene-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7.2rem);
}

.role {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.6rem;
}

.scene-hero .role {
  margin-top: 0.3rem;
  color: var(--white);
}

.scene-hero .role + .role {
  margin-top: 0.2rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.index {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.body-copy {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 640px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 2.5rem;
  align-items: center;
}

.scene-about {
  min-height: 200vh;
  align-items: flex-start;
  padding-top: 28vh;
  padding-bottom: 16vh;
}

.scene-about .content {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
}

.about-name {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  transition: color 0.35s ease;
}

.about-name.is-highlight {
  color: var(--blue);
}

.media-stack {
  width: 100%;
  height: 360px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.media-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 106, 255, 0.18), rgba(23, 23, 23, 0.2));
  pointer-events: none;
}

.about-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.about-image:first-child {
  opacity: 1;
}

.scene-work {
  background: var(--white);
  color: var(--gray);
  align-items: flex-start;
  padding-top: 22vh;
  padding-bottom: 12vh;
}

.scene-work .section-title h2 {
  color: var(--gray);
}

.work-block {
  margin-top: 2.8rem;
}

.work-sticky-sentinel {
  display: block;
  height: 0;
}

.work-subtitle {
  position: sticky;
  top: 6vh;
  z-index: 6;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 1.6rem;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  letter-spacing: normal;
  text-transform: none;
  opacity: 1;
  transition: opacity 0.25s ease;
  position: sticky;
  isolation: isolate;
}

.work-subtitle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.work-subtitle.is-fading {
  opacity: 0;
}

.scene-contact {
  background: var(--dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3rem;
  align-items: center;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.contact-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-value {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--white);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--blue);
}

.contact-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.contact-avatar img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  transform: translateY(-20%);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(20vh, 28vh, 36vh);
  column-gap: 2.8rem;
  align-items: start;
}

.work-card {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(var(--static-offset, 0px));
}

.work-card h4 {
  font-size: 1.2rem;
  margin: 0.9rem 0 0.35rem;
  color: var(--gray);
}

.work-card p {
  color: rgba(59, 59, 59, 0.75);
}

.work-media {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(0, 106, 255, 0.2), rgba(0, 0, 0, 0.1));
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.work-media--wide {
  aspect-ratio: 16 / 9;
}

.work-media--tall {
  aspect-ratio: 9 / 16;
}

.work-card--tall {
  width: min(100%, calc(90vh * 9 / 16));
  max-width: min(100%, calc(90vh * 9 / 16));
  margin-inline: auto;
}

.work-grid--shorts .work-card h4 {
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.work-grid--shorts .work-card p {
  min-height: 3.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.work-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.2rem;
  color: var(--white);
  transition: opacity 0.25s ease;
}

.work-overlay-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.work-overlay-cta {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.work-media:hover .work-overlay {
  opacity: 1;
}

.work-grid .work-card:nth-child(even) {
  --static-offset: 120px;
}

.work-grid--shorts .work-card:nth-child(even) {
  --static-offset: 160px;
}

@media (max-width: 720px) {
  .scene {
    padding: 0 6vw;
    align-items: flex-start;
    padding-top: 20vh;
  }

  .scene-hero {
    justify-content: center;
  }

  .content {
    margin-left: 0;
  }

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

  .scene-about {
    min-height: 150vh;
    padding-top: 14vh;
    padding-bottom: 14vh;
  }

  .scene-about .content {
    position: relative;
    top: auto;
    transform: none;
  }

  .media-stack {
    height: 280px;
  }

  .page-nav {
    display: none;
  }

  .work-subtitle {
    position: static;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    letter-spacing: normal;
    text-transform: none;
  }

  .work-subtitle.is-sticky {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    letter-spacing: normal;
  }

  .work-subtitle::before {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
    row-gap: clamp(8vh, 12vh, 16vh);
    column-gap: 1.6rem;
  }

  .work-grid .work-card {
    --static-offset: 0px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-avatar {
    width: 220px;
    height: 220px;
  }
}

/* ── Video inside work cards ── */
.work-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hero background video ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
}

/* ── Fullscreen video modal ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-modal .modal-video {
  position: static;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  outline: none;
}

.modal-spinner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: modal-spin 0.7s linear infinite;
  z-index: 1;
}

.modal-spinner[hidden] {
  display: none;
}

@keyframes modal-spin {
  to { transform: rotate(360deg); }
}

.video-modal .modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 101;
}

.video-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Clipboard copy feedback ── */
.contact-clipboard {
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-clipboard:hover {
  color: var(--blue);
}

.contact-clipboard.is-copied {
  color: #27ae60;
}

/* ── About name links ── */
a.about-name {
  color: inherit;
  text-decoration: none;
}

a.about-name:hover {
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
