:root {
  color-scheme: light;
  --paper: #f3f0e7;
  --ink: #1b1b18;
  --muted: #69685f;
  --rule: #cbc7bb;
  --display: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.page-width {
  width: min(1520px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 24px;
  font-size: 13px;
}

.wordmark {
  font-weight: 500;
  text-decoration: none;
}

.wordmark span {
  margin-left: 12px;
  color: var(--muted);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
}

.site-nav a {
  color: var(--muted);
}

.intro {
  padding: 60px 0 112px;
}

.kicker,
.section-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
.approach h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 1270px;
  margin-top: 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.00;
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 10%;
  align-items: start;
  margin-top: 92px;
}

.lede {
  max-width: 790px;
  font-family: var(--display);
  font-size: clamp(29px, 3.4vw, 44px);
  letter-spacing: -0.018em;
  line-height: 1.14;
}

.intro-detail {
  display: grid;
  gap: 20px;
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.beliefs {
  padding-block: 96px 112px;
  scroll-margin-top: 24px;
}

.beliefs-header {
  margin-bottom: 80px;
}

.beliefs-header h2 {
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

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

.belief {
  display: grid;
  grid-template-columns: 8% minmax(200px, 0.5fr) minmax(340px, 1fr);
  gap: 4%;
  align-items: start;
  padding-block: 38px 52px;
  scroll-margin-top: 24px;
}

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

.belief-number {
  padding-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.belief h3 {
  max-width: 350px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.belief-copy {
  display: grid;
  gap: 18px;
  max-width: 750px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.belief-copy em {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.08em;
}

.audio-spectrogram {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.waveform-player {
  --waveform-progress: 0%;
  --waveform-mask: url("assets/librispeech-test-clean-6930-75918-0004-waveform.png");
  color: var(--ink);
}

.waveform-player--noisy {
  --waveform-mask: url("assets/real-world-noisy-speech-waveform.png");
}

.waveform-media {
  display: none;
}

.waveform-player-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.waveform-play-toggle {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.waveform-play-toggle:disabled {
  cursor: wait;
  opacity: 0.42;
}

.waveform-play-toggle:focus-visible,
.waveform-canvas:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.waveform-play-toggle svg {
  width: 18px;
  height: 18px;
}

.waveform-icon-pause {
  display: none;
}

.waveform-player.is-playing .waveform-icon-play {
  display: none;
}

.waveform-player.is-playing .waveform-icon-pause {
  display: block;
}

.waveform-track {
  position: relative;
  min-width: 0;
}

.waveform-canvas {
  position: relative;
  height: 116px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.waveform-render {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #32258f 0%, #5b2ea6 28%, #b33a81 62%, #ef5a70 100%);
  -webkit-mask: var(--waveform-mask) center / 100% 100% no-repeat;
  mask: var(--waveform-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}

.waveform-render-base {
  filter: saturate(0.55);
  opacity: 0.3;
}

.waveform-render-progress {
  clip-path: inset(0 calc(100% - var(--waveform-progress)) 0 0);
  filter: saturate(1.15);
}

.waveform-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--waveform-progress);
  width: 1px;
  background: #d94f70;
  pointer-events: none;
  transform: translateX(-0.5px);
}

.waveform-status {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.waveform-player.is-ready .waveform-status {
  display: none;
}

.waveform-player-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
  padding-left: 68px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.waveform-player noscript audio {
  width: 100%;
}

.audio-caption {
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
}

.wer-comparison {
  display: grid;
  gap: 0;
  padding-block: 22px 8px;
}

.wer-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.wer-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
}

.citation {
  margin-left: 0.18em;
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
}

.citation a {
  color: var(--ink);
  text-decoration: none;
}

.citation a:hover,
.citation a:focus-visible {
  text-decoration: underline;
}

.belief-sources {
  padding-top: 4px;
  font-size: 10px;
}

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

.research-index {
  display: grid;
  grid-template-columns: 24% 1fr;
  padding-block: 26px 72px;
  color: var(--muted);
  font-size: 12px;
  scroll-margin-top: 24px;
}

.research-index ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

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

.research-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(36px, 5vw, 80px);
  row-gap: 36px;
  align-items: start;
  width: min(1520px, calc(100% - 64px));
  scroll-margin-top: 24px;
  padding-block: 96px 128px;
}

.section-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-column: 1;
  grid-row: 1;
  gap: clamp(14px, 1.5vw, 20px);
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  max-width: 540px;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 0.98;
}

.section-body {
  display: contents;
}

.section-copy {
  grid-column: 1;
  grid-row: 2;
}

.section-body > .demo,
.section-body > .demo-list {
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.demo-intro {
  width: 100%;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: normal;
  line-height: 1.65;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2952 / 1908;
  overflow: hidden;
  background: #181816;
}

.video-frame--automotive {
  aspect-ratio: 1860 / 1080;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-main-play,
.video-control {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.video-main-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  background: rgba(20, 20, 18, 0.92);
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

.video-main-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.video-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 32px minmax(64px, 1fr) auto 32px 32px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(20, 20, 18, 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-frame.is-ready .video-controls {
  opacity: 1;
}

.video-frame.is-started .video-main-play {
  pointer-events: none;
  opacity: 0;
}

.video-control {
  width: 32px;
  height: 32px;
  background: transparent;
}

.video-control svg {
  width: 17px;
  height: 17px;
}

.video-control .icon-pause,
.video-control .icon-volume-off {
  display: none;
}

.video-frame.is-playing .play-toggle .icon-play,
.video-frame.is-muted .mute-toggle .icon-volume-on {
  display: none;
}

.video-frame.is-playing .play-toggle .icon-pause,
.video-frame.is-muted .mute-toggle .icon-volume-off {
  display: block;
}

.video-progress {
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.video-progress::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    #fff 0,
    #fff var(--progress, 0%),
    rgba(255, 255, 255, 0.35) var(--progress, 0%),
    rgba(255, 255, 255, 0.35) 100%
  );
}

.video-progress::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.video-progress::-moz-range-progress {
  height: 2px;
  background: #fff;
}

.video-progress::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  appearance: none;
}

.video-progress::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.video-time {
  min-width: 74px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--sans);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.video-main-play:focus-visible,
.video-control:focus-visible,
.video-progress:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.video-main-play:disabled,
.video-control:disabled,
.video-progress:disabled {
  cursor: wait;
  opacity: 0.45;
}

.video-frame:fullscreen,
.video-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

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

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

figcaption span {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-list {
  display: grid;
  gap: 48px;
}

.applications {
  scroll-margin-top: 24px;
}

.applications-inner {
  padding-block: 176px 152px;
}

.applications-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 128px;
}

.applications-header h2 {
  width: 100%;
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-align: right;
}

.application-demos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 112px 28px;
}

.application-feature {
  min-width: 0;
  scroll-margin-top: 24px;
}

.application-feature:nth-child(1) {
  grid-column: 4 / -1;
}

.application-feature:nth-child(2) {
  grid-column: 1 / 8;
}

.application-feature:nth-child(3) {
  grid-column: 6 / -1;
}

.application-feature:nth-child(4) {
  grid-column: 1 / 9;
}

.application-feature h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.application-feature-caption {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.approach {
  display: grid;
  grid-template-columns: 24% 1fr;
  padding-block: 104px 136px;
  scroll-margin-top: 24px;
}

.approach > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
}

.approach h2 {
  grid-row: span 2;
  max-width: 480px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.approach p {
  color: var(--muted);
  font-size: 14px;
}

.approach p + p {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 24px 44px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1050px) {
  .research-section {
    display: block;
    width: min(100% - 64px, 960px);
  }

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

  .section-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
  }

  .section-copy,
  .section-body > .demo,
  .section-body > .demo-list {
    grid-column: auto;
    grid-row: auto;
  }

}

@media (max-width: 800px) {
  .page-width {
    width: min(100% - 36px, 640px);
  }

  .intro {
    padding: 64px 0 80px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 92px);
  }

  .intro-copy,
  .approach,
  .approach > div {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    gap: 40px;
    margin-top: 64px;
  }

  .research-index {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 48px;
  }

  .beliefs {
    padding-block: 80px 92px;
  }

  .beliefs-header {
    gap: 28px;
    margin-bottom: 64px;
  }

  .applications-inner {
    padding-block: 112px 104px;
  }

  .applications-header {
    margin-bottom: 80px;
  }

  .applications-header h2 {
    font-size: clamp(60px, 16vw, 88px);
  }

  .application-demos {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .application-feature:nth-child(1),
  .application-feature:nth-child(2),
  .application-feature:nth-child(3),
  .application-feature:nth-child(4) {
    grid-column: 1;
  }

  .application-feature h2 {
    margin-bottom: 10px;
  }

  .application-feature-caption {
    margin-bottom: 18px;
  }

  .belief {
    grid-template-columns: 44px 1fr;
    gap: 12px 20px;
    padding-block: 32px 44px;
  }

  .belief h3 {
    max-width: 520px;
  }

  .belief-copy {
    grid-column: 2;
    max-width: 560px;
  }

  .research-index ol {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }

  .research-section {
    display: block;
    width: min(100% - 36px, 640px);
    padding-block: 72px 92px;
  }

  .section-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 36px;
  }

  .section-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
  }

  .section-copy,
  .section-body > .demo,
  .section-body > .demo-list {
    grid-column: auto;
    grid-row: auto;
  }

  .approach {
    gap: 28px;
    padding-block: 80px 100px;
  }

  .approach > div {
    gap: 32px;
  }

  .approach h2 {
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px;
    font-size: 11px;
  }

  .wordmark span {
    display: block;
    margin: 2px 0 0;
  }

  .intro {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(49px, 14.5vw, 68px);
  }

  .research-index ol {
    grid-template-columns: 1fr;
  }

  .beliefs {
    padding-block: 68px 80px;
  }

  .beliefs-header {
    margin-bottom: 52px;
  }

  .belief-copy {
    grid-column: 1 / -1;
  }

  .video-main-play {
    width: 56px;
    height: 56px;
  }

  .video-controls {
    grid-template-columns: 28px minmax(44px, 1fr) auto 28px 28px;
    gap: 7px;
    min-height: 46px;
    padding-inline: 10px;
  }

  .video-control {
    width: 28px;
    height: 28px;
  }

  .video-time {
    min-width: 64px;
    font-size: 9px;
  }
}

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