:root {
  --bg: #050505;
  --bg-soft: #101010;
  --bg-deep: #000000;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: rgba(255, 255, 255, 0.65);
  --muted-strong: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

::selection {
  background: #ffffff;
  color: #000000;
}

::-moz-selection {
  background: #ffffff;
  color: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body.splash-active {
  overflow: hidden;
}

body.page-leaving {
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 15;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 24%),
    #000;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), visibility 680ms ease;
}

body.page--landing .page-transition,
body.page-enter .page-transition {
  opacity: 0;
  visibility: hidden;
}

body.page-leaving .page-transition {
  opacity: 1;
  visibility: visible;
  transition-duration: 420ms;
}

.splash__glow {
  position: absolute;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  filter: blur(18px);
}

.splash__stage {
  position: relative;
  width: min(88vw, 980px);
  height: clamp(220px, 46vw, 420px);
}

.dot-logo {
  position: absolute;
  inset: 0;
}

.dot {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0.2);
  animation:
    dot-appear 720ms cubic-bezier(0.19, 1, 0.22, 1) forwards,
    dot-disappear 820ms ease forwards;
  animation-delay: var(--appear-delay), var(--fade-delay);
}

.splash__subtitle {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  transform: translate(-50%, 16px);
  opacity: 0;
  animation: subtitle-in 900ms ease forwards 1800ms, subtitle-out 900ms ease forwards 3100ms;
}

body.mobile-simple-splash .splash__glow,
body.mobile-simple-splash .dot-logo {
  display: none;
}

body.mobile-simple-splash .splash__stage {
  width: min(92vw, 420px);
  height: auto;
  display: grid;
  place-items: center;
}

body.mobile-simple-splash .splash__subtitle {
  position: static;
  transform: none;
  opacity: 1;
  animation: none;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.12em;
  font-size: clamp(1.6rem, 7vw, 2.5rem);
}

.site-shell {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1000ms ease 250ms, transform 1000ms ease 250ms;
  will-change: opacity, transform;
}

body.site-visible .site-shell {
  opacity: 1;
  transform: translateY(0);
}

body.page-enter .site-shell {
  transition: opacity 880ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    transform 880ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

body.page-leaving .site-shell {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.page-frame {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.brand,
.nav__link,
.footer a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav__link {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 220ms ease, color 220ms ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: clamp(2rem, 4vw, 4rem);
}

.hero--landing {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 1.5rem;
  align-items: end;
}

.hero--page {
  min-height: 42vh;
  display: flex;
  align-items: end;
  max-width: 900px;
}

.hero__copy-block {
  max-width: 860px;
}

.hero__eyebrow,
.panel__label {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 1rem 0 1.2rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero__copy,
.panel p {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
}

.hero__actions,
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__cta {
  width: fit-content;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 250ms ease, border-color 250ms ease, transform 250ms ease,
    color 250ms ease;
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero__cta--ghost {
  background: transparent;
  color: var(--muted-strong);
}

.hero-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.03);
}

.hero-stat {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  line-height: 1.6;
}

.section-grid {
  display: grid;
}

.panel,
.panel--feature {
  margin: 0 clamp(1.25rem, 4vw, 4rem) clamp(1.25rem, 4vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--surface);
  backdrop-filter: blur(12px);
}

.panel--feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
}

.panel h2,
.panel h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.panel h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.grid-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(1.25rem, 4vw, 4rem);
}

.panel--banner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-content {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stack-panels {
  display: grid;
  gap: 1.25rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin: 0 clamp(1.25rem, 4vw, 4rem) 2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.careers-list {
  display: grid;
  gap: 1rem;
}

.career-card {
  display: grid;
  gap: 1rem;
}

.career-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.career-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
}

.career-empty {
  display: grid;
  gap: 0.7rem;
}

.config-note {
  padding: 1rem 1.1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 0.7rem;
}

.contact-email {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem 2rem;
  color: var(--muted);
}

@keyframes dot-appear {
  0% {
    opacity: 0;
    transform: scale(0.15);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dot-disappear {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.35) translateY(12px);
  }
}

@keyframes subtitle-in {
  0% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes subtitle-out {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (max-width: 860px) {
  .splash__stage {
    width: min(92vw, 720px);
    height: clamp(210px, 58vw, 360px);
  }

  .topbar,
  .footer,
  .hero--landing,
  .split-layout,
  .panel--feature,
  .grid-panels {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer {
    border-radius: 28px;
  }

  .footer {
    padding-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .page-frame {
    width: min(100%, calc(100% - 1rem));
  }

  .splash__stage {
    width: min(94vw, 520px);
    height: clamp(200px, 70vw, 300px);
  }

  .splash__glow {
    width: 92vw;
    height: 92vw;
  }

  .splash__subtitle {
    bottom: 0.5rem;
    letter-spacing: 0.28em;
    font-size: clamp(0.72rem, 2.7vw, 0.92rem);
  }

  .hero h1 {
    max-width: 12ch;
  }

  .topbar {
    align-items: flex-start;
    border-radius: 24px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot,
  .splash__subtitle,
  .site-shell,
  .splash,
  .page-transition {
    animation: none !important;
    transition: none !important;
  }

  .dot {
    opacity: 1;
    transform: none;
  }

  .splash {
    display: none;
  }

  .site-shell {
    opacity: 1;
    transform: none;
  }
}