:root {
  --bg: #1b1b1f;
  --surface: #202127;
  --surface-2: #2f323b;
  --text: #dfdfd6;
  --muted: #98989f;
  --accent: #e79918;
  --accent-2: #5c73e7;
  --accent-3: #a8b1ff;
  --border: #3c3f44;
  --divider: #2e2e32;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
  --nav-height: 64px;
  --layout-max: 1152px;
  --font-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  line-height: 1.4;
}

body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  font-optical-sizing: auto;
  font-synthesis: style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

.site-header,
.page-shell,
.site-footer {
  width: min(var(--layout-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  width: min(1280px, calc(100% - 32px));
}

.page-shell,
.site-footer {
  width: min(1040px, calc(100% - 32px));
}

.site-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  padding: 12px 0 6px;
  position: relative;
  z-index: 120;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
}

.site-nav {
  display: none;
  gap: 2px;
  flex-wrap: wrap;
  width: auto;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav a {
  color: #c3c6ce;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0 10px;
  line-height: 40px;
  border-radius: 8px;
  transition: color 0.25s;
}

.site-nav__divider {
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: rgba(223, 223, 214, 0.35);
  margin: 0 4px;
  user-select: none;
  box-shadow: none;
}

.site-nav__discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
}

.site-nav__discord svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: var(--nav-height) 0 0;
  z-index: 110;
  background: var(--bg);
  border-top: 1px solid var(--divider);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.mobile-nav__links {
  width: min(320px, calc(100% - 48px));
  margin: 18px auto 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.24s ease;
}

.mobile-nav__links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
  border-bottom: 1px solid var(--divider);
}

.mobile-nav__links a.active {
  color: var(--accent-3);
}

.mobile-nav__links a:hover {
  color: var(--accent-3);
}

.mobile-nav__extras {
  width: min(320px, calc(100% - 48px));
  margin: 20px auto 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease 0.04s, transform 0.24s ease 0.04s;
}

.mobile-nav.is-open .mobile-nav__links,
.mobile-nav.is-open .mobile-nav__extras {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav__social {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 22px auto 0;
  color: var(--muted);
  text-decoration: none;
}

.mobile-nav__social svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-nav__social:hover {
  color: var(--text);
}

.site-nav a.active {
  color: var(--accent-3);
}

.site-nav a:hover {
  color: var(--accent-3);
}

.page-shell {
  padding: 1.25rem 0 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.25rem;
  text-align: center;
}

.hero-copy {
  width: 100%;
  order: 2;
  max-width: 620px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 1.8vw + 23px, 56px);
  line-height: clamp(36px, 2.1vw + 28px, 64px);
  font-weight: 700;
  letter-spacing: -0.4px;
  max-width: 10ch;
  margin-inline: auto;
}

.highlight {
  display: inline-block;
  background: linear-gradient(90deg, #ff7fbf 0%, #ffd4e8 45%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(255, 127, 191, 0.24);
}

.mobile-break {
  display: inline;
}

@media (min-width: 900px) {
  .mobile-break {
    display: none;
  }
}

.hero-text {
  color: var(--muted);
  font-size: clamp(16px, 0.8vw + 13px, 24px);
  line-height: clamp(26px, 1.1vw + 22px, 36px);
  font-weight: 500;
  margin-top: 0.5rem;
  max-width: 34ch;
  margin-inline: auto;
}

.hero-actions {
  margin: -6px;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 320px;
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 38px;
  padding: 0 20px;
  border-radius: 20px;
  border: 1px solid transparent;
  margin: 6px;
  white-space: normal;
  text-align: center;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.2s ease;
}

.hero-actions .button:nth-child(-n + 2) {
  min-width: 144px;
}

.hero-actions .button:last-child {
  min-width: 144px;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent-2);
  color: #ffffff;
}

.button.primary:hover {
  background: #7c8ef8;
}

.button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.button.secondary:hover {
  background: #414853;
}

.hero-logo {
  position: relative;
  margin: 0;
  width: clamp(170px, 42vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  order: 1;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 50%;
}

.logo-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(-45deg, #a8b1ff 50%, #5c73e7 50%);
  filter: blur(44px);
  border-radius: 50%;
  opacity: 0.6;
}

.feature-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 460px;
  margin-inline: auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 12px;
  padding: 26px;
  transition: border-color 0.25s, background-color 0.25s;
}

.feature-card:hover {
  border-color: var(--accent-2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 24px;
  font-size: 14px;
  font-weight: 500;
}

.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: border-color 0.25s;
}

.project-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.project-card__header,
.project-card p,
.project-tags {
  padding-inline: 20px;
}

.project-card__header {
  padding-top: 18px;
}

.project-card:hover {
  border-color: var(--accent-2);
}

.project-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-card__header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.project-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-bottom: 20px;
}

.project-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-3);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin: 10px 20px 0;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
  border-color: var(--accent-2);
  color: #ffffff;
  transform: translateY(-1px);
}

.project-link--disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.72;
}

.project-link + .project-tags {
  margin-top: 10px;
}

.project-role {
  color: #b9bfd0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.server-section-title {
  margin: 2.25rem 0 1rem;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
}

.about-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-bio p {
  color: var(--muted);
  font-size: 15px;
  line-height: 26px;
  margin: 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.about-link__icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  opacity: 0.9;
}

.about-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-link:hover {
  border-color: var(--accent-2);
  color: #ffffff;
  transform: translateY(-1px);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.25s;
}

.about-card:hover {
  border-color: var(--accent-2);
}

.about-card__icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

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

.site-footer {
  padding: 1rem 0 2rem;
  color: #8f94a1;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .site-header {
    padding: 14px 0 10px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .site-nav a {
    font-size: 14px;
    line-height: 56px;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-logo {
    width: clamp(220px, 34vw, 300px);
  }

  .hero-actions {
    max-width: none;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .button {
    white-space: nowrap;
    margin: 4px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 36px;
  }

  .hero-actions .button:nth-child(-n + 2),
  .hero-actions .button:last-child {
    min-width: 0;
  }

  .feature-grid {
    max-width: 860px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (min-width: 980px) {
  .page-shell {
    padding-top: 6rem;
  }

  .hero {
    text-align: center;
    align-items: center;
    padding-top: 4rem;
  }

  h1 {
    max-width: 576px;
    margin-inline: auto;
  }

  .hero-text {
    max-width: 576px;
    margin-inline: auto;
  }

  .hero-copy {
    order: 2;
    max-width: 700px;
  }

  .hero-logo {
    order: 1;
    width: clamp(250px, 30vw, 320px);
  }

  .hero-actions {
    justify-content: center;
    padding-top: 1.3rem;
    max-width: 520px;
    margin-inline: auto;
  }

  .button {
    white-space: nowrap;
  }

  .hero-actions .button:nth-child(-n + 2),
  .hero-actions .button:last-child {
    min-width: 0;
  }
}

@media (min-width: 1180px) {
  .page-shell {
    padding-top: 7rem;
  }

  .hero {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy {
    order: 1;
    flex: 0 0 calc((100% / 3) * 2);
    max-width: 592px;
  }

  h1 {
    margin-inline: 0;
  }

  .hero-text {
    margin-inline: 0;
  }

  .hero-logo {
    order: 2;
    flex: 0 0 auto;
    width: 320px;
    transform: translate(-24px, -24px);
  }

  .hero-actions {
    justify-content: flex-start;
    max-width: none;
    margin-inline: 0;
  }

  .feature-grid {
    margin-top: 2rem;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
}

@media (min-width: 1440px) {
  .page-shell,
  .site-footer {
    width: min(1104px, calc(100% - 64px));
  }

  .site-header {
    width: min(1376px, calc(100% - 64px));
  }
}

@media (max-width: 399px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 24px;
  }

  .button {
    width: calc(100% - 12px);
  }

  .hero-logo {
    width: min(220px, 62vw);
  }

  .mobile-nav__links {
    width: calc(100% - 28px);
  }

  .mobile-nav__extras {
    width: calc(100% - 28px);
  }
}
