@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inconsolata:wght@400;500;700&display=swap');

@font-face {
  font-family: 'Imperfetto Four';
  src: url('assets/4-imperfetto-four.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #050506;
  --panel: rgba(6, 7, 9, 0.88);
  --line: rgba(210, 212, 220, 0.45);
  --text: rgba(230, 230, 226, 0.9);
  --muted: rgba(185, 188, 200, 0.68);
  --quiet: rgba(185, 188, 200, 0.42);
  --blue: #8ea8ff;
  --magenta: #f04aa7;
  --yellow: #efe6ad;
  --menu-width: clamp(15.5rem, 21vw, 20rem);
  --frame-pad: clamp(1.25rem, 3.2vw, 2.65rem);
  --content-pad: clamp(1.1rem, 3vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--text);
  font-family: 'Inconsolata', Consolas, 'Liberation Mono', monospace;
  scrollbar-color: rgba(142, 168, 255, 0.58) rgba(255, 255, 255, 0.08);
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 62% 36%, rgba(78, 91, 122, 0.16), transparent 34rem), #050506;
  color: var(--text);
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 0.9rem;
  height: 1.08rem;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 120ms ease;
}

.custom-cursor::before,
.custom-cursor::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, 0 100%, 100% 62%);
}

.custom-cursor::before {
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0.25rem 0.8rem rgba(0, 0, 0, 0.28));
}

.custom-cursor::after {
  left: 1px;
  top: 2px;
  width: calc(100% - 3px);
  height: calc(100% - 4px);
  background: rgba(0, 0, 0, 0.92);
}

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

body::selection {
  background: rgba(240, 74, 167, 0.45);
}

body::-webkit-scrollbar,
.site-nav::-webkit-scrollbar,
.lightbox-panel::-webkit-scrollbar {
  width: 0.65rem;
}

body::-webkit-scrollbar-track,
.site-nav::-webkit-scrollbar-track,
.lightbox-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

body::-webkit-scrollbar-thumb,
.site-nav::-webkit-scrollbar-thumb,
.lightbox-panel::-webkit-scrollbar-thumb {
  background: rgba(142, 168, 255, 0.5);
  border: 2px solid rgba(5, 5, 6, 0.9);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-frame {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--menu-width);
  padding: var(--frame-pad);
  border-right: 1px solid rgba(210, 212, 220, 0.22);
  background: linear-gradient(90deg, rgba(3, 3, 4, 0.96), rgba(3, 3, 4, 0.78));
}

.site-brand {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.site-name {
  margin: 0;
  color: rgba(222, 222, 218, 0.92);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2.55rem, 4.7vw, 4.4rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-role {
  margin: 0.5rem 0 0;
  color: var(--magenta);
  font-family: 'Imperfetto Four', 'Brush Script MT', cursive;
  font-size: clamp(1.3rem, 2.15vw, 2rem);
  line-height: 0.92;
}

.site-rule {
  width: min(100%, 17.4rem);
  height: 0.18rem;
  margin: 1rem 0 1.4rem;
  background: rgba(214, 214, 208, 0.78);
  box-shadow: 0 0 8px rgba(214, 214, 208, 0.28);
}

.site-nav {
  display: grid;
  gap: 1.4rem;
  color: rgba(202, 202, 198, 0.78);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.12;
}

.nav-title {
  display: block;
  margin-bottom: 0.1rem;
  color: rgba(225, 225, 220, 0.9);
  font-size: 1.08em;
  font-weight: 700;
  font-style: italic;
}

.site-nav a {
  display: table;
  color: inherit;
  text-decoration: none;
}

.site-nav a[aria-current='page'],
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--magenta);
  outline: none;
}

.menu-toggle {
  position: fixed;
  z-index: 40;
  display: none;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(222, 222, 218, 0.88);
  transition: color 140ms ease, transform 120ms ease;
}

.menu-toggle span {
  display: block;
  width: 1.55rem;
  height: 0.16rem;
  margin: 0.11rem 0;
  background: currentColor;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle:active,
body.menu-open .menu-toggle {
  color: var(--magenta);
  outline: none;
}

.menu-toggle:active {
  transform: translateY(2px) scale(0.96);
}

.page-main {
  min-height: 100vh;
  margin-left: var(--menu-width);
  padding: var(--frame-pad) var(--content-pad) 0;
}

.page-header {
  max-width: 64rem;
  margin-bottom: clamp(1.7rem, 4vw, 3.6rem);
}

.page-kicker {
  margin: 0 0 0.35rem;
  color: var(--magenta);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: rgba(235, 235, 232, 0.94);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
}

.page-intro {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.page-breadcrumb,
.theater-breadcrumb {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theater-breadcrumb {
  margin-bottom: 0;
}

.page-breadcrumb a,
.theater-breadcrumb a {
  color: var(--magenta);
  text-decoration: none;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible,
.theater-breadcrumb a:hover,
.theater-breadcrumb a:focus-visible {
  color: var(--blue);
  outline: none;
}

.gallery-grid {
  column-width: 15rem;
  column-gap: 0.62rem;
  max-width: 84rem;
  padding-bottom: 4rem;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 0.62rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 212, 220, 0.2);
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  cursor: pointer;
  break-inside: avoid;
}

.gallery-card img,
.gallery-placeholder {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 260ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img,
.gallery-card:hover .gallery-placeholder,
.gallery-card:focus-visible .gallery-placeholder {
  transform: scale(1.06);
}

.gallery-placeholder {
  min-height: var(--placeholder-height, 16rem);
  background:
    linear-gradient(135deg, transparent 49.4%, rgba(240, 74, 167, 0.18) 50%, transparent 50.6%),
    linear-gradient(45deg, transparent 49.4%, rgba(142, 168, 255, 0.18) 50%, transparent 50.6%),
    rgba(180, 184, 195, 0.09);
}

.thumb-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  background: rgba(5, 5, 6, 0.78);
  color: rgba(221, 221, 216, 0.82);
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-card:hover .thumb-bar,
.gallery-card:focus-visible .thumb-bar {
  opacity: 1;
  transform: translateY(0);
}

.thumb-info {
  display: inline-grid;
  place-items: center;
  width: 1.28rem;
  height: 1.28rem;
  border: 1px solid rgba(222, 222, 218, 0.58);
  border-radius: 999px;
  color: rgba(222, 222, 218, 0.86);
  font-weight: 700;
  text-transform: lowercase;
}

.theater-main {
  margin-left: 0;
  padding-top: clamp(8rem, 16vh, 11rem);
}

.page-theater .site-frame {
  width: auto;
  right: auto;
  bottom: auto;
  border-right: 0;
  background: transparent;
}

.page-theater .site-rule {
  display: none;
}

.page-theater .site-nav {
  position: fixed;
  top: calc(var(--frame-pad) + 3.35rem);
  right: var(--frame-pad);
  left: auto;
  display: grid;
  width: min(24rem, calc(100vw - 2 * var(--frame-pad)));
  max-height: calc(100vh - 11rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(210, 212, 220, 0.26);
  background: rgba(4, 4, 5, 0.94);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.page-theater .menu-toggle {
  display: grid;
  position: fixed;
  top: var(--frame-pad);
  right: var(--frame-pad);
  left: auto;
  transform: none;
}

.page-theater .menu-toggle:active {
  transform: translateY(2px) scale(0.96);
}

.page-theater.menu-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theater-stage {
  width: min(78rem, calc(100vw - 2 * var(--content-pad)));
  margin: 0 auto;
}

.video-shell {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid rgba(210, 212, 220, 0.22);
  background: #000;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.42);
}

.video-placeholder,
.embed-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--quiet);
  text-align: center;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  max-width: 74rem;
  padding-bottom: 4rem;
}

.project-block {
  border-top: 1px solid rgba(210, 212, 220, 0.22);
  padding: 1.1rem 0 0;
}

.project-block h2 {
  margin: 0 0 0.55rem;
  color: rgba(230, 230, 226, 0.9);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.project-block p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.basic-content {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.page-bio .basic-content {
  max-width: 72rem;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 30rem) minmax(16rem, 36rem);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4rem);
}

.bio-head-stage {
  position: relative;
  min-height: clamp(22rem, 54vh, 34rem);
  border: 1px solid rgba(210, 212, 220, 0.18);
  background: #050506;
  overflow: hidden;
}

.bio-head-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bio-head-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0), rgba(5, 5, 6, 0.18)),
    radial-gradient(circle at 50% 42%, transparent 0, transparent 45%, rgba(0, 0, 0, 0.42) 100%);
}

.bio-copy {
  max-width: 38rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 1.8rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  color: rgba(230, 230, 226, 0.88);
  font-size: 0.98rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(210, 212, 220, 0.26);
  background: rgba(0, 0, 0, 0.36);
  color: var(--text);
  padding: 0.65rem 0.75rem;
}

.contact-form textarea {
  min-height: 11rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 1px solid rgba(210, 212, 220, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(225, 225, 220, 0.78);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  border-color: rgba(240, 74, 167, 0.72);
  color: var(--magenta);
  outline: none;
}

.form-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--quiet);
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  margin: 5rem calc(-1 * var(--content-pad)) 0;
  padding: 1.2rem var(--content-pad);
  border-top: 1px solid rgba(210, 212, 220, 0.18);
  color: var(--quiet);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.social-links a,
.email-signup button,
.download-button {
  border: 1px solid rgba(210, 212, 220, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(225, 225, 220, 0.78);
  text-decoration: none;
}

.social-links a {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
}

.email-signup {
  display: flex;
  gap: 0.45rem;
  justify-self: center;
  min-width: 0;
  width: min(21rem, 100%);
}

.email-signup input {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(210, 212, 220, 0.26);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.55rem 0.65rem;
}

.email-signup button,
.download-button {
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.social-links a:hover,
.social-links a:focus-visible,
.email-signup button:hover,
.email-signup button:focus-visible,
.download-button:hover,
.download-button:focus-visible {
  border-color: rgba(240, 74, 167, 0.72);
  color: var(--magenta);
  outline: none;
}

.social-links a[data-social="ig"]:hover,
.social-links a[data-social="ig"]:focus-visible {
  border-color: rgba(239, 230, 173, 0.82);
  background: linear-gradient(135deg, rgba(239, 230, 173, 0.24), rgba(240, 74, 167, 0.28));
  color: #fff0c2;
}

.social-links a[data-social="fb"]:hover,
.social-links a[data-social="fb"]:focus-visible {
  border-color: rgba(85, 210, 255, 0.76);
  background: rgba(85, 210, 255, 0.09);
  color: #8ee7ff;
}

.social-links a[data-social="yt"]:hover,
.social-links a[data-social="yt"]:focus-visible {
  border-color: rgba(240, 74, 167, 0.78);
  background: rgba(240, 74, 167, 0.1);
  color: var(--magenta);
}

.copyright {
  text-align: left;
  white-space: nowrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 25rem);
  background: rgba(0, 0, 0, 0.94);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-media {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.lightbox-media img {
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  object-fit: contain;
}

.lightbox-panel {
  overflow: auto;
  padding: 2rem;
  border-left: 1px solid rgba(210, 212, 220, 0.2);
  background: rgba(5, 5, 6, 0.96);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(210, 212, 220, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 760px), (max-height: 650px) {
  .site-frame {
    position: fixed;
    right: 0;
    bottom: auto;
    width: auto;
    padding: 1rem;
    border-right: 0;
    background: transparent;
  }

  .site-name {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site-role {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }

  .site-rule {
    margin-bottom: 0;
  }

  .menu-toggle {
    display: grid;
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    transform: none;
  }

  .menu-toggle:active {
    transform: translateY(2px) scale(0.96);
  }

  .site-nav,
  .page-theater .site-nav {
    position: fixed;
    top: 4.15rem;
    right: 1rem;
    left: auto;
    display: grid;
    width: min(24rem, calc(100vw - 2rem));
    max-height: calc(100vh - 10.6rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid rgba(210, 212, 220, 0.26);
    background: rgba(4, 4, 5, 0.94);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.4rem);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  body.menu-open .site-nav,
  .page-theater.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-title {
    margin-bottom: 0.2rem;
    font-size: 1.18rem;
  }

  .site-nav a {
    display: block;
    min-height: 2.35rem;
    padding: 0.48rem 0 0.48rem 1.05rem;
  }

  .page-main,
  .theater-main {
    margin-left: 0;
    padding: clamp(12.5rem, 32vh, 15rem) 1rem 0;
  }

  .gallery-grid {
    column-width: 11.5rem;
  }

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

  .bio-head-stage {
    min-height: clamp(18rem, 46vh, 26rem);
  }

  .thumb-bar {
    opacity: 1;
    transform: none;
  }

  .lightbox {
    grid-template-columns: 1fr;
  }

  .lightbox-media {
    min-height: 54vh;
    padding: 3.25rem 1rem 1rem;
  }

  .lightbox-panel {
    border-top: 1px solid rgba(210, 212, 220, 0.2);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  .copyright {
    text-align: left;
  }

  .email-signup {
    flex-direction: column;
    justify-self: stretch;
    width: 100%;
  }
}
