/* Qnion Robotics site. The tokens are the MOTOTECH deck's: the light drawing
   sheet, indigo for the brand and figures, cyan for Qnion, orange for the
   conventional approach. A colour never means two things. */
@font-face {
  font-family: "Archivo";
  src: url(font/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --indigo: #0A096B;
  --indigo-2: #1D1BA6;
  --ink: #1A1D2E;
  --steel: #5F6878;
  --rule: #CDD3DC;
  --cyan: #0B9BB0;
  --cyan-hi: #4FD8E8;
  --cyan-wash: #E3F4F7;
  --orange: #D9561A;
  --wrap: 1180px;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-stretch: 112%; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); font-weight: 800; color: var(--indigo); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 750; color: var(--indigo); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 246, 248, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; font-weight: 600; font-size: .96rem; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-color: var(--cyan); color: var(--indigo); }
.menu { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--indigo); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--indigo); color: var(--white);
  font-weight: 700; text-decoration: none; line-height: 1;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.btn::after { content: "\2192"; transition: transform .18s; }
.btn:hover { background: var(--indigo-2); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(10, 9, 107, .7); }
.btn:hover::after { transform: translateX(4px); }
.btn-sm { padding: .68rem 1.15rem; font-size: .92rem; }
.btn-line { background: none; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.btn-line:hover { background: var(--indigo); color: var(--white); }
.btn-cyan { background: var(--cyan-hi); color: var(--indigo); }
.btn-cyan:hover { background: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; z-index: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 1rem; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-wash); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.lede { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.08rem, 1.6vw, 1.26rem); color: var(--steel); }
.does { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.does li { padding: .5rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); font-size: .95rem; }
.does b { color: var(--indigo); }
/* The loop is rendered on the paper colour; the mask fades its edge so no border shows. */
.hero-art {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.hero-art video, .hero-art img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.page-hero .hero-grid { grid-template-columns: 1fr; padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 17ch; }

/* The home page film. The headline is in the render, so the page's own h1 is
   kept for search engines and screen readers and hidden from sight. The film
   is rendered on the paper colour and its edges fade, so no border shows. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-hero { padding: clamp(1.6rem, 3.5vw, 2.6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.home-hero .kicker { margin-bottom: .4rem; }
.film {
  width: 100%; aspect-ratio: 1600 / 720; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 98.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 98.5%, transparent);
  mask-composite: intersect;
}
.loop {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.film-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: .4rem 0 0; padding: 0; list-style: none; counter-reset: fs; }
.film-steps li { counter-increment: fs; padding: .9rem 1rem 1rem; border-top: 3px solid var(--rule); opacity: .5; transition: opacity .3s, border-color .3s; }
.film-steps li::before { content: "0" counter(fs); display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--steel); }
.film-steps b { display: block; color: var(--indigo); line-height: 1.25; }
.film-steps span { display: block; margin-top: .25rem; font-size: .9rem; color: var(--steel); }
.film-steps li.on { opacity: 1; border-color: var(--cyan); }
.film-steps li.on::before { color: var(--cyan); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.hero-foot .lede { margin: 0; max-width: 34rem; }
.hero-foot .actions { margin: 0; flex: none; }

/* ---------------------------------------------------------------- ticker */
.ticker { overflow: hidden; background: var(--indigo); color: var(--white); padding: .95rem 0; font-weight: 650; font-stretch: 112%; white-space: nowrap; }
.ticker div { display: inline-block; animation: slide 38s linear infinite; }
.ticker span { margin: 0 1.3rem; }
.ticker span::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 2.6rem; border-radius: 50%; background: var(--cyan-hi); vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head p { margin-top: 1rem; font-size: 1.12rem; color: var(--steel); }
.eyebrow { display: block; margin-bottom: .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--cyan); }
.white { background: var(--white); }
.band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--indigo) 0%, #12107F 55%, var(--indigo-2) 100%); color: var(--white); }
.band h2, .band h3 { color: var(--white); }
.band .eyebrow { color: var(--cyan-hi); }
.band .sec-head p, .band .card p { color: #C9CDF2; }
.band .wrap { position: relative; z-index: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { padding: 1.6rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card p { margin-top: .6rem; color: var(--steel); font-size: .98rem; }
.card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 18px 36px -22px rgba(10, 9, 107, .5); }
.white .card { background: var(--paper); }
.band .card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.band .card:hover { border-color: var(--cyan-hi); background: rgba(255, 255, 255, .11); box-shadow: none; }
.num { display: block; margin-bottom: .9rem; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--cyan); }
.band .num { color: var(--cyan-hi); }
.card.old { border-left: 4px solid var(--orange); }
.card.old .num { color: var(--orange); }

.list { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.list li { padding: .85rem 0 .85rem 1.7rem; border-top: 1px solid var(--rule); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.list.old li::before { background: var(--orange); }
.list b { display: block; color: var(--indigo); }
.list span { color: var(--steel); font-size: .98rem; }

/* ----------------------------------------------------------------- steps */
.step { text-align: left; }
.step figure { margin: 0 0 1rem; border-radius: var(--r); background: var(--paper); aspect-ratio: 1.05; display: grid; place-items: center; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: contain; }
.step figure img.cover { object-fit: cover; }
.who { display: inline-block; margin-bottom: .5rem; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--cyan-wash); color: var(--cyan); }
.who.robot { background: #E7E7F5; color: var(--indigo); }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.5rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); }
.stat b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; font-stretch: 112%; line-height: 1; color: var(--indigo); letter-spacing: -0.02em; }
.stat strong { display: block; margin-top: .7rem; font-size: 1rem; }
.stat span { display: block; margin-top: .3rem; font-size: .88rem; color: var(--steel); }
.stat cite { display: block; margin-top: .7rem; font-size: .76rem; font-style: normal; color: var(--steel); opacity: .85; }

/* ---------------------------------------------------------------- photos */
.photos { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.photos img:first-child { grid-row: span 2; }
.shot { border-radius: var(--r); overflow: hidden; background: #0B0D0F; box-shadow: 0 30px 60px -30px rgba(10, 9, 107, .55); }
.shot video { width: 100%; }
.cap { margin-top: .8rem; font-size: .86rem; color: var(--steel); }
.band .cap { color: #C9CDF2; }

/* ----------------------------------------------------------------- doors */
.door { display: flex; flex-direction: column; text-decoration: none; min-height: 15rem; }
.door p { flex: 1; }
.door .go { margin-top: 1.3rem; font-weight: 700; color: var(--indigo); }
.door .go::after { content: " \2192"; }
.door.lead { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.door.lead h3 { color: var(--white); }
.door.lead p { color: #C9CDF2; }
.door.lead .go, .door.lead .num { color: var(--cyan-hi); }

/* ---------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); font-size: .98rem; }
.table th, .table td { padding: .95rem 1.1rem; text-align: left; border-top: 1px solid var(--rule); vertical-align: top; }
.table thead th { border-top: 0; background: var(--indigo); color: var(--white); font-weight: 700; }
.table tbody th { font-weight: 700; color: var(--indigo); white-space: nowrap; }
.table .was { color: var(--steel); }
.table .now { font-weight: 600; }
.scroll { overflow-x: auto; border-radius: var(--r); }

/* ---------------------------------------------------------------- people */
.person { display: flex; gap: 1.1rem; align-items: center; }
.person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.person small { display: block; color: var(--steel); font-size: .9rem; margin-top: .2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.tags li { padding: .38rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); font-size: .88rem; font-weight: 600; }

/* ------------------------------------------------------------------ jobs */
.role { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-decoration: none; border-left: 5px solid var(--cyan); }
.role h3 { font-size: 1.45rem; color: var(--indigo); }
.role .btn { flex: none; }
.job { display: grid; grid-template-columns: 1fr 20rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.job h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; }
.job p { max-width: 44rem; }
.job-lede { font-size: 1.12rem; }
.ticks { margin: 0; padding: 0; list-style: none; max-width: 44rem; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.7rem; border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.ticks.soft li::before { background: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.job-card { position: sticky; top: 92px; padding: 1.6rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); }
.job-card h3 { color: var(--indigo); }
.job-card dl { margin: 1.1rem 0 1.4rem; }
.job-card dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-top: .9rem; }
.job-card dd { margin: .15rem 0 0; font-weight: 600; }
.job-card .btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------- cta */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 36rem; margin: 1.1rem auto 0; color: #C9CDF2; font-size: 1.1rem; }
.cta .actions { justify-content: center; }
.ask { margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: ask; display: grid; gap: .8rem; }
.ask li { counter-increment: ask; display: flex; gap: 1rem; align-items: baseline; }
.ask li::before { content: counter(ask); flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cyan-hi); color: var(--indigo); font-weight: 800; display: grid; place-items: center; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #B9BFCC; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2rem; }
.foot-logo { width: 134px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.foot h2 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--white); margin-bottom: .9rem; font-stretch: 100%; }
.foot a { display: block; padding: .28rem 0; text-decoration: none; }
.foot a:hover { color: var(--cyan-hi); }
.foot-base { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; }

/* ---------------------------------------------------------------- motion */
/* Content is hidden for the reveal only once the page's script has marked the
   document, so a visitor without the script still sees everything. */
.anim .rise { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.anim .rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .08s; } .rise.d2 { transition-delay: .16s; } .rise.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .rise { opacity: 1; transform: none; transition: none; }
  .ticker div { animation: none; }
  .btn, .card { transition: none; }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 900px) {
  .hero-grid, .split, .job { grid-template-columns: 1fr; }
  .job-card { position: static; }
  .role { flex-direction: column; align-items: flex-start; }
  .film-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-foot .actions { width: 100%; }
  .split.flip > :first-child { order: 0; }
  .hero-art { max-width: 26rem; margin: -1rem auto 0; }
  .g3, .g4, .stats, .stats.three { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.2rem 1.25rem 1.6rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { width: 100%; padding: .7rem 0; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .film-steps span { display: none; }
  /* On a phone the rendered headline is too small to lead the page, so the page's own shows. */
  .home-hero h1.sr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin: .6rem 0 .2rem; }
  .g2, .g3, .g4, .stats, .stats.three, .foot-grid { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photos img:first-child { grid-column: span 2; grid-row: auto; }
  .actions .btn { width: 100%; justify-content: center; }
}
