/* ---------------------------------------------------------
   AI22 — base
--------------------------------------------------------- */

:root {
  --black: #0a0a0a;
  --paper: #ffffff;
  --off: #fafaf9;
  --grey: #6b6b68;
  --grey-light: #a3a19c;
  --hairline: rgba(10, 10, 10, 0.14);
  --hairline-dark: rgba(255, 255, 255, 0.18);
  --accent: #b07a3e;

  --serif: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
  font-family: var(--mono);
  font-size: 13px;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin-top: 10px;
  max-width: 18ch;
}

h3 {
  font-size: 21px;
  margin: 18px 0 8px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 6px;
}
.eyebrow--dim { color: var(--grey-light); }
.eyebrow--light { color: rgba(255, 255, 255, 0.55); }

.lede {
  max-width: 62ch;
  color: #262624;
  font-size: 19px;
  margin: 18px 0 0;
}

.hr {
  height: 1px;
  background: var(--hairline);
  margin: 26px 0 44px;
  border: none;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.05;
  display: inline-flex;
  flex-direction: column;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 110px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Star trails — concentric arcs circling the pole behind the logo,
   like a long-exposure photo taken looking straight up at the north star.
   The radial mask keeps the area around the logo clean and fades the
   trails in softly past its radius. */
.star-field {
  position: absolute;
  top: var(--pole-y, 33%);
  left: 50%;
  width: 160vmax;
  height: 160vmax;
  transform: translate(-50%, -50%);
  filter: blur(3.5px);
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(circle at center,
    transparent 0%, transparent 8.5%,
    rgba(255,255,255,0.5) 15%,
    white 24%, white 100%);
  mask-image: radial-gradient(circle at center,
    transparent 0%, transparent 8.5%,
    rgba(255,255,255,0.5) 15%,
    white 24%, white 100%);
}

.star-field-spin {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero .wrap { width: 100%; }

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-bottom: clamp(48px, 7vw, 96px);
}

.hero-logo-img {
  width: clamp(144px, 16vw, 216px);
  height: auto;
  margin: 0 auto;
}

.hero-logo-fallback {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.01em;
  font-size: clamp(44px, 9vw, 84px);
}
.hero-logo-fallback:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner .eyebrow { margin-bottom: 22px; }

.hero-title {
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.02;
  margin: 0 0 40px;
}

.hero-sub {
  max-width: 46ch;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: #262624;
  font-size: 19px;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
}

.hero-inner .cta-row { justify-content: center; }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--black);
}

.btn--link { cursor: pointer; }
.btn--link span { transition: transform 0.2s ease; }
.btn--link:hover span { transform: translateX(4px); }

.btn--disabled {
  color: var(--grey-light);
  border-bottom: 1px solid var(--hairline);
  cursor: not-allowed;
}
.btn--disabled em {
  font-style: normal;
  font-size: 10px;
  border: 1px solid var(--hairline);
  padding: 3px 7px;
  color: var(--grey-light);
}

.btn--on-dark { border-bottom-color: rgba(255,255,255,0.8); color: #fff; }
.btn--on-dark-disabled {
  color: rgba(255,255,255,0.35);
  border-bottom-color: rgba(255,255,255,0.2);
}
.btn--on-dark-disabled em { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.35); }

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */

.section { padding: 96px 0; }

.section--dark {
  background: var(--black);
  color: var(--paper);
}

.on-dark { color: var(--paper); }
.on-dark-muted { color: rgba(255,255,255,0.62); }

.section--dark .hr { background: var(--hairline-dark); }

/* Foundation / Mission grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.icon {
  width: 30px;
  height: 30px;
  color: var(--black);
  display: inline-block;
}
.icon svg { width: 100%; height: 100%; }

.block h3 { margin-top: 6px; }
.block p { color: #262624; margin: 0; max-width: 32ch; }

.grid-3--compact { text-align: center; }
.block--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.block--compact .icon { margin: 0 auto; }
.block--compact h3 {
  margin: 20px 0 0;
  font-size: 15px;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.serif-line { font-size: 21px; margin-top: 10px !important; }

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

.site-footer {
  padding: 90px 0 40px;
  background: var(--off);
  border-top: 1px solid var(--hairline);
}

.footer-email {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  display: inline-block;
  margin: 8px 0 0;
}

.site-footer .logo { margin-bottom: 56px; display: inline-flex; }

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grey-light);
  margin: 0;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 100px 0 64px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--link span { transition: none; }
}
