@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-wght-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic-wght-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Martian Fallback";
  src: local("Menlo"), local("Consolas"), local("monospace");
  size-adjust: 78%;
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia Italic"), local("Georgia");
  font-style: italic;
  size-adjust: 107%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --bg: #161310;
  --fg: #ece7dd;
  --mid: #a69c8d;
  --rule: #2e2822;
  --m1: #3b0f70;
  --m2: #8c2981;
  --m3: #de4968;
  --m4: #fe9f6d;
  --m5: #fcfdbf;
  --mono: "Martian Mono", "Martian Fallback", ui-monospace, Menlo, monospace;
  --human: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --page: min(1360px, calc(100vw - 80px));
  --measure: 68ch;
  --header-height: 72px;
  color-scheme: dark;
  font-synthesis: none;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  scrollbar-color: var(--mid) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 390;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--m4);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--m4);
}

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

button {
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--m5);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

.human-voice {
  font-family: var(--human);
  font-style: italic;
  font-weight: 460;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.wordmark i,
.model-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m4);
  box-shadow: 0 0 14px color-mix(in srgb, var(--m4) 65%, transparent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.site-nav a {
  position: relative;
  color: var(--mid);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  background: var(--m4);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--fg);
}

.site-nav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-contact {
  justify-self: end;
  color: var(--mid);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(720px, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}

.hero-poster {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 40% at 72% 62%, color-mix(in srgb, var(--m3) 14%, transparent), transparent 67%),
    radial-gradient(ellipse 50% 34% at 34% 70%, color-mix(in srgb, var(--m2) 20%, transparent), transparent 72%),
    radial-gradient(ellipse 85% 52% at 55% 82%, color-mix(in srgb, var(--m1) 34%, transparent), transparent 68%),
    var(--bg);
}

.hero-poster::before,
.hero-poster::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero-poster::before {
  z-index: 1;
  background-image: radial-gradient(circle, rgba(236, 231, 221, 0.22) 0 0.6px, transparent 0.8px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to top, #000, transparent 75%);
  opacity: 0.28;
  transform: perspective(500px) rotateX(56deg) scale(1.5) translateY(20%);
}

.hero-poster.is-rendered::before {
  opacity: 0;
}

#terrain {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-poster.is-rendered #terrain {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 19, 16, 0.82) 0%, rgba(22, 19, 16, 0.35) 52%, rgba(22, 19, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 19, 16, 0.88) 0%, transparent 40%, rgba(22, 19, 16, 0.46) 100%);
  pointer-events: none;
}

.hero-content {
  width: var(--page);
  margin: 0 auto;
  padding-top: var(--header-height);
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 26px;
  margin-bottom: clamp(54px, 10vh, 110px);
  color: var(--mid);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
}

.eyebrow,
.section-kicker {
  color: var(--mid);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 1120px;
  margin-bottom: 20px;
  font-size: clamp(48px, 7.5vw, 122px);
  font-weight: 660;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.last-name {
  white-space: nowrap;
}

.hero-tagline {
  max-width: 940px;
  margin-bottom: 42px;
  color: var(--fg);
  font-size: clamp(25px, 3vw, 46px);
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.prompt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 11px 12px 11px 18px;
  border: 1px solid #50453a;
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.prompt-cta:hover {
  border-color: var(--m4);
  background: var(--m4);
  color: var(--bg);
}

.hero-actions > a:not(.prompt-cta) {
  color: var(--mid);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(110px, 14vw, 210px) 0;
  border-bottom: 1px solid var(--rule);
}

.anchor-alias {
  position: absolute;
  top: 33%;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  align-items: start;
  gap: 40px;
  margin-bottom: clamp(78px, 10vw, 140px);
}

.section-kicker span {
  color: var(--fg);
}

.section h2 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section h3 {
  font-size: 11px;
  font-weight: 590;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) 1.25fr;
  gap: clamp(60px, 10vw, 160px);
  padding-bottom: clamp(90px, 12vw, 160px);
}

.model-overview h3,
.training-data h3,
.subhead {
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.model-overview dl {
  margin-bottom: 0;
}

.model-overview dl > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
}

.model-overview dt,
.subhead p {
  color: var(--mid);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-overview dd {
  margin: 0;
  font-size: 11px;
}

.training-data p {
  max-width: 26em;
  margin-bottom: 0;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.24;
}

.capabilities {
  margin-bottom: 0;
}

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.subhead h3,
.subhead p {
  margin-bottom: 0;
}

.capability-list,
.checkpoints,
.release-notes {
  padding: 0;
  list-style: none;
}

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  margin-bottom: 0;
}

.capability-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 72%, transparent);
  font-size: 11px;
}


.checkpoints {
  position: relative;
  margin-bottom: 0;
  margin-left: calc(42% - 20px);
}

.checkpoints::before {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: -1px;
  width: 1px;
  background: var(--rule);
  content: "";
}

.checkpoint {
  position: relative;
  padding: 0 0 clamp(82px, 9vw, 128px) 58px;
}

.checkpoint:last-child {
  padding-bottom: 0;
}

.checkpoint::before {
  position: absolute;
  top: 7px;
  left: -5px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #71685e;
  box-shadow: 0 0 0 1px var(--rule);
  content: "";
}

.checkpoint.current::before {
  background: var(--m4);
  box-shadow: 0 0 18px color-mix(in srgb, var(--m4) 70%, transparent);
}

.checkpoint article > header {
  margin-bottom: 28px;
}

.version {
  position: absolute;
  top: 0;
  right: calc(100% + 58px);
  width: min(35vw, 350px);
  color: var(--fg);
  font-size: 13px;
  font-weight: 660;
  text-align: right;
}

.version span {
  display: block;
  margin-top: 5px;
  color: var(--mid);
  font-size: 8px;
  font-weight: 430;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkpoint header > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.checkpoint h3 {
  margin-bottom: 0;
  color: var(--fg);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 530;
  letter-spacing: -0.025em;
  text-transform: none;
}

.checkpoint time {
  flex: 0 0 auto;
  color: var(--mid);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-notes {
  max-width: var(--measure);
  margin-bottom: 0;
  color: var(--mid);
  font-size: 12px;
}

ul.release-notes li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
}

ul.release-notes li::before {
  position: absolute;
  left: 0;
  color: #746b60;
  content: "+";
}

.release-notes strong {
  color: var(--fg);
  font-weight: 510;
}

.work-list {
  border-top: 1px solid var(--rule);
}

.work-case {
  padding: clamp(42px, 6vw, 84px) 0;
  border-bottom: 1px solid var(--rule);
}

.work-case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 5vw, 66px);
}

.work-case-header h3,
.work-index,
.work-summary,
.work-details {
  margin-bottom: 0;
}

.work-case-header h3 {
  color: var(--fg);
  font-size: clamp(32px, 5vw, 70px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: none;
}

.work-index {
  margin-bottom: 14px;
  color: var(--mid);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-case-header a {
  flex: 0 0 auto;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.work-summary {
  max-width: 26em;
  margin-left: 28%;
  font-size: clamp(24px, 3.2vw, 43px);
  line-height: 1.2;
}

.work-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  max-width: 900px;
  margin-top: clamp(42px, 7vw, 82px);
  margin-left: 28%;
}

.work-details > div {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.work-details dt {
  margin-bottom: 12px;
  color: var(--fg);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-details dd {
  margin: 0;
  color: var(--mid);
  font-size: 11px;
}

.contact {
  min-height: 85svh;
}

.contact .section-heading {
  margin-bottom: clamp(60px, 8vw, 100px);
}

.endpoint {
  width: min(100%, 940px);
  margin-left: auto;
  border: 1px solid var(--rule);
}

.endpoint-route {
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}

.endpoint-route span {
  margin-right: 14px;
  color: var(--m4);
  font-weight: 670;
}

.endpoint-field {
  display: grid;
  grid-template-columns: 95px 1fr;
  padding: 24px;
  border-bottom: 1px solid var(--rule);
}

.endpoint-field > span {
  color: var(--mid);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endpoint-field a {
  width: fit-content;
  font-size: clamp(14px, 2vw, 22px);
  text-decoration: none;
}

.endpoint-field b {
  font-weight: 400;
}

.endpoint-response {
  margin-bottom: 0;
  padding: 13px 24px;
  color: var(--mid);
  font-size: 9px;
}

.endpoint-response span {
  margin-right: 12px;
  color: var(--m5);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: var(--page);
  margin: 0 auto;
  padding: 38px 0;
  color: var(--mid);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
}

/* Scroll reveal is added only after JS boots. */
.motion .reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  display: grid;
  min-height: 100svh;
  padding: 7vw;
  background:
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--m2) 20%, transparent), transparent 38%),
    var(--bg);
}

.error-page main {
  align-self: center;
  width: min(100%, 1000px);
}

.error-code {
  margin-bottom: -0.13em;
  color: var(--rule);
  font-size: clamp(100px, 25vw, 360px);
  font-weight: 740;
  letter-spacing: -0.12em;
  line-height: 0.8;
}

.error-page h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 570;
  letter-spacing: -0.06em;
  line-height: 1;
}

.error-page .human-voice {
  max-width: 32em;
  margin-bottom: 40px;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.25;
}

.error-page footer {
  align-self: end;
  display: flex;
  justify-content: space-between;
  color: var(--mid);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 40px);
    --header-height: 64px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .site-nav {
    display: none;
  }

  .model-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 28px;
  }

  .model-layout {
    gap: 80px;
  }

  .training-data p {
    max-width: 30em;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .checkpoints {
    margin-left: 120px;
  }

  .version {
    right: calc(100% + 42px);
    width: 100px;
  }

  .checkpoint {
    padding-left: 42px;
  }

  .work-summary,
  .work-details {
    margin-left: 18%;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100vw - 32px);
  }

  body {
    font-size: 14px;
  }

  .hero {
    min-height: max(650px, 100svh);
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero-topline {
    gap: 14px;
    margin-bottom: 70px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 70px);
    line-height: 0.98;
  }

  .hero-tagline {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .prompt-cta {
    min-height: 50px;
  }

  .section {
    padding: 100px 0;
  }

  .section-heading {
    margin-bottom: 70px;
  }

  .section h2 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .model-overview dl > div {
    grid-template-columns: 88px 1fr;
  }

  .training-data p {
    font-size: 27px;
  }

  .subhead p {
    display: none;
  }

  .capability-list li {
    font-size: 10px;
  }

  .checkpoints {
    margin-left: 0;
    padding-top: 52px;
  }

  .checkpoint {
    padding: 0 0 90px 26px;
  }

  .version {
    top: -39px;
    right: auto;
    left: 26px;
    width: auto;
    text-align: left;
  }

  .version span {
    display: inline;
    margin-left: 7px;
  }

  .checkpoint header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .work-case-header {
    gap: 20px;
  }

  .work-summary,
  .work-details {
    margin-left: 0;
  }

  .work-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .endpoint-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .endpoint-field a {
    font-size: 13px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .wordmark i,
  .model-chip i {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
