/* Self-hosted subsets of Instrument Sans and Geist Mono (Open Font License).
   Generated from the Google Fonts css2 API; no third-party requests at runtime. */

/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/geist-mono-400-latin-ext.woff2) format('woff2');
  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;
}

/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/geist-mono-400-latin.woff2) format('woff2');
  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;
}

/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/geist-mono-500-latin-ext.woff2) format('woff2');
  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;
}

/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/geist-mono-500-latin.woff2) format('woff2');
  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;
}

/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-400-latin-ext.woff2) format('woff2');
  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;
}

/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-400-latin.woff2) format('woff2');
  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;
}

/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-500-latin-ext.woff2) format('woff2');
  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;
}

/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-500-latin.woff2) format('woff2');
  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;
}

/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-600-latin-ext.woff2) format('woff2');
  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;
}

/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-600-latin.woff2) format('woff2');
  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 {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #16181c;
  --body-text: #565b63;
  --faint: #6b7280;
  --hairline: #e6e7e9;

  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;

  --max-width: 1080px;
  --pad-x: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main, .nav, .footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---- nav ---- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 26px; height: 26px; }

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-right { display: flex; align-items: center; gap: 26px; }

.nav-right a:not(.btn) {
  color: var(--body-text);
  text-decoration: none;
  font-size: 14px;
}
.nav-right a:not(.btn):hover { color: var(--ink); }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  padding: 9px 18px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: 0.85; }

/* ---- focus ---- */

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -150%);
  z-index: 10;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---- type ---- */

h1 {
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- dashed section dividers ---- */

.divider {
  border: none;
  border-top: 1px dashed #dcddde;
  margin: 0;
}

/* ---- hero ---- */

.hero {
  text-align: left;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero h1 {
  max-width: 11em;
  font-size: clamp(40px, 5.6vw, 58px);
  letter-spacing: -0.04em;
}

.hero-sub {
  max-width: 40em;
  margin: 28px 0 0;
  font-size: 18px;
  color: var(--body-text);
  line-height: 1.55;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---- team strip ---- */

.team-strip {
  text-align: center;
  padding: 80px 0;
}

.strip-label {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 24px;
}

.team-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  filter: grayscale(1);
  opacity: 0.55;
}

.logo-stanford {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

/* sizes solved from measured glyph ink ratios so all three wordmarks render
   the exact same ink height as Stanford (Georgia and Instrument Sans have
   different cap heights per em) */
.logo-nvidia {
  font-size: 27.9826px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.logo-yc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 27.1044px;
  font-weight: 600;
  color: var(--ink);
}

.logo-yc img { width: 26px; height: 26px; }

/* ---- embedding canvas card ---- */

.embed-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  margin-bottom: 0;
}

#embeddings {
  display: block;
  width: 100%;
  height: 500px;
}

.embed-caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--card);
}

.embed-heading {
  text-align: center;
  margin-bottom: 16px;
}

.embed-note {
  font-size: 15px;
  color: var(--faint);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 44px;
  text-wrap: balance;
}

/* ---- two-column rows ---- */

.row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  margin: 0;
}

main > .row {
  padding-top: 180px;
}

.row-reverse { grid-template-columns: 1.1fr 1fr; }
.row-reverse .row-text { order: 2; }
.row-reverse .row-card { order: 1; }

.row-text p {
  margin-top: 18px;
  max-width: 400px;
  color: var(--body-text);
  font-size: 16.5px;
}

.row-text .row-note {
  font-size: 14px;
  color: var(--faint);
  margin-top: 14px;
}

.row-card > div {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card);
  padding: 44px 40px;
}

/* fine-tune graphic */

.finetune-graphic {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ft-vector { flex: 0 0 auto; text-align: left; position: relative; }

/* the label sits outside the flow so the arrow and bars center on the
   square itself, not on label + square */
.ft-vector .cap {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 12px;
}

.ft-cells {
  display: grid;
  grid-template-columns: repeat(4, 15px);
  gap: 5px;
}

.ft-cells i {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: var(--ink);
}

.ft-arrow {
  color: var(--faint);
  font-size: 18px;
  flex: 0 0 auto;
}

.ft-tasks { flex: 1; display: flex; flex-direction: column; gap: 17px; }

.ft-task {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ft-task span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-text);
  flex: 0 0 108px;
}

.ft-task i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.8;
  flex: 1;
}

/* ---- product demo ---- */

.product-demo {
  margin: 0;
  padding-top: 180px;
  scroll-margin-top: 24px;
}

.product-demo-copy {
  max-width: 40em;
  margin: 0 0 32px;
  text-align: left;
}

.product-demo-copy .cap { display: block; margin-bottom: 10px; }

.product-demo-copy p {
  margin-top: 14px;
  color: var(--body-text);
  font-size: 16px;
}

.product-demo-frame {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card);
}

.product-demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: #fafafa;
}

/* ---- checks + badges ---- */

.checks {
  list-style: none;
  margin-top: 26px;
  max-width: 420px;
}

.checks li {
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}

.checks li::before {
  content: "✓";
  font-family: var(--font-mono);
  margin-right: 12px;
  color: var(--faint);
}

.badges {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.badge-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  max-width: 150px;
  padding: 28px 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.33s cubic-bezier(0.5, 1, 0.89, 1);
}

.badge-tile svg {
  width: 44px;
  height: 44px;
  opacity: 0.8;
}

.badge-tile span {
  position: relative;
  align-self: stretch;
  margin: 0 10px;
  padding: 6px 0;
  border-radius: 7px;
  background: #ededec;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text);
}

.badge-tile span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 65%;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.33s cubic-bezier(0.5, 1, 0.89, 1);
}

@media (hover: hover) and (pointer: fine) {
  .badge-tile:hover { transform: translateY(-6px); }
  .badge-tile:hover span::after { transform: translateX(-50%) scaleX(1); }
}

/* ---- closing ---- */

.closing {
  text-align: left;
  padding-top: 200px;
  padding-bottom: 160px;
}

.closing .cta-row { margin-top: 32px; }

.closing .mail {
  display: inline-block;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.15;
}

.closing .mail:hover { border-bottom-color: var(--ink); }

.cta-alt {
  margin-top: 20px;
  font-size: 14px;
  color: var(--faint);
}

.cta-alt a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.cta-alt a:hover { border-bottom-color: var(--ink); }

/* ---- footer ---- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 40px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 13px;
}

.footer-left .brand-mark { width: 18px; height: 18px; opacity: 0.55; }

.footer-right { display: flex; gap: 22px; }

.footer-right a {
  color: var(--faint);
  font-size: 13px;
  text-decoration: none;
}
.footer-right a:hover { color: var(--ink); }

/* ---- 404 ---- */

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--body-text);
  font-size: 16.5px;
}

.notfound a { color: var(--ink); }

/* ---- legal pages ---- */

.legal {
  max-width: 620px;
  padding-top: 90px;
  padding-bottom: 140px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 44px);
  margin-bottom: 12px;
}

.legal h3 {
  font-weight: 600;
  font-size: 16px;
  margin-top: 36px;
  margin-bottom: 8px;
}

.legal p {
  color: var(--body-text);
  font-size: 15.5px;
  margin-bottom: 8px;
}

.legal .cap { margin-bottom: 40px; }

.legal a { color: var(--ink); }

/* ---- scroll reveal ---- */

@keyframes fade-in {
  0% { opacity: 0; transform: translateY(4px) scale(0.99); filter: blur(2px) grayscale(1); }
  100% { opacity: 1; transform: translateY(0px) scale(1); filter: blur(0px) grayscale(0); }
}

/* hidden from first paint via the head script's html class, not at runtime */
.reveal-ready :is(.embed-heading, .embed-note, .embed-card,
  .row-text, .row-card, .product-demo-copy, .product-demo-frame,
  .note, .closing h2, .closing .cta-row,
  .closing .cta-alt, .closing .mail):not(.is-in) {
  opacity: 0;
}

/* print and PDF export never scroll, so nothing would ever intersect */
@media print {
  .reveal-ready :is(.embed-heading, .embed-note, .embed-card,
    .row-text, .row-card, .product-demo-copy, .product-demo-frame,
    .note, .closing h2, .closing .cta-row,
    .closing .cta-alt, .closing .mail):not(.is-in) {
    opacity: 1;
  }
}

.js-reveal.is-in {
  /* "both" keeps the 0% keyframe applied during the stagger delay, so
     delayed siblings never pop visible before their fade starts */
  animation: fade-in 0.5s var(--fade-in-delay, 0s) both;
}

/* ---- responsive ---- */

@media (max-width: 760px) {
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero-sub { font-size: 16.5px; }

  .row, .row-reverse { grid-template-columns: 1fr; gap: 36px; }
  main > .row { padding-top: 104px; }
  .row-reverse .row-text { order: 1; }
  .row-reverse .row-card { order: 2; }

  .product-demo { padding-top: 104px; margin: 0; }
  .product-demo-copy { margin-bottom: 26px; }
  #embeddings { height: 380px; }

  .team-strip { padding: 28px 0 44px; }
  .strip-label { margin-bottom: 20px; }
  .team-logos { gap: 22px; }
  .logo-stanford { font-size: 20px; }
  .logo-nvidia { font-size: 21.5251px; }
  .logo-yc { font-size: 20.8495px; }
  .logo-yc img { width: 20px; height: 20px; }
  .closing { padding-top: 120px; padding-bottom: 96px; }
  .cta-row { flex-wrap: wrap; margin-top: 28px; }
  /* keep the embedding grid and task bars on one line at every width */
  .row-card > div { padding: 36px 28px; }
  /* the card spans the full viewport when rows stack, so cap the graphic
     or the flex bars grow far past their desktop length */
  .finetune-graphic { gap: 18px; max-width: 400px; margin: 0 auto; }
  .ft-task span { flex: 0 0 86px; }
}

@media (max-width: 560px) {
  /* both captions wrap and collide side by side at phone widths */
  .embed-caption { flex-direction: column; gap: 6px; }
  .embed-caption .cap:last-child { align-self: flex-end; }

  /* all three wordmarks fit one line down to 320px; sizes keep the measured
     ink-height ratios so they still look optically equal */
  .team-logos { gap: 15px; }
  .logo-stanford { font-size: 16px; }
  .logo-nvidia { font-size: 17.2201px; }
  .logo-yc { font-size: 16.6796px; gap: 6px; }
  .logo-yc img { width: 16px; height: 16px; }

  /* side by side, the copyright and the four links each wrap mid-phrase */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 32px;
  }
  .footer-right { flex-wrap: wrap; column-gap: 22px; row-gap: 10px; }
}
