/* ---------------------------------------------------------------
   Design tokens
--------------------------------------------------------------- */
:root {
  --color-bg: #0A0A0B;
  --color-ink: #F2F0EA;
  --color-ink-muted: rgba(242, 240, 234, 0.66);
  --color-ink-faint: rgba(242, 240, 234, 0.42);
  --color-rule: rgba(242, 240, 234, 0.10);
  --color-accent: #C9F24D;
  --color-accent-bright: #E4FF9B;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --space-gutter: clamp(20px, 5vw, 64px);
  --space-block: clamp(40px, 7vh, 96px);

  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);

  --ticker-gap: clamp(24px, 3vw, 48px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
  text-decoration: none;
}

a:hover { 
  color: var(--color-accent-bright);
}

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

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 12px 20px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease-out);
}

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

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
  padding: var(--space-block) var(--space-gutter) 0;
}

.site-header__logo-link {
  display: inline-block;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(48px, 9vh, 120px) var(--space-gutter) var(--space-block);
}

.hero__inner { width: 100%; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(20px, 3vh, 34px);
  color: var(--color-accent);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow__rule {
  flex: none;
  width: 44px;
  height: 1px;
  background: currentcolor;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 7.2vw, 9.375rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-accent);
}

.hero__lede {
  max-width: 56ch;
  margin: clamp(24px, 3.6vh, 40px) 0 0;
  color: var(--color-ink-muted);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(30px, 4.5vh, 52px) 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 19px 30px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--color-bg);
  background: var(--color-accent-bright);
}

.button__arrow {
  font-size: 1.125rem;
  line-height: 1;
}

/* ---------------------------------------------------------------
   Footer ticker
--------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-rule);
}

.ticker {
  overflow: hidden;
  /* Isolate the transform so the marquee never widens the page. */
  contain: content;
  cursor: default;
}

.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: var(--ticker-gap);
  /* Trailing gap keeps the repeat period exact, so the loop is seamless. */
  padding: 18px clamp(12px, 1.5vw, 24px);
  padding-inline-end: calc(clamp(12px, 1.5vw, 24px) + var(--ticker-gap));
  margin: 0;
  list-style: none;
  color: var(--color-ink-faint);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: var(--ticker-gap);
}

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

/* Without JS the marquee simply sits still and stays readable. */
.ticker__track:not([data-ticker-ready]) {
  overflow-x: auto;
  scrollbar-width: none;
}

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