/* Phantom Ventures LLC — presence without noise */

:root {
  --bg: #0a0a0c;
  --text: #e8e6e3;
  --text-muted: rgba(232, 230, 227, 0.55);
  --accent: #8b9dc4;
  --accent-dim: rgba(139, 157, 196, 0.15);
  --phantom-start: #c4c0b8;
  --phantom-mid: #8b9dc4;
  --phantom-end: #5a6278;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max-width: 42rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.65;
  overflow-x: hidden;
}

body.no-motion .ambient,
body.no-motion .phantom,
body.no-motion .hero,
body.no-motion .about,
body.no-motion .capabilities,
body.no-motion .engagement,
body.no-motion .footer,
body.no-motion .page--inner,
body.no-motion .page--legal {
  animation: none !important;
}

/* Ambient gradient drift */
.ambient {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, var(--accent-dim) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(90, 98, 120, 0.12) 0%, transparent 50%);
  animation: ambient-drift 28s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(3%, -2%) rotate(2deg);
  }
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Site header */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max-width) + 5rem);
  margin: 0 auto;
  padding: 1.25rem clamp(1.5rem, 5vw, 2.5rem) 0;
}

.site-header__brand {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header__brand:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.page {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 2.5rem) clamp(2.5rem, 8vw, 5rem);
  gap: clamp(2rem, 5vh, 3rem);
}

.page--inner,
.page--legal {
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page--legal {
  max-width: 48rem;
}

/* Staggered entrance */
.hero,
.about,
.capabilities,
.engagement,
.page--inner > *,
.page--legal .legal-doc {
  opacity: 0;
  animation: fade-up 1.2s var(--ease-out) forwards;
}

.hero { animation-delay: 0.1s; }
.about { animation-delay: 0.25s; }
.capabilities { animation-delay: 0.4s; }
.engagement { animation-delay: 0.55s; }
.page--inner > * { animation-delay: 0.15s; }
.page--legal .legal-doc { animation-delay: 0.1s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wordmark */
.wordmark {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.phantom {
  display: inline-block;
  letter-spacing: 0.12em;
  background: linear-gradient(
    120deg,
    var(--phantom-start) 0%,
    var(--phantom-mid) 45%,
    var(--phantom-end) 90%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: phantom-shift 12s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 24px rgba(139, 157, 196, 0.2));
}

.rest {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

@keyframes phantom-shift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.subline {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.55;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about,
.engagement {
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  color: rgba(232, 230, 227, 0.85);
}

.about p + p,
.engagement p {
  margin-top: 1rem;
}

.capabilities__list {
  list-style: none;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: rgba(232, 230, 227, 0.82);
}

.capabilities__list li {
  position: relative;
  padding-left: 1.25rem;
}

.capabilities__list li + li {
  margin-top: 0.625rem;
}

.capabilities__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.engagement a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(139, 157, 196, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.engagement a:hover {
  text-decoration-color: var(--accent);
}

/* Inner & legal pages */
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-lead {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.legal-meta {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.legal-doc {
  font-size: 0.9375rem;
  color: rgba(232, 230, 227, 0.88);
}

.legal-doc h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.legal-doc p,
.legal-doc li {
  margin-top: 0.75rem;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-list {
  margin-top: 1rem;
}

.contact-list > div + div {
  margin-top: 1.25rem;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-list dd {
  font-size: 1rem;
  color: rgba(232, 230, 227, 0.9);
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 38rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 5vw, 2.5rem);
  border-top: 1px solid rgba(232, 230, 227, 0.06);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.95s forwards;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__nav a[aria-current="page"] {
  color: var(--text);
}

.footer__legal {
  margin-top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .phantom,
  .hero,
  .about,
  .capabilities,
  .engagement,
  .page--inner > *,
  .page--legal .legal-doc,
  .footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
