:root {
  --bg: #1a1620;
  --ink: #f0f0f0;
  --muted: #c9c3d0;
  --accent: #76949F;
  --accent-deep: #86BBBD;
  --surface: #2d2530;
  --line: #4a4050;
  --light: #3d3745;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(118, 148, 159, 0.15) 0, rgba(118, 148, 159, 0) 38%),
    radial-gradient(circle at 90% 30%, rgba(134, 187, 189, 0.15) 0, rgba(134, 187, 189, 0) 35%),
    var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand-mark {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.02em;
}

.ambient-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.15;
}

.ambient-one {
  width: 340px;
  height: 340px;
  background: #76949F;
  top: -120px;
  right: -80px;
}

.ambient-two {
  width: 300px;
  height: 300px;
  background: #6A6B83;
  bottom: -120px;
  left: -80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(26, 22, 32, 0.9);
  border-bottom: 1px solid rgba(240, 240, 240, 0.08);
}

.brand-mark {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0;
}

.small-nav .nav-link {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.small-nav .nav-link:hover,
.small-nav .nav-link:focus {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  border-color: var(--line);
}

.nav-toggle:focus {
  box-shadow: none;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  max-width: 14ch;
}

.hero-copy {
  color: var(--muted);
  max-width: 56ch;
}

.hero-card,
.service-card,
.project-card,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.notice-box {
  border: 1px dashed var(--line);
  background: rgba(118, 148, 159, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.service-card,
.project-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.project-tag {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.gallery-tile {
  min-height: 170px;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(118, 148, 159, 0.2), rgba(134, 187, 189, 0.1)),
    var(--light);
  font-weight: 700;
  color: var(--ink);
}

.contact-item {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--light);
  color: var(--ink);
}

.contact-item a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.twitch-embed {
  width: min(100%, 960px);
  min-height: 480px;
  border-radius: 0.75rem;
  overflow: hidden;
}

#twitch-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.btn-accent {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--light);
  color: var(--ink);
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.2s;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .navbar {
    align-items: center;
  }

  .navbar-collapse {
    margin-top: 0.7rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(45, 37, 48, 0.95);
  }

  .small-nav {
    width: 100%;
    gap: 0.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .brand-mark {
    font-size: 1rem;
  }

  .hero-section {
    padding-top: 2rem !important;
  }

  .hero-title {
    font-size: 1.8rem;
    max-width: 100%;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .btn-lg {
    width: 100%;
  }

  .contact-panel,
  .hero-card,
  .service-card,
  .project-card {
    padding: 1rem !important;
  }

  .twitch-embed {
    min-height: 280px;
  }
}
