:root {
  --bg: #060606;
  --cream: #f0ede6;
  --red: #cc1c1c;
  --alert: #ff4444;
  --ok: #00c97a;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--mono);
  overflow-x: hidden;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 6, 0.92) 0%,
    rgba(6, 6, 6, 0.72) 70%,
    rgba(6, 6, 6, 0) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-nav__logo {
  display: block;
  height: 22px;
  width: auto;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 6px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: var(--cream);
}

.lang-switch__btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.site-nav__menu a,
.site-nav__drawer a,
.site-nav__brand {
  text-decoration: none;
}

.nav-glitch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.nav-glitch:hover,
.nav-glitch:focus-visible,
.nav-glitch.is-playing {
  color: var(--cream);
}

.nav-glitch__text {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
}

.nav-glitch__block {
  display: none;
}

.site-nav__toggle {
  display: none;
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.site-nav__toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cream);
}

.site-nav__drawer {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 20px;
  background: rgba(6, 6, 6, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.site-nav__drawer[hidden] {
  display: none;
}

.site-nav__drawer a {
  padding: 14px 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  width: 100%;
}

.site-nav__drawer a:hover,
.site-nav__drawer a.is-playing {
  color: var(--cream);
}

.hero {
  position: relative;
  height: 320vh;
  z-index: 2;
}

.hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero__blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: filter;
  filter: blur(7px);
}

#headCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#headCanvas.is-ready {
  opacity: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.018;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0.45;
  will-change: opacity;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 15%,
    rgba(0, 0, 0, 0.18) 38%,
    rgba(0, 0, 0, 0.62) 60%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.hero__top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.hero__frame {
  position: absolute;
  top: 64px;
  left: 20px;
  right: 20px;
  bottom: 60px;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.hero__spacer {
  flex: 1;
  min-height: 0;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.hero__badge {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

.hero__scan {
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 160px;
}

.hero__scan-label {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hero__scan-value {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.hero__scan-status {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--alert);
}

.hero__scan-status.is-full {
  color: var(--ok);
}

.hero__scan-dot {
  width: 6px;
  height: 6px;
  background: var(--alert);
  flex-shrink: 0;
}

.hero__scan-status.is-full .hero__scan-dot {
  background: var(--ok);
}

.hero__scan-bar {
  margin-top: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.hero__scan-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--alert);
  transition: background 0.5s ease;
}

.hero__scan-status.is-full ~ .hero__scan-bar .hero__scan-fill {
  background: var(--ok);
}

.hero__signals {
  position: absolute;
  inset: 0;
  z-index: 21;
  pointer-events: none;
}

.signal {
  position: absolute;
  min-width: 190px;
  will-change: transform;
}

.signal__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.signal__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: #fff;
}

.signal__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.signal__rows {
  margin-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.signal__row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.signal__k {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 52px;
  flex-shrink: 0;
  opacity: 0.6;
  color: #fff;
}

.signal__v {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.9;
  color: #fff;
}

.signal__bars {
  margin-left: 14px;
  display: flex;
  gap: 3px;
  height: 10px;
  align-items: flex-end;
}

.signal__bar {
  width: 3px;
  background: currentColor;
  opacity: 0.85;
}

.hero__copy {
  flex-shrink: 0;
  padding: 18px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: min(1180px, 100%);
}

.hero__eyebrow {
  margin-bottom: 12px;
  padding-top: 20px;
  line-height: 0;
}

.hero__logo {
  display: block;
  height: clamp(28px, 3.2vw, 40px);
  width: auto;
  opacity: 0.92;
}

.hero__headline {
  margin: 0 0 14px;
  font-family: var(--display);
  /* Match SignalIQ concept: PP Telegraf 900 @ ~0.94 lh — Schibsted Grotesk stand-in */
  font-size: clamp(18px, calc(min(1130px, 100vw - 88px) / 22), 56px);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: normal;
  line-height: 1.05;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.hero__headline .line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero__copy {
    padding: 12px 14px 14px;
  }

  .hero__headline {
    font-size: clamp(14px, calc((100vw - 68px) / 22), 30px);
  }
}

.redact {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.redact__block {
  position: absolute;
  inset: -2px -2px -2px -4px;
  background: var(--red);
  transform-origin: right center;
  display: block;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}

.hero__subhead {
  margin: 0;
  font-size: clamp(12px, 1.2vw + 8px, 15px);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
  pointer-events: auto;
  cursor: default;
  max-width: 55rem;
}

.hero__subhead:hover,
.hero__subhead.is-playing {
  color: var(--cream);
}

.text-glitch__text {
  display: inline;
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  text-align: center;
}

.site-footer--hero {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 30;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.site-footer__copy {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer--hero .site-footer__copy {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.whatsapp-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: auto;
  height: auto;
  text-decoration: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.whatsapp-chat__bubble {
  position: relative;
  max-width: 180px;
  padding: 10px 12px;
  border-radius: 16px 16px 4px 16px;
  background: #f0ede6;
  color: #121212;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  animation: whatsappBubbleIn 0.55s ease 0.4s both;
}

.whatsapp-chat__bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #f0ede6;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: rotate(25deg);
}

.whatsapp-chat__img {
  display: block;
  width: 72px;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.whatsapp-chat:hover .whatsapp-chat__img,
.whatsapp-chat:focus-visible .whatsapp-chat__img {
  transform: scale(1.08);
}

.whatsapp-chat:focus-visible {
  outline: 2px solid rgba(240, 237, 230, 0.55);
  outline-offset: 6px;
  border-radius: 18px;
}

@keyframes whatsappBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .whatsapp-chat {
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-chat__bubble {
    max-width: 150px;
    font-size: 10px;
    padding: 8px 10px;
  }

  .whatsapp-chat__img {
    width: 60px;
  }
}

.after {
  min-height: 40vh;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: 72px;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 110px 28px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(204, 28, 28, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(0, 201, 122, 0.06), transparent 50%),
    var(--bg);
}

.page__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page__frame {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 32px 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page--work .page__frame {
  max-width: 1120px;
}

.page--partners .page__frame {
  max-width: 1120px;
}

.page--partners .page__title {
  max-width: none;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}

.partner-grid--biz {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  margin-bottom: 40px;
}

.partner {
  display: grid;
  place-items: center;
  gap: 10px;
  margin: 0;
  min-height: 112px;
  padding: 16px 12px 12px;
  background: #f4f1ea;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner--dark {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.12);
}

.partner img {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: contain;
}

.partner-grid--biz .partner img {
  height: 72px;
}

.partner__name {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 6, 6, 0.55);
  text-align: center;
}

.partner--dark .partner__name {
  color: rgba(240, 237, 230, 0.55);
}

.page.is-ready .partner {
  opacity: 0;
  transform: translateY(10px);
  animation: pageItemIn 0.5s ease forwards;
  animation-delay: calc(0.22s + var(--i, 0) * 0.03s);
}

.page--about {
  overflow: auto;
}

.page--about .page__frame {
  max-width: 960px;
  display: block;
  padding: 0;
  overflow: hidden;
}

.about-video {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  line-height: 0;
}

.about-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 520px);
  object-fit: cover;
}

.about-copy {
  padding: 36px 32px 40px;
  min-width: 0;
}

.page__eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.page__title {
  margin: 0 0 22px;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.page__subtitle {
  margin: 12px 0 16px;
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.page__lead {
  margin: 0 0 36px;
  max-width: 46rem;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.page__lead--tight {
  margin-bottom: 18px;
}

.page__copy {
  display: grid;
  gap: 18px;
  max-width: 46rem;
}

.page__copy-p {
  margin: 0;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-ligatures: none;
}

.page__copy-p em {
  font-style: italic;
  color: rgba(240, 237, 230, 0.92);
}

.page__items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page__item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page__item-k {
  color: var(--alert);
  font-weight: 700;
}

.page__item-v a {
  color: inherit;
  text-decoration: none;
}

.page__item-v a:hover,
.page__item-v a:focus-visible {
  color: var(--cream);
}

.page__foot {
  margin: 28px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.page__foot a {
  color: var(--cream);
  text-decoration: none;
}

.page__foot a:hover,
.page__foot a:focus-visible {
  color: #fff;
}

.page .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.page.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

.page.is-ready .page__eyebrow {
  transition-delay: 0.05s;
}

.page.is-ready .page__title {
  transition-delay: 0.14s;
}

.page.is-ready .page__lead,
.page.is-ready .page__copy {
  transition-delay: 0.24s;
}

.page.is-ready .page__items {
  transition-delay: 0.34s;
}

.page.is-ready .page__item {
  opacity: 0;
  transform: translateY(10px);
  animation: pageItemIn 0.55s ease forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 0.08s);
}

.page.is-ready .page__form,
.page.is-ready .page__foot,
.page.is-ready .work-grid {
  transition-delay: 0.34s;
}

.work-grid {
  display: grid;
  gap: 28px;
}

.work {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(16px);
  container-type: inline-size;
}

.page.is-ready .work {
  animation: pageItemIn 0.6s ease forwards;
  animation-delay: calc(0.28s + var(--i, 0) * 0.1s);
}

.work__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 14px;
  align-items: end;
}

.work__media--solo {
  grid-template-columns: 1fr;
}

.work__web,
.work__mobile {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
  overflow: hidden;
}

.work__web img,
.work__mobile img {
  display: block;
  width: 100%;
  height: auto;
}

.work__web {
  aspect-ratio: 16 / 10;
}

.work__web img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__mobile {
  aspect-ratio: 9 / 19;
  max-height: 100%;
}

.work__mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__shot-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  background: rgba(6, 6, 6, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.work__web--gallery {
  cursor: pointer;
}

.work__shot-tag--gallery {
  left: auto;
  right: 8px;
  top: auto;
  bottom: 8px;
  color: var(--cream);
}

.work__web--gallery:hover,
.work__web--gallery:focus-visible {
  outline: 1px solid rgba(240, 237, 230, 0.35);
  outline-offset: 2px;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.work-lightbox[hidden] {
  display: none;
}

.work-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(6, 6, 6, 0.92);
  cursor: pointer;
}

.work-lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100vw - 32px));
}

.work-lightbox__stage {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.work-lightbox__stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
}

.work-lightbox__count {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}

.work-lightbox__close,
.work-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 6, 6, 0.7);
  color: var(--cream);
  cursor: pointer;
  font-family: inherit;
}

.work-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
}

.work-lightbox__nav {
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.work-lightbox__close:hover,
.work-lightbox__nav:hover {
  border-color: rgba(240, 237, 230, 0.45);
  color: #fff;
}

@media (max-width: 700px) {
  .work-lightbox__panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    width: calc(100vw - 20px);
    gap: 10px;
  }

  .work-lightbox__stage {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .work-lightbox__stage img {
    max-height: 68vh;
  }

  .work-lightbox__nav--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .work-lightbox__nav--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .work-lightbox__close {
    top: 12px;
    right: 12px;
  }
}

.work__meta {
  display: grid;
  gap: 8px;
}

.work__tags,
.work__status {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.work__status {
  color: var(--ok);
}

.work__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.work__name--sentence {
  max-width: none;
  font-size: clamp(12px, calc(100cqi / 46), 18px);
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.work__summary {
  margin: 0;
  max-width: 72rem;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}

@keyframes pageItemIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page__form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 520px;
}

.page__field {
  display: grid;
  gap: 6px;
}

.page__field label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.page__field input,
.page__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  outline: none;
}

.page__field input:focus,
.page__field textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.page__field textarea {
  min-height: 120px;
  resize: vertical;
}

.page__submit {
  justify-self: start;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.page__submit:hover,
.page__submit:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.page__submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.page__status {
  min-height: 1.2em;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ok);
}

.page__status[data-key="contactError"] {
  color: var(--alert);
}

.page__status[data-key="contactSending"] {
  color: rgba(255, 255, 255, 0.55);
}

.nav-glitch.is-current {
  color: var(--cream);
}

@media (max-width: 900px) {
  .about-video video {
    max-height: min(42vh, 380px);
  }

  .about-copy {
    padding: 24px 18px 28px;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 96px 16px 56px;
  }

  .page__frame {
    padding: 24px 18px 28px;
  }

  .page--about .page__frame {
    padding: 0;
  }

  .page__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .page__title {
    max-width: none;
  }

  .work__media {
    grid-template-columns: 1fr 86px;
    gap: 10px;
  }

  .work__media--solo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-nav {
    padding: 12px 16px;
  }

  .site-nav__menu {
    display: none;
  }

  .site-nav__toggle {
    display: flex;
  }

  .hero__frame {
    top: 56px;
    bottom: 84px;
  }

  .hero__signals {
    display: none;
  }

  .hero__media {
    bottom: 40vh;
    height: 60vh;
  }

  .hero__scan-value {
    font-size: 32px;
  }
}
