:root {
  --bg: #06141a;
  --ink: #e9f3f5;
  --muted: #8fb0b8;
  --line: rgb(143 176 184 / 0.2);
  --teal-light: #4cc3d9;
  --red: #c5001a;
  --red-light: #ff4058;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

body {
  margin: 0;
  background: radial-gradient(120% 90% at 70% 40%, #0d2c36 0%, var(--bg) 60%) fixed;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#fluid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  display: block;
}

.no-gl #fluid {
  display: none;
}

/* Keeps the copy readable whatever the fluid is doing behind it. */
.scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 85% at 0% 100%, rgb(4 14 18 / 0.82) 0%, rgb(4 14 18 / 0.4) 50%, transparent 80%),
    linear-gradient(to bottom, rgb(4 14 18 / 0.5), transparent 16%);
}

a {
  color: inherit;
}

/* ------------------------------------------------------------------ header */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: max(env(safe-area-inset-top), 20px) var(--gutter) 0;
  pointer-events: none;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 14px;
  pointer-events: auto;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-light), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="true"] {
  color: var(--ink);
  outline: none;
}

.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.pager {
  position: fixed;
  right: var(--gutter);
  bottom: max(env(safe-area-inset-bottom), 24px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
}

.pager[hidden] {
  display: none;
}

.pager button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(6 20 26 / 0.4);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    opacity 0.2s;
}

.pager button:hover,
.pager button:focus-visible {
  border-color: var(--teal-light);
  outline: none;
}

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

.slide {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 84px var(--gutter) max(env(safe-area-inset-bottom), clamp(32px, 8vh, 80px));
}

.slide-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-shadow: 0 1px 18px rgb(3 10 13 / 0.8);
}

.slide-inner.wide {
  max-width: 780px;
}

.kicker,
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2.statement {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.03;
}

h1 em,
h2 em {
  color: var(--red-light);
}

.lede,
.body {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgb(143 176 184 / 0.35);
  border-radius: 999px;
  background: rgb(6 20 26 / 0.4);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  text-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.button:hover,
.button:focus-visible {
  border-color: var(--teal-light);
  outline: none;
}

.button.primary {
  border-color: transparent;
  background: var(--red);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #de0a26;
  border-color: var(--red-light);
}

.button.big {
  min-height: 56px;
  padding: 0 28px;
  font-size: clamp(16px, 2vw, 20px);
}

.legal {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.items li {
  position: relative;
  padding-top: 16px;
}

.items li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-light), var(--red));
}

.num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-light);
}

.items h3 {
  margin: 8px 0 8px;
  font-size: 21px;
}

.items p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* The stack, top to bottom, with a ∇-coloured spine from business to hardware. */
.stack {
  position: relative;
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.stack::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--teal-light), var(--red));
}

.stack li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.stack span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ------------------------------------------------------------------ deck mode (page.js) */

.deck-on,
.deck-on body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.deck-on body {
  touch-action: none;
}

.deck-on .slide {
  position: fixed;
  inset: 0;
  min-height: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}

.deck-on .slide.active {
  visibility: visible;
  transition-delay: 0s;
}

.deck-on .slide-inner {
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  touch-action: pan-y;
}

.deck-on .slide-inner::-webkit-scrollbar {
  display: none;
}

/* Cards hand over line by line: the old one drifts out, the new one rises in. */
.deck-on .slide-inner > *,
.deck-on .items li {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.deck-on .slide.before .slide-inner > *,
.deck-on .slide.before .items li {
  transform: translateY(-22px);
}

.deck-on .slide.active .slide-inner > *,
.deck-on .slide.active .items li {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease,
    transform 0.9s var(--ease);
}

.deck-on .slide.active .slide-inner > :nth-child(1) {
  transition-delay: 0.2s;
}
.deck-on .slide.active .slide-inner > :nth-child(2) {
  transition-delay: 0.28s;
}
.deck-on .slide.active .slide-inner > :nth-child(3) {
  transition-delay: 0.36s;
}
.deck-on .slide.active .slide-inner > :nth-child(4) {
  transition-delay: 0.44s;
}
.deck-on .slide.active .slide-inner > :nth-child(5) {
  transition-delay: 0.52s;
}
.deck-on .slide.active .items li:nth-child(1) {
  transition-delay: 0.4s;
}
.deck-on .slide.active .items li:nth-child(2) {
  transition-delay: 0.46s;
}
.deck-on .slide.active .items li:nth-child(3) {
  transition-delay: 0.52s;
}
.deck-on .slide.active .items li:nth-child(4) {
  transition-delay: 0.58s;
}
.deck-on .slide.active .items li:nth-child(5) {
  transition-delay: 0.64s;
}
.deck-on .slide.active .items li:nth-child(6) {
  transition-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  .deck-on .slide-inner > *,
  .deck-on .items li,
  .deck-on .slide.before .slide-inner > *,
  .deck-on .slide.before .items li {
    transform: none;
  }
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 1100px) {
  .items {
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .pager {
    position: static;
  }

  .scrim {
    background: linear-gradient(to top, rgb(4 14 18 / 0.88) 0%, rgb(4 14 18 / 0.55) 50%, transparent 75%),
      linear-gradient(to bottom, rgb(4 14 18 / 0.5), transparent 16%);
  }

  .deck-on .slide {
    padding-top: 76px;
  }
}

@media (max-width: 560px) {
  .items {
    gap: 16px 18px;
    margin-top: 24px;
  }

  .items li {
    padding-top: 12px;
  }

  .items h3 {
    margin: 4px 0 4px;
    font-size: 17px;
  }

  .items p {
    font-size: 13px;
    line-height: 1.45;
  }

  .stack li {
    grid-template-columns: 6.5em 1fr;
    gap: 10px;
    padding: 5px 0;
    font-size: 13.5px;
  }
}
