@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-glass: rgb(255 255 255 / 0.94);
  --ink: #000000;
  --tone: #f3f3f3;
  --tone-strong: #e8e8e8;
  --hover: #2b2b2b;
  --pressed: #3d3d3d;
  --selection: #d4d4d4;
  --on-ink: #ffffff;
  --on-ink-tone: #1c1c1c;
  --on-ink-tone-strong: #262626;
  --radius-inner: 4px;
  --radius-field: 10px;
  --radius-card: 16px;
  --focus-width: 2px;
  --ease: 150ms ease-out;
  --display: "Saira", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  --step-small: 0.95rem;
  --step-0: 1.125rem;
  --step-1: 1.406rem;
  --step-3: 2.197rem;
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --column-gap: clamp(1.5rem, 4vw, 4rem);
  --video-ratio: 16 / 9;
  --section: clamp(3.5rem, 8vw, 6rem);
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--ink) var(--tone);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--step-3);
  font-weight: 700;
}

h4 {
  font-size: var(--step-1);
  font-weight: 650;
  font-stretch: 95%;
  margin-top: 1.6em;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 4px;
}

:focus-visible {
  outline: var(--focus-width) solid currentColor;
  outline-offset: var(--focus-width);
  border-radius: var(--radius-inner);
}

.button:focus-visible {
  outline-color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-field);
  background: var(--ink);
  color: var(--on-ink);
}

.skip:focus {
  top: 1rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.mark-cut {
  fill: var(--paper);
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.75rem var(--gutter);
  background: var(--paper-glass);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}

.site-header nav a {
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 70%;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.45;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-field);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
}

.button,
.video-play {
  transition: background-color var(--ease), transform var(--ease);
}

.button:hover,
.video:hover .video-play {
  background: var(--hover);
}

.button:active,
.video:active .video-play {
  background: var(--pressed);
  transform: scale(0.98);
}

.button-quiet {
  background: var(--tone-strong);
  color: var(--ink);
}

.button-quiet:hover,
.button-quiet:active {
  background: var(--selection);
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0 var(--column-gap);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) var(--section);
}

.hero-word {
  margin: 0;
  max-width: none;
  align-self: stretch;
  writing-mode: vertical-rl;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(6rem, min(26vh, 14vw), 15rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
}

.hero-body {
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-picture img,
.robot-picture img,
.voice-picture img,
.vehicle-still {
  width: 100%;
  border-radius: var(--radius-card);
}

.hero-picture figcaption {
  margin-top: 0.75rem;
  font-size: var(--step-small);
}

.robots,
.vehicles,
.channels,
.contact {
  padding: var(--section) var(--gutter);
}

.robot {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--column-gap);
  align-items: start;
}

.robot + .robot {
  margin-top: var(--section);
}

.robot-picture {
  position: sticky;
  top: 6rem;
}

.robot-flip {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}

.robot-picture-wide {
  position: static;
  align-self: center;
}

.robot-kind {
  margin-top: -0.4em;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.3;
}

.grant {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--tone);
}

.grant p {
  margin: 0;
}

.grant-mark {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
}

.uses {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: var(--measure);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.uses li {
  padding: 0.9rem 1.25rem;
  background: var(--tone);
}

.uses li:nth-child(even) {
  background: var(--tone-strong);
}

.voice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem var(--column-gap);
  align-items: start;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.voice-command {
  grid-column: 1 / -1;
  margin: 0;
  max-width: none;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2.4rem, 1rem + 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.voice-text h4 {
  margin-top: 0;
}

.video {
  position: relative;
  display: block;
  aspect-ratio: var(--video-ratio);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--tone-strong);
  text-decoration: none;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: var(--radius-field);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.video-play svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: var(--video-ratio);
  border: 0;
  border-radius: var(--radius-card);
}

.vehicles {
  background: var(--ink);
  color: var(--on-ink);
}

.vehicles ::selection {
  background: var(--on-ink-tone-strong);
  color: var(--on-ink);
}

.vehicles .video {
  background: var(--on-ink-tone);
}

.vehicles .video-play {
  background: var(--on-ink);
  color: var(--ink);
}

.vehicles .video:hover .video-play {
  background: var(--tone-strong);
}

.vehicles .video:active .video-play {
  background: var(--selection);
}

.vehicles-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.vehicles-head p {
  font-size: var(--step-1);
}

.vehicle {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.vehicle + .vehicle {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.vehicle-still {
  margin-top: 1.5rem;
  max-width: 22rem;
}

.channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.channel-list a {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem) 1.75rem;
  border-radius: var(--radius-card);
  background: var(--tone);
  text-decoration: none;
  transition: background-color var(--ease);
}

.channel-list a:hover {
  background: var(--tone-strong);
}

.channel-name {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.1;
}

.channel-handle {
  font-weight: 700;
}

.contact {
  background: var(--tone);
}

.contact-mail {
  max-width: none;
  margin: 1.5rem 0 0.75rem;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.9rem, 1rem + 4vw, 4.5rem);
  line-height: 1.1;
}

.contact-mail a {
  display: inline-block;
}

.site-footer {
  padding: 2rem var(--gutter);
  background: var(--ink);
  color: var(--on-ink);
}

.site-footer .mark-cut {
  fill: var(--ink);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
}

.footer-small {
  flex-basis: 100%;
  max-width: none;
  margin: 0;
  font-size: var(--step-small);
}

@media (max-width: 64rem) {
  .hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-picture {
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

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

@media (max-width: 48rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-word {
    writing-mode: horizontal-tb;
    text-align: left;
    font-size: clamp(4.5rem, 26vw, 8rem);
    line-height: 0.85;
    margin-bottom: 1.5rem;
  }

  .robot,
  .voice,
  .channel-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .robot-picture {
    position: static;
  }

  .robot-picture img {
    max-height: 70vh;
    object-fit: cover;
  }

  .site-header {
    position: static;
  }

  .site-header nav {
    gap: 0.25rem 1rem;
    font-size: 1rem;
  }

  .video-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
