:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #686868;
  --line: #111111;
  --soft-line: #d8d8d8;
  --panel: #f6f6f6;
  --accent: #111111;
  --max-width: 1440px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body.is-filtering .project-card {
  transition: opacity 180ms ease, transform 180ms ease;
}

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

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 24px;
  backdrop-filter: blur(12px);
}

.studio-mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border: 1px solid transparent;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  outline: 0;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px;
  scroll-margin-top: var(--header-height);
}

.hero {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-top: 32px;
}

.hero-copy {
  display: flex;
  min-height: 580px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: 16px 48px 16px 0;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 32px;
  color: #202020;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.12;
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  font-weight: 700;
}

.text-link::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1.1);
}

.hero-visual {
  display: flex;
  min-height: 580px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
}

.visual-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.visual-toolbar span {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.visual-toolbar span:last-child {
  border-right: 0;
}

.visual-stage {
  position: relative;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
  background:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px),
    #f7f7f7;
  background-size: 48px 48px;
}

.led-grid {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}

.led-pixel {
  aspect-ratio: 1;
  border: 1px solid #1f1f1f;
  background: #fff;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.led-pixel.is-active {
  background: #111;
  transform: scale(0.82);
}

.tracker {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  mix-blend-mode: multiply;
}

.tracker::before,
.tracker::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.tracker::before {
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1px;
}

.tracker::after {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
}

.tracker-one {
  top: 20%;
  left: 14%;
  animation: driftOne 8s ease-in-out infinite;
}

.tracker-two {
  right: 13%;
  bottom: 17%;
  animation: driftTwo 10s ease-in-out infinite;
}

.tracker-three {
  top: 52%;
  left: 42%;
  animation: driftThree 9s ease-in-out infinite;
}

.game-fragment {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fragment-one {
  left: 28px;
  bottom: 28px;
}

.fragment-two {
  top: 28px;
  right: 28px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5.5vw, 88px);
  font-weight: 500;
  line-height: 0.96;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.filter-button {
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--text);
  color: var(--bg);
  outline: 0;
}

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

.project-card {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  cursor: crosshair;
  overflow: hidden;
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  transition: transform 220ms ease;
}

.project-card:hover .project-visual,
.project-card:focus-within .project-visual {
  transform: scale(1.025);
}

.signal-level {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  height: 76px;
  align-items: flex-end;
  gap: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.signal-level span {
  width: 5px;
  height: 100%;
  background: #111;
  transform: scaleY(0.12);
  transform-origin: bottom;
  transition: transform 260ms ease;
}

.signal-level span:nth-child(2) {
  transition-delay: 35ms;
}

.signal-level span:nth-child(3) {
  transition-delay: 70ms;
}

.signal-level span:nth-child(4) {
  transition-delay: 105ms;
}

.signal-level span:nth-child(5) {
  transition-delay: 140ms;
}

.project-card:hover .signal-level,
.project-card:focus-within .signal-level {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .signal-level span:nth-child(1),
.project-card:focus-within .signal-level span:nth-child(1) {
  transform: scaleY(0.28);
}

.project-card:hover .signal-level span:nth-child(2),
.project-card:focus-within .signal-level span:nth-child(2) {
  transform: scaleY(0.48);
}

.project-card:hover .signal-level span:nth-child(3),
.project-card:focus-within .signal-level span:nth-child(3) {
  transform: scaleY(0.72);
}

.project-card:hover .signal-level span:nth-child(4),
.project-card:focus-within .signal-level span:nth-child(4) {
  transform: scaleY(0.56);
}

.project-card:hover .signal-level span:nth-child(5),
.project-card:focus-within .signal-level span:nth-child(5) {
  transform: scaleY(0.9);
}

.project-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.project-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: 22px;
}

.project-meta > p:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta h3 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.project-meta > p:last-child {
  max-width: 420px;
  margin-bottom: 0;
  color: #2f2f2f;
  font-size: 17px;
}

.visual-penalty {
  background:
    radial-gradient(circle at 50% 62%, #111 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 49%, #111 49% 51%, transparent 51%),
    #f7f7f7;
}

.visual-penalty span {
  position: absolute;
  width: 24%;
  height: 36%;
  border: 1px solid var(--line);
}

.visual-penalty span:nth-child(1) {
  left: 10%;
  top: 18%;
}

.visual-penalty span:nth-child(2) {
  left: 38%;
  top: 34%;
}

.visual-penalty span:nth-child(3) {
  right: 10%;
  top: 18%;
}

.visual-led {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 24px;
}

.visual-led span {
  min-height: 42px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, #fff 0 7px, #111 7px 8px);
}

.visual-brand {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.visual-brand span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.visual-arcade {
  background:
    linear-gradient(90deg, transparent 22%, #111 22% 23%, transparent 23% 77%, #111 77% 78%, transparent 78%),
    #f7f7f7;
}

.visual-arcade span {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  background: #fff;
}

.visual-arcade span:nth-child(1) {
  left: 12%;
  top: 24%;
}

.visual-arcade span:nth-child(2) {
  left: 28%;
  bottom: 22%;
}

.visual-arcade span:nth-child(3) {
  right: 28%;
  top: 24%;
}

.visual-arcade span:nth-child(4) {
  right: 12%;
  bottom: 22%;
}

.visual-motion span {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.visual-motion span:nth-child(1) {
  left: 10%;
  top: 18%;
}

.visual-motion span:nth-child(2) {
  left: 34%;
  top: 34%;
}

.visual-motion span:nth-child(3) {
  right: 10%;
  top: 18%;
}

.visual-touch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 24px;
}

.visual-touch span {
  border: 1px solid var(--line);
  background: #fff;
}

.visual-touch span:nth-child(2) {
  transform: translateY(42px);
}

.about-section {
  border-bottom: 1px solid var(--line);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 32px;
}

.service-tags span {
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-size: 15px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 40px;
  min-height: 520px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 18px;
  justify-items: start;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

@keyframes driftOne {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(42px, 26px);
  }
}

@keyframes driftTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-34px, -44px);
  }
}

@keyframes driftThree {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -36px);
  }
}

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

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

@media (max-width: 1100px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 36px;
  }

  .hero-visual {
    min-height: 520px;
  }

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

  .contact-links {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 98px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .site-nav a {
    padding: 8px 0;
    font-size: 13px;
  }

  .section {
    padding: 56px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .visual-toolbar {
    grid-template-columns: 1fr;
  }

  .visual-toolbar span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .visual-stage {
    min-height: 350px;
  }

  .led-grid {
    inset: 18px;
    gap: 5px;
  }

  .tracker {
    width: 68px;
    height: 68px;
  }

  .game-fragment {
    font-size: 11px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(34px, 12vw, 58px);
  }

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

  .project-card {
    min-height: 480px;
    border-left: 1px solid var(--line);
  }

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