@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 92% 105%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --void: #030504;
  --black: #000;
  --panel: rgba(5, 12, 8, 0.86);
  --panel-solid: #07100b;
  --ink: #efffe9;
  --muted: #8ea08d;
  --dim: #536553;
  --green: #a8ff41;
  --green-hot: #c2ff39;
  --cyan: #2df1cc;
  --blue: #2a5cff;
  --pink: #ff4fd8;
  --amber: #ffbf69;
  --red: #ff4d2d;
  --line: rgba(168, 255, 65, 0.2);
  --line-strong: rgba(168, 255, 65, 0.5);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(45, 241, 204, 0.055), transparent 34%),
    linear-gradient(300deg, rgba(255, 79, 216, 0.048), transparent 38%),
    linear-gradient(rgba(168, 255, 65, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 255, 65, 0.025) 1px, transparent 1px),
    var(--void);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

::selection {
  background: var(--green-hot);
  color: #030504;
}

img {
  display: block;
  max-width: 100%;
}

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

.mono-label,
.brand-mark,
.nav,
.header-email,
.market-panel,
.ticker-strip span,
.poster span,
.ops-grid span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(3, 5, 4, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--black);
  color: var(--green-hot);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(168, 255, 65, 0.22), inset 0 0 18px rgba(168, 255, 65, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  justify-content: center;
  gap: 24px;
  color: #d8fbd0;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible,
.header-email:hover,
.header-email:focus-visible {
  color: var(--green-hot);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.header-email {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.hero-night {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  min-height: clamp(450px, calc(58svh - 64px), 540px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px 24px;
}

.hero-art {
  position: absolute;
  inset: 40px 0 auto auto;
  z-index: 0;
  display: block;
  overflow: hidden;
  width: min(58vw, 680px);
  height: min(36vw, 410px);
  border: 1px solid rgba(45, 241, 204, 0.16);
  border-radius: 12px;
  filter: saturate(0.95) brightness(0.82);
  opacity: 0.76;
  transform: perspective(900px) rotateX(8deg) rotateY(-18deg) rotateZ(-4deg);
  box-shadow: 0 0 62px rgba(45, 241, 204, 0.12);
  mask-image: linear-gradient(110deg, transparent 0%, black 20%, black 72%, transparent 100%);
}

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

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(3, 5, 4, 0.12), rgba(3, 5, 4, 0.9));
}

.hero-copy,
.market-panel {
  position: relative;
  z-index: 1;
}

.mono-label {
  display: inline-flex;
  color: var(--green-hot);
  font-size: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 430px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(40px, 4.8vw, 66px);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 20px rgba(168, 255, 65, 0.1), 2px 0 rgba(45, 241, 204, 0.1), -2px 0 rgba(255, 79, 216, 0.06);
}

.hero-title {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 900;
  line-height: 1.05;
}

.hero-text {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.hero-actions {
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
}

.button-primary {
  background: var(--green-hot);
  color: #030504;
  box-shadow: 5px 5px 0 rgba(45, 241, 204, 0.3);
}

.button-secondary {
  background: rgba(239, 255, 233, 0.05);
  color: var(--ink);
}

.market-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(45, 241, 204, 0.45);
  border-radius: 6px;
  box-shadow: 7px 7px 0 rgba(255, 79, 216, 0.17), 0 0 44px rgba(45, 241, 204, 0.1);
}

.market-panel span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.market-panel strong {
  padding: 9px 0;
  color: var(--ink);
  border-top: 1px solid rgba(45, 241, 204, 0.2);
  font-size: 16px;
  line-height: 1;
}

.market-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ticker-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 58px;
}

.ticker-strip a,
.ticker-strip div {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 108px auto 1fr;
  min-height: 198px;
  gap: 8px;
  align-content: start;
  padding: 0 14px 14px;
  background: rgba(5, 12, 8, 0.82);
  border: 1px solid var(--line);
  border-left-width: 0;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ticker-strip a:first-child {
  border-left-width: 1px;
}

.ticker-strip picture,
.ticker-strip img {
  display: block;
  width: calc(100% + 28px);
  height: 108px;
  max-width: none;
  margin: 0 -14px;
}

.ticker-strip img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
  filter: brightness(0.62) contrast(1.2) saturate(1.1);
  transition: filter 160ms ease, transform 160ms ease;
}

.ticker-strip span {
  align-self: end;
  color: var(--green-hot);
  font-size: 11px;
  font-weight: 700;
}

.ticker-strip strong {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.ticker-strip a:hover,
.ticker-strip a:focus-visible {
  z-index: 1;
  background: rgba(8, 18, 11, 0.92);
  border-color: rgba(45, 241, 204, 0.54);
  transform: translateY(-4px);
}

.ticker-strip a:hover img,
.ticker-strip a:focus-visible img {
  filter: brightness(0.82) contrast(1.18) saturate(1.18);
  transform: scale(1.025);
}

.ticker-strip a:hover strong,
.ticker-strip a:focus-visible strong {
  color: var(--green-hot);
}

.work-section,
.ops,
.security,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 66px 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2,
.security-copy h2,
.contact h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.poster-wall {
  display: grid;
  grid-template-columns: 1.16fr 0.86fr 0.78fr;
  gap: 14px;
  align-items: end;
}

.poster {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: #020302;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.poster-large {
  grid-row: span 2;
  min-height: 680px;
}

.poster-tall {
  min-height: 450px;
}

.poster a {
  display: grid;
  min-height: inherit;
}

.poster picture,
.poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.poster img {
  object-fit: cover;
  object-position: left top;
  filter: brightness(0.68) contrast(1.18) saturate(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.poster:hover img {
  transform: scale(1.025);
  filter: brightness(0.82) contrast(1.16) saturate(1.08);
}

.poster::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.92));
}

.poster div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
}

.poster span {
  color: var(--green-hot);
  font-size: 12px;
  font-weight: 700;
}

.poster h3 {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 0.98;
}

.poster:not(.poster-large) h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.poster p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #c7d5c4;
  font-size: 15px;
  font-weight: 700;
}

.ops {
  padding-top: 58px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.ops-grid article {
  min-height: 192px;
  padding: 22px;
  background: rgba(5, 12, 8, 0.82);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.ops-grid span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.ops-grid strong {
  display: block;
  margin-top: 34px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.ops-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: start;
}

.security-copy {
  position: sticky;
  top: 94px;
}

.security-copy p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.evidence-stack {
  display: grid;
  gap: 14px;
}

.evidence-stack article {
  padding: 22px;
  background: #020302;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 0 38px rgba(168, 255, 65, 0.045);
}

.evidence-stack strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.evidence-stack p {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.1), rgba(3, 5, 4, 0.86)),
    image-set(
      url("assets/night-market-ribbons.webp") type("image/webp"),
      url("assets/night-market-ribbons.png") type("image/png")
    ) center / cover no-repeat;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 7px 7px 0 rgba(168, 255, 65, 0.5), 0 0 48px rgba(168, 255, 65, 0.09);
}

.contact h2 {
  max-width: 760px;
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  background: var(--green-hot);
  color: #030504;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 44px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
}

.footer span:first-child {
  color: var(--green);
  font-weight: 900;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    animation: pulseMark 4.8s ease-in-out infinite;
  }
}

@keyframes pulseMark {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 255, 65, 0.14), inset 0 0 18px rgba(168, 255, 65, 0.07);
  }
  50% {
    box-shadow: 0 0 34px rgba(168, 255, 65, 0.32), inset 0 0 22px rgba(168, 255, 65, 0.14);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .hero-night,
  .security,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .hero-art {
    inset: 160px 0 auto auto;
    width: 86vw;
    height: 56vw;
  }

  .ticker-strip,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-wall {
    grid-template-columns: 1fr 1fr;
  }

  .poster-large,
  .poster-tall {
    grid-row: auto;
    min-height: 420px;
  }

  .security-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    background-size: auto, auto, 36px 36px, 36px 36px, auto;
  }

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

  .header-email {
    display: none;
  }

  .hero-night {
    gap: 24px;
    padding: 38px 16px 26px;
  }

  .hero-art {
    inset: 92px 0 auto auto;
    width: 92vw;
    height: 62vw;
    opacity: 0.42;
    transform: perspective(900px) rotateX(6deg) rotateY(-8deg) rotateZ(-2deg);
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .hero-title {
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.04;
  }

  .hero-text,
  .security-copy p {
    font-size: 15px;
  }

  .market-panel {
    box-shadow: 7px 7px 0 rgba(255, 79, 216, 0.24), 0 0 52px rgba(45, 241, 204, 0.12);
  }

  .ticker-strip,
  .poster-wall,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ticker-strip {
    padding-right: 16px;
    padding-bottom: 42px;
    padding-left: 16px;
  }

  .ticker-strip a,
  .ticker-strip div {
    min-height: 116px;
    border-left-width: 1px;
    border-top-width: 0;
  }

  .ticker-strip a:first-child {
    border-top-width: 1px;
  }

  .work-section,
  .ops,
  .security,
  .contact {
    padding: 48px 16px;
  }

  .section-head h2,
  .security-copy h2,
  .contact h2 {
    font-size: 22px;
    line-height: 1.05;
  }

  .poster,
  .poster-large,
  .poster-tall {
    min-height: 360px;
  }

  .poster div {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .poster h3 {
    font-size: 24px;
  }

  .ops-grid article {
    min-height: 158px;
    padding: 20px;
  }

  .ops-grid strong {
    margin-top: 26px;
  }

  .evidence-stack p {
    margin-top: 24px;
  }

  .contact {
    margin-right: 16px;
    margin-left: 16px;
    box-shadow: 7px 7px 0 rgba(168, 255, 65, 0.72), 0 0 60px rgba(168, 255, 65, 0.1);
  }

  .contact a {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    padding: 22px 16px 34px;
  }
}
