/* Direction marketing — tokens aligned with direction.grok.me */
:root {
  --color-bg: #0b0c0e;
  --color-surface: #141518;
  --color-surface-2: #1c1e22;
  --color-fg: #f1efe8;
  --color-muted: #8f8d86;
  --color-subtle: #6b6964;
  --color-accent: #d4d7dc;
  --color-accent-fg: #0b0c0e;
  --color-border: #2a2c31;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --shadow-border: 0 0 0 1px #f1efe814;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 42rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine grain — matches live chrome */
body::before {
  content: "";
  pointer-events: none;
  z-index: 40;
  opacity: 0.035;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.atmosphere {
  outline: 1px solid #f1efe81a;
  outline-offset: -1px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  outline-offset: 3px;
}

.font-display {
  font-family: var(--font-display);
}

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

/* —— Wordmark —— */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--color-fg);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark__mark {
  flex-shrink: 0;
  color: var(--color-accent);
}

.wordmark__text {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* —— Site header (legal pages) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-subtle);
}

.site-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-fg);
  text-decoration: none;
}

.site-header__nav a:hover {
  text-decoration: underline;
}

.site-header__nav a[aria-current="page"] {
  color: var(--color-muted);
}

.sep {
  color: var(--color-subtle);
  user-select: none;
}

/* —— Footer chrome —— */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.site-footer__brand {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-footer__tag {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.chrome-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-subtle);
}

.chrome-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-fg);
  text-decoration: none;
}

.chrome-nav a:hover {
  text-decoration: underline;
}

.return-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-fg);
  text-decoration: none;
}

.return-link:hover {
  text-decoration: underline;
}

/* —— Splash (home) —— */
.splash {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.splash__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.splash__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    color-mix(in srgb, var(--color-bg) 70%, transparent) 45%,
    color-mix(in srgb, var(--color-bg) 30%, transparent) 100%
  );
}

.splash__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

@media (min-width: 640px) {
  .splash__inner {
    justify-content: center;
    padding: 6rem 1.5rem;
  }
}

.kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.splash__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 3.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--color-fg);
}

.splash__tag {
  margin: 1.25rem 0 0;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-fg) 80%, transparent);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: 9999px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.cta:active {
  transform: translateY(1px);
}

.cta svg {
  width: 1rem;
  height: 1rem;
}

.coming-soon {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--color-subtle);
}

.splash .chrome-nav {
  margin-top: 2.5rem;
}

/* Stagger entrance */
.stagger-in > * {
  animation: rise-in 0.5s var(--ease-smooth-out) both;
}

.stagger-in > *:nth-child(1) { animation-delay: 40ms; }
.stagger-in > *:nth-child(2) { animation-delay: 90ms; }
.stagger-in > *:nth-child(3) { animation-delay: 0.14s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.19s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.24s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.29s; }

@keyframes rise-in {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-in > * {
    animation: none;
  }
}

/* —— Legal pages —— */
.legal {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

@media (min-width: 640px) {
  .legal {
    padding-top: 3.5rem;
  }
}

.legal__kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legal__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.legal__dek {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.legal__updated {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--color-subtle);
}

.legal-copy {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-copy section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.legal-copy section .body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-fg) 90%, transparent);
}

.legal-copy p {
  margin: 0;
}

.legal-copy strong {
  font-weight: 500;
  color: var(--color-fg);
}

.legal-copy a {
  color: var(--color-fg);
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-copy li {
  margin: 0.35rem 0;
}

.legal-copy li::marker {
  color: var(--color-muted);
}

.nowrap {
  white-space: nowrap;
}
