:root {
  --color-bg: #000;
  --color-fg: #fff;
  --fg-dim: rgb(255 255 255 / 78%);
  --fg-muted: rgb(255 255 255 / 56%);
  --line: rgb(255 255 255 / 14%);
  --line-strong: rgb(255 255 255 / 28%);
  --font-stack:
    ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --font-stack-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  margin: 0;
  font-family: var(--font-stack);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-align: center;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  gap: 1rem;
}

.top-nav__menu {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav__link {
  font-family: var(--font-stack);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-decoration: none;
  /* 44×44 touch target without changing the visible label size */
  padding: 0.5rem 0.25rem;
  transition: color 160ms ease;
}

/* Small metallic Z.P.P. mark in the top-left of /contact and /keynote.
   Same gradients + shimmer as the landing logo, scaled down. The wrapping
   anchor (.top-nav__mark) gets padding for the touch target. */
.top-nav__mark {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
}

.top-nav__logo {
  display: block;
  width: 3.75rem;
  height: 1.875rem;
  background:
    linear-gradient(
        100deg,
        transparent 38%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 62%
      )
      -100% 0% / 220% 100% no-repeat,
    linear-gradient(
      180deg,
      #2a2d30 0%,
      #8a8f94 24%,
      #d8dde2 50%,
      #8a8f94 76%,
      #2a2d30 100%
    );
  -webkit-mask-image: url('/img/logo.svg');
  mask-image: url('/img/logo.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  animation: zpp-shimmer 14s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.top-nav__link:hover,
.top-nav__link:focus-visible {
  color: var(--color-fg);
  outline: none;
}

.top-nav__link.is-current {
  color: var(--color-fg);
}

/* Landing page — body becomes a column so the nav sits on top and the
   logo centres in the remaining space. */
.landing-body {
  display: flex;
  flex-direction: column;
}

.landing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem clamp(1rem, 4vw, 2rem) clamp(2rem, 6vh, 4rem);
}

.landing__door {
  display: block;
  width: clamp(240px, 62vw, 760px);
  aspect-ratio: 2 / 1;
  outline: none;
  transition: filter 600ms ease;
  cursor: pointer;
  /* Soft default glow — pulls the logo off the pure-black plate so it
     reads as polished metal under low ambient light, not a flat decal. */
  filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.05));
}

@media (hover: hover) {
  .landing__door:hover {
    filter: drop-shadow(0 0 56px rgba(255, 255, 255, 0.16));
  }
}

.landing__door:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.25);
  outline-offset: 24px;
}

.landing__logo {
  display: block;
  width: 100%;
  height: 100%;
  /* Layer 1 — moving diagonal sheen. Sits above the base silver and
     sweeps across once per cycle, then rests off-canvas. */
  /* Layer 2 — static brushed-titanium body. Vertical so the logo
     reads as a polished metal plate even when the sheen is off-screen. */
  background:
    linear-gradient(
        100deg,
        transparent 38%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 62%
      )
      -100% 0% / 220% 100% no-repeat,
    linear-gradient(
      180deg,
      #2a2d30 0%,
      #8a8f94 24%,
      #d8dde2 50%,
      #8a8f94 76%,
      #2a2d30 100%
    );
  -webkit-mask-image: url('/img/logo.svg');
  mask-image: url('/img/logo.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  animation: zpp-shimmer 14s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sheen rests at the left edge for the first half of the cycle, then
   sweeps across. With this split, viewers see motion roughly every 7s
   instead of constant movement — feels deliberate, not decorative. */
@keyframes zpp-shimmer {
  0%,
  50% {
    background-position:
      -100% 0%,
      0% 0%;
  }
  100% {
    background-position:
      220% 0%,
      0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__door {
    transition: none;
  }
  .landing__logo,
  .top-nav__logo {
    animation: none;
    background-position:
      50% 0%,
      0% 0%;
  }
}
