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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --accent1: #ded861;
  --accent2: #86c562;
  --accent: #e8c44a;
  --text: #f0f0f0;
  --muted: #888;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo span {
  color: var(--muted);
  font-weight: 400;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
  min-height: 0;
}

.hero {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "mark heading"
    ".    tagline";
  align-content: center;
  column-gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  min-height: 0;
}

.hero-mark {
  grid-area: mark;
  align-self: center;
  height: clamp(5rem, 12vw, 10rem);
  width: clamp(5rem, 12vw, 10rem);
  border-radius: 50%;
}

.hero h1 {
  grid-area: heading;
}

.hero .tagline {
  grid-area: tagline;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1+.tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40ch;
}

.tech-cloud {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tech-cloud span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
  font-size: var(--s);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  transition: color 2.0s;
  cursor: default;
  user-select: none;
  pointer-events: auto;
}

.tech-cloud span:hover {
  color: #444;
}

.contact {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #222;
}

.contact h2 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item a,
.contact-item span {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #1a1a1a;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .contact-details {
    flex-direction: row;
    gap: 4rem;
  }
}