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

:root {
  --paper: #f3f1ec;
  --ink: #0d0d0d;
  --muted: #6f6c66;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

nav {
  position: fixed;
  inset: 0 0 auto 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.nav-logo {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav-logo sup {
  font-size: 0.55em;
  margin-left: 0.1em;
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.header {
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 9.6vw, 14rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}

.line:nth-child(2) {
  align-self: flex-end;
}

.line:nth-child(2) > span {
  animation-delay: 0.08s;
}

.line:nth-child(3) {
  align-self: center;
}

.line:nth-child(3) > span {
  animation-delay: 0.16s;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

/* Photo tiles — the difference-blended ink inverts them as it passes over */
.tile {
  position: absolute;
  width: clamp(7rem, 13vw, 14rem);
  opacity: 0;
  animation: fade 1.2s var(--ease) 0.5s forwards;
}

.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tile figcaption {
  margin-top: 0.5rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

.tile-a {
  top: 14%;
  right: 24%;
}

.tile-b {
  bottom: 9%;
  left: 7%;
  width: clamp(6rem, 10vw, 11rem);
  animation-delay: 0.65s;
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

.meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hint {
  color: var(--ink);
  transition: opacity 0.6s var(--ease);
}

.hint.is-hidden {
  opacity: 0;
}

#fluid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
}

@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
  }

  .line {
    align-self: center !important;
    text-align: center;
  }

  .tile-a {
    top: 18%;
    right: 8%;
  }

  .meta p:first-child {
    display: none;
  }
}
