/* ==========================================================================
   minata.dev — Aurora
   One stylesheet, no build step. Served immutable for a year, so any edit
   here has to bump ?v= in index.html AND 404.html (src/index.ts explains why).

   Order: tokens · base · utilities · motion · chrome · hero · sections · 404
   ========================================================================== */

:root {
  /* Brand (BRAND.md). Ember is the only accent; everything else is neutral. */
  --ink: #111214;
  --ink-sunk: #0c0d0f;
  --paper: #f7f7f3;
  --grey: #8d8d85;
  --ember: #e8804a;

  /* Aurora + practice inks. Ember dominates, indigo is the cool counterpart,
     rose is a sliver, teal marks the software practice only. */
  --indigo: #4c4cff;
  --indigo-node: #7b7bff;
  --rose: #d9488f;
  --teal: #2fb8b3;

  --line: rgba(247, 247, 243, 0.12);
  --line-2: rgba(247, 247, 243, 0.22);
  --raise: rgba(247, 247, 243, 0.025);
  --raise-2: rgba(247, 247, 243, 0.05);

  /* One spacing system. Nothing sets a bare margin that these do not derive. */
  --shell: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --gap: clamp(14px, 1.7vw, 22px);
  --section-y: clamp(64px, 7.2vw, 108px);
  --stack: clamp(18px, 2.4vw, 28px);

  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --topbar: 62px;
}

/* --------------------------------------------------------------- base --- */

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

html {
  scroll-behavior: smooth;
  /* Anchored sections must clear the sticky bar. */
  scroll-padding-top: calc(var(--topbar) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
  :root {
    --topbar: 74px;
  }
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------------------------------------------------------- utilities --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.skip-link {
  /* fixed, not absolute: a skip link reached from deep in the page has to land
     in the viewport, not at the top of the document. */
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

/* A separator, not punctuation — it should sit back from the words. */
.dot {
  color: var(--line-2);
  padding-inline: 0.15em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--stack);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}

/* The node is the page's structural device: the same three inks as the orbit,
   so the reader always knows which practice they are standing in. */
.eyebrow__node {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 14px 3px rgba(247, 247, 243, 0.25);
}

.eyebrow__text {
  min-width: 0;
}

.eyebrow::after {
  content: '';
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.eyebrow--games .eyebrow__node {
  background: var(--ember);
  box-shadow: 0 0 14px 3px rgba(232, 128, 74, 0.45);
}

.eyebrow--ai .eyebrow__node {
  background: var(--indigo-node);
  box-shadow: 0 0 14px 3px rgba(123, 123, 255, 0.45);
}

.eyebrow--software .eyebrow__node {
  background: var(--teal);
  box-shadow: 0 0 14px 3px rgba(47, 184, 179, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn--solid {
  background: var(--ember);
  color: #16100b;
}

.btn--solid:hover {
  background: #f29463;
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: var(--raise-2);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--stack);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--grey);
}

.chips--wide {
  margin-top: clamp(28px, 4vw, 44px);
}

.chips--wide span {
  padding: 9px 16px;
  font-size: 13.5px;
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.card__links a:hover {
  border-bottom-color: currentColor;
}

.code {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--raise);
  font-size: 12.5px;
  color: var(--grey);
}

/* ------------------------------------------------------------- motion --- */

@keyframes driftA {
  50% {
    transform: translate(120px, -80px) scale(1.16);
  }
}

@keyframes driftB {
  50% {
    transform: translate(-140px, 70px) scale(0.9);
  }
}

@keyframes driftC {
  50% {
    transform: translate(80px, 110px) scale(1.18);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Four stacked words -> quarter steps. Thirds land between two words. */
@keyframes wordCycle {
  0%,
  20% {
    transform: translateY(0);
  }
  25%,
  45% {
    transform: translateY(-25%);
  }
  50%,
  70% {
    transform: translateY(-50%);
  }
  75%,
  100% {
    transform: translateY(-75%);
  }
}

/* The row holds the content twice, so half of it is one full lap. */
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@keyframes kenburns {
  50% {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

/* Only hidden when the script that reveals it is actually running: with JS off
   the `js` class is never added and everything stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Set while the tab is in the background — a rAF loop is not the only thing
   worth pausing when nobody is watching. */
.is-away *,
.is-away *::before,
.is-away *::after {
  animation-play-state: paused !important;
}

/* ------------------------------------------------------------- chrome --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-stuck {
  background: rgba(17, 18, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--pad);
  min-height: var(--topbar);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.lockup__mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--paper);
}

.wordmark__a {
  color: var(--ember);
}

.lockup__rule {
  width: 1px;
  height: 15px;
  background: var(--line-2);
}

.lockup__sub {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  list-style: none;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--grey);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav__link:hover {
  color: var(--paper);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.topbar__cta {
  flex: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(32px, 4vw, 48px);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.site-footer__legal,
.site-footer__links {
  font-size: 13.5px;
  color: var(--grey);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--paper);
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--topbar) * -1);
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* clip, not hidden: no scroll container, but the blobs stop widening the
     document. Without it scrollWidth runs ~90px past the viewport. */
  overflow: clip;
}

/* Three blurred circles at screen blend cover the whole hero, and the page
   reads as an orange-to-indigo gradient rather than as Ink with an aurora on
   it. The scrim puts the ground back. */
.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 62% 34%, rgba(17, 18, 20, 0.34) 0%, rgba(17, 18, 20, 0.72) 62%, var(--ink) 100%),
    linear-gradient(180deg, rgba(17, 18, 20, 0.5) 0%, rgba(17, 18, 20, 0) 30%);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__blob--ember {
  left: -14%;
  top: -22%;
  width: min(700px, 84vw);
  aspect-ratio: 1;
  background: var(--ember);
  opacity: 0.55;
  filter: blur(100px);
  animation: driftA 20s ease-in-out infinite;
}

.aurora__blob--indigo {
  right: -16%;
  top: 6%;
  width: min(620px, 78vw);
  aspect-ratio: 1;
  background: var(--indigo);
  opacity: 0.5;
  filter: blur(110px);
  animation: driftB 24s ease-in-out infinite;
}

.aurora__blob--rose {
  left: 34%;
  bottom: -38%;
  width: min(600px, 76vw);
  aspect-ratio: 1;
  background: var(--rose);
  opacity: 0.3;
  filter: blur(120px);
  animation: driftC 26s ease-in-out infinite;
}

.aurora__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(247, 247, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 247, 243, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 26%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 38%, #000 26%, transparent 74%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: calc(var(--topbar) + clamp(48px, 8vh, 96px)) var(--pad) clamp(56px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero__copy {
  max-width: 620px;
}

.hero .eyebrow {
  align-items: flex-start;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.hero .eyebrow::after {
  display: none;
}

.hero .eyebrow__node {
  margin-top: 4px;
}

.hero__title {
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__line {
  display: block;
}

.cycle {
  display: block;
  /* 1.15em, not 1em: at 1em the descender of a word like "systems." clips. */
  height: 1.15em;
  overflow: hidden;
}

.cycle__list {
  display: block;
  animation: wordCycle 11s cubic-bezier(0.72, 0, 0.2, 1) infinite;
}

.cycle__word {
  display: block;
  height: 1.15em;
  line-height: 1.15;
  color: var(--ember);
}

.hero__lede {
  margin-top: var(--stack);
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: #cfcfc9;
}

.hero__title + .hero__lede {
  margin-top: clamp(20px, 3vw, 34px);
}

/* --------------------------------------------------------------- orbit -- */

.orbit-figure {
  justify-self: end;
}

.orbit {
  position: relative;
  width: min(400px, 68vw);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit__ring {
  position: absolute;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  will-change: transform;
}

.orbit__ring--1 {
  inset: 0;
  animation: spin 46s linear infinite;
}

.orbit__ring--2 {
  inset: 15%;
  border-color: rgba(247, 247, 243, 0.3);
  animation: spin 30s linear infinite reverse;
}

.orbit__ring--3 {
  inset: 30%;
  border-color: rgba(247, 247, 243, 0.3);
  animation: spin 18s linear infinite;
}

.orbit__node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.orbit__ring--1 .orbit__node {
  left: 50%;
  top: -7px;
  margin-left: -6.5px;
  background: var(--ember);
  box-shadow: 0 0 26px 7px rgba(232, 128, 74, 0.5);
}

.orbit__ring--2 .orbit__node {
  left: 50%;
  bottom: -7px;
  margin-left: -6.5px;
  background: var(--indigo-node);
  box-shadow: 0 0 26px 7px rgba(123, 123, 255, 0.5);
}

.orbit__ring--3 .orbit__node {
  top: 50%;
  right: -7px;
  margin-top: -6.5px;
  background: var(--teal);
  box-shadow: 0 0 26px 7px rgba(47, 184, 179, 0.5);
}

/* The avatar from BRAND.md, at the centre of the three practices. */
.orbit__core {
  position: absolute;
  inset: 42.5%;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--ember);
  color: #fff;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: 0.04em;
}

/* Labels sit outside the rings, as a key — on the rings they collide with the
   nodes at some viewports, because the rings scale and the type does not. */
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: clamp(18px, 2.6vw, 28px);
  list-style: none;
  padding: 0;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend__item--games .legend__dot {
  background: var(--ember);
}

.legend__item--ai .legend__dot {
  background: var(--indigo-node);
}

.legend__item--software .legend__dot {
  background: var(--teal);
}

/* -------------------------------------------------------------- ticker -- */

.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 15, 0.5);
  overflow: hidden;
}

.ticker__row {
  display: flex;
  width: max-content;
  animation: slide 52s linear infinite;
}

.ticker__half {
  display: flex;
  list-style: none;
  padding: 0;
}

.ticker__half li {
  padding-inline: 26px;
  line-height: 50px;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.ticker:hover .ticker__row {
  animation-play-state: paused;
}

/* ------------------------------------------------------------ sections -- */

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow-x: clip;
}

/* An echo of the hero aurora, one blob per practice, so the page keeps its
   atmosphere without repeating the whole effect six times. */
.section::before {
  content: '';
  position: absolute;
  top: 4%;
  right: -6%;
  width: min(640px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

#veyrasol::before,
#games::before {
  background: var(--ember);
}

#ai::before {
  background: var(--indigo);
  left: -8%;
  right: auto;
}

#software::before {
  background: var(--teal);
}

#studio::before,
#contact::before {
  background: var(--ember);
  opacity: 0.09;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* At 1440 a 18ch title and a 62ch lede stacked in one column left half the
   page empty. Pairing them fills the measure and reads as a spread. */
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(28px, 4vw, 64px);
}

.section__head .eyebrow {
  grid-column: 1 / -1;
}

@media (min-width: 940px) {
  .section__head {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
  }

  .section__head .section__lede {
    margin-top: 0;
    padding-bottom: 0.5em;
  }
}

.group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px clamp(28px, 4vw, 64px);
}

@media (min-width: 940px) {
  .group__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: end;
  }

  .group__head .group__lede {
    margin-top: 0;
  }
}

.section__title {
  max-width: 20ch;
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.section__lede {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 62ch;
  color: #c6c6c0;
}

.group {
  margin-top: clamp(44px, 6vw, 76px);
}

.group__title {
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
}

.group__lede {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 15.5px;
  color: var(--grey);
}

/* ----------------------------------------------------------- flagship --- */

.section--flagship {
  padding-top: 0;
}

.band {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 34vw, 420px);
  border-bottom: 1px solid var(--line);
}

.band__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: kenburns 34s ease-in-out infinite;
  will-change: transform;
}

/* Hands the art off to the page instead of ending on a hard edge. */
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.5) 0%, rgba(17, 18, 20, 0) 42%, var(--ink) 100%);
}

.section--flagship > .shell {
  padding-top: clamp(40px, 6vw, 72px);
}

.flagship__wordmark {
  margin-top: 4px;
}

.flagship__wordmark img {
  width: clamp(240px, 34vw, 420px);
  height: auto;
  display: block;
}

.flagship__line {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 34ch;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.flagship__grid {
  margin-top: clamp(34px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.facts {
  border-top: 1px solid var(--line);
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr);
  gap: 10px 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.8;
}

.facts dd {
  font-size: 15.5px;
  font-weight: 500;
}

.countdown {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raise);
}

.countdown__label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.countdown__value {
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown__value time {
  font-size: clamp(19px, 2.1vw, 26px);
}

.countdown__unit {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  padding-right: 0.5em;
}

.countdown__foot {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--grey);
}

.traditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(34px, 5vw, 58px);
  list-style: none;
  padding: 0;
}

.tradition {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.tradition img {
  width: clamp(74px, 9vw, 108px);
  height: auto;
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.35s var(--ease);
}

.tradition__name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tradition__role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.tradition--vanguard:hover {
  border-color: rgba(229, 84, 74, 0.55);
}

.tradition--vanguard:hover img {
  filter: drop-shadow(0 0 22px rgba(229, 84, 74, 0.55));
}

.tradition--aegis:hover {
  border-color: rgba(84, 194, 236, 0.55);
}

.tradition--aegis:hover img {
  filter: drop-shadow(0 0 22px rgba(84, 194, 236, 0.55));
}

.tradition--concord:hover {
  border-color: rgba(232, 193, 90, 0.55);
}

.tradition--concord:hover img {
  filter: drop-shadow(0 0 22px rgba(232, 193, 90, 0.55));
}

/* ------------------------------------------------------------ marquee --- */

.marquee {
  overflow: hidden;
  margin-top: clamp(38px, 5vw, 64px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__row {
  display: flex;
  width: max-content;
  animation: slide 68s linear infinite;
}

/* Both halves must measure the same, gap included, or -50% drifts. */
.marquee__half {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.marquee__half li {
  width: clamp(258px, 30vw, 430px);
}

.marquee__half img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.marquee:hover .marquee__row {
  animation-play-state: paused;
}

.marquee__caption {
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* -------------------------------------------------------------- cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(24px, 3vw, 34px);
  list-style: none;
  padding: 0;
}

.card {
  padding: 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raise);
  transform: perspective(760px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    transform 0.35s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--line-2);
  background: var(--raise-2);
}

.card__plate {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-sunk);
}

.card__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__plate-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.card:hover .card__plate-alt,
.card:focus-within .card__plate-alt {
  opacity: 1;
}

/* No screenshot exists for these — a mark, never an invented screen. */
.card__plate--mark {
  display: grid;
  place-items: center;
  background-image: radial-gradient(rgba(247, 247, 243, 0.085) 1px, transparent 1px);
  background-size: 15px 15px;
}

.card__mono {
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(247, 247, 243, 0.17);
}

.card__plate--mark .card__icon {
  width: 46%;
  height: auto;
  border-radius: 22%;
  object-fit: contain;
}

.card__name {
  margin-top: 14px;
  padding-inline: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card__line {
  margin-top: 6px;
  padding-inline: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

.card__chip {
  margin-top: 10px;
  margin-inline: 4px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--grey);
}

.card .card__links {
  padding-inline: 4px;
  font-size: 13px;
}

/* --------------------------------------------------------------- ai ----- */

.feature {
  margin-top: clamp(34px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.feature__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.feature__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.feature__title {
  margin-top: 14px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.bullets {
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 20px;
  padding-block: 6px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #c6c6c0;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-node);
}

.compare {
  margin: 0;
}

.compare__stage {
  --pos: 52%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}

.compare__img {
  width: 100%;
  height: auto;
  display: block;
}

.compare__clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare__clip .compare__img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--ember);
  pointer-events: none;
}

.compare__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 2px solid var(--ember);
  border-radius: 50%;
  background: rgba(17, 18, 20, 0.7);
  backdrop-filter: blur(4px);
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: none;
}

.compare__stage:has(.compare__range:focus-visible) {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.compare__tag {
  position: absolute;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.78);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.compare__tag--a {
  left: 12px;
}

.compare__tag--b {
  right: 12px;
}

.compare figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--grey);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: clamp(34px, 5vw, 58px);
  list-style: none;
  padding: 0;
}

.tile {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raise);
}

.tile__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tile p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey);
}

/* ---------------------------------------------------------- software --- */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--gap);
  margin-top: clamp(34px, 5vw, 58px);
  list-style: none;
  padding: 0;
}

.case {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raise);
  transition: border-color 0.3s var(--ease);
}

.case:hover {
  border-color: var(--line-2);
}

.case__name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

.case__metric {
  margin-top: 14px;
}

.counter {
  display: block;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.case__unit {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--grey);
  max-width: 34ch;
}

.case__line {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #c6c6c0;
}

.aside {
  margin-top: clamp(28px, 3.6vw, 40px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--grey);
}

.aside strong {
  color: var(--paper);
  font-weight: 600;
}

.aside a {
  color: var(--ember);
  text-decoration: none;
}

.aside a:hover {
  text-decoration: underline;
}

.capabilities {
  margin-top: clamp(34px, 4.4vw, 52px);
  border-top: 1px solid var(--line);
}

.capabilities__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) minmax(0, 1fr);
  gap: 6px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.capabilities dt {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.9;
}

.capabilities dd {
  font-size: 15.5px;
}

/* ------------------------------------------------------------ studio --- */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* The imprint runs long; without this the headline column is empty for most
   of the section. */
@media (min-width: 1001px) {
  .studio__head {
    position: sticky;
    top: calc(var(--topbar) + 40px);
  }
}

.studio__body p + p {
  margin-top: 16px;
}

.studio__body p {
  color: #c6c6c0;
}

.studio__body strong {
  color: var(--paper);
  font-weight: 600;
}

/* Imprint, not a card: hairlines only, so it reads as a record rather than as
   another thing being sold. */
.company {
  margin-top: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid var(--line);
}

.company__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 24px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .company__row {
    grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  }
}

.company dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.9;
}

.company dd {
  font-size: 14.5px;
  color: var(--paper);
}

/* ----------------------------------------------------------- contact --- */

.section--contact {
  text-align: center;
}

.section--contact .eyebrow {
  justify-content: center;
}

.section--contact .eyebrow::after,
.section--contact .eyebrow::before {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 160px;
}

.section--contact .eyebrow::before {
  background: linear-gradient(270deg, var(--line), transparent);
}

.contact__title {
  margin-inline: auto;
  max-width: 16ch;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section--contact .section__lede {
  margin-inline: auto;
}

.section--contact .actions {
  justify-content: center;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.contact__aside {
  margin-top: 26px;
  font-size: 14px;
  color: var(--grey);
}

.contact__aside a {
  color: var(--ember);
  text-decoration: none;
}

.contact__aside a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- 404 --- */

.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.lost__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  z-index: -2;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 10%, transparent 72%);
}

.lost {
  padding: var(--pad);
  max-width: 620px;
}

.lockup--stacked {
  flex-direction: column;
  gap: 6px;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.lockup--stacked .lockup__mark {
  font-size: clamp(24px, 4vw, 30px);
}

.lockup--stacked .lockup__sub {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.lost__title {
  font-size: clamp(30px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.lost__line {
  margin-top: 16px;
  color: var(--grey);
}

.lost .actions {
  justify-content: center;
}

@media (max-width: 700px) {
  .aurora__blob--ember {
    left: -30%;
    top: -8%;
    width: 130vw;
  }

  .aurora__blob--indigo {
    right: -34%;
    top: 22%;
    width: 120vw;
  }

  .aurora__blob--rose {
    left: -10%;
    bottom: -14%;
    width: 110vw;
  }

  .aurora::after {
    background:
      radial-gradient(ellipse at 50% 40%, rgba(17, 18, 20, 0.3) 0%, rgba(17, 18, 20, 0.66) 66%, var(--ink) 100%),
      linear-gradient(180deg, rgba(17, 18, 20, 0.55) 0%, rgba(17, 18, 20, 0) 26%);
  }
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .orbit-figure {
    justify-self: center;
    order: 2;
  }

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

  .compare__stage {
    order: -1;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
    padding-bottom: 4px;
  }

  .lockup__rule,
  .lockup__sub,
  .nav__more {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav__list {
    justify-content: space-between;
    gap: 4px;
  }

  @media (min-width: 560px) {
    .nav__list {
      justify-content: flex-start;
      gap: clamp(18px, 3.6vw, 34px);
    }

    .nav__link {
      font-size: 13px;
      letter-spacing: 0.02em;
    }
  }

  .nav__link {
    min-height: 40px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
  }

  .nav__link::after {
    bottom: 8px;
  }

  .topbar__cta {
    margin-left: auto;
  }

  :root {
    --topbar: 100px;
  }
}

@media (min-width: 660px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .traditions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tradition {
    padding: 14px 6px;
  }

  .tradition__role {
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .card__line {
    font-size: 13px;
  }
}

/* ---------------------------------------------------- reduced motion --- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .cycle__list,
  .ticker__row,
  .marquee__row {
    transform: none;
  }

  /* The strips still hold real content, so make them readable by hand and
     drop the duplicate half that only exists to make the loop seamless. */
  .ticker,
  .marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  /* The edge fade exists to hide the loop seam. Once the strip is scrolled by
     hand it just clips the first item. */
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker__half[aria-hidden],
  .marquee__half[aria-hidden] {
    display: none;
  }

  .card {
    transform: none;
  }
}
