/* Paper, near-black ink, pills, hairlines. No shadows, no chromatic brand color. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --steel: #3a3a3a;
  --muted: #595959;
  --line: #d5d9e2;
  --cream: #f9f8f6;
  --sand: #f2ede5;
  --wash: rgba(10, 10, 10, 0.04);
  --header: rgba(255, 255, 255, 0.86);
  --max: 1200px;
  --nav-h: 64px;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-140%);
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.card-name,
.wordmark {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  max-width: 12ch;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 16ch;
}

h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin-top: 24px;
  max-width: 38rem;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.lede-tight {
  margin-top: 16px;
  font-size: 16px;
  color: var(--steel);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark {
  font-size: 15px;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: 12px;
  white-space: nowrap;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-link,
.solutions summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background-color 160ms var(--ease);
}

.nav-link:hover,
.solutions summary:hover,
.solutions[open] summary {
  background: var(--wash);
}

.solutions {
  position: relative;
}

.solutions summary {
  list-style: none;
}

.solutions summary::-webkit-details-marker {
  display: none;
}

.solutions summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms var(--ease);
}

.solutions[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.solutions-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, 72vw);
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 50;
}

.solutions[open] .solutions-panel {
  animation: panel-in 180ms var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-kicker {
  margin: 8px 12px 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
}

.panel-list a:hover {
  background: var(--cream);
}

.panel-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.panel-go {
  color: var(--muted);
  font-size: 13px;
}

.panel-desc {
  grid-column: 1 / -1;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.nav-cta {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: #1a1a1a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--wash);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: var(--wash);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  border-radius: 1px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

body.nav-open .nav-toggle-icon {
  background: transparent;
}

body.nav-open .nav-toggle-icon::before,
body.nav-open .nav-toggle-icon::after {
  top: 0;
}

body.nav-open .nav-toggle-icon::before {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.hero {
  padding: 72px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 40px 56px;
  align-items: center;
}

.hero h1 {
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.constellation {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.constellation svg {
  width: 94%;
  height: auto;
  display: block;
}

.orbits {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 90s linear infinite;
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

.idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.band {
  padding: 96px 0 8px;
}

.band-last {
  padding-bottom: 96px;
}

.solution-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}

.solution {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.solution-copy {
  max-width: 42rem;
}

.solution-copy h3 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.solution-copy p {
  margin-top: 12px;
  color: var(--steel);
}

.solution-link {
  justify-self: end;
  margin-top: 4px;
}

.quiet {
  color: var(--muted) !important;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-note {
  margin-top: 10px;
  max-width: 28rem;
  color: var(--steel);
  font-size: 14px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .constellation {
    max-width: 460px;
  }

  .solution {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .solution-link {
    grid-column: 2;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js #site-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 32px;
    background: #ffffff;
    overflow: auto;
  }

  html.js body.nav-open {
    overflow: hidden;
  }

  html.js body.nav-open #site-nav {
    display: flex;
  }

  html.js #site-nav .nav-link,
  html.js #site-nav .solutions summary {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 10px;
  }

  html.js .nav-cta {
    margin: 20px 0 0;
    width: 100%;
  }

  .solutions-panel {
    position: static;
    width: auto;
    margin: 0 0 8px 8px;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    animation: none;
  }

  .solutions[open] .solutions-panel {
    animation: none;
  }

  .hero {
    padding-top: 40px;
  }

  .constellation {
    max-width: none;
  }

  .band {
    padding-top: 72px;
  }

  .band-last {
    padding-bottom: 72px;
  }

  .solution {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .solution .idx {
    order: -1;
  }

  .solution-link {
    grid-column: auto;
  }

  .solution-copy h3 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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