@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;650&display=swap');

:root {
  color-scheme: light;
  --ink: #101011;
  --muted: #5e5e62;
  --mx: 50%;
  --my: 50%;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(0,0,0,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;
}

.stage {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.scene {
  width: 100%;
  position: relative;
  z-index: 2;
}

.lens {
  width: clamp(8rem, 22vw, 22rem);
  aspect-ratio: 1;
  position: fixed;
  left: var(--mx);
  top: var(--my);
  z-index: 4;
  background: #fff;
  border-radius: 46% 54% 63% 37% / 38% 43% 57% 62%;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--tilt, -8deg));
  transition: left 520ms cubic-bezier(.16,1,.3,1), top 520ms cubic-bezier(.16,1,.3,1), border-radius 700ms ease;
  animation: morph 7s ease-in-out infinite alternate;
}

.name {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(4rem, 13.2vw, 13rem);
  font-weight: 650;
  line-height: .72;
  letter-spacing: -.09em;
  text-transform: uppercase;
}

.name span:first-child { align-self: flex-start; }
.name span:last-child { align-self: flex-end; margin-top: .18em; }

.disciplines {
  margin: clamp(2.5rem, 7vh, 5rem) 0 0 1vw;
  color: var(--muted);
  font-size: clamp(.76rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.7;
  text-transform: uppercase;
  width: max-content;
}

.disciplines span { color: #aaa9a5; }

.email {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 3rem);
  transform: translateX(-50%);
  color: #4d4d50;
  font-size: clamp(.8rem, 1vw, .95rem);
  letter-spacing: .025em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, letter-spacing 180ms ease;
}

.email:hover, .email:focus-visible {
  color: #000;
  letter-spacing: .055em;
}

.email:focus-visible { outline: 1px solid #222; outline-offset: 7px; }

@keyframes morph {
  to { border-radius: 61% 39% 34% 66% / 52% 65% 35% 48%; }
}

@media (max-width: 640px) {
  body::before { background-size: 25vw 25vw; }
  .name { font-size: clamp(3.4rem, 18vw, 6rem); line-height: .78; }
  .name span:last-child { margin-top: .28em; }
  .disciplines { max-width: 18rem; margin-top: 3rem; letter-spacing: .1em; }
  .lens { width: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lens { animation: none; transition: none; }
}
