:root {
  --bg: #07070f;
  --bg-2: #10101b;
  --ink: #fff7d8;
  --muted: #b8b2a4;
  --line: rgba(255, 247, 216, 0.22);
  --cyan: #00f0ff;
  --yellow: #ffe95c;
  --magenta: #ff4fd8;
  --green: #68ff9a;
  --orange: #ff8a3d;
  --panel: rgba(11, 12, 24, 0.86);
  --panel-strong: rgba(18, 18, 34, 0.94);
  --shadow-cyan: 0 0 18px rgba(0, 240, 255, 0.35);
  --shadow-magenta: 0 0 22px rgba(255, 79, 216, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 240, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 12%, rgba(255, 233, 92, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 68%, rgba(255, 79, 216, 0.18) 0 1px, transparent 2px),
    linear-gradient(180deg, #05050b 0%, #0a0a14 45%, #05050b 100%);
  background-size: 140px 140px, 210px 210px, 180px 180px, 100% 100%;
  color: var(--ink);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.5;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}

body::after {
  z-index: 10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: 0.18;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand,
nav a,
footer a,
.score-strip,
.eyebrow,
.section-kicker,
.item-meta,
.mission-readout,
.portrait figcaption {
  font-family: "Press Start 2P", "Space Grotesk", system-ui, sans-serif;
}

.brand,
nav a,
footer a {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand span {
  color: var(--yellow);
  font-family: "Press Start 2P", "Space Grotesk", system-ui, sans-serif;
  font-size: 0.63rem;
  text-shadow: 0 0 10px rgba(255, 233, 92, 0.65);
}

.score-strip {
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  color: var(--yellow);
  font-size: 0.52rem;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 233, 92, 0.55);
}

.score-strip strong {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 400;
  text-shadow: var(--shadow-cyan);
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.6rem, 2vw, 1rem);
}

nav a {
  border: 1px solid var(--line);
  padding: 0.62rem 0.7rem;
  background: rgba(7, 7, 15, 0.78);
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.07);
}

nav a[aria-current="page"],
nav a:hover,
footer a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: var(--shadow-cyan);
}

.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  display: block;
  width: min(410px, 78vw);
  height: 6px;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  background: repeating-linear-gradient(
    90deg,
    var(--cyan) 0 18px,
    transparent 18px 28px,
    var(--magenta) 28px 46px,
    transparent 46px 56px,
    var(--yellow) 56px 74px,
    transparent 74px 84px
  );
  box-shadow: var(--shadow-cyan), var(--shadow-magenta);
  content: "";
}

.page-hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.eyebrow,
.section-kicker,
.item-meta {
  margin: 0;
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(104, 255, 154, 0.45);
}

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

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0.45rem 0 1.2rem;
  font-size: clamp(5.8rem, 16vw, 14rem);
  line-height: 0.78;
  text-shadow:
    0 0 18px rgba(0, 240, 255, 0.18),
    4px 4px 0 rgba(255, 79, 216, 0.32);
}

.page-hero h1 {
  max-width: 1080px;
  font-size: clamp(3.35rem, 8vw, 7.8rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 5.1rem);
  line-height: 0.97;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: clamp(1.26rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.lede {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.5vw, 1.72rem);
  line-height: 1.24;
}

.lede.narrow {
  max-width: 830px;
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
  border: 1px solid rgba(0, 240, 255, 0.75);
  padding: 0.8rem;
  background:
    linear-gradient(var(--panel-strong), var(--panel-strong)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--magenta), var(--yellow)) border-box;
  box-shadow: var(--shadow-cyan), var(--shadow-magenta), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.portrait::before,
.portrait::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--yellow);
  content: "";
}

.portrait::before {
  top: -6px;
  left: -6px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.portrait::after {
  right: -6px;
  bottom: -6px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.portrait picture,
.portrait img {
  display: block;
}

.portrait picture {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 216, 0.18);
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.portrait figcaption {
  margin-top: 0.85rem;
  color: var(--yellow);
  font-size: 0.55rem;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.sprite-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.85rem;
}

.sprite {
  width: 4px;
  height: 4px;
  margin: 8px 14px 18px;
  background: var(--cyan);
  image-rendering: pixelated;
  transform: scale(2.2);
  transform-origin: top left;
  box-shadow:
    8px 0 var(--cyan),
    16px 0 var(--cyan),
    -4px 4px var(--cyan),
    4px 4px var(--cyan),
    12px 4px var(--cyan),
    20px 4px var(--cyan),
    -8px 8px var(--cyan),
    0 8px var(--cyan),
    8px 8px transparent,
    16px 8px var(--cyan),
    24px 8px var(--cyan),
    -4px 12px var(--cyan),
    4px 12px transparent,
    12px 12px transparent,
    20px 12px var(--cyan);
}

.sprite-b {
  filter: hue-rotate(70deg);
}

.sprite-c {
  filter: hue-rotate(155deg);
}

.statement {
  border: 1px solid rgba(255, 233, 92, 0.7);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, rgba(255, 233, 92, 0.09), rgba(255, 79, 216, 0.06));
  box-shadow: 0 0 0 4px rgba(255, 233, 92, 0.08), 0 0 34px rgba(255, 233, 92, 0.08);
}

.statement p {
  max-width: 1030px;
  margin-bottom: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 4.65rem);
  line-height: 1;
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.35rem, 3.5vw, 2.35rem) 0;
}

.work-item > div,
.case-body,
.about-copy {
  border: 1px solid rgba(255, 247, 216, 0.14);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.05);
}

.work-item > div {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.work-item p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.work-item a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--yellow);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.64fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.about .section-heading {
  display: block;
  margin-bottom: 0;
}

.about-copy {
  align-self: end;
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.contact-section h2 {
  max-width: 940px;
  margin-top: 0.55rem;
}

.contact-links,
.mission-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-links {
  margin-top: clamp(1.6rem, 4vw, 2.5rem);
}

.contact-links a,
.text-link {
  border-bottom: 2px solid var(--magenta);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.contact-links a:hover,
.text-link:hover {
  color: var(--magenta);
  text-shadow: var(--shadow-magenta);
}

.mission-readout {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.mission-readout span {
  border: 1px solid rgba(255, 233, 92, 0.55);
  padding: 0.75rem 0.8rem;
  background: rgba(255, 233, 92, 0.08);
  color: var(--yellow);
  font-size: 0.52rem;
  line-height: 1.6;
}

.case-list {
  border-top: 1px solid var(--line);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.case-meta p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-body {
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.case-body h2 {
  max-width: 890px;
  margin-bottom: 1rem;
}

.case-body > p {
  max-width: 850px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(1.4rem, 3vw, 2.4rem) 0;
}

.case-grid div {
  border-top: 2px solid var(--cyan);
  padding-top: 0.9rem;
}

.case-grid h3 {
  margin-bottom: 0.45rem;
  color: var(--yellow);
  font-family: "Press Start 2P", "Space Grotesk", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
}

.case-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-note {
  max-width: 840px;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

footer div {
  display: flex;
  gap: 1rem;
}

.hero,
.statement,
.section,
.page-hero,
.case-study,
.contact-section {
  opacity: 0;
  transform: translateY(10px);
}

.hero.in-view,
.statement.in-view,
.section.in-view,
.page-hero.in-view,
.case-study.in-view,
.contact-section.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms ease, transform 480ms ease;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .score-strip {
    justify-items: start;
  }

  nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    padding: 18px 0 10px;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 42px 0 52px;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 6.8rem);
    text-shadow:
      0 0 16px rgba(0, 240, 255, 0.18),
      2px 2px 0 rgba(255, 79, 216, 0.34);
  }

  .page-hero h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .lede {
    font-size: clamp(1.05rem, 4.7vw, 1.28rem);
  }

  .section-heading,
  .work-item,
  .about,
  .case-study,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    justify-self: start;
    width: min(62vw, 230px);
    margin-top: 1.2rem;
  }

  .portrait img {
    aspect-ratio: 3 / 4;
  }

  .item-meta {
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 480px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 0.86rem;
  }

  nav {
    gap: 0.45rem;
  }

  nav a {
    padding: 0.62rem 0.45rem;
    font-size: 0.48rem;
  }

  .score-strip,
  .eyebrow,
  .section-kicker,
  .item-meta,
  .mission-readout span,
  .portrait figcaption,
  .case-grid h3 {
    font-size: 0.48rem;
  }

  .statement {
    padding: 1.1rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
