@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --page-margin: 5vw;
  --column-size: 7.5vw;
  --edge-margin: clamp(10px, 2.08vw, 40px);
  --paper: #ECECE8;
  --white: #FFFFFF;
  --blue: #0000FF;
  --blue-faint: rgba(0, 0, 255, 0.28);
  --blue-grid: rgba(0, 0, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--paper);
  color: var(--blue);
  font-family: "Michroma", "Satoshi", Arial, sans-serif;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.coords {
  position: fixed;
  left: var(--edge-margin);
  top: clamp(3px, 0.55vw, 10px);
  z-index: 80;
  font-size: clamp(9.5px, 0.65vw, 11.5px);
  color: var(--blue);
  opacity: 0.85;
  pointer-events: none;
}

.guides {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.frame {
  position: absolute;
  inset: var(--edge-margin);
  border: 1px solid var(--blue-faint);
}

.ticks-top {
  position: absolute;
  left: var(--edge-margin);
  right: var(--edge-margin);
  top: var(--edge-margin);
  height: 9px;
  background: linear-gradient(to right, var(--blue-faint) 1px, transparent 1px) calc(var(--page-margin) - var(--edge-margin)) 0 / var(--column-size) 100% repeat-x;
}

.ticks-left {
  position: absolute;
  top: var(--edge-margin);
  bottom: var(--edge-margin);
  left: var(--edge-margin);
  width: 9px;
  background: linear-gradient(to bottom, var(--blue-faint) 1px, transparent 1px) 0 calc(var(--page-margin) - var(--edge-margin)) / 100% var(--column-size) repeat-y;
}

.cross {
  position: absolute;
  width: 17px;
  height: 17px;
  left: calc(var(--page-margin) - 8px + var(--x) * (100vw - 2 * var(--page-margin)));
  top: calc(var(--page-margin) - 8px + var(--y) * (100vh - 2 * var(--page-margin)));
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background: var(--blue-faint);
}

.cross::before { left: 8px; top: 0; width: 1px; height: 17px; }
.cross::after { top: 8px; left: 0; height: 1px; width: 17px; }

.corner-arrow {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1;
  color: var(--blue);
}

.corner-arrow.tl { left: calc(var(--edge-margin) + 8px); top: calc(var(--edge-margin) + 6px); }
.corner-arrow.tr { right: calc(var(--edge-margin) + 8px); top: calc(var(--edge-margin) + 6px); }
.corner-arrow.bl { left: calc(var(--edge-margin) + 8px); bottom: calc(var(--edge-margin) + 6px); }
.corner-arrow.br { right: calc(var(--edge-margin) + 8px); bottom: calc(var(--edge-margin) + 6px); }

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
  padding: calc(var(--edge-margin) + clamp(12px, 1.25vw, 24px)) var(--page-margin) 0;
  font-size: clamp(11px, 0.78vw, 13.5px);
  color: var(--blue);
}

.logo {
  font-family: "Syne", "Satoshi", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.5vw, 28px);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  color: var(--blue);
}

.dot {
  display: inline-block;
  background: var(--blue);
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.06em;
  transition: transform 0.4s ease;
}

.logo:hover .dot {
  transform: rotate(90deg) scale(1.3);
}

nav {
  display: flex;
  gap: clamp(16px, 2vw, 34px);
  margin-left: auto;
}

nav a {
  padding: 6px 0;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
}

.sound {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
}

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 11px;
}

.bars i {
  display: block;
  width: 1.5px;
  height: 2px;
  background: currentColor;
}

.sound.playing .bars i {
  animation: eq 0.9s ease-in-out infinite alternate;
}

.sound.playing .bars i:nth-child(2) { animation-delay: 0.18s; }
.sound.playing .bars i:nth-child(3) { animation-delay: 0.36s; }
.sound.playing .bars i:nth-child(4) { animation-delay: 0.1s; }

@keyframes eq {
  from { height: 3px; }
  to { height: 11px; }
}

.menu-open {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.burger {
  position: relative;
  width: 18px;
  height: 8px;
}

.burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
}

.burger i:first-child { top: 0; }
.burger i:last-child { top: 6px; }

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 85% at 32% 28%, #F4F4F0 0%, #ECECE8 55%, #E2E2DD 100%);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--blue-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blue-grid) 1px, transparent 1px);
  background-size: var(--column-size) var(--column-size);
  background-position: var(--page-margin) var(--page-margin);
}

.poster-shell {
  position: relative;
  height: 100%;
  padding: calc(var(--edge-margin) + clamp(32px, min(4.2vw, 6vh), 72px)) var(--page-margin) calc(var(--edge-margin) + clamp(10px, 1.4vh, 24px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(4px, 0.8vh, 12px);
}

.poster-head {
  overflow: hidden;
  line-height: 0.82;
  user-select: none;
  pointer-events: none;
}

.poster-giant {
  display: block;
  font-family: "Syne", "Satoshi", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, min(9.6vw, 12.5vh), 120px);
  letter-spacing: -0.04em;
  color: var(--blue);
  text-align: center;
  line-height: 0.82;
}

.poster-stage {
  position: relative;
  z-index: 1;
  background: var(--blue);
  border: 1px solid var(--blue);
  min-height: 0;
}

.echo-stack {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  font-family: "Syne", "Satoshi", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 40px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.echo-left {
  left: clamp(12px, 1.4vw, 24px);
  top: clamp(12px, 1.4vw, 24px);
}

.echo-right {
  right: clamp(12px, 1.4vw, 24px);
  bottom: clamp(12px, 1.4vw, 24px);
  text-align: right;
}

.echo-solid {
  color: var(--paper);
}

.echo-outline {
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(236, 236, 232, 0.78);
}

.cards {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#backCards { z-index: 4; }
#frontCards { z-index: 8; }

.person-wrap {
  position: fixed;
  inset: 0;
  z-index: 6;
  --person-left: max(16vw, calc(50vw - 38vh));
  --person-top: 9vh;
  --person-width: min(54vw, 78vh);
  pointer-events: none;
}

.person {
  position: absolute;
  left: var(--person-left);
  top: var(--person-top);
  width: var(--person-width);
  height: auto;
  display: block;
  filter: brightness(10);
}

.title {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  color: var(--white);
}

.title .im,
.title .name {
  opacity: 0;
}

.title-blue {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 7;
  pointer-events: none;
}

.im {
  position: absolute;
  left: 22vw;
  top: 40vh;
  font-family: "Michroma", "Satoshi", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(12px, 1.5vw, 26px);
}

.name-box {
  position: absolute;
  left: 22vw;
  top: 44.5vh;
  line-height: 0.86;
}

.name {
  display: block;
  font-family: "Syne", "Satoshi", Arial, sans-serif;
  font-weight: 800;
  font-size: 9.2vw;
  letter-spacing: -0.035em;
}

.corner {
  position: absolute;
  width: clamp(10px, 0.85vw, 15px);
  height: clamp(10px, 0.85vw, 15px);
  border-color: var(--white);
  border-style: solid;
  border-width: 0;
}

.tl { left: -1vw; top: -0.7vw; border-top-width: 1px; border-left-width: 1px; }
.tr { right: -1vw; top: -0.7vw; border-top-width: 1px; border-right-width: 1px; }
.bl { left: -1vw; bottom: -0.85vw; border-bottom-width: 1px; border-left-width: 1px; }
.br { right: -1vw; bottom: -0.85vw; border-bottom-width: 1px; border-right-width: 1px; }

.tag {
  position: absolute;
  left: -1vw;
  bottom: calc(-0.85vw - 22px);
  font-size: clamp(9px, 0.62vw, 11px);
  color: var(--white);
  background: var(--blue);
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.poster-spec {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(125px, 0.85fr) minmax(220px, 1.85fr) 52px minmax(180px, 1.15fr) minmax(155px, 0.85fr);
  border: 1px solid var(--blue);
  background: var(--paper);
}

.spec-cell {
  min-width: 0;
  padding: clamp(6px, 0.75vw, 13px) clamp(8px, 0.9vw, 15px);
  border-right: 1px solid var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.spec-cell:last-child {
  border-right: 0;
}

.spec-id {
  gap: 12px;
}

.spec-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-k {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  opacity: 0.72;
}

.spec-k i {
  font-style: normal;
}

.spec-v {
  font-family: "Michroma", "JetBrains Mono", sans-serif;
  font-size: clamp(11px, 0.95vw, 15px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.spec-rule {
  display: block;
  width: 68%;
  height: 1px;
  margin-top: 3px;
  border-bottom: 1px dashed var(--blue-faint);
}

.spec-bio-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.spec-micro {
  font-size: 7.5px;
  line-height: 1.45;
  opacity: 0.72;
  flex-shrink: 0;
}

.tagline {
  font-family: "Michroma", "JetBrains Mono", sans-serif;
  font-weight: 400;
  font-size: clamp(7.5px, 0.56vw, 9.5px);
  line-height: 1.55;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  color: var(--blue);
}

.spec-display {
  font-family: "Michroma", sans-serif;
  font-size: clamp(13px, min(1.8vw, 3.2vh), 31px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1.1px var(--blue);
  white-space: nowrap;
}

.spec-active {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--blue);
}

.chk-col {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.chk-col-text {
  grid-template-rows: repeat(6, 1fr);
}

.chk-b,
.chk-w {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.chk-col-text .chk-b,
.chk-col-text .chk-w {
  font-family: "Michroma", sans-serif;
  font-size: 9px;
  font-weight: 400;
}

.chk-b {
  background: var(--blue);
  color: var(--paper);
}

.chk-w {
  background: var(--paper);
  color: var(--blue);
}

.spec-focus {
  position: relative;
  padding: 0;
  gap: 0;
}

.focus-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.focus-lines line {
  stroke: var(--blue-faint);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.hero-sub {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  font-size: clamp(8.5px, 0.65vw, 11px);
  color: var(--blue);
}

.focus-row {
  display: flex;
  align-items: flex-end;
  padding: 4px 10px;
  border-bottom: 1px solid var(--blue-faint);
}

.focus-row-1 { justify-content: flex-start; }
.focus-row-2 { justify-content: flex-end; }
.focus-row-3 { justify-content: flex-start; border-bottom: 0; }

.sq-node {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  background: var(--paper);
  margin: 0 5px;
  vertical-align: middle;
}

.spec-arrow {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 3;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.spec-term {
  position: relative;
  background: var(--blue);
  color: var(--paper);
}

.term-list {
  list-style: none;
  display: grid;
  gap: 1.5px;
  font-size: 8.5px;
  line-height: 1.28;
}

.work-link {
  padding: 6px 10px;
  font-size: 9.5px;
  background: var(--paper);
  color: var(--blue);
  border: 1px solid var(--paper);
  text-align: center;
  margin-right: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.work-link:hover {
  background: var(--blue);
  color: var(--paper);
}

.term-arrow {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--paper);
}

.tf-item {
  position: relative;
  padding: 2px 4px;
  opacity: 0.48;
  filter: blur(0.6px);
  transition: opacity 0.45s ease, filter 0.45s ease;
  cursor: pointer;
}

.tf-item.is-active {
  opacity: 1;
  filter: blur(0px);
}

.tf-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.tf-frame.is-ready {
  opacity: 1;
}

.tf-c {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--blue);
  border-style: solid;
  border-width: 0;
}

.tf-c.tl { left: -7px; top: -4px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tf-c.tr { right: -7px; top: -4px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tf-c.bl { left: -7px; bottom: -4px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tf-c.br { right: -7px; bottom: -4px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

@media (hover: hover) and (pointer: fine) {
  html, body, a, button, .tf-item {
    cursor: none;
  }
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
}

.cursor-x {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 19px;
  height: 19px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.cursor-x::before,
.cursor-x::after {
  content: "";
  position: absolute;
}

.cursor-x::before {
  left: 9px;
  top: 0;
  width: 1.5px;
  height: 19px;
  background: linear-gradient(to bottom, #FFFFFF 50%, var(--blue) 50%);
}

.cursor-x::after {
  top: 9px;
  left: 0;
  height: 1.5px;
  width: 19px;
  background: linear-gradient(to right, #FFFFFF 50%, var(--blue) 50%);
}

.cursor-tag {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--paper);
  background: var(--blue);
  border: 1px solid var(--paper);
  box-shadow: 0 0 0 1px var(--blue);
  padding: 2px 5px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease;
}

.cursor.is-snap .cursor-x {
  transform: scale(0.45);
}

.cursor.is-snap .cursor-tag {
  opacity: 0;
}

.cursor.is-down .cursor-x {
  transform: scale(0.35) rotate(45deg);
}

.cursor-sel {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 110;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 0 1px var(--paper), inset 0 0 0 1px var(--paper);
  opacity: 0;
  transition: opacity 0.18s linear;
  will-change: transform, width, height;
}

.cursor-sel.is-on {
  opacity: 1;
}

.cs-h {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: 1.5px solid var(--blue);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cursor-sel.is-down .cs-h {
  background: var(--blue);
  border-color: var(--paper);
}

.cs-h.tl { left: -4px; top: -4px; }
.cs-h.tr { right: -4px; top: -4px; }
.cs-h.bl { left: -4px; bottom: -4px; }
.cs-h.br { right: -4px; bottom: -4px; }

.cs-dims {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--paper);
  border: 1px solid var(--paper);
  box-shadow: 0 0 0 1px var(--blue);
  padding: 3px 6px 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(236, 236, 232, 0.97);
  color: var(--blue);
  display: flex;
  align-items: center;
  padding: var(--page-margin);
}

.menu-title {
  font-size: 12px;
  color: var(--blue);
  opacity: 0.65;
  margin-bottom: 24px;
}

.mobile-menu ol {
  list-style: none;
  display: grid;
  gap: 16px;
}

.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
}

.mobile-menu a span {
  font-size: 12px;
  color: #B4A1FB;
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-sel {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --page-margin: 16px;
    --column-size: calc((100vw - 32px) / 4);
    --edge-margin: 10px;
  }

  nav { display: none; }
  .menu-open { display: inline-flex; }

  .poster-shell {
    padding: calc(var(--edge-margin) + 42px) var(--page-margin) calc(var(--edge-margin) + 12px);
  }

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

  .spec-bio,
  .spec-term {
    grid-column: 1 / -1;
  }

  .spec-active {
    display: none;
  }

  .spec-cell {
    border-bottom: 1px solid var(--blue);
  }

  .person-wrap {
    --person-left: 4vw;
    --person-top: 12vh;
    --person-width: 88vw;
  }

  .im { left: 10vw; top: 42vh; }
  .name-box { left: 10vw; top: 46vh; }
  .name { font-size: 13vw; }
}
