:root {
  --ink: #17171a;
  --muted: #5c5c66;
  --faint: #a9a9a2;
  --accent: forestgreen;
  --bg: #fcfcfb;
  --hairline: #e8e8e4;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Abel', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---- hero ---- */

.hero {
  position: relative;
  height: min(56vh, 520px);
  min-height: 300px;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: grab;
}

.hero canvas:active { cursor: grabbing; }

.hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 13vw, 9rem);
  letter-spacing: 0.02em;
  transition: opacity 0.4s;
}

.hero__title.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  pointer-events: none;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: baseline;
  color: var(--faint);
}

.hero__buttons button {
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 4px 2px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
}

.hero__buttons button:hover:not(:disabled) { color: var(--accent); }

.hero__buttons button:disabled {
  color: #c6c6c0;
  cursor: default;
}

.hero__hint {
  margin: 4px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---- content ---- */

.tagline {
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  margin: 28px 0 32px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px 34px;
}

.skill h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

.skill h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: 8px;
}

.skill ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a3a40;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

footer svg { fill: currentColor; }

@media (max-width: 640px) {
  .hero {
    height: 44vh;
    min-height: 250px;
  }
  .tagline { letter-spacing: 0.18em; }
}
