:root {
  color-scheme: only light;
  --bg-base: #1c1f24;
  --bg-deep: #14161b;
  --bg-accent: #2b2e35;
  --text-primary: #ececec;
  --text-muted: #9a9a9a;
  --accent: #d3b163;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 40% 20%, #2b2f36 0%, var(--bg-base) 45%, var(--bg-deep) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.frame {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 50%),
    var(--bg-base);
  padding: 36px 48px;
  position: relative;
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  animation: fadeUp 0.8s ease-out;
}

.logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text-primary);
  position: relative;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--text-primary);
}

.content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 80px;
}

.hero-panel {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeUp 0.9s ease-out 0.1s both;
}

.intro {
  max-width: 720px;
  text-transform: uppercase;
}

.title-block {
  display: inline-block;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: inline-block;
}

.accent-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
  margin: 12px 0 18px 0;
}

.title-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(64px, 10vw, 140px);
  letter-spacing: 4px;
  line-height: 0.9;
}

.projects {
  display: grid;
  gap: 24px;
}

.section-head {
  max-width: 640px;
  text-transform: uppercase;
}

.section-mark {
  display: inline-block;
}

.section-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 2px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  text-transform: none;
}

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

.project-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  text-transform: none;
}

.project-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.role {
  display: grid;
  gap: 4px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
}

.meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
  z-index: 1;
  animation: fadeUp 1s ease-out 0.2s both;
  margin-top: auto;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social a:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

.social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.counter {
  font-size: 22px;
  letter-spacing: 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scroll {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
}

.scroll span:first-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--text-muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .frame {
    padding: 28px 28px;
  }

  .nav {
    gap: 18px;
  }

  .hero-panel {
    min-height: calc(100vh - 56px);
  }

  .meta {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 720px) {
  .content {
    gap: 48px;
  }

  .hero-panel {
    min-height: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .meta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .scroll {
    writing-mode: horizontal-tb;
  }

  .scroll span:first-child {
    writing-mode: horizontal-tb;
    transform: none;
  }
}
