:root {
  --bg: #050505;
  --fg: #f7f7f2;
  --muted: #9c9c9c;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4vw;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.logo span {
  font-weight: 300;
}

nav a {
  margin-left: 2rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

main {
  padding: 6rem 4vw 4rem;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin: 0.5rem 0;
  letter-spacing: 0.04em;
}

.hero-text p {
  max-width: 32rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle {
  width: 40%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.line {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
}

.line-vertical {
  width: 1px;
  height: 100%;
}

.line-horizontal {
  height: 1px;
  width: 100%;
}

.panel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.portfolio article {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.portfolio p {
  color: var(--muted);
}

.contact a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.2rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 2rem 4vw 4rem;
  color: var(--muted);
  z-index: 1;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin-left: 1rem;
  }
}
