* { box-sizing: border-box; }
body { margin: 0; background: var(--steel-900); color: var(--bone); font: 400 1rem/1.6 var(--font-body); }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blued-light); }
:focus-visible { outline: 2px solid var(--blued-light); outline-offset: 5px; }
.wrap { width: 88%; max-width: 86rem; margin-inline: auto; }
.label { color: var(--dust); font: 400 .69rem/1.5 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, .components dt { font-family: var(--font-display); font-weight: 400; }
h1, h2 { line-height: .99; letter-spacing: -.045em; }
h1 { font-size: clamp(4.7rem, 7.4vw, 7.6rem); }
h2 { font-size: clamp(3.1rem, 4.9vw, 5.1rem); }
p, dd { color: color-mix(in srgb, var(--bone) 76%, var(--steel-900)); }
.skip { position: absolute; z-index: 5; left: 1rem; top: 0; padding: .5rem 1rem; color: var(--bone); background: var(--steel-800); transform: translateY(-130%); }
.skip:focus { transform: none; }
.masthead, nav, .action, figcaption, .workflow li > div { display: flex; align-items: center; }
.masthead { justify-content: space-between; padding-block: 1.6rem .75rem; gap: 2rem; }
.lockup { display: block; width: 4.65rem; height: auto; }
nav { gap: clamp(1.2rem, 2.8vw, 3.1rem); font-size: .87rem; font-weight: 500; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.header-links { display: grid; justify-items: end; gap: .15rem; }
.languages { gap: 1.05rem; font: 400 .69rem/1.5 var(--font-mono); letter-spacing: .08em; }
.languages a { min-height: 2rem; color: var(--dust); }
.languages a[aria-current="page"] { color: var(--blued-light); text-decoration: underline; text-underline-offset: .3rem; }
.languages a:hover { color: var(--bone); }
.contact-link { margin-left: 1.7rem; gap: .7rem; }
.contact-link span { color: var(--blued); }
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--steel-900); }
.hero-grid { position: relative; display: grid; grid-template-columns: .98fr 1.02fr; align-items: center; gap: 1.5rem; padding-block: clamp(3.8rem, 6.3vw, 7.2rem) clamp(5.3rem, 7.1vw, 8rem); }
.hero-copy > .label { margin-bottom: 1.65rem; }
.lead { margin: 1.6rem 0 1.8rem; max-width: 28rem; font-size: clamp(1rem, 1.27vw, 1.23rem); line-height: 1.55; }
.action { width: fit-content; gap: 2.1rem; padding: .79rem 1.1rem; background: var(--blued); color: var(--on-blued); font-weight: 600; font-size: .91rem; }
.action:hover { background: var(--blued-light); color: var(--on-blued); }
.action span { font-size: 1.2rem; line-height: 1; }
.plate { padding-top: .4rem; }
.plate img { display: block; width: 100%; height: auto; mix-blend-mode: lighten; filter: saturate(.5) contrast(1.18); }
.brain-scene { position: relative; }
.brain-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.brain-scene.motion-ready img { opacity: 0; }
.brain-scene.motion-ready canvas { opacity: 1; }
figcaption { justify-content: flex-end; gap: .9rem; margin-top: .9rem; font: 400 .75rem/1.5 var(--font-body); color: var(--dust); }
figcaption .label { font-size: .62rem; }
.figure-name { display: inline-flex; align-items: center; gap: .7rem; }
.motion-toggle { margin-left: auto; padding: .35rem 0 .35rem .5rem; min-height: 2.75rem; border: 0; background: transparent; color: var(--dust); font: inherit; cursor: pointer; }
.motion-toggle:hover { color: var(--bone); }
.motion-toggle[hidden] { display: none; }
.cut { position: absolute; left: 24%; top: 100%; z-index: -1; width: 125%; height: 110%; transform-origin: top left; transform: rotate(var(--cut-angle)); border-top: 1px solid var(--blued); background: var(--steel-950); }
.section { padding-block: clamp(4rem, 7.1vw, 7.8rem); scroll-margin-top: 1.25rem; }
.spread { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.8rem, 7vw, 9rem); }
.section-heading > .label { margin-bottom: 1.5rem; }
.index { margin-right: .85rem; color: var(--steel-text); }
.section-heading > p:last-child:not(.label) { max-width: 22rem; margin-top: 1.4rem; }
.research, .engineering { background: var(--steel-950); }
.research .wrap { padding-left: var(--cut-shift); }
.questions { align-self: start; }
.questions details { background: var(--steel-900); }
.questions details + details { margin-top: .3rem; }
.questions summary { cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; list-style: none; padding: 1.03rem 1.25rem; font-size: clamp(1.03rem, 1.45vw, 1.34rem); }
summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--dust); font: 300 1.35rem/1 var(--font-body); }
.questions details[open] summary::after { content: '−'; color: var(--blued); }
.questions details[open] summary .label { color: var(--blued-light); }
.questions summary:hover { background: var(--steel-850); }
.questions details p { padding: .1rem 2.5rem 1.6rem 4.9rem; max-width: 44rem; }
.stack-intro { align-items: end; }
.section-lead { max-width: 36rem; font-size: clamp(1.06rem, 1.5vw, 1.37rem); line-height: 1.55; }
.components { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(1.4rem, 3vw, 3.5rem); row-gap: 2.8rem; margin-top: clamp(3rem, 5vw, 5.4rem); }
.components .label { display: block; margin-bottom: .7rem; }
.components dt, h3 { font-size: clamp(2rem, 2.95vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.components dd, .workflow p { margin-top: .85rem; }
.workflow { list-style: none; padding: 0; }
.workflow li + li { margin-top: 2.5rem; }
.workflow li > div { gap: 1.1rem; align-items: baseline; flex-wrap: wrap; }
.workflow p { max-width: 35rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.footer h2 { margin-block: 1.1rem 1.3rem; }
.mail { display: inline-flex; gap: .8rem; align-items: baseline; font-size: 1.2rem; text-decoration: underline; text-underline-offset: .3rem; text-decoration-color: var(--line); }
.registry { text-align: right; }
.registry .label { margin: .7rem 0; }
.registry a { font-size: .82rem; }
@media (max-width: 56rem) {
  .wrap { width: 90%; }
  h1 { font-size: clamp(4.1rem, 8.6vw, 4.85rem); }
  .spread { gap: 2.2rem; }
  .components { grid-template-columns: repeat(2, 1fr); }
  .questions summary { gap: .75rem; }
  .questions details p { padding-left: 1.25rem; }
}
@media (max-width: 44rem) {
  .masthead { padding-top: 1rem; gap: 1rem; }
  .lockup { width: 3.75rem; }
  nav { gap: .9rem; font-size: .78rem; flex-wrap: wrap; justify-content: flex-end; }
  .header-links { max-width: calc(100% - 4.75rem); }
  .languages { gap: 1.05rem; font-size: .65rem; }
  .contact-link { margin-left: 0; gap: .2rem; }
  .hero-grid, .spread { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 3.3rem 2.2rem; gap: 2.3rem; }
  h1 { font-size: clamp(3.6rem, 12vw, 5.2rem); }
  .hero-copy > .label { margin-bottom: 1.1rem; }
  .lead { margin-block: 1.15rem 1.4rem; }
  .plate { width: min(100%, 28rem); justify-self: end; }
  .research .wrap { padding-left: 0; }
  .section-heading > p:last-child:not(.label) { max-width: 32rem; }
  .footer-grid { align-items: start; }
}
@media (max-width: 26rem) {
  nav { gap: .2rem .6rem; }
  .masthead { gap: .55rem; }
  .footer-grid { flex-direction: column; }
  .registry { text-align: left; }
  .components { grid-template-columns: 1fr; }
}
