:root {
  --bg: #040406;
  --bg-soft: #0c0c11;
  --surface: rgba(14, 14, 19, 0.76);
  --surface-strong: #14141c;
  --text-main: #f6f7fb;
  --text-muted: #9ea3b5;
  --accent: #a259ff;
  --accent-soft: #c68cff;
  --line: rgba(162, 89, 255, 0.34);
  --line-soft: rgba(255, 255, 255, 0.09);
  --shadow-accent: 0 0 24px rgba(162, 89, 255, 0.48);
  --radius: 18px;
  --radius-sm: 12px;
  --max-w: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -48px;
  z-index: 2000;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2.4rem, var(--max-w));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 5.2rem 0;
}

.is-hidden {
  display: none !important;
}

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

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.28;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  left: -16%;
  top: -18%;
  background: radial-gradient(circle, #a259ff 0%, rgba(162, 89, 255, 0) 72%);
}

.orb-b {
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  right: -10%;
  top: 16%;
  background: radial-gradient(circle, #c68cff 0%, rgba(198, 140, 255, 0) 72%);
  animation-delay: 1.5s;
}

.orb-c {
  width: min(38vw, 500px);
  height: min(38vw, 500px);
  bottom: -24%;
  left: 28%;
  background: radial-gradient(circle, #8f4dff 0%, rgba(143, 77, 255, 0) 72%);
  animation-delay: 3s;
}

.grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px)
      0 0 / 70px 70px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px)
      0 0 / 70px 70px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 76%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(4, 4, 6, 0.88) 0%,
    rgba(4, 4, 6, 0.58) 100%
  );
  border-bottom: 1px solid var(--line-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  color: var(--text-main);
  font: inherit;
  padding: 8px 12px;
}

.hero {
  padding-top: 7rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.28fr 0.72fr;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  margin-top: 1rem;
  font-family: "Archivo Black", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  text-wrap: balance;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(162, 89, 255, 0.55);
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.45vw, 3.82rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  text-wrap: initial;
  max-width: 19ch;
}

.hero-title-main,
.hero-title-accent {
  display: block;
  max-width: none;
}

.hero-title-accent {
  margin-top: 0.02em;
}

.lead {
  margin: 1.35rem 0 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(1.03rem, 2.1vw, 1.18rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8f4dff 0%, #bf72ff 100%);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(162, 89, 255, 0.66);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(162, 89, 255, 0.62);
}

.hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  background: linear-gradient(
    170deg,
    rgba(162, 89, 255, 0.16) 0%,
    rgba(12, 12, 18, 0.68) 30%,
    rgba(12, 12, 18, 0.88) 100%
  );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(162, 89, 255, 0.24),
    0 0 46px rgba(162, 89, 255, 0.24);
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0) 56%, rgba(5, 5, 8, 0.58) 100%),
    radial-gradient(
      72% 64% at 84% 10%,
      rgba(162, 89, 255, 0.26) 0%,
      rgba(162, 89, 255, 0) 72%
    );
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
}

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

.card {
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: linear-gradient(
    190deg,
    rgba(162, 89, 255, 0.11) 0%,
    rgba(15, 15, 23, 0.72) 45%,
    rgba(15, 15, 23, 0.86) 100%
  );
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 14px 36px rgba(162, 89, 255, 0.22);
}

.card-tag {
  margin: 0 0 0.7rem;
  color: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 1.2rem;
}

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

.card dl {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.card dt {
  margin: 0;
  font-size: 0.77rem;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card dd {
  margin: 0.2rem 0 0;
  color: var(--text-main);
}

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

.pillar {
  min-height: 220px;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: linear-gradient(
    180deg,
    rgba(162, 89, 255, 0.08) 0%,
    rgba(12, 12, 17, 0.85) 60%
  );
}

.pillar h3 {
  font-size: 1.22rem;
}

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

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(17, 17, 22, 0.64);
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent-soft);
  font-family: "Archivo Black", "Space Grotesk", sans-serif;
}

.timeline h3 {
  font-size: 1.14rem;
}

.timeline p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.contact-card {
  padding: clamp(1.4rem, 4.2vw, 2.4rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(
      68% 120% at 0% 0%,
      rgba(162, 89, 255, 0.3) 0%,
      rgba(162, 89, 255, 0) 100%
    ),
    var(--surface-strong);
}

.contact-card h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

.contact-card p {
  max-width: 65ch;
  color: var(--text-muted);
}

.contact-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  border-top: 1px solid var(--line-soft);
}

.footer .container {
  min-height: 70px;
  display: flex;
  align-items: center;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(14px, -24px, 0) scale(1.08);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .pillars {
    grid-template-columns: 1fr;
  }

  .hero-title-main,
  .hero-title-accent {
    max-width: none;
  }

  .hero-photo {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.5rem, var(--max-w));
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(9, 9, 13, 0.97);
    border-bottom: 1px solid var(--line-soft);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav.is-open {
    display: flex;
  }

  .timeline li {
    grid-template-columns: 46px 1fr;
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
