:root {
  --void: #04070b;
  --ink: #e8eef6;
  --ink-soft: #97a6b8;
  --ink-faint: #5c6b7e;
  --accent: #2ee0cf;
  --accent-deep: #0a6f6a;
  --line: rgba(46, 224, 207, 0.16);
  --gutter: clamp(1.5rem, 6vw, 4rem);
  --font-sans: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- scene */

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

.scene__aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(38% 40% at 22% 18%, rgba(46, 224, 207, 0.18), transparent 70%),
    radial-gradient(34% 36% at 78% 26%, rgba(10, 111, 106, 0.28), transparent 72%),
    radial-gradient(46% 48% at 50% 92%, rgba(46, 224, 207, 0.1), transparent 70%);
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite alternate;
}

/* Perspective floor: a plane tilted away from the camera, scrolling toward it. */
.scene__grid {
  position: absolute;
  inset: 52% -60% -40%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(320px) rotateX(64deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  animation: sweep 6s linear infinite;
}

.scene__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

@keyframes drift {
  to {
    transform: translate3d(3%, -2%, 0) scale(1.08);
  }
}

@keyframes sweep {
  to {
    background-position: 0 64px;
  }
}

/* ---------------------------------------------------------------- stage */

.stage {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(3rem, 9vh, 5rem) var(--gutter);
  max-width: 66rem;
  margin-inline: auto;
  text-align: center;
}

/*
 * Breaks out of the text column to full viewport width: the wdth-200 face is
 * ~9em wide, so it would otherwise cap far below the size the mark wants.
 */
.wordmark {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--gutter);
  margin-block: 0;
  font-family: "Science Gothic", var(--font-sans);
  font-weight: 100;
  font-stretch: 200%;
  font-size: clamp(1.8rem, 9vw, 9rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-shadow: 0 0 60px rgba(46, 224, 207, 0.28);
  animation: settle 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes settle {
  from {
    opacity: 0;
    letter-spacing: 0.24em;
  }
}

.tagline {
  margin: clamp(1rem, 3vh, 1.5rem) auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.95rem + 0.55vw, 1.3rem);
  text-wrap: balance;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: clamp(1.25rem, 4vh, 2rem) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- ventures */

.ventures {
  margin-top: clamp(2.75rem, 9vh, 4.5rem);
}

.ventures__title {
  margin: 0 0 clamp(1.25rem, 3vh, 1.75rem);
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ventures__list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: 46rem;
  margin-inline: auto;
  padding: 0;
  list-style: none;
  text-align: start;
}

.venture {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  /* Near-opaque so the moving grid never competes with the copy. */
  background:
    linear-gradient(160deg, rgba(19, 39, 44, 0.92), rgba(5, 9, 14, 0.94));
  backdrop-filter: blur(6px);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

a.venture:hover,
a.venture:focus-visible {
  border-color: rgba(46, 224, 207, 0.5);
  transform: translateY(-2px);
}

.venture--ghost {
  border-style: dashed;
  border-color: rgba(151, 166, 184, 0.2);
  background: linear-gradient(160deg, rgba(18, 24, 32, 0.72), rgba(5, 9, 14, 0.82));
}

.venture__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.venture--ghost .venture__name {
  color: var(--ink-soft);
}

.venture__desc {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- chrome */

.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.link:hover,
.link:focus-visible {
  border-bottom-color: currentColor;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 var(--gutter) clamp(1.5rem, 5vh, 2.5rem);
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.foot__sep {
  color: var(--accent-deep);
}

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