/* ==========================================================================
   Sentient Forecast — landing page styles
   Palette: deep instrument dark, one warm signal accent, nothing else.
   ========================================================================== */

:root {
  --ground: #06080B;
  --ground-2: #0A0E14;
  --hairline: rgba(157, 178, 199, 0.13);
  --hairline-soft: rgba(157, 178, 199, 0.07);
  --ink: #E4E8EC;
  --ink-muted: #8A97A5;
  --ink-dim: #5A6673;
  --signal: #C08A3E;

  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.5rem, 5.2vw, 5.5rem);
  --rule: clamp(1.75rem, 4vw, 3.25rem);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Background: a measured grid, a soft field of light, a drawn forecast trace.
   -------------------------------------------------------------------------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(to right, var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 85% at 22% 32%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 88%);
  mask-image: radial-gradient(120% 85% at 22% 32%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 88%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(74% 58% at 14% 8%, rgba(88, 122, 156, 0.16) 0%, transparent 62%),
    radial-gradient(52% 46% at 92% 96%, rgba(192, 138, 62, 0.08) 0%, transparent 60%),
    var(--ground);
  pointer-events: none;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: var(--rule);
  padding: clamp(1.5rem, 3.6vw, 3rem) var(--gutter) clamp(1.75rem, 3.6vw, 3rem);
  max-width: 1500px;
  margin-inline: auto;
}

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

:where(a, button):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--ink-muted);
}

.wordmark-text {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  text-align: left;
}

.status-label,
.status-value {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.status-label {
  color: var(--ink-dim);
}

.status-value {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-muted);
}

.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(192, 138, 62, 0.45);
  animation: pulse 3.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 138, 62, 0.4); }
  60% { box-shadow: 0 0 0 7px rgba(192, 138, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 138, 62, 0); }
}

@media (min-width: 46rem) {
  .status {
    align-items: flex-end;
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   Main
   -------------------------------------------------------------------------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3.4vw, 2.75rem);
  padding-block: clamp(2.5rem, 8vh, 6rem);
}

.headline {
  margin: 0;
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.35rem + 5.6vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.prose {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.prose p {
  margin: 0;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.prose .lead {
  color: var(--ink);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  max-width: 54ch;
}

/* Research domains — a register of coverage, not a feature list. */

.domains {
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hairline);
}

.domains ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.domains li {
  padding: clamp(0.85rem, 1.6vw, 1.15rem) 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline-soft);
}

@media (min-width: 46rem) {
  .domains li {
    border-bottom: 0;
    border-left: 1px solid var(--hairline-soft);
    padding-left: 1.1rem;
  }
  .domains li:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hairline);
}

.claim {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   One orchestrated entrance, then the page stays still.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .masthead,
  .headline,
  .prose,
  .domains,
  .footer {
    opacity: 0;
    transform: translateY(10px);
    animation: settle 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  .masthead { animation-delay: 60ms; }
  .headline { animation-delay: 200ms; }
  .prose    { animation-delay: 380ms; }
  .domains  { animation-delay: 520ms; }
  .footer   { animation-delay: 640ms; }
}

@keyframes settle {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 26rem) {
  .wordmark-text {
    letter-spacing: 0.12em;
    font-size: 0.875rem;
  }
}
