:root {
  --bg: #000;
  --ink: #fff;
  --link: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Karla, Icons, Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  font-size: clamp(1rem, 1.133vw, 1.225rem);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.1em solid currentColor;
  padding-bottom: 0.1em;
}

img {
  display: block;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

[data-backdrop="badtv"].backdrop,
[data-backdrop="badtv"].backdrop > div,
[data-backdrop="badtv"] .background_splash,
[data-backdrop="badtv"].backdrop .background_splash canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  opacity: 1 !important;
  z-index: 0 !important;
}

[data-backdrop="badtv"].backdrop .background_splash canvas {
  display: block !important;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

body:not(.home-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 50%, rgba(0, 0, 0, 0.16) 50%),
    radial-gradient(circle at 50% 48%, transparent 50%, rgba(0, 0, 0, 0.28) 100%);
  background-size: 100% 4px, 100% 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 14.5rem;
  pointer-events: none;
}

.logo-link {
  position: fixed;
  top: 1.4rem;
  left: 1.4rem;
  width: clamp(9rem, 11.42vw, 12.35rem);
  display: block;
  border: 0;
  padding: 0;
  pointer-events: auto;
}

.logo-link img {
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.main-nav {
  position: fixed;
  top: 2.72rem;
  left: 50%;
  display: flex;
  gap: 0;
  color: var(--link);
  font-size: clamp(1rem, 1.133vw, 1.225rem);
  line-height: 1.3;
  font-weight: 400;
  transform: translateX(-50%);
  pointer-events: auto;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  color: var(--link);
  border-bottom-color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
  opacity: 1;
}

.main-nav a[aria-current="page"] {
  opacity: 0.4;
}

.main-nav a:not(:last-child) {
  margin-right: 2.906rem;
}

.main-nav a:nth-child(2) {
  margin-right: 3.196rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  top: 0.63em;
  left: calc(100% + 0.55rem);
  width: 2.15rem;
  height: 0.12em;
  background: rgba(255, 255, 255, 0.78);
}

.main-nav a:last-child::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

.home-page {
  overflow: hidden;
}

.home-page,
.home-page .site-shell {
  height: 100vh;
}

.home-stage,
.home-hero {
  min-height: 100vh;
}

.home-hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.home-hero-image {
  position: fixed;
  inset: -4px;
  z-index: 1;
  filter: brightness(1.1) contrast(1.22) saturate(0.96);
}

.home-hero-image img {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  max-width: none;
  object-fit: cover;
  object-position: 50% 43%;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: fixed;
  inset: -4px;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.home-hero::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.2) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.018), rgba(0, 255, 255, 0.014), transparent 58%),
    radial-gradient(circle at 48% 46%, transparent 47%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.34));
  background-size: 100% 4px, 7px 100%, 100% 100%, 100% 100%;
}

.home-hero::after {
  height: 16vh;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  opacity: 0.1;
  animation: scan-roll 8s linear infinite;
}

.home-copy {
  position: absolute;
  z-index: 10;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
}

.home-copy-left {
  left: 2.36rem;
  top: 18.97rem;
}

.home-copy-right {
  left: 45.8vw;
  top: 19rem;
  width: min(48rem, 45vw);
}

.home-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 2.185vw, 2.36rem);
  line-height: 1;
  font-weight: 700;
}

.home-copy-left p {
  margin: 0;
  font-size: clamp(1.34rem, 1.456vw, 1.573rem);
  line-height: 1.4;
  font-weight: 700;
}

.home-copy-right p,
.home-copy-right a {
  font-size: clamp(1rem, 1.133vw, 1.225rem);
  line-height: 1.3;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.home-copy-right p {
  margin: 0 0 3.22rem;
  white-space: nowrap;
}

.about-work-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.about-work-link svg {
  width: 0.9em;
  height: 0.6em;
  overflow: visible;
}

.about-work-link path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-frame {
  width: 100%;
  min-height: 100vh;
  padding: 16.61rem 5.4rem 6rem;
}

.text-panel,
.wide-panel,
.contact-panel {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.wide-panel {
  padding: 2.36rem;
}

.text-panel p,
.prototype-copy,
.contact-panel {
  color: #fff;
  font-size: clamp(1rem, 1.133vw, 1.225rem);
  line-height: 1.4;
  font-weight: 400;
}

.text-panel p {
  margin: 0 0 2rem;
}

strong,
b {
  font-weight: 700;
}

em {
  font-style: italic;
}

.quiet-line {
  margin-top: 2.5rem;
  font-style: italic;
}

h1,
h2 {
  margin: 0;
  color: #fff;
}

.wide-panel h1 {
  margin: 0 0 0.86rem;
  font-size: clamp(2.25rem, 2.67vw, 2.884rem);
  line-height: 1;
  font-weight: 400;
}

h2,
.contact-panel h2 {
  font-size: clamp(1.34rem, 1.456vw, 1.573rem);
  line-height: 1.4;
  font-weight: 400;
}

.prototype-slideshow {
  position: relative;
  width: 100%;
  margin: 0 0 1.8rem;
}

.prototype-slides {
  position: relative;
  display: flex;
  width: 100%;
  height: min(28.88vw, 31.16rem);
  min-height: 24rem;
  overflow: hidden;
  background: #000;
  --slide-index: 0;
}

.prototype-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: translateX(calc(var(--slide-index) * -100%));
  transition: transform 500ms ease;
}

.prototype-slide.is-active {
  opacity: 1;
}

.slide-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3rem;
  height: 5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.prototype-slideshow:hover .slide-control,
.slide-control:focus-visible {
  opacity: 1;
}

.slide-control.prev {
  left: -4.5rem;
}

.slide-control.next {
  right: -4.5rem;
}

.prototype-copy {
  width: 100%;
  margin: 0;
}

.prototype-copy h2 {
  margin-top: 1.8rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
}

.prototype-copy p {
  margin: 0 0 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.contact-frame {
  padding-top: 16.61rem;
}

.contact-panel {
  padding: 5.74rem 2.36rem 0;
  text-align: center;
}

.social-links {
  margin-top: 1.45rem;
  text-align: center;
}

.social-links a {
  border: 0;
  margin: 0 0.55rem;
  padding: 0;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 0.12rem;
}

.social-icons svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  vertical-align: middle;
}

@keyframes scan-roll {
  0% {
    transform: translateY(-130%);
  }

  100% {
    transform: translateY(720%);
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 0.875rem;
  }

  .site-header {
    height: 0;
  }

  .logo-link {
    width: clamp(6.2rem, 28vw, 7.4rem);
    top: 1rem;
    left: 1rem;
    z-index: 42;
  }

  .main-nav {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 40;
    width: min(84vw, 20rem);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    background: rgba(20, 20, 20, 0.95);
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.25rem;
    line-height: 1.5;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.4, 0, 0.22, 1);
    pointer-events: none;
  }

  body.mobile-menu-open .main-nav {
    transform: translateX(0);
    pointer-events: auto;
  }

  .main-nav a {
    margin: 0 0 1rem !important;
    border-bottom-color: rgba(255, 255, 255, 0.42);
  }

  .main-nav a:not(:last-child) {
    margin-right: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .mobile-menu-toggle {
    position: fixed;
    top: 1.15rem;
    right: 1.05rem;
    z-index: 44;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.34rem;
    padding: 0.62rem;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform-origin: 50% 50%;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
  }

  .home-copy-left {
    left: 1rem;
    right: 1rem;
    top: 25vh;
  }

  .home-copy-right {
    left: 1rem;
    right: 1rem;
    top: 44vh;
    bottom: auto;
    width: auto;
  }

  .home-copy h1 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1;
  }

  .home-copy-left p {
    font-size: clamp(1.1rem, 5.2vw, 1.42rem);
  }

  .home-copy-right p,
  .home-copy-right a {
    font-size: 1rem;
    line-height: 1.3;
  }

  .home-copy-right p {
    white-space: normal;
    max-width: 21rem;
    margin-bottom: 1.8rem;
  }

  .content-frame,
  .prototype-copy {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-frame {
    padding-top: 9rem;
    padding-bottom: 4rem;
  }

  .text-panel p,
  .prototype-copy,
  .contact-panel {
    font-size: 1rem;
    line-height: 1.4;
  }

  .wide-panel,
  .contact-panel {
    padding: 0;
  }

  .wide-panel h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 1.2rem;
  }

  .prototype-slideshow {
    width: 100%;
    margin: 0 0 1.5rem;
  }

  .prototype-slides {
    height: 58vw;
    min-height: 12.5rem;
  }

  .slide-control.prev {
    left: 0;
  }

  .slide-control.next {
    right: 0;
  }

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

  .contact-frame {
    padding-top: 10rem;
  }

  .contact-panel {
    padding-top: 14vh;
  }

  .contact-panel h2 {
    font-size: 1.25rem;
  }
}
