@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --am-blue: #0089e5;
  --am-navy: #002c4a;
  --cs-dark: #1c1b1e;
  --cs-yellow: #f0f600;
  --card: #ffffff;
  --card-text: #1c1b1e;
  --card-muted: #4b4b52;
  --gutter: clamp(1rem, 4vw, 4rem);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  height: 100%;
  background: var(--bg);
  /* Fallback when WebGL is unavailable: same composition as the shader, static. */
  background-image:
    radial-gradient(60% 90% at 0% 50%, rgba(0, 120, 230, 0.95), rgba(0, 44, 74, 0.6) 45%, transparent 75%),
    radial-gradient(60% 90% at 100% 50%, rgba(240, 246, 0, 0.9), rgba(70, 72, 0, 0.55) 45%, transparent 75%);
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) var(--gutter) 2rem;
}

.name {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 450;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.45);
}

.ventures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 5vh, 3rem);
}

.venture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: min(100%, 19rem);
  padding: 0.95rem 1.75rem 1rem;
  border-radius: 1.25rem;
  background: var(--card);
  color: var(--card-text);
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.venture:hover,
.venture:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.venture:focus-visible,
.hello:focus-visible,
.social a:focus-visible,
.copy a:focus-visible {
  outline: 3px solid var(--cs-yellow);
  outline-offset: 3px;
}

.venture__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.venture--am .venture__title {
  color: var(--am-blue);
}

.venture--cs .venture__title {
  color: var(--cs-dark);
}

.venture--cs:hover .venture__title {
  /* Yellow underline as a nod to the CS brand without hurting contrast. */
  text-decoration: underline;
  text-decoration-color: var(--cs-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.venture__sub {
  font-size: 0.95rem;
  color: var(--card-muted);
}

.arrow {
  width: 0.8em;
  height: 0.8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

a:hover .arrow {
  transform: translate(2px, -2px);
}

/* Footer ---------------------------------------------------------------- */

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.foot svg {
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.5));
}

.social {
  display: flex;
  gap: 1.25rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.social a {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social svg {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copy a {
  text-underline-offset: 3px;
}

.hello {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

@media (max-width: 640px) {
  .venture {
    width: 100%;
  }

  .foot {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .social {
    justify-content: center;
  }
}

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

/* Legal page ------------------------------------------------------------ */

.legal {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--gutter) 3rem;
  line-height: 1.6;
}

.legal-page {
  background-image: none;
}

.legal .back {
  display: inline-flex;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  text-decoration: none;
}

.legal .back:hover {
  color: var(--text);
}

.legal h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--cs-yellow);
}

.legal p,
.legal address {
  margin: 0 0 0.75rem;
  font-style: normal;
  color: var(--text-muted);
}

.legal a {
  text-underline-offset: 3px;
}

.legal hr {
  margin: 3rem 0 2rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.legal .lead {
  color: var(--text);
}
