:root {
  --bg: #050813;
  --bg-alt: #0a1022;
  --text: #e8ecff;
  --muted: #9eaad7;
  --accent: #46439d;
  --accent-2: #00d2ff;
  --accent-3: #6f6dff;
  --card: rgba(12, 17, 36, 0.55);
  --line: rgba(151, 167, 255, 0.28);
  --glow: 0 14px 45px rgba(0, 102, 255, 0.28);
}

@font-face {
  font-family: "Michroma";
  src: url("Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, var(--bg) 0%, var(--bg-alt) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 15%, rgba(86, 114, 255, 0.25), transparent 32%),
    radial-gradient(circle at 80% 22%, rgba(0, 196, 255, 0.18), transparent 30%),
    radial-gradient(circle at 58% 84%, rgba(172, 108, 255, 0.22), transparent 35%);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  transition: transform 0.25s ease-out;
}

.orb-a {
  width: 320px;
  height: 320px;
  left: -70px;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(90, 124, 255, 0.45), rgba(20, 30, 95, 0.08) 72%);
  animation: floatA 17s ease-in-out infinite;
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 52%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 210, 255, 0.3), rgba(11, 25, 66, 0.1) 74%);
  animation: floatB 22s ease-in-out infinite;
}

.orb-c {
  width: 260px;
  height: 260px;
  left: 40%;
  bottom: -90px;
  background: radial-gradient(circle at 45% 45%, rgba(176, 110, 255, 0.34), rgba(21, 10, 62, 0.1) 74%);
  animation: floatC 20s ease-in-out infinite;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(141, 160, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 160, 255, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 40%, black 22%, transparent 85%);
  opacity: 0.5;
  animation: pulseGrid 9s ease-in-out infinite;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(6, 10, 26, 0.55);
  border-bottom: 1px solid rgba(107, 130, 255, 0.25);
}

.topbar-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-family: "Michroma", "Space Grotesk", sans-serif;
  color: #f2f4ff;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(104, 126, 255, 0.6);
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(123, 155, 255, 0.45));
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: #bec8f4;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav a:hover {
  background: rgba(122, 143, 255, 0.18);
  color: #eef2ff;
}

.hero {
  padding: 100px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: #7ba5ff;
}

h1,
h2,
h3 {
  font-family: "Michroma", "Space Grotesk", sans-serif;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  max-width: 17ch;
  text-shadow: 0 0 25px rgba(86, 110, 255, 0.35);
}

.lead {
  max-width: 62ch;
  margin: 20px 0 24px;
  font-size: 1.06rem;
  color: #b9c4ee;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}

.btn.secondary {
  color: #dfe6ff;
  background: rgba(18, 25, 55, 0.5);
  border: 1px solid rgba(141, 161, 255, 0.35);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(86, 122, 255, 0.25);
}

.badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  font-size: 0.84rem;
  border: 1px solid rgba(122, 143, 255, 0.36);
  color: #c9d5ff;
  background: rgba(13, 20, 44, 0.5);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
}

section {
  padding: 36px 0;
}

.brand-note {
  margin-top: -6px;
  color: #aebbe8;
}

.hero-identity {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 5, 22, 0.35);
  padding: 16px;
}

.avatar-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(151, 167, 255, 0.35);
  background:
    radial-gradient(circle at 20% 15%, rgba(86, 114, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(0, 196, 255, 0.25), transparent 45%),
    #11193b;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-frame.is-missing::after {
  content: "MKR";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #dbe3ff;
  font-family: "Michroma", "Space Grotesk", sans-serif;
  letter-spacing: 0.12em;
}

.identity-name {
  margin: 10px 0 2px;
  font-weight: 800;
  color: #eff3ff;
}

.identity-role {
  margin: 0;
  color: #9eaad7;
  font-size: 0.92rem;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.timeline,
.contact {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 5, 22, 0.35);
}

.cards-section h2,
.timeline h2,
.contact h2 {
  margin-bottom: 18px;
}

.card {
  padding: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(139, 157, 255, 0.65);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: #abb8e8;
}

.service-world {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-column {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 5, 22, 0.35);
  padding: 18px;
}

.service-list {
  margin: 0;
  padding-left: 20px;
}

.service-list li {
  color: #bcc7ef;
  margin: 0 0 7px;
}

.flyer-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 5, 22, 0.35);
  padding: 20px;
}

.flyer-card {
  margin-top: 10px;
  border: 1px solid rgba(122, 143, 255, 0.34);
  border-radius: 14px;
  background: rgba(9, 15, 36, 0.56);
  padding: 12px;
}

.flyer-card img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 12px;
}

.timeline,
.contact {
  padding: 20px;
}

.timeline ol {
  margin: 0;
  padding-left: 20px;
}

.timeline li {
  margin: 0 0 8px;
  color: #bcc7ef;
}

.contact > p {
  color: #b8c4f0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.contact-item {
  text-decoration: none;
  background: rgba(16, 23, 48, 0.55);
  border: 1px solid rgba(122, 143, 255, 0.4);
  border-radius: 12px;
  padding: 12px;
  color: #e9eeff;
  font-weight: 600;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: rgba(149, 175, 255, 0.8);
  box-shadow: 0 12px 24px rgba(38, 57, 131, 0.3);
}

.tiny {
  margin-top: 10px;
  color: #8f9dcb;
  font-size: 0.86rem;
}

.footer {
  margin-top: 36px;
  border-top: 1px solid rgba(121, 140, 255, 0.24);
  background: rgba(8, 12, 28, 0.44);
  backdrop-filter: blur(8px);
}

.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer p {
  margin: 0;
  color: #9aa7d8;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer a {
  color: #bac7f2;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(14px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(16px) translateX(-16px); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(10px); }
}

@keyframes pulseGrid {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.58; }
}

@media (max-width: 900px) {
  .brand img {
    width: 72px;
    height: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .service-world,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 0;
    min-height: auto;
  }

  .hero {
    padding-top: 70px;
  }

  .orb-a,
  .orb-b,
  .orb-c {
    opacity: 0.8;
  }
}
