:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1814;
  color: #f0f0e9;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 280px; }

body {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
}

/* The real artwork is visible immediately, including without JavaScript. */
.artwork {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.artwork__still, .artwork__motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* A separately composed portrait asset keeps the curves natural on phones. */
.artwork__still { object-fit: cover; object-position: center bottom; }
.artwork__motion { opacity: 0; }
.artwork[data-motion="running"] .artwork__motion,
.artwork[data-motion="paused"] .artwork__motion { opacity: 1; }

.identity {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 24px 100px;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 4.85vw, 104px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.008em;
  text-align: center;
}

.details {
  position: absolute;
  inset-inline: 20px;
  bottom: max(3.8svh, env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: clamp(12px, 1.135vw, 18px);
  line-height: 1.65;
  font-weight: 400;
  color: #dcdfd8;
  text-align: center;
}

.separator { white-space: pre; margin-inline: 0.08em; }

.details a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.details a:hover { color: #fff; text-decoration-color: currentColor; }
.details a:focus-visible { outline: 1px solid #d9e2d4; outline-offset: 5px; border-radius: 1px; }
::selection { background: #b5c1a8; color: #0b1814; }

@media (max-width: 600px) {
  .identity { padding-bottom: 112px; }
  h1 { font-size: clamp(32px, 8.7vw, 52px); letter-spacing: -0.035em; }
  .details { bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px)); font-size: 12px; row-gap: 3px; }
  .details a { flex-basis: 100%; width: max-content; }
  .separator--email { display: none; }
}

@media (max-height: 440px) and (min-width: 601px) {
  .identity { padding: 50px 24px 70px; }
  .details { bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .artwork__motion { display: none; }
  .details a { transition: none; }
}
