:root {
  --bg: #333333;
  --fg: #D7E1DB;
  --muted: rgba(215, 225, 219, 0.65);
  --rule: rgba(215, 225, 219, 0.25);
  --font: "Inclusive Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2.5rem 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header { padding-top: 0.5rem; }

.logo {
  width: 170px;
  max-width: 55vw;
  height: auto;
  display: block;
  margin: 0 auto;
  color: var(--fg);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tagline {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0;
}

.rotator {
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  vertical-align: bottom;
  text-align: left;
  margin-left: 0.35em;
  padding: 0 0.05em;
}

.words {
  display: block;
  animation: cycle 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.words > span {
  display: block;
  height: 1.4em;
  line-height: 1.4em;
  font-style: italic;
  font-weight: 400;
}

@keyframes cycle {
  0%, 40%   { transform: translateY(0); }
  50%, 90%  { transform: translateY(-1.4em); }
  100%      { transform: translateY(-2.8em); }
}

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

footer {
  color: var(--fg);
  line-height: 1.5;
  padding-bottom: 0.5rem;
}

footer p { margin: 0; }

.email {
  font-size: 1rem;
  margin-bottom: 0.25rem !important;
}

.location {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms ease;
}

footer a:hover {
  border-bottom-color: var(--fg);
}

@media (max-width: 480px) {
  body { padding: 1.75rem 1.25rem; }
  .logo { width: 140px; }
  footer { font-size: 0.88rem; }
}
