:root {
  --bg: #fbfaf6;
  --ink: #050505;
  --muted: #625f58;
  --red: #ed1c24;
  --blue: #0047ff;
  --yellow: #ffdf00;
  --paper: #fffef8;
  --line: 5px;
  --heavy: 9px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.055) 1px, transparent 1px),
    linear-gradient(rgba(5,5,5,.055) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.35;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 74%, var(--red) 74% calc(74% + 16px), transparent calc(74% + 16px)),
    linear-gradient(0deg, transparent 0 18%, var(--blue) 18% calc(18% + 14px), transparent calc(18% + 14px));
  opacity: .08;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: var(--heavy) solid var(--ink);
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(10px);
}
.mark img {
  width: 52px;
  height: 52px;
  border: var(--line) solid var(--ink);
  background: white;
}
nav { display: flex; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
nav a {
  padding: 8px 12px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
}
nav a:nth-child(1) { background: var(--yellow); }
nav a:nth-child(2) { background: white; }
nav a:hover { transform: translateY(-2px); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 86px) clamp(18px, 4vw, 44px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(130px, 210px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: 40vh;
  margin-bottom: clamp(42px, 7vw, 96px);
  position: relative;
}
.intro::before,
.intro::after {
  content: "";
  position: absolute;
  border: var(--heavy) solid var(--ink);
  z-index: -1;
}
.intro::before { right: 19%; top: 0; width: 90px; height: 90px; background: var(--red); }
.intro::after { left: 0; bottom: -28px; width: min(38vw, 300px); height: 22px; background: var(--blue); }
.intro-copy {
  padding: clamp(18px, 3vw, 34px);
  border-left: var(--heavy) solid var(--ink);
  background: rgba(255,254,248,.72);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .88;
}
.subline {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
}

.artist-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.artist-card:hover .profile {
  animation: profileShake .45s infinite;
}
.artist-profile-panel {
  display: flex;
  justify-content: center;
}
.artist-figure-area {
  position: relative;

  width: 400px;
  height: 580px;

  padding-top: 24px;
  padding-bottom: 96px;
}

.artist-silhouette {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 190px;
  height: auto;

  transform: translate(-50%, -50%);

  image-rendering: pixelated;
  z-index: 3;
}

/* floating labels */

.floating-info {
  position: absolute;
  z-index: 5;

  min-width: 108px;
  min-height: 42px;

  padding: 8px 12px;

  border: 5px solid var(--ink);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;

  filter: drop-shadow(-6px 6px 0 rgba(0,0,0,.14));
}

/* safer placements */

.systems {
  top: 34px;
  left: 6px;
  background: var(--yellow);

  animation: driftA 5.4s ease-in-out infinite;
}

.research {
  top: 38px;
  right: 4px;
  background: var(--red);
  color: white;

  animation: driftB 5s ease-in-out infinite;
}

.design {
  top: 202px;
  left: -2px;
  background: var(--blue);
  color: white;

  animation: driftC 5.8s ease-in-out infinite;
}

.computation {
  top: 220px;
  right: -2px;
  background: white;

  animation: driftD 5.2s ease-in-out infinite;
}

.movement {
  bottom: 102px;
  left: 12px;
  background: var(--yellow);

  animation: driftE 5.1s ease-in-out infinite;
}

.curiosity {
  bottom: 102px;
  right: 12px;
  background: var(--red);
  color: white;

  animation: driftF 5.7s ease-in-out infinite;
}

/* smoother movement */

@keyframes driftA {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  30% { transform: translate(8px,-10px) rotate(-2deg); }
  65% { transform: translate(-4px,8px) rotate(1deg); }
}

@keyframes driftB {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  40% { transform: translate(-10px,10px) rotate(2deg); }
  75% { transform: translate(4px,-8px) rotate(-1deg); }
}

@keyframes driftC {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  35% { transform: translate(10px,6px) rotate(-2deg); }
  80% { transform: translate(-6px,-6px) rotate(2deg); }
}

@keyframes driftD {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  30% { transform: translate(-8px,-8px) rotate(2deg); }
  70% { transform: translate(6px,6px) rotate(-2deg); }
}

@keyframes driftE {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  40% { transform: translate(10px,-8px) rotate(2deg); }
  75% { transform: translate(-5px,4px) rotate(-1deg); }
}

@keyframes driftF {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  35% { transform: translate(-10px,-8px) rotate(-2deg); }
  80% { transform: translate(5px,6px) rotate(2deg); }
}

/* status bar */

.artist-status {
  position: absolute;

  left: 50%;
  bottom: 12px;

  transform: translateX(-50%);

  width: 92%;

  padding: 10px 14px;

  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);

  background: white;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;

  z-index: 4;
}


.artist-toggle {
  cursor: pointer;
  width: 100%;
  padding: 10px 14px;

  border: 8px solid var(--ink);
  background:
    radial-gradient(circle, rgba(5,5,5,.18) 1px, transparent 1px),
    var(--yellow);
  background-size: 6px 6px;

  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;

  transition: transform .25s ease;
}

.artist-toggle:hover {
  transform: translateY(-2px);
}

@keyframes profileShake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(1px, -1px) rotate(-1deg); }
  50% { transform: translate(-1px, 1px) rotate(1deg); }
  75% { transform: translate(1px, 1px) rotate(.5deg); }
  100% { transform: translate(0, 0) rotate(0); }
}


.artist-card {
  position: relative;
}

.artist-popup {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 80;

  width: min(500px, 92vw);
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  padding: 0 22px;

  border: 8px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(237,28,36,.08) 70% 74%, transparent 74%),
    linear-gradient(0deg, transparent 0 78%, rgba(0,71,255,.08) 78% 82%, transparent 82%),
    var(--paper);

  transform: translateY(-8px);

  transition:
    max-height .45s cubic-bezier(.77,0,.18,1),
    opacity .25s ease,
    padding .35s ease,
    transform .35s ease;
}

.artist-popup.open {
  max-height: 760px;
  opacity: 1;
  padding: 22px;
  transform: translateY(0);
}

.artist-popup.open {
  max-height: 620px;
  opacity: 1;
  padding: 22px;
  transform: translateY(0);
}

.artist-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;

  border: 5px solid var(--ink);
  background: var(--red);
  color: white;

  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.artist-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 42px;
  height: 42px;

  border: 6px solid var(--ink);
  background: var(--red);
  color: white;

  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}


.profile {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--heavy) solid var(--ink);
  background: white;
  box-shadow: 14px 14px 0 var(--yellow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 76px) clamp(20px, 4vw, 48px);
}
.piece {
  margin: 0;
  position: relative;

  padding: 0;

  border: none;
  background: transparent;

  overflow: visible;
  margin-bottom: 42px;
}

.piece img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: white;
  border: 16px solid var(--ink);
  outline: 5px solid white;
}

.piece figcaption {
  margin-top: 14px;
}

.painting-toggle {
  position: relative;
  width: 100%;
  cursor: pointer;

  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;

  padding: 8px 18px;
  border: 8px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);

  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  text-align: left;

  transition: background .3s ease, transform .3s ease;
}

.piece:nth-child(3n + 1) .painting-toggle {
  background: var(--yellow);
  color: var(--ink);
}

.piece:nth-child(3n + 2) .painting-toggle {
  background: var(--red);
  color: white;
}

.piece:nth-child(3n) .painting-toggle {
  background: var(--blue);
  color: white;
}

.painting-toggle:hover {
  transform: translateY(-2px);
}

.plus {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transition: transform .4s ease;
}



.note {
  position: absolute;

  left: 0;
  right: 0;

  top: calc(100% - 8px);

  z-index: 30;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  box-sizing: border-box;

  padding: 0 18px;

  border-left: 8px solid var(--ink);
  border-right: 8px solid var(--ink);
  border-bottom: 8px solid var(--ink);

  background: white;
  color: var(--ink);

  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;

  transform: translateY(-6px);

  transition:
    max-height .45s cubic-bezier(.77,0,.18,1),
    opacity .3s ease,
    padding .35s ease,
    transform .35s ease;
}


.piece.open .note {
  max-height: 220px;
  opacity: 1;

  padding: 18px;

  transform: translateY(0);
}

.piece:nth-child(3n + 1) .note {
  background: #fff6b8;
}

.piece:nth-child(3n + 2) .note {
  background: #ffe2e2;
}

.piece:nth-child(3n) .note {
  background: #e3ebff;
}

.piece.open .note {
  max-height: 220px;
  opacity: 1;
  padding: 18px;
  transform: translateY(0);
}

.statement {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;

  align-items: stretch;
  margin-top: clamp(56px, 9vw, 80px);
}

.statement-block {
  position: relative;

  padding: 34px 36px;

  border: 10px solid var(--ink);

  background: white;
}

.red-block {
  background:
    linear-gradient(
      90deg,
      var(--red) 0 18px,
      transparent 18px
    ),
    var(--paper);
}

.blue-block {
  background:
    linear-gradient(
      0deg,
      var(--blue) 0 18px,
      transparent 18px
    ),
    var(--paper);

  justify-content: center;
  display: flex;
  align-items: center;
}

.red-block p {
  max-width: 92%;
}

.blue-block p {
  max-width: 88%;
}

.statement-label {
  display: inline-block;

  margin-bottom: 18px;
  padding: 8px 12px;

  border: 6px solid var(--ink);

  background: var(--yellow);

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}



.statement p {
  margin: 0;

  max-width: 95%;

  font-size: clamp(18px, 1.9vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
}

@media (max-width: 760px) {
  .statement {
    grid-template-columns: 1fr;
  }
}


footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px) 44px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; min-height: auto; }
  .profile { width: 148px; }
  .gallery { grid-template-columns: 1fr; }
  .statement { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
}

.artist-profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.artist-silhouette {
  width: 180px;
  height: auto;

  image-rendering: pixelated;
  display: block;
}

.artist-info-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-box {
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 6px solid var(--ink);

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.info-box.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.info-box.red {
  background: var(--red);
  color: white;
}

.info-box.blue {
  background: var(--blue);
  color: white;
}

.piece.landscape {
  grid-column: 1 / -1;
  margin-bottom: 1;
}

.piece.landscape img {
  width: 100%;
  display: block;
  aspect-ratio: auto;
  object-fit: cover;
  background: transparent;
}

.info-box.white {
  background: white;
  color: var(--ink);
}

#footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.postit-note {
  position: relative;
  padding: 1rem 1.25rem;
  background: #f8e96b;
  border: 3px solid #000;
  transform: rotate(-2deg);
  box-shadow:
    6px 6px 0 #000,
    inset 0 -8px rgba(0,0,0,0.05);
  min-width: 260px;
}

.postit-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 42px;
  height: 18px;
  background: rgba(255,255,255,0.65);
  border: 2px solid rgba(0,0,0,0.15);
  transform: translateX(-50%) rotate(6deg);
}

.postit-title {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.postit-note a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
}

.postit-note:hover {
  transform: rotate(0deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.postit-note a:hover {
  text-decoration: underline;
}