:root {
  --ink: #06070b;
  --sand: #d7d0c3;
  --sand-dim: #9a9488;
  --mint: #5dffc2;
  --line: rgba(215, 208, 195, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mark: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sand);
  background: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(26, 168, 122, 0.18), transparent 55%),
    radial-gradient(900px 600px at 88% 12%, rgba(93, 255, 194, 0.08), transparent 50%),
    linear-gradient(165deg, #05060a 0%, #0a1016 48%, #071018 100%);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 7, 11, 0.15), rgba(6, 7, 11, 0.72) 72%, rgba(6, 7, 11, 0.92)),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(215, 208, 195, 0.015) 11px,
      rgba(215, 208, 195, 0.015) 12px
    );
}

.stage,
.foot {
  position: relative;
  z-index: 1;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  max-width: 58rem;
}

.mark {
  margin: 0;
  font-family: var(--font-mark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.hero-copy {
  margin-top: auto;
}

.stage h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #f2ebe0;
}

.lede {
  margin: clamp(1.25rem, 2.5vh, 1.75rem) 0 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--sand-dim);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--sand-dim);
  font-size: 0.85rem;
}

.foot p {
  margin: 0;
}

.foot-link {
  color: var(--sand-dim);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--mint);
}

.foot-link:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* Careers page — Flint-style role list, Quantum visual language */
.careers {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 48rem;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.crumb {
  margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
  font-family: var(--font-mark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.careers h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-mark);
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f2ebe0;
}

.careers-lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--sand-dim);
}

.roles {
  list-style: none;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.roles > li {
  border-bottom: 1px solid var(--line);
}

.role {
  display: block;
  padding: clamp(1.5rem, 3.5vh, 2.25rem) 0;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.role:hover .role-apply,
.role:focus-visible .role-apply {
  color: var(--mint);
}

.role:focus-visible {
  outline: none;
}

.role:focus-visible .role-head h2 {
  color: var(--mint);
}

.role-cat {
  margin: 0 0 0.65rem;
  font-family: var(--font-mark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.role-head h2 {
  margin: 0;
  font-family: var(--font-mark);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2ebe0;
}

.role-apply {
  flex-shrink: 0;
  font-family: var(--font-mark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  transition: color 180ms ease;
}

.role-desc {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  font-size: 0.98rem;
  color: var(--sand-dim);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
