/* ==========================================================================
   BASE — reset, document defaults, typography primitives, utilities.
   One typeface (Geist). Geist Mono only for numeric and data labels.
   No italics anywhere. No background gradients.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-500));
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
  font-weight: 400;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* No italics anywhere in the interface */
em,
i,
address,
cite,
dfn,
blockquote {
  font-style: normal;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: var(--r-full);
  border: 2px solid var(--bg);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: var(--type-hero);
  line-height: var(--type-hero-lh);
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--type-h2);
  line-height: var(--type-h2-lh);
  letter-spacing: -0.035em;
}

h3 {
  font-size: var(--type-h3);
  line-height: var(--type-h3-lh);
  letter-spacing: -0.025em;
}

h4 {
  font-size: var(--type-h4);
  line-height: var(--type-h4-lh);
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

/* The one permitted gradient: heading text, left to right, white to grey. */
.grad-text {
  background-image: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Micro label — mono, uppercase, tracked out */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--text-xs-lh);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.eyebrow--accent {
  color: var(--accent);
}

.eyebrow__dot {
  width: 4px;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--accent);
  flex: none;
}

.lede {
  font-size: var(--type-lede);
  line-height: var(--type-lede-lh);
  color: var(--fg-soft);
  max-width: var(--measure);
}

.body-soft {
  color: var(--fg-soft);
}

.body-mute {
  color: var(--fg-mute);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
  letter-spacing: 0.02em;
}

.mono-xs {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--text-xs-lh);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: var(--shell-narrow);
}

.measure {
  max-width: var(--measure);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--flush-top {
  padding-top: 0;
}

.hairline {
  height: 1px;
  border: 0;
  background: var(--line);
  width: 100%;
}

.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;
}

.skip-link {
  position: fixed;
  top: var(--sp-100);
  left: var(--sp-100);
  z-index: 100;
  padding: var(--sp-75) var(--sp-100);
  background: var(--fg);
  color: #000000;
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Manual line break that only applies once there is room for it. Below the
   breakpoint the heading falls back to text-wrap: balance, which avoids the
   orphaned last word a hard break would cause on narrow screens. */
.br-wide {
  display: none;
}

@media (min-width: 768px) {
  .br-wide {
    display: inline;
  }
}

/* Icon sizing helper — Phosphor icons ship on a 256 viewBox */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

/* ==========================================================================
   SCROLL REVEAL — IntersectionObserver, heavy fade up with soft blur
   ========================================================================== */

[data-reveal] {
  opacity: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(8px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: auto;
}

/* ==========================================================================
   TAGLINE REVEAL — words brighten one at a time in reading order
   ========================================================================== */

.tagline {
  max-width: var(--measure);
  font-size: var(--type-reveal);
  line-height: var(--type-reveal-lh);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tagline__word {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--dur-slow) var(--ease);
}

.tagline__word.is-lit {
  color: var(--fg);
}

html:not(.js) .tagline__word {
  color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .tagline__word {
    color: var(--fg);
  }
}
