/* =============================================================
   roost. — a small server in the clouds
   -------------------------------------------------------------
   The hero keeps the original 1700.406-unit composition (white
   panel, glass bar, open sky) but lays it out with a real grid.
   One unit (--u) scales with the viewport width and is capped so
   900 units always fit the viewport height: the hero is exactly
   one screen tall at every desktop size, with nothing clipped.
   Below 960px wide, or on portrait screens, it stacks.
   ============================================================= */

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #000e23;
  --stage: #000c1e;
  --sky: #2372ae;
  --paper: #fff;
  --mist: rgba(224, 224, 224, 0.3);
  --line: rgba(0, 14, 35, 0.12);
  --muted: #4a4a4a;
  --ok: #1fa971;
  --warn: #e0a43a;
  --down: #e5484d;
  --idle: #9aa4b2;

  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --shift: 22px;
  --radius: 4px;

  --u: min(calc(100vw / 1700.406), calc(100svh / 900)); /* hero unit */
  --uw: calc(100vw / 1700.406); /* width-only unit for the sections */
  --edge: max(12px, calc(18.187 * var(--u))); /* outer gutter, shared by every section */
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: #fff;
  background: var(--sky);
}

img,
svg,
video {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 11px 14px;
  border-radius: 2px;
  color: #fff;
  background: var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}

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

/* =============================================================
   HERO — split layout (desktop and landscape tablets)
   ============================================================= */
.hero {
  --pad: var(--edge);
  --nav-h: max(50px, calc(72.745 * var(--u)));
  --fs-nav: max(13px, calc(14.268 * var(--u)));
  --fs-label: max(11px, calc(14.145 * var(--u)));
  --fs-body: max(14.5px, calc(16.165 * var(--u)));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 821.409fr) minmax(0, 832.522fr);
  grid-template-rows: var(--nav-h) minmax(0, 1fr);
  column-gap: calc(10.103 * var(--u));
  row-gap: max(6px, calc(9.094 * var(--u)));
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  padding: var(--pad);
  overflow: hidden;
}

/* The opaque, atmosphere-only plate: always covers, never seams. */
.sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--sky);
}

.sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}

/* The computer plate (still + live video). Sized off the hero itself so it
   always overruns the top, bottom and right edges: the computer sits over the
   centre of the sky column, and the plate's own edge never shows. */
.stage {
  position: relative;
  z-index: -1;
  grid-area: 1 / 1 / -1 / -1;
  margin: calc(-1 * var(--pad));
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}

.stage__plate {
  --p: max(112cqh, 71cqw);
  position: absolute;
  left: 74.45cqw;
  top: calc(48cqh - 0.455 * var(--p));
  width: var(--p);
  height: var(--p);
  max-width: none;
  object-fit: cover;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0 16%, #000 32%);
  mask-image: linear-gradient(to right, transparent 0 16%, #000 32%);
}

/* Revealed only once play() has resolved, so blocked autoplay, a failed load
   or reduced motion all leave the identical still showing. */
.stage__plate--live {
  opacity: 0;
  transition: opacity 700ms ease;
}

.stage__plate--live[data-playing] {
  opacity: 1;
}

/* ---------- Bars ---------- */
.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: var(--radius);
}

.bar--brand {
  grid-area: 1 / 1;
  background: var(--paper);
}

.brand {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: calc(14.145 * var(--u)) calc(24.913 * var(--u));
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: max(30px, calc(42.434 * var(--u)));
  height: max(30px, calc(42.434 * var(--u)));
}

.brand__word {
  font: 500 max(17px, calc(23 * var(--u)))/1 var(--mono);
  letter-spacing: -0.05em;
}

.brand__dot {
  color: var(--sky);
}

.bar--nav {
  grid-area: 1 / 2;
  padding-inline: calc(27.277 * var(--u)) calc(10.772 * var(--u));
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(19.55px);
  backdrop-filter: blur(19.55px);
}

.nav-toggle {
  display: none;
}

/* Wide screens: the drawer wrapper is not in the box tree at all. */
.nav-drawer {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: calc(63.652 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  font: 700 var(--fs-nav)/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-width: calc(136.734 * var(--u));
  height: max(38px, calc(53.158 * var(--u)));
  margin-left: auto;
  padding-inline: 1.1em;
  border-radius: 2px;
  color: #252525;
  background: #fff;
  font: 700 var(--fs-nav)/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.86);
}

.nav-cta svg {
  width: 1em;
  height: 1em;
}

/* ---------- Panel ---------- */
.panel {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding-bottom: calc(22.232 * var(--u));
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.panel__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-inline: 24px;
}

/* The original's two flexible gaps, in their authored 193.987 : 203.081
   ratio: free height goes above the dots and below the button. */
.panel__copy::before,
.panel__copy::after {
  content: "";
  flex: 193.987 1 0;
}

.panel__copy::after {
  flex-grow: 203.081;
}

.dots {
  display: flex;
  gap: max(5px, calc(8.081 * var(--u)));
}

.dots i {
  width: max(7px, calc(10.103 * var(--u)));
  aspect-ratio: 1;
  background: var(--ink);
}

/* Two overlaid nodes: the mono block reserves an empty middle line and the
   Playfair italic is positioned into it. */
.display {
  --size: calc(65.512 * var(--u));
  position: relative;
  width: 100%;
  margin: calc(53.543 * var(--u)) 0 0;
  font: 400 var(--size)/1.1 var(--mono);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.display span {
  display: block;
}

.display span:last-child {
  margin-top: calc(var(--size) * 1.1);
}

.display em {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: var(--size);
  font: italic 400 calc(var(--size) * 1.1228)/0.95 var(--serif);
  letter-spacing: -0.06em;
  text-transform: none;
}

.lede {
  width: min(100%, max(300px, calc(342.506 * var(--u))));
  margin: calc(32.357 * var(--u)) 0 0;
  font-size: var(--fs-body);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.button {
  display: inline-grid;
  place-items: center;
  min-width: max(176px, calc(198.683 * var(--u)));
  height: max(46px, calc(56.579 * var(--u)));
  margin-top: max(20px, calc(44.86 * var(--u)));
  padding-inline: 1.4em;
  border-radius: 2px;
  color: #fff;
  background: var(--ink);
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.button:hover {
  background: var(--sky);
}

.panel__foot {
  position: relative;
  width: 100%;
  padding-top: calc(38.394 * var(--u));
}

.panel__foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  height: 1px;
  background: var(--line);
}

.label {
  margin: 0;
  color: var(--muted);
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* A seamless marquee: two identical groups, the track moves by exactly one. */
.rail {
  width: min(calc(100% - 48px), max(320px, calc(612.268 * var(--u))));
  margin: max(12px, calc(26 * var(--u))) auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.rail__track {
  display: flex;
  width: max-content;
  animation: rail var(--rail-duration, 36s) linear infinite;
}

.rail:hover .rail__track {
  animation-play-state: paused;
}

.rail__group {
  display: flex;
  align-items: center;
}

.rail__item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  color: rgba(0, 14, 35, 0.42);
  font: 500 max(11px, calc(13 * var(--u)))/2 var(--mono);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rail__item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  opacity: 0.55;
}

@keyframes rail {
  to {
    translate: -50% 0;
  }
}

/* ---------- Live status card ---------- */
.status-card {
  position: relative;
  z-index: 1;
  grid-area: 2 / 2;
  align-self: end;
  justify-self: start;
  display: flex;
  flex-direction: column;
  width: max(250px, calc(312.196 * var(--u)));
  min-height: max(200px, calc(265.72 * var(--u)));
  margin: 0 0 calc(12.116 * var(--u)) calc(20.207 * var(--u));
  padding: max(14px, calc(19.196 * var(--u)));
  border-radius: 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(31.169px);
  backdrop-filter: blur(31.169px);
}

.status-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live 2.4s ease-in-out infinite;
}

.diamonds {
  --cell: max(12px, calc(15.474 * var(--u)));
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), var(--cell));
  grid-auto-rows: var(--cell);
  gap: max(3px, calc(4.253 * var(--u)));
}

/* One diamond per service: filled = answering, outline = down,
   faint = not checked, blinking = checking. */
.diamonds i {
  width: 70.7%;
  aspect-ratio: 1;
  place-self: center;
  rotate: 45deg;
  border: 1px solid #fff;
  border-radius: 1px;
  background: transparent;
  opacity: 0.45;
  transition: background-color 0.4s ease, opacity 0.4s ease, scale 0.4s var(--ease);
}

.diamonds i[data-state="up"],
.diamonds i[data-state="slow"] {
  background: #fff;
  opacity: 1;
}

.diamonds i[data-state="down"] {
  opacity: 1;
}

.diamonds i[data-state="checking"] {
  opacity: 1;
  animation: blink 1.2s ease-in-out infinite;
}

.diamonds i[data-active] {
  scale: 1.4;
}

.status-card__text {
  margin-top: auto;
  padding-top: 18px;
}

.status-card__title {
  margin: 0;
  font: 400 max(16px, calc(20.207 * var(--u)))/1.1 var(--mono);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.status-card__copy {
  min-height: 2.6em;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: max(13px, calc(15.155 * var(--u)));
  line-height: 1.3;
}

.carousel {
  position: relative;
  z-index: 1;
  grid-area: 2 / 2;
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 2px;
  margin: 0 calc(11.115 * var(--u)) calc(12.116 * var(--u)) 0;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: max(40px, calc(50.517 * var(--u)));
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(31.169px);
  backdrop-filter: blur(31.169px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.34);
}

.carousel__btn svg {
  width: max(14px, calc(16.165 * var(--u)));
  height: max(14px, calc(16.165 * var(--u)));
}

.carousel__btn[data-step="-1"] svg {
  rotate: 180deg;
}

.carousel__btn:focus-visible,
.button:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

/* =============================================================
   SECTIONS
   ============================================================= */
.section,
.contact {
  padding: max(20px, calc(35.25 * var(--uw))) var(--edge) clamp(80px, 9vw, 150px);
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(2px, calc(9.2 * var(--uw)));
  color: var(--muted);
  font: 500 max(11px, calc(14.145 * var(--uw)))/1 var(--mono);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.kicker i {
  width: max(8px, calc(10.103 * var(--uw)));
  aspect-ratio: 1;
  background: var(--ink);
  opacity: 0.3;
}

.rule {
  height: 1px;
  margin: max(18px, calc(33.6 * var(--uw))) calc(-1 * var(--edge)) 0;
  background: rgba(0, 14, 35, 0.13);
}

.heading {
  margin: clamp(48px, calc(109.4 * var(--uw)), 124px) auto 0;
  font: 400 clamp(28px, calc(44.748 * var(--uw)), 62px)/1.1 var(--mono);
  letter-spacing: -0.06em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.heading em {
  font: italic 400 1.12em/1 var(--serif);
  letter-spacing: -0.04em;
  text-transform: none;
}

.section-lede {
  max-width: 48ch;
  margin: 22px auto 0;
  color: rgba(0, 14, 35, 0.6);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Services ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: clamp(40px, 4.4vw, 72px) 0 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: 500 12px/1 var(--mono);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: rgba(0, 14, 35, 0.34);
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.chip__count {
  opacity: 0.5;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 300px);
  color: rgba(0, 14, 35, 0.45);
}

.search svg {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 38px 0 35px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
  font: 400 13px/1 var(--mono);
  letter-spacing: -0.01em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.search input::placeholder {
  color: rgba(0, 14, 35, 0.4);
}

.search input:focus {
  border-color: var(--sky);
  outline: none;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search kbd {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 500 11px/1 var(--mono);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 22px 22px 18px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--mist);
  text-decoration: none;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* The original cards' faint technical grid, drawn in CSS and inset 7px. */
.service::before,
.story__art::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 2px;
  background-image:
    linear-gradient(rgba(0, 14, 35, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 14, 35, 0.07) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 80%);
  mask-image: linear-gradient(160deg, #000 10%, transparent 80%);
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

a.service:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 14, 35, 0.1), 0 22px 44px -28px rgba(0, 14, 35, 0.45);
}

a.service:hover::before {
  opacity: 1;
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  transition: background 0.35s ease;
}

.service__icon svg {
  width: 22px;
  height: 22px;
}

a.service:hover .service__icon {
  background: var(--sky);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  color: rgba(0, 14, 35, 0.74);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(0, 14, 35, 0.06);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--idle);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.service[data-state="up"] .pill::before {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 169, 113, 0.18);
}

.service[data-state="slow"] .pill::before {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(224, 164, 58, 0.2);
}

.service[data-state="down"] .pill::before {
  background: var(--down);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18);
}

.service[data-state="checking"] .pill::before {
  animation: blink 1.1s ease-in-out infinite;
}

.service__body {
  margin-top: auto;
  padding-top: 34px;
}

.service__meta {
  margin: 0;
  color: rgba(0, 14, 35, 0.5);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service__name {
  margin: 10px 0 0;
  font: 400 clamp(22px, 1.7vw, 28px)/1.05 var(--mono);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.service__desc {
  max-width: 36ch;
  margin: 10px 0 0;
  color: rgba(0, 14, 35, 0.62);
  font-size: 15px;
  line-height: 1.45;
}

.service__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 500 12px/1 var(--mono);
  letter-spacing: -0.01em;
}

.service__host {
  min-width: 0;
  overflow: hidden;
  color: rgba(0, 14, 35, 0.55);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service__go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.service__go svg {
  width: 14px;
  height: 14px;
  transition: translate 0.35s var(--ease);
}

a.service:hover .service__go svg {
  translate: 2px -2px;
}

a.service:focus-visible {
  outline-offset: 2px;
}

.service[hidden] {
  display: none;
}

.empty {
  margin: 48px 0 0;
  color: rgba(0, 14, 35, 0.55);
  font: 500 13px/1.4 var(--mono);
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Machine ---------- */
.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 4.4vw, 72px);
}

.story {
  margin: 0;
}

.story__art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 821 / 538;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.story__art img {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 76%;
  height: auto;
  translate: -50% -50%;
}

.story figcaption {
  padding: 20px 4px 0;
}

.story h3 {
  margin: 0;
  font: 400 clamp(19px, 1.45vw, 24px)/1.1 var(--mono);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.story p {
  max-width: 42ch;
  margin: 9px 0 0;
  color: rgba(0, 14, 35, 0.6);
  font-size: 15.5px;
  line-height: 1.5;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 6.4vw, 104px) 0 0;
  border-top: 1px solid var(--line);
}

.spec {
  padding: 20px 18px 22px;
  border-bottom: 1px solid var(--line);
}

.spec:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
}

.spec dt {
  color: rgba(0, 14, 35, 0.5);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.spec dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font: 400 clamp(17px, 1.35vw, 22px)/1.15 var(--mono);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.spec--live dd::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: blink 2.4s ease-in-out infinite;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  color: #fff;
  background: var(--stage);
}

.contact .kicker {
  color: rgba(255, 255, 255, 0.6);
}

.contact .kicker i {
  background: #fff;
  opacity: 0.35;
}

.contact .rule {
  background: rgba(255, 255, 255, 0.14);
}

.contact .section-lede {
  color: rgba(255, 255, 255, 0.6);
}

.contact :focus-visible {
  outline-color: #fff;
}

.contact-list {
  max-width: 1040px;
  margin: clamp(44px, 5vw, 80px) auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list a {
  display: grid;
  grid-template-columns: minmax(84px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: background 0.35s ease, padding 0.45s var(--ease);
}

.contact-list a:hover {
  padding-inline: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-list__label {
  color: rgba(255, 255, 255, 0.5);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-list__value {
  font: 400 clamp(18px, 2.2vw, 34px)/1.1 var(--mono);
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  opacity: 0.55;
  transition: translate 0.35s var(--ease), opacity 0.35s ease;
}

.contact-list a:hover svg {
  opacity: 1;
  translate: 3px -3px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(72px, 8vw, 128px);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer-bar a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-bar a:hover {
  color: #fff;
}

.giant {
  margin: 0 0 -0.07em;
  color: rgba(255, 255, 255, 0.055);
  font: 500 clamp(84px, 23vw, 440px)/0.8 var(--mono);
  letter-spacing: -0.08em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* =============================================================
   MOTION — scoped under .motion-ready (set by the head script)
   The cloud artwork is the static stage and never animates in.
   ============================================================= */
@keyframes wipe-right {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0);
  }
}

@keyframes wipe-down {
  from {
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(0);
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    translate: 0 -12px;
  }

  to {
    opacity: 1;
    translate: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 var(--shift);
  }

  to {
    opacity: 1;
    translate: none;
  }
}

@keyframes type-in {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    translate: 0 62%;
  }

  to {
    opacity: 1;
    clip-path: inset(0);
    translate: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    translate: 0 16px;
    scale: 0.975;
  }

  to {
    opacity: 1;
    translate: none;
    scale: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    translate: 0 var(--shift);
    scale: 0.985;
  }

  to {
    opacity: 1;
    translate: none;
    scale: none;
  }
}

@keyframes rule-in {
  from {
    opacity: 0;
    scale: 0 1;
  }

  to {
    opacity: 1;
    scale: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

@keyframes live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }

  60% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
}

/* Fill mode is `backwards`, not `both`: every animation ends on the element's
   natural style, and a lingering clip-path: inset(0) would keep clipping the
   nav drawer and the italic's descenders. */
.motion-ready .bar--brand {
  animation: wipe-right 680ms var(--ease) 40ms backwards;
}

.motion-ready .bar--nav {
  animation: wipe-right 760ms var(--ease) 110ms backwards;
}

.motion-ready .panel {
  animation: wipe-down 920ms var(--ease-soft) 230ms backwards;
}

.motion-ready .brand {
  animation: drop-in 560ms var(--ease) 150ms backwards;
}

.motion-ready .nav-links,
.motion-ready .nav-toggle {
  animation: drop-in 560ms var(--ease) 240ms backwards;
}

.motion-ready .nav-cta {
  animation: drop-in 560ms var(--ease) 310ms backwards;
}

.motion-ready .dots {
  animation: rise 460ms var(--ease) 430ms backwards;
}

.motion-ready .display span:first-child {
  animation: type-in 780ms var(--ease-soft) 500ms backwards;
}

.motion-ready .display em {
  animation: type-in 780ms var(--ease-soft) 610ms backwards;
}

.motion-ready .display span:last-child {
  animation: type-in 780ms var(--ease-soft) 720ms backwards;
}

.motion-ready .lede {
  animation: rise 620ms var(--ease) 940ms backwards;
}

.motion-ready .button {
  animation: pop 600ms var(--ease) 1080ms backwards;
}

.motion-ready .panel__foot::before {
  transform-origin: left center;
  animation: rule-in 760ms var(--ease) 1100ms backwards;
}

.motion-ready .status-card {
  transform-origin: center bottom;
  animation: float-in 820ms var(--ease-soft) 1160ms backwards;
}

.motion-ready .label,
.motion-ready .rail {
  animation: rise 620ms var(--ease) 1200ms backwards;
}

.motion-ready .carousel {
  animation: rise 560ms var(--ease) 1380ms backwards;
}

/* Below the fold: each block rises in once as it enters the viewport. */
.motion-ready [data-reveal] {
  transition:
    opacity 0.8s var(--ease) calc(var(--i, 0) * 70ms),
    translate 1s var(--ease-soft) calc(var(--i, 0) * 70ms),
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.motion-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  translate: 0 var(--shift);
}

.motion-ready .rule[data-reveal] {
  transform-origin: left center;
  transition: opacity 0.8s var(--ease), scale 1s var(--ease-soft);
}

.motion-ready .rule[data-reveal]:not(.is-in) {
  translate: none;
  scale: 0 1;
}

/* =============================================================
   STACKED — narrow or portrait screens
   ============================================================= */
@media (max-width: 959px), (max-aspect-ratio: 4/5) {
  :root {
    --edge: clamp(10px, 2.6vw, 20px);
  }

  .hero {
    --u: 0.8px;
    --nav-h: 56px;
    --fs-nav: 15px;
    --fs-label: 12px;
    --fs-body: 15px;
    --band: clamp(200px, 28svh, 380px);
    grid-template-columns: minmax(0, 1fr) var(--nav-h);
    grid-template-rows: var(--nav-h) auto minmax(var(--band), 1fr);
    gap: 8px;
    height: auto;
    min-height: 100svh;
  }

  .brand {
    padding-inline: 12px 18px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__word {
    font-size: 19px;
  }

  .bar--nav {
    z-index: 5;
    justify-content: center;
    padding: 0;
  }

  /* .nav-drawer is its own panel here, opening under the square button. */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle__bars {
    display: grid;
    gap: 4.5px;
    width: 20px;
  }

  .nav-toggle__bars i {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 180ms ease, opacity 120ms ease;
  }

  [data-nav-open="true"] .nav-toggle__bars i:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  [data-nav-open="true"] .nav-toggle__bars i:nth-child(2) {
    opacity: 0;
  }

  [data-nav-open="true"] .nav-toggle__bars i:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-drawer {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 12;
    display: grid;
    gap: 12px;
    width: min(300px, calc(100vw - 2 * var(--pad)));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    /* Nearly opaque: nested inside the glass button, its own backdrop blur
       has nothing to sample, so translucency would show the headline. */
    background: rgba(0, 12, 30, 0.97);
    box-shadow: 0 24px 48px -24px rgba(0, 12, 30, 0.6);
    opacity: 0;
    visibility: hidden;
    translate: 0 -6px;
    transition: opacity 180ms ease, translate 180ms ease, visibility 0s linear 180ms;
  }

  [data-nav-open="true"] .nav-drawer {
    opacity: 1;
    visibility: visible;
    translate: none;
    transition-delay: 0s;
  }

  .nav-links {
    display: grid;
    gap: 2px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 10px;
    border-radius: 2px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
  }

  .panel {
    grid-area: 2 / 1 / 3 / -1;
    padding: 28px 0 20px;
  }

  .panel__copy::before,
  .panel__copy::after {
    display: none;
  }

  .display {
    --size: clamp(30px, min(9.2vw, 6.4svh), 58px);
    max-width: none;
    margin-top: 22px;
  }

  .lede {
    width: min(100%, 38ch);
    margin-top: 16px;
    line-height: 1.45;
  }

  .button {
    min-width: 190px;
    height: 48px;
    margin-top: 24px;
  }

  .panel__foot {
    margin-top: 28px;
    padding-top: 20px;
  }

  .rail {
    width: calc(100% - 32px);
    margin-top: 12px;
  }

  /* Stacked, the computer lives in the band under the panel; its top edge
     feathers into the atmosphere instead of meeting it. */
  .stage {
    grid-area: 3 / 1 / 4 / -1;
    margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad));
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
    mask-image: linear-gradient(to bottom, transparent, #000 14%);
  }

  .stage__plate {
    --p: max(110cqw, 120cqh);
    left: 50cqw;
    top: calc(36cqh - 0.455 * var(--p));
    -webkit-mask-image: none;
    mask-image: none;
  }

  .status-card {
    grid-area: 3 / 1 / 4 / -1;
    width: min(340px, calc(100% - 104px));
    min-height: 0;
    margin: 0;
    padding: 16px;
  }

  .status-card__text {
    padding-top: 20px;
  }

  .carousel {
    grid-area: 3 / 1 / 4 / -1;
    margin: 0;
  }

  .carousel__btn {
    width: 44px;
  }

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

  .stories {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

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

  .spec:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .spec:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

/* Portrait tablets: room for the stories side by side with their text. */
@media (min-width: 700px) and (max-width: 959px), (min-width: 700px) and (max-aspect-ratio: 4/5) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
  }

  .story figcaption {
    padding: 0;
  }
}

@media (max-width: 640px) {
  /* Phones: the computer gets the open sky, and the status card becomes one
     compact glass bar along the bottom with the arrows tucked inside it. */
  .stage__plate {
    --p: max(150cqw, 120cqh);
    top: calc(34cqh - 0.455 * var(--p));
  }

  .status-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    justify-self: stretch;
    width: auto;
    padding: 12px 104px 12px 14px;
  }

  .status-card__top {
    grid-column: 1;
  }

  .live {
    display: none;
  }

  .diamonds {
    --cell: 12px;
    gap: 3px;
  }

  .status-card__text {
    grid-column: 2;
    margin: 0;
    padding: 0;
  }

  .status-card__title {
    font-size: 15px;
  }

  .status-card__copy {
    min-height: 0;
    margin-top: 4px;
    font-size: 13px;
  }

  .carousel {
    margin: 0 8px 8px 0;
  }

  .carousel__btn {
    width: 40px;
  }

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

  .service {
    min-height: 0;
  }

  .service__body {
    padding-top: 26px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .contact-list a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .contact-list__label {
    grid-column: 1 / -1;
  }

  .contact-list__value {
    grid-column: 1;
  }

  .contact-list svg {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (hover: none) {
  .search kbd {
    display: none;
  }

  .search input {
    padding-right: 12px;
  }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-ready *,
  .motion-ready *::before,
  .motion-ready *::after {
    animation: none !important;
  }

  .motion-ready [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    transition: none !important;
  }

  .rail__track,
  .live::before,
  .diamonds i,
  .pill::before,
  .spec--live dd::after {
    animation: none !important;
  }

  .stage__plate--live,
  .nav-drawer,
  .nav-toggle__bars i {
    transition: none;
  }
}
