:root {
  --bg: #020202;
  --ink: #f5f5f0;
  --muted: #9d9d98;
  --line: rgba(245, 245, 240, 0.18);
  --cyan: #00f0ff;
  --red: #ff245f;
  --green: #8dff67;
  --yellow: #e6ff59;
  --panel: rgba(255, 255, 255, 0.045);
  --font-pixel: "Courier New", "Lucida Console", monospace;
  --header-height: 54px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-pixel);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(33, 147, 255, 0.08), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(141, 255, 103, 0.07), transparent 24%),
    #020202;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.22;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 240, 0.03), rgba(33, 147, 255, 0.025), rgba(141, 255, 103, 0.02));
  background-size: 100% 4px, 6px 100%;
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 2, 2, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: clamp(0.88rem, 1.5vw, 1.1rem);
  font-weight: 700;
}

.site-nav {
  position: fixed;
  top: var(--header-height);
  right: clamp(18px, 4vw, 56px);
  z-index: 19;
  display: grid;
  min-width: 230px;
  border: 1px solid var(--line);
  background: rgba(2, 2, 2, 0.96);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav a {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.site-nav a:last-child {
  border-bottom: 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--ink);
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: inline-grid;
  min-width: 74px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(245, 245, 240, 0.72);
  background: rgba(0, 0, 0, 0.58);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(245, 245, 240, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 24px rgba(245, 245, 240, 0.14);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--ink);
  background: rgba(8, 8, 8, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.2),
    0 0 36px rgba(245, 245, 240, 0.28);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 116px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(30px, 6vw, 86px);
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  padding-top: clamp(42px, 7vw, 86px);
}

.mapping-hero {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - var(--header-height));
  margin: 0 calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.mapping-hero::before,
.mapping-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mapping-hero::before {
  background:
    linear-gradient(90deg, rgba(245, 245, 240, 0.1), transparent 28%, rgba(33, 147, 255, 0.11), rgba(141, 255, 103, 0.07)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.mapping-hero::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  transform: perspective(600px) rotateX(60deg) translateY(20%);
  transform-origin: center bottom;
}

#mappingCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.mapping-ui {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  width: min(680px, calc(100% - 36px));
  min-height: calc(100vh - var(--header-height));
  margin-left: clamp(18px, 4vw, 56px);
  padding: 0 0 clamp(34px, 8vh, 76px);
  pointer-events: none;
}

.mapping-ui h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 8.8vw, 8rem);
}

.mapping-ui .intro {
  max-width: 560px;
  margin-bottom: 22px;
}

.mapping-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.setup-button {
  min-height: 44px;
  min-width: 190px;
  border: 1px solid rgba(245, 245, 240, 0.76);
  padding: 0 22px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(245, 245, 240, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 30px rgba(245, 245, 240, 0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.setup-button:hover,
.setup-button:focus-visible {
  border-color: var(--ink);
  background: rgba(8, 8, 8, 0.9);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.22),
    0 0 42px rgba(245, 245, 240, 0.3);
}

#setupLabel {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--green);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.mapping-readout {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 5vh, 48px);
  z-index: 2;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
  text-transform: uppercase;
}

.lang-toggle {
  min-height: 30px;
  border: 1px solid rgba(245, 245, 240, 0.72);
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(245, 245, 240, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 24px rgba(245, 245, 240, 0.14);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--ink);
  background: rgba(8, 8, 8, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.22),
    0 0 36px rgba(245, 245, 240, 0.28);
}

.kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.75rem;
  line-height: 1.7;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 7vw, 6.25rem);
  line-height: 0.95;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.intro,
.contact-layout p,
.pack-layout p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  line-height: 1.75;
}

.signal-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 8px 0 0 rgba(255, 36, 95, 0.18), -8px 0 0 rgba(0, 240, 255, 0.14);
}

.panel-top,
.panel-bottom {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.panel-bottom {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.monitor {
  position: relative;
  display: grid;
  min-height: clamp(260px, 42vw, 430px);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.monitor::before,
.monitor::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(245, 245, 240, 0.12);
}

.monitor::after {
  inset: 22%;
  border-color: rgba(0, 240, 255, 0.2);
  transform: translate(4px, -2px);
}

.monitor p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 12px;
  background: rgba(2, 2, 2, 0.72);
  color: var(--yellow);
  font-size: 0.76rem;
}

.wave {
  position: absolute;
  width: 150%;
  height: 130px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.38), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(245, 245, 240, 0.26) 19px 20px);
  filter: blur(0.4px);
  animation: waveShift 5s linear infinite;
}

.grid-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.08) 100%);
  background-size: 24px 24px;
  opacity: 0.5;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.pack-link {
  min-height: 42px;
  border: 1px solid rgba(245, 245, 240, 0.72);
  background: rgba(0, 0, 0, 0.58);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(245, 245, 240, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 24px rgba(245, 245, 240, 0.14);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pack-link:hover,
.pack-link:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(8, 8, 8, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.22),
    0 0 36px rgba(245, 245, 240, 0.28);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.work-card {
  position: relative;
  min-height: clamp(300px, 31vw, 430px);
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
}

.works-title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: 0.82;
  text-transform: lowercase;
}

.work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: grayscale(0.15) contrast(1.18) brightness(0.82);
  transform: scale(1);
  transition: transform 420ms steps(8), filter 420ms steps(8);
}

.work-card::before,
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.work-card::before {
  background:
    linear-gradient(transparent 48%, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px);
  opacity: 0.45;
}

.work-card::after {
  background:
    linear-gradient(90deg, rgba(255, 36, 95, 0.28), transparent 34%, rgba(0, 240, 255, 0.28)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(245, 245, 240, 0.12) 29px 30px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-8px);
}

.work-card:hover .work-thumb,
.work-card:focus-within .work-thumb {
  filter: grayscale(0) contrast(1.38) brightness(0.92);
  transform: scale(1.055);
}

.work-card:hover::after,
.work-card:focus-within::after {
  animation: cardGlitch 540ms steps(2, end) infinite;
  opacity: 0.72;
}

.work-category {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 7px 8px;
  background: rgba(2, 2, 2, 0.74);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
  border: 1px solid rgba(245, 245, 240, 0.34);
}

.work-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 2.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(245, 245, 240, 0.6),
    0 0 24px rgba(245, 245, 240, 0.2),
    0 4px 12px #000;
}

.work-title::before,
.work-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.work-title::before {
  color: var(--ink);
  text-shadow: 0 0 16px rgba(245, 245, 240, 0.45);
  transform: translate(-1px, 0);
}

.work-title::after {
  color: var(--ink);
  text-shadow: 0 0 18px rgba(245, 245, 240, 0.34);
  transform: translate(1px, 0);
}

.work-card:hover .work-title::before,
.work-card:hover .work-title::after,
.work-card:focus-within .work-title::before,
.work-card:focus-within .work-title::after {
  animation: titleFlicker 720ms steps(2, end) infinite;
}

.webs-page {
  min-height: calc(100vh - var(--header-height));
}

.webs-hero {
  padding-bottom: clamp(24px, 4vw, 46px);
}

.webs-hero .intro {
  max-width: 760px;
}

.webs-gallery-section {
  padding-top: 0;
}

.web-filter-bar {
  position: relative;
  display: inline-grid;
  gap: 8px;
  margin-bottom: 24px;
}

.web-filter-toggle,
.web-filter {
  min-height: 38px;
  border: 1px solid rgba(245, 245, 240, 0.42);
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.web-filter-toggle {
  min-width: 170px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  text-shadow: 0 0 10px rgba(245, 245, 240, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 24px rgba(245, 245, 240, 0.14);
}

.web-filter-toggle span {
  color: var(--green);
}

.web-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  display: grid;
  min-width: 220px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.web-filter-bar.open .web-filter-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.web-filter-menu .web-filter {
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.web-filter-menu .web-filter:last-child {
  border-bottom: 0;
}

.web-filter-toggle:hover,
.web-filter-toggle:focus-visible,
.web-filter:hover,
.web-filter:focus-visible,
.web-filter.active {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(245, 245, 240, 0.14);
}

.webs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.web-card {
  position: relative;
  display: grid;
  min-height: clamp(390px, 38vw, 520px);
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  isolation: isolate;
}

.web-card::before,
.web-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.web-card::before {
  background:
    linear-gradient(transparent 42%, rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 5px);
  opacity: 0.48;
}

.web-card::after {
  background:
    linear-gradient(90deg, rgba(255, 36, 95, 0.24), transparent 34%, rgba(0, 240, 255, 0.24)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(245, 245, 240, 0.1) 29px 30px);
  mix-blend-mode: screen;
  opacity: 0;
}

.web-card:hover::after,
.web-card:focus-within::after {
  animation: cardGlitch 540ms steps(2, end) infinite;
  opacity: 0.62;
}

.web-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: grayscale(0.1) contrast(1.18) brightness(0.8);
  transform: scale(1);
  transition: transform 420ms steps(8), filter 420ms steps(8);
}

.web-card:hover .web-thumb,
.web-card:focus-within .web-thumb {
  filter: grayscale(0) contrast(1.36) brightness(0.9);
  transform: scale(1.055);
}

.web-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 58%);
}

.web-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.web-tags span {
  border: 1px solid rgba(245, 245, 240, 0.32);
  padding: 5px 7px;
  background: rgba(0, 0, 0, 0.54);
  color: var(--green);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.web-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(245, 245, 240, 0.6),
    0 0 24px rgba(245, 245, 240, 0.2);
}

.web-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.web-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.web-demo-button,
.web-detail-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 240, 0.72);
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(245, 245, 240, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 24px rgba(245, 245, 240, 0.14);
  cursor: pointer;
}

.web-demo-button:hover,
.web-demo-button:focus-visible,
.web-detail-button:hover,
.web-detail-button:focus-visible {
  border-color: var(--ink);
  background: rgba(8, 8, 8, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.22),
    0 0 36px rgba(245, 245, 240, 0.28);
}

.web-detail-button {
  color: var(--muted);
}

.webs-cta {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.webs-cta p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-layout,
.pack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  color: var(--ink);
  text-transform: uppercase;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--green);
}

.contact-page {
  min-height: calc(100vh - var(--header-height));
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - var(--header-height));
  align-items: center;
}

.contact-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  line-height: 0.86;
}

.contact-actions {
  display: grid;
  gap: 10px;
  max-width: 430px;
  margin-top: 28px;
}

.contact-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 240, 0.76);
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(245, 245, 240, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 30px rgba(245, 245, 240, 0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  border-color: var(--ink);
  background: rgba(8, 8, 8, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.22),
    0 0 42px rgba(245, 245, 240, 0.3);
}

.contact-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform: skewY(-2deg);
}

.contact-visual {
  position: relative;
  min-height: clamp(150px, 16vw, 230px);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #000;
}

.contact-visual:nth-child(2),
.contact-visual:nth-child(5) {
  transform: translateY(34px);
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(0.8) contrast(1.25) brightness(0.86);
}

.contact-visual::before,
.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-visual::before {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.contact-visual::after {
  background: linear-gradient(90deg, rgba(255, 36, 95, 0.28), transparent 42%, rgba(0, 240, 255, 0.28));
  opacity: 0.54;
  mix-blend-mode: screen;
}

.contact-signal-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-info-grid div {
  min-height: 170px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-info-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--green);
  font-size: 0.76rem;
}

.contact-info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.pack-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 0 16px;
}

.pack-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.pack-list strong {
  color: var(--ink);
  font-weight: 400;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.web-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.web-detail-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  border: 1px solid rgba(245, 245, 240, 0.76);
  background: rgba(0, 0, 0, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 48px rgba(245, 245, 240, 0.16);
}

.web-detail-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  border: 1px solid rgba(245, 245, 240, 0.76);
  padding: clamp(22px, 4vw, 38px);
  background: rgba(0, 0, 0, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 240, 0.08),
    0 0 48px rgba(245, 245, 240, 0.16);
}

.web-detail-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  text-transform: uppercase;
}

.web-detail-panel p:not(.kicker) {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.web-detail-list {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.web-detail-list li {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.video-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 245, 240, 0.76);
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(245, 245, 240, 0.7);
  box-shadow: 0 0 24px rgba(245, 245, 240, 0.14);
}

.video-close:hover,
.video-close:focus-visible {
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 0 36px rgba(245, 245, 240, 0.28);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(245, 245, 240, 0.08) 0 1px, transparent 1px 5px),
    #000;
}

.video-frame video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal.no-video .video-frame video {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}

.video-placeholder::before {
  content: "";
  width: 120px;
  height: 1px;
  margin: 0 auto 8px;
  background: var(--ink);
  box-shadow: 0 0 18px rgba(245, 245, 240, 0.44);
  animation: loadingSignal 900ms steps(4, end) infinite;
}

.video-placeholder strong {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(245, 245, 240, 0.6);
}

.video-placeholder span {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0;
}

@keyframes loadingSignal {
  0%, 100% {
    transform: scaleX(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.video-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--green);
  font-size: 0.76rem;
  text-transform: uppercase;
}

body.video-open {
  overflow: hidden;
}

.glitch {
  position: relative;
  text-shadow:
    0 0 12px rgba(245, 245, 240, 0.58),
    0 0 32px rgba(245, 245, 240, 0.2);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.glitch::before {
  color: var(--ink);
  text-shadow: 0 0 16px rgba(245, 245, 240, 0.36);
  transform: translate(-1px, 0);
}

.glitch::after {
  color: var(--ink);
  text-shadow: 0 0 18px rgba(245, 245, 240, 0.28);
  transform: translate(1px, 0);
}

.glitch:hover::before,
.glitch:hover::after,
.hero .glitch::before,
.hero .glitch::after {
  animation: textGlitch 2.8s steps(2, end) infinite;
  opacity: 0.28;
}

@keyframes textGlitch {
  0%, 86%, 100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
  88% {
    clip-path: inset(10% 0 64% 0);
    opacity: 0.58;
  }
  91% {
    clip-path: inset(74% 0 8% 0);
    opacity: 0.45;
  }
  94% {
    clip-path: inset(38% 0 36% 0);
    opacity: 0.52;
  }
}

@keyframes glitchSlide {
  0%, 100% {
    transform: translateX(0);
  }
  44% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(18px);
  }
  52% {
    transform: translateX(-10px);
  }
  56% {
    transform: translateX(0);
  }
}

@keyframes cardGlitch {
  0%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  30% {
    clip-path: inset(8% 0 68% 0);
    transform: translateX(7px);
  }
  60% {
    clip-path: inset(58% 0 16% 0);
    transform: translateX(-7px);
  }
}

@keyframes titleFlicker {
  0%, 100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
  22% {
    opacity: 0.8;
    clip-path: inset(0 0 70% 0);
  }
  46% {
    opacity: 0.5;
    clip-path: inset(44% 0 28% 0);
  }
  68% {
    opacity: 0.75;
    clip-path: inset(78% 0 0 0);
  }
}

@keyframes waveShift {
  from {
    transform: translateX(-12%) skewY(-4deg);
  }
  to {
    transform: translateX(12%) skewY(-4deg);
  }
}

@media (max-width: 860px) {
  .site-nav {
    right: 0;
    left: 0;
    padding: 14px 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 2, 2, 0.96);
    transform: translateY(-16px);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    font-size: 1rem;
  }

  .contact-layout,
  .pack-layout,
  .contact-hero,
  .contact-signal-panel {
    grid-template-columns: 1fr;
  }

  .mapping-hero {
    min-height: calc(100svh - var(--header-height));
  }

  .mapping-ui {
    width: min(100% - 28px, 680px);
    min-height: calc(100svh - var(--header-height));
    margin-inline: 14px;
    padding-bottom: 28px;
  }

  .mapping-ui h1 {
    font-size: clamp(2.45rem, 15vw, 5.1rem);
  }

  .mapping-readout {
    top: 18px;
    right: 14px;
    bottom: auto;
    max-width: 142px;
    font-size: 0.62rem;
  }

  .section-heading {
    display: block;
  }

  .contact-hero {
    min-height: auto;
  }

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

  .contact-visual-grid {
    transform: none;
  }

  .contact-visual:nth-child(2),
  .contact-visual:nth-child(5) {
    transform: none;
  }

  .contact-visual {
    min-height: 240px;
  }

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

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

  .webs-cta {
    grid-template-columns: 1fr;
  }

  .web-filter {
    width: 100%;
  }

  .web-filter-bar {
    display: grid;
    width: min(100%, 260px);
  }

  .web-filter-toggle,
  .web-filter-menu {
    width: 100%;
  }

  .work-card {
    min-height: 340px;
  }

  .web-card {
    min-height: 420px;
  }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .webs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 28px, 1160px);
    padding: 48px 0;
  }

  .site-header {
    padding-inline: 14px;
  }

  .mapping-hero {
    width: 100vw;
    min-height: calc(100svh - var(--header-height));
    margin: 0 calc(50% - 50vw);
    padding: 0;
  }

  .mapping-ui {
    align-content: start;
    width: min(100% - 20px, 680px);
    min-height: calc(100svh - var(--header-height));
    margin-inline: auto;
    padding-top: clamp(168px, 33svh, 280px);
    padding-bottom: 34px;
  }

  .mapping-ui h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(1.92rem, 10.7vw, 3.2rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .mapping-ui .intro {
    max-width: 37ch;
    margin-bottom: 18px;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .mapping-ui .kicker {
    max-width: 38ch;
    margin-bottom: 16px;
    font-size: 0.68rem;
    line-height: 1.55;
  }

  .mapping-controls {
    display: grid;
    gap: 10px;
    max-width: min(100%, 280px);
  }

  .setup-button,
  #setupLabel {
    width: 100%;
  }

  .mapping-readout {
    top: 24px;
    right: 14px;
    max-width: 124px;
    font-size: 0.58rem;
    gap: 6px;
  }

  h1 {
    font-size: clamp(2rem, 14vw, 3.8rem);
  }

  .pack-list li,
  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
