/* Monolen company page. Inspired by the way launch companies present their work: full screens over the
   sky, black sheets in between, large uppercase headings, square white buttons, and specifications set out as
   label and value. Not a copy of any company's site.

   The sky is the edge of the Earth at dawn (js/earth.js). It shows in two full screens, the opening and the
   closing. Their words sit on a shade that is solid behind the words. Everything between them sits on black.
   Notes on the system are in DESIGN.md, in the project folder.

   The page works in two ways:
   1. Still. No JavaScript is needed. The background is the still sky in .sky-fallback.
   2. Moving. js/main.js adds the class "scene-on" to <html> when the sky can run on the canvas. */

@font-face {
  font-family: "Ysabeau Office";
  src: url("assets/fonts/ysabeau-office.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Colour: white and two greys on black, and one accent used sparingly (focus, the recommended service). */
  --space: #000000;
  --ink: #ffffff;
  --ink-2: #c9c9cc;          /* body text on black: 12.9:1 */
  --ink-3: #a3a3a8;          /* labels on black: 8.2:1 */
  --accent: #ffb69b;         /* the sunlit edge of the planet, taken from the sky */
  --line: rgb(255 255 255 / 0.12);

  /* Boxes: every block of text sits in one, so it stands apart from the black and from the sky. */
  --box: #0e0e11;                        /* a box on black */
  --box-sky: rgb(10 10 13 / 0.86);       /* a box over the sky: 86% dark, so words stay readable over the dawn */
  --box-edge: rgb(255 255 255 / 0.13);
  --box-r: 0.5rem;
  --box-pad: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);

  /* Type: one family. Headings and labels are set in capitals by the CSS; the words in the page stay in
     sentence case, so screen readers and copy and paste get normal text. */
  --font: "Ysabeau Office", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --t-title: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
  --t-spec: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --t-claim: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --t-h3: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --t-lede: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --t-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-label: 0.8125rem;
  --t-btn: 0.875rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --content: 76rem;
  --bar-h: 4.25rem;
  --section: clamp(5.5rem, 14vh, 9rem);

  /* Where the still sky (no WebGL, or ?plain) draws its dawn. */
  --dawn-x: 38.8%;
  --dawn-y: 40.3vh;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (height: 1lvh) {
  :root { --dawn-y: 40.3lvh; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  scrollbar-color: #4d4d52 #000000;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 430;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}

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

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

/* ---- The sky ---- */

.sky {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: #000;
}

/* The still sky, for when the canvas cannot run. It follows the moving one: stars and a faint nebula in the
   upper left, the dawn at the same spot on the edge of the planet, and the dark planet in the lower right. */
.sky-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #000;
  background-image:
    radial-gradient(circle at var(--dawn-x) 40.3%, #fff4e6 0, rgb(255 236 220 / 0.95) 0.5vh, rgb(255 196 168 / 0.6) 1.2vh, rgb(244 136 118 / 0.3) 2.6vh, rgb(190 70 84 / 0.14) 5vh, rgb(190 70 84 / 0) 9vh),
    radial-gradient(ellipse 30vw 19vh at 51% 16%, rgb(66 18 48 / 0.7), rgb(66 18 48 / 0) 72%),
    radial-gradient(ellipse 24vw 15vh at 64% 7%, rgb(44 22 68 / 0.55), rgb(44 22 68 / 0) 72%),
    radial-gradient(ellipse 28vw 24vh at 27% 31%, rgb(42 14 36 / 0.55), rgb(42 14 36 / 0) 72%),
    radial-gradient(ellipse 30vw 28vh at 3% 54%, rgb(9 28 40 / 0.6), rgb(9 28 40 / 0) 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='352' height='352'%3E%3Ccircle cx='137.9' cy='279.7' r='0.61' fill='%23ffd9bf' opacity='0.33'/%3E%3Ccircle cx='99.1' cy='287.1' r='0.54' fill='%23cfe0ff' opacity='0.30'/%3E%3Ccircle cx='108.8' cy='213.4' r='0.70' fill='%23bcd2ff' opacity='0.55'/%3E%3Ccircle cx='243.6' cy='11.6' r='1.10' fill='%23ffffff' opacity='0.98'/%3E%3Ccircle cx='19.3' cy='131.8' r='0.53' fill='%23bcd2ff' opacity='0.50'/%3E%3Ccircle cx='102.9' cy='269.4' r='0.57' fill='%23ffffff' opacity='0.49'/%3E%3Ccircle cx='152.5' cy='232.0' r='0.88' fill='%23ffffff' opacity='0.82'/%3E%3Ccircle cx='302.9' cy='33.0' r='0.36' fill='%23bcd2ff' opacity='0.58'/%3E%3Ccircle cx='326.3' cy='256.1' r='0.44' fill='%23e9d6ff' opacity='0.63'/%3E%3Ccircle cx='86.8' cy='153.7' r='0.46' fill='%23e9d6ff' opacity='0.38'/%3E%3Ccircle cx='212.9' cy='89.0' r='0.37' fill='%23ffffff' opacity='0.50'/%3E%3Ccircle cx='278.6' cy='231.1' r='0.52' fill='%23cfe0ff' opacity='0.43'/%3E%3Ccircle cx='192.8' cy='98.9' r='0.46' fill='%23ffffff' opacity='0.53'/%3E%3Ccircle cx='190.4' cy='348.8' r='0.88' fill='%23ffffff' opacity='0.93'/%3E%3Ccircle cx='231.7' cy='223.5' r='0.56' fill='%23ffffff' opacity='0.40'/%3E%3Ccircle cx='83.2' cy='211.0' r='0.56' fill='%23ffffff' opacity='0.51'/%3E%3Ccircle cx='336.5' cy='63.0' r='0.87' fill='%23bcd2ff' opacity='0.75'/%3E%3Ccircle cx='112.5' cy='272.8' r='0.38' fill='%23ffffff' opacity='0.54'/%3E%3Ccircle cx='254.6' cy='217.0' r='0.54' fill='%23ffffff' opacity='0.56'/%3E%3Ccircle cx='152.9' cy='42.5' r='1.04' fill='%23ffd9bf' opacity='0.98'/%3E%3Ccircle cx='38.7' cy='260.7' r='0.99' fill='%23ffffff' opacity='0.81'/%3E%3Ccircle cx='56.0' cy='81.6' r='0.93' fill='%23ffffff' opacity='0.93'/%3E%3Ccircle cx='18.3' cy='109.7' r='0.66' fill='%23bcd2ff' opacity='0.49'/%3E%3Ccircle cx='336.4' cy='240.6' r='0.51' fill='%23ffffff' opacity='0.51'/%3E%3Ccircle cx='218.6' cy='345.6' r='0.69' fill='%23ffd9bf' opacity='0.40'/%3E%3Ccircle cx='199.9' cy='132.2' r='0.48' fill='%23ffffff' opacity='0.48'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='496' height='496'%3E%3Ccircle cx='77.6' cy='466.6' r='0.51' fill='%23ffffff' opacity='0.50'/%3E%3Ccircle cx='176.2' cy='257.7' r='0.69' fill='%23e9d6ff' opacity='0.38'/%3E%3Ccircle cx='395.1' cy='99.2' r='0.63' fill='%23cfe0ff' opacity='0.56'/%3E%3Ccircle cx='146.5' cy='411.3' r='1.10' fill='%23e9d6ff' opacity='0.87'/%3E%3Ccircle cx='129.4' cy='344.7' r='0.42' fill='%23bcd2ff' opacity='0.35'/%3E%3Ccircle cx='317.0' cy='346.6' r='0.62' fill='%23cfe0ff' opacity='0.34'/%3E%3Ccircle cx='495.8' cy='307.0' r='0.56' fill='%23e9d6ff' opacity='0.51'/%3E%3Ccircle cx='225.8' cy='210.4' r='0.37' fill='%23cfe0ff' opacity='0.36'/%3E%3Ccircle cx='32.2' cy='329.9' r='0.67' fill='%23ffffff' opacity='0.52'/%3E%3Ccircle cx='270.0' cy='377.0' r='0.43' fill='%23e9d6ff' opacity='0.30'/%3E%3Ccircle cx='157.0' cy='49.2' r='0.53' fill='%23ffd9bf' opacity='0.39'/%3E%3Ccircle cx='229.1' cy='179.1' r='0.40' fill='%23ffffff' opacity='0.29'/%3E%3Ccircle cx='406.4' cy='412.1' r='0.57' fill='%23cfe0ff' opacity='0.39'/%3E%3Ccircle cx='312.7' cy='448.4' r='0.37' fill='%23ffd9bf' opacity='0.53'/%3E%3Ccircle cx='268.5' cy='451.0' r='1.04' fill='%23ffffff' opacity='0.90'/%3E%3Ccircle cx='385.7' cy='464.4' r='0.42' fill='%23ffffff' opacity='0.41'/%3E%3Ccircle cx='354.9' cy='56.3' r='0.51' fill='%23e9d6ff' opacity='0.36'/%3E%3Ccircle cx='91.2' cy='372.0' r='0.36' fill='%23e9d6ff' opacity='0.38'/%3E%3Ccircle cx='232.8' cy='277.2' r='0.51' fill='%23ffd9bf' opacity='0.49'/%3E%3Ccircle cx='234.8' cy='410.4' r='0.50' fill='%23ffd9bf' opacity='0.59'/%3E%3Ccircle cx='290.8' cy='244.1' r='0.40' fill='%23ffffff' opacity='0.44'/%3E%3Ccircle cx='463.5' cy='324.0' r='0.64' fill='%23bcd2ff' opacity='0.59'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 7rem 4rem;
}

.sky-fallback[hidden] {
  display: none;
}

/* The glow of the dawn lies along the edge of the planet, so it is drawn on a turned shape. */
.sky-fallback::before {
  content: "";
  position: absolute;
  left: var(--dawn-x);
  top: 40.3%;
  width: 70vh;
  height: 30vh;
  margin: -15vh 0 0 -35vh;
  background: radial-gradient(closest-side, rgb(255 176 150 / 0.5) 0, rgb(236 112 106 / 0.34) 10%, rgb(178 58 80 / 0.22) 26%, rgb(110 30 62 / 0.13) 50%, rgb(60 16 44 / 0.05) 76%, rgb(60 16 44 / 0) 100%);
  transform: rotate(-40deg);
}

.sky-planet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.limb-tall {
  display: none;
}

@media (max-aspect-ratio: 1/1) {
  .limb-wide { display: none; }
  .limb-tall { display: inline; }
  .sky-fallback::before { transform: rotate(-66deg); }
}

.sky-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Buttons: square, white, with a fill that rises on hover ---- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  overflow: hidden;
  border: 0.125rem solid var(--ink);
  border-radius: 0.125rem;
  color: var(--ink);
  font-size: var(--t-btn);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* The fill sits under the words and rises from the bottom edge. */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
}

.btn:hover,
.btn:focus-visible {
  color: #000;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleY(1);
}

/* The main action is filled from the start, and outlines itself on hover. */
.btn-solid {
  background-color: var(--ink);
  color: #000;
}

.btn-solid::before {
  background-color: #000;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  color: var(--ink);
}

.btn:active {
  transform: translateY(0.0625rem);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.25rem;
}

/* Small uppercase labels, and words for screen readers only. */
.label {
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background-color: var(--ink);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---- The bar at the top: name, links, and a way to start ---- */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  /* The bar is 86% black, so its words stay readable even when the dawn is right behind it (over the dawn's
     brightest core: 14.8:1 for white). A short fade below it softens the edge. */
  background-color: rgb(0 0 0 / 0.86);
}

.top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0));
  pointer-events: none;
}

.scrolled .top::after,
.js.menu-open .top::after {
  display: none;
}

/* Past the opening, the bar turns solid black with a fine line under it (js/main.js adds "scrolled"). */
.scrolled .top {
  background-color: #000;
  box-shadow: 0 0.0625rem 0 var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: calc(var(--content) + 2 * var(--gutter));
  min-height: var(--bar-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

/* The wheel, the Monolen logo (tools/make-logo.py draws it). */
.brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  color: var(--ink);
  font-size: var(--t-btn);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

/* A short line grows under the link you point at, and stays under the part you are reading. */
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.5rem;
  height: 0.125rem;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.nav a:hover::after,
.nav a[aria-current]::after {
  transform: scaleX(1);
}

.nav .nav-cta {
  margin-left: 0.75rem;
  padding: 0 1.125rem;
  border: 0.125rem solid var(--ink);
  border-radius: 0.125rem;
}

.nav .nav-cta:hover,
.nav .nav-cta:focus-visible {
  background-color: var(--ink);
  color: #000;
}

.menu-toggle {
  display: none;
}

/* Narrow screens: the links fold behind a menu button (when JavaScript runs) and open as a full sheet. */
@media (max-width: 59.99rem) {
  .js .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-lines {
    display: grid;
    gap: 0.4375rem;
    width: 1.5rem;
  }

  .menu-lines span {
    display: block;
    height: 0.125rem;
    background-color: currentColor;
  }

  .menu-open .menu-lines span:first-child {
    transform: translateY(0.28125rem) rotate(45deg);
  }

  .menu-open .menu-lines span:last-child {
    transform: translateY(-0.28125rem) rotate(-45deg);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .js .nav {
    display: none;
  }

  .js .menu-open .nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    background-color: #000;
  }

  .js .menu-open .nav a {
    min-height: 3.5rem;
    padding: 0;
    border-bottom: 0.0625rem solid var(--line);
    font-size: 1.125rem;
  }

  .js .menu-open .nav a::after {
    display: none;
  }

  .js .menu-open .nav .nav-cta {
    justify-content: center;
    margin: 1.5rem 0 0;
    border: 0.125rem solid var(--ink);
  }

  .js.menu-open .top {
    background-color: #000;
  }
}

/* Without JavaScript, a phone shows the links in a second row under the name. */
@media (max-width: 59.99rem) {
  html:not(.js) .bar {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  html:not(.js) .nav a {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }
}

/* ---- The pause button: a small square in the bottom corner ---- */

.pause {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.4);
  border-radius: 0.125rem;
  background-color: rgb(0 0 0 / 0.72);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.pause[hidden] {
  display: none;
}

.pause:hover {
  border-color: var(--ink);
}

.pause .icon-play,
.pause[data-state="still"] .icon-pause {
  display: none;
}

.pause[data-state="still"] .icon-play {
  display: block;
}

.pause {
  padding: 0;
}

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

/* ---- Boxes ---- */

.box {
  position: relative;
  padding: var(--box-pad);
  border: 0.0625rem solid var(--box-edge);
  border-radius: var(--box-r);
  background-color: var(--box);
  box-shadow: inset 0 0.0625rem 0 rgb(255 255 255 / 0.05);
}

/* No box over the sky (the owner's request): the words sit on a soft dark glow instead. The element itself is 88%
   black, exactly behind the words, and its shadow carries the same dark 3.5rem further before it fades out, so there
   is no visible edge. Over the dawn's brightest core: 16.8:1 for white, 6.4:1 for the quietest grey. */
.glow {
  max-width: 44rem;
  background-color: rgb(0 0 0 / 0.88);
  box-shadow: 0 0 6rem 3.5rem rgb(0 0 0 / 0.88);
}

.glow .actions {
  margin-top: 2rem;
}

.box-sky {
  max-width: 60rem;
  background-color: var(--box-sky);
  box-shadow: inset 0 0.0625rem 0 rgb(255 255 255 / 0.08), 0 2rem 4rem -1.5rem rgb(0 0 0 / 0.8);
}

/* ---- Full screens over the sky: the opening and the closing ---- */

.wrap {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
}

/* The words sit low on the screen, in a box that is 86% dark (--box-sky). Over the brightest dawn that still gives
   15.2:1 for white and 6.1:1 for the quietest grey (see DESIGN.md). A soft shade at the foot of the screen
   only sets the mood. */
.shade {
  padding-top: 8rem;
  padding-bottom: clamp(4.5rem, 11vh, 7rem);
  background: linear-gradient(0deg, rgb(0 0 0 / 0.6) 0, rgb(0 0 0 / 0) 100%);
}

.display {
  max-width: 14em;
  font-size: var(--t-display);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.25rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -1.375rem;
  color: var(--ink-2);
}

.scroll-cue:hover {
  color: var(--ink);
}

/* ---- The black sheet: everything between the two screens ---- */

.sheet {
  position: relative;
  background-color: #000;
}

.section {
  padding-top: var(--section);
}

.head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.title {
  font-size: var(--t-title);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.head p {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ---- Spec sheets: a label on the left, the value on the right, a fine line between ---- */

.specs {
  display: grid;
  gap: 3.5rem;
}

.spec {
  display: flex;
  flex-direction: column;
}

.spec-pick {
  border-color: rgb(255 182 155 / 0.6);
}

.spec-name {
  font-size: var(--t-spec);
  font-weight: 750;
  letter-spacing: 0.02em;
}

/* The recommended tag sits on the top edge of its box. */
.pick {
  position: absolute;
  top: -0.75rem;
  left: var(--box-pad);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background-color: var(--accent);
  color: #1b1310;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.spec-for {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

.rows {
  margin-top: 1.5rem;
}

.rows div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.8125rem;
  border-bottom: 0.0625rem solid var(--line);
}

.rows div:first-child {
  border-top: 0.0625rem solid var(--line);
}

/* A box of rows needs no line above its first row: the box's own edge is there. */
.rows.box div:first-child {
  border-top: 0;
}

.rows dt {
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rows dd {
  color: var(--ink);
}

.rows div:last-child {
  border-bottom: 0;
}

.spec .btn {
  align-self: flex-start;
  margin-top: 2rem;
}

/* ---- Six things we build, in a grid with fine lines ---- */

.grid6 {
  display: grid;
  gap: 1rem;
}

.grid6 p {
  max-width: 26rem;
  margin-top: 0.625rem;
  color: var(--ink-2);
}

/* ---- The number beside a process step ---- */

.t-num {
  display: block;
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.offer-steps .t-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.625rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.32);
  border-radius: 0.125rem;
  color: var(--ink);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Our own product ---- */

.product {
  display: grid;
  gap: 3rem;
}

.product-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-name img {
  width: 0.9em;
  height: 0.9em;
}

.product-own {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-claim {
  max-width: 30rem;
  margin-top: 1.75rem;
  font-size: var(--t-claim);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.product-text {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
}

/* Big numbers with a small label under each, divided by fine lines. */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.25rem;
  border-top: 0.0625rem solid var(--line);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.375rem;
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 0.0625rem solid var(--line);
}

.stats div:nth-child(odd) {
  border-right: 0.0625rem solid var(--line);
}

.stats div:nth-child(even) {
  padding-left: 1.25rem;
}

.stats dt {
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stats dd {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.host {
  color: var(--ink-3);
  font-size: var(--t-small);
}

/* The phone that plays the quiz recording. A plain device: a dark body, an even border, no brand. */
.phone {
  justify-self: center;
  width: min(19rem, 78vw);
  margin: 0;
}

.phone-body {
  position: relative;
  padding: 0.625rem;
  border-radius: 2.75rem;
  background: linear-gradient(160deg, #2a2a2e, #0d0d0f 40%, #1b1b1e);
  box-shadow: inset 0 0 0 0.0625rem rgb(255 255 255 / 0.16), 0 2rem 4rem -1.5rem rgb(255 255 255 / 0.08), 0 2.5rem 5rem -2rem rgb(0 0 0 / 0.9);
}

.phone-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1298;
  border-radius: 2.125rem;
  background-color: #f2f3f8;
  object-fit: cover;
}

.phone-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.4);
  border-radius: 0.25rem;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.phone-play:hover {
  border-color: var(--ink);
}

.phone-play[hidden] {
  display: none;
}

.phone-play .icon-pause,
.phone-play[data-state="playing"] .icon-play {
  display: none;
}

.phone-play[data-state="playing"] .icon-pause {
  display: block;
}

.phone figcaption {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--ink-3);
  font-size: var(--t-small);
  text-align: center;
}

/* CareerHex's six characters: its own artwork, shown only in this section. */
.cast-wrap .cast {
  margin-top: 1.5rem;
}

.cast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
  margin-top: 1.5rem;
}

.cast li {
  --i: 0;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

.cast li:nth-child(2) { --i: 1; }
.cast li:nth-child(3) { --i: 2; }
.cast li:nth-child(4) { --i: 3; }
.cast li:nth-child(5) { --i: 4; }
.cast li:nth-child(6) { --i: 5; }

.cast img {
  width: 100%;
  max-width: 7rem;
  height: auto;
  aspect-ratio: 1;
}

.cast span {
  color: var(--ink-2);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Portfolio sites ---- */

.offer-steps {
  display: grid;
  gap: 1.75rem;
}

.offer-steps {
  gap: 1rem;
}

.offer-steps .t-num {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
}

.offer-steps h3 {
  margin-top: 0.75rem;
}

.offer-steps p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

/* A list of what is included. The tick is drawn with two borders, not a glyph. */
.ticks {
  display: grid;
  gap: 0.75rem;
}

.offer-panel {
  margin-top: 1rem;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1875rem;
  top: 0.5em;
  width: 0.6875rem;
  height: 0.375rem;
  border-left: 0.125rem solid var(--ink);
  border-bottom: 0.125rem solid var(--ink);
  transform: rotate(-45deg);
}

.note {
  color: var(--ink-3);
  font-size: var(--t-small);
}

/* ---- Questions ---- */

.faq-section {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--section);
}

.about {
  margin-top: 2rem;
  padding-block: 0.5rem;
}

.about div {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.about dd {
  text-align: left;
}

.faq {
  padding-block: 0.25rem;
}

.faq details + details {
  border-top: 0.0625rem solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding-block: 1.125rem;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A plus drawn with two lines, which turns into a minus when the answer is open. */
.plus {
  position: relative;
  flex: none;
  width: 1rem;
  height: 1rem;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.125rem;
  margin-top: -0.0625rem;
  background-color: var(--ink);
}

.plus::after {
  transform: rotate(90deg);
}

.faq details[open] .plus::after {
  transform: rotate(0deg);
}

.faq details p {
  max-width: 42rem;
  padding-bottom: 1.5rem;
  color: var(--ink-2);
}

/* ---- Closing ---- */

.closing .shade {
  padding-bottom: clamp(4rem, 10vh, 6rem);
}

.box-sky .actions {
  margin-top: 2rem;
}

.mail {
  color: var(--ink);
  font-size: var(--t-lede);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 0.0625rem;
}

.mail:hover {
  color: var(--accent);
}

/* ---- Footer ---- */

.foot {
  position: relative;
  padding-block: 2.5rem 6rem;
  border-top: 0.0625rem solid var(--line);
  background-color: #000;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.foot-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: var(--t-small);
}

/* ---- From 40rem ---- */

@media (min-width: 40rem) {
  .grid6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stats div:nth-child(odd) {
    border-right: 0;
  }

  .stats div + div {
    padding-left: 1.25rem;
    border-left: 0.0625rem solid var(--line);
  }

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

  .offer-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

/* ---- From 60rem ---- */

@media (min-width: 60rem) {
  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .spec-for {
    min-height: 3lh;
  }

  .spec .btn {
    margin-top: auto;
  }

  .rows {
    margin-bottom: 2rem;
  }

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

  .product {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    column-gap: 4rem;
  }

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

  .product .stats div + div {
    border-left: 0;
    padding-left: 0;
  }

  .product .stats div:nth-child(even) {
    padding-left: 1.25rem;
    border-left: 0.0625rem solid var(--line);
  }

  .cast-wrap {
    grid-column: 1 / -1;
  }

  .faq-section {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }

  .faq-side {
    position: sticky;
    top: calc(var(--bar-h) + 2rem);
  }

  .foot .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 2rem;
  }

  .foot-base {
    grid-column: 1 / -1;
  }
}

/* ---- Motion: a little, and only where it is asked for ---- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn::before {
    transition: transform 0.35s var(--ease);
  }

  .btn,
  .nav a,
  .pause,
  .mail {
    transition: color 0.25s ease-out, background-color 0.25s ease-out, border-color 0.25s ease-out;
  }

  .nav a::after {
    transition: transform 0.35s var(--ease);
  }

  .top {
    transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out;
  }

  .menu-lines span,
  .plus::after {
    transition: transform 0.3s var(--ease);
  }

  /* The opening: the sky comes up out of the dark, then the words rise into place. */
  .sky {
    animation: sky-in 1.6s ease-out both;
  }

  .hero-copy > * {
    animation: rise 1.1s var(--ease) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.24s; }

  .scroll-cue svg {
    animation: nudge 2.4s ease-in-out 1.6s infinite;
  }

  /* As each part of the page scrolls into view, its heading and its rows rise a little. Browsers without scroll
     timelines show everything at rest. */
  @supports (animation-timeline: view()) {
    .title,
    .head p,
    .spec,
    .grid6 li,
    .stats div,
    .offer-steps li,
    .faq details,
    .phone {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    .cast li {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry calc(10% + var(--i) * 8%) entry calc(60% + var(--i) * 8%);
    }
  }

  /* The address switches for checking show the page at rest (js/main.js adds "at-rest"). */
  .at-rest .sky,
  .at-rest .hero-copy > *,
  .at-rest .scroll-cue svg,
  .at-rest .title,
  .at-rest .head p,
  .at-rest .spec,
  .at-rest .grid6 li,
  .at-rest .stats div,
  .at-rest .offer-steps li,
  .at-rest .faq details,
  .at-rest .phone,
  .at-rest .cast li {
    animation: none;
  }

  .at-rest * {
    transition: none !important;
  }
}

@keyframes sky-in {
  from { opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.5rem); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(2rem); }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.375rem); }
}

/* ---- High contrast mode: the system draws its own colours ---- */

@media (forced-colors: active) {
  .btn,
  .pause,
  .nav .nav-cta {
    border: 0.125rem solid ButtonText;
  }

  .btn::before,
  .shade {
    background: none;
  }

  .plus::before,
  .plus::after,
  .menu-lines span {
    background-color: CanvasText;
  }
}

/* The black sheet fades into the closing screen's sky, instead of ending on a hard edge. */
.closing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35vh;
  background: linear-gradient(180deg, #000, rgb(0 0 0 / 0));
  pointer-events: none;
}

.closing .shade {
  position: relative;
}

/* A smaller glow for short lines over the sky. */
.glow-small {
  background-color: rgb(0 0 0 / 0.88);
  box-shadow: 0 0 2rem 1.25rem rgb(0 0 0 / 0.88);
}

/* ---- The process tracker, under the services ---- */

.tracker {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.tracker-title {
  font-size: var(--t-spec);
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.tracker-copy > p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--ink-2);
}

.tracker .ticks {
  margin-top: 1.5rem;
}

.console {
  margin: 0;
  overflow: hidden;
  border: 0.0625rem solid var(--box-edge);
  border-radius: var(--box-r);
  background-color: #16161a;
  cursor: default;
}

.console-bar {
  display: flex;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  border-bottom: 0.0625rem solid var(--line);
  background-color: #0b0b0d;
}

.console-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: min(18rem, 100%);
  padding: 0.3125rem 0.875rem;
  border-radius: 0.25rem;
  background-color: #1d1d22;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.3;
}

.console-body {
  padding: 1.25rem;
}

.console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.console-label {
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.625rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.3);
  border-radius: 0.25rem;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Four stages joined by a line: done, done, now, next. */
.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 0.6875rem;
  left: 12.5%;
  right: 12.5%;
  height: 0.125rem;
  background: linear-gradient(90deg, var(--ink) 0 66.6%, rgb(255 255 255 / 0.18) 66.6% 100%);
}

.stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.stepper li::before {
  content: "";
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background-color: #16161a;
  box-shadow: inset 0 0 0 0.125rem rgb(255 255 255 / 0.25);
}

.stepper .done::before {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.25 7 10.5l4.5-5' fill='none' stroke='%2316161a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
  box-shadow: none;
}

.stepper .now {
  color: var(--ink);
}

.stepper .now::before {
  background: radial-gradient(circle, var(--ink) 0 0.25rem, #16161a 0.3rem);
  box-shadow: inset 0 0 0 0.125rem var(--ink), 0 0 0 0.25rem rgb(255 255 255 / 0.1);
}

.meter {
  height: 0.25rem;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.12);
}

.meter span {
  display: block;
  width: 66%;
  height: 100%;
  background-color: var(--ink);
}

.meter-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 0.625rem;
  color: var(--ink-2);
  font-size: var(--t-small);
}

.updates {
  margin-top: 1rem;
  border-top: 0.0625rem solid var(--line);
}

.updates li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 0.0625rem solid var(--line);
  font-size: var(--t-small);
}

.updates li:last-child {
  border-bottom: 0;
}

.tag {
  flex: none;
  padding: 0.1875rem 0.5rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.3);
  border-radius: 0.25rem;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-bright {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #000;
}

.tag-quiet {
  border-style: dashed;
}

@media (min-width: 60rem) {
  .tracker {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tracker {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .at-rest .tracker {
      animation: none;
    }
  }

  .hero-phone {
    animation: rise 1.2s var(--ease) 0.3s both;
  }

  .at-rest .hero-phone {
    animation: none;
  }
}

/* Beside the tracker the list stays in one column, so no line breaks in the middle of a point. */
.tracker .ticks {
  grid-template-columns: minmax(0, 1fr);
}

/* The six characters sit in the middle of their box, level with the CareerHex words beside them. */
@media (min-width: 60rem) {
  .product .cast-wrap {
    display: flex;
    flex-direction: column;
  }

  .product .cast {
    flex: 1;
    align-content: center;
  }
}

/* ==================================================================================================
   Fifth pass (November 13, 2026): a centred opening, the "New release" for CareerHex, metal service cards,
   a colour from the sky for each kind of custom software, and a process that moves.
   ================================================================================================== */

/* Luxury colours, for things that need to be told apart (the six kinds of custom software, the example
   portfolio cards): warm metals and leathers, never a rainbow (the owner's rule). Each only marks shapes and
   icons, never body text. Kept as channels so they can be used at any strength. */
.c-cognac    { --c: 201 138 96; }    /* cognac brown */
.c-champagne { --c: 232 211 168; }   /* champagne */
.c-rose      { --c: 214 160 140; }   /* rose gold */
.c-bordeaux  { --c: 186 104 116; }   /* bordeaux, lifted so it shows on black */
.c-platinum  { --c: 196 200 207; }   /* platinum */
.c-gold      { --c: 212 175 106; }   /* antique gold */

/* ---- The opening: everything in the middle ---- */

.hero {
  justify-content: center;
}

.hero .shade {
  padding-top: calc(var(--bar-h) + 6rem);
  padding-bottom: 6rem;
  background: radial-gradient(ellipse 55% 45% at 50% 58%, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0) 100%);
}

.hero-copy {
  margin-inline: auto;
  text-align: center;
}

.hero-copy .display {
  margin-inline: auto;
}

.hero-copy .lede {
  margin-inline: auto;
}

.hero-copy .actions {
  justify-content: center;
}

/* ---- New release: CareerHex, presented like a product launch, over the sky ---- */

.release {
  position: relative;
  overflow-x: clip; /* the light behind the phone is wider than a phone screen */
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: 14rem;
  text-align: center;
}

.release-head {
  max-width: 46rem;
  margin-inline: auto;
}

.release-new {
  color: var(--accent);
  font-size: var(--t-lede);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.release-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  margin-top: 0.5rem;
  font-size: clamp(3rem, 1.6rem + 6.5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.release-name img {
  width: 0.85em;
  height: 0.85em;
}

.release-claim {
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
  text-wrap: balance;
}

.release-sub {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: var(--t-lede);
}

.release-head .actions {
  justify-content: center;
}

/* The phone in the middle, large, with a soft light from the dawn behind it. */
.release-stage {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: clamp(3rem, 8vh, 5rem);
}

.release-stage::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(44rem, 120vw);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(232 211 168 / 0.16), rgb(201 138 96 / 0.08) 55%, rgb(0 0 0 / 0) 100%);
  pointer-events: none;
}

.release-phone {
  position: relative;
  width: clamp(15rem, 60vw, 21rem);
  margin: 0;
}

.release-phone .phone-body {
  box-shadow: inset 0 0 0 0.0625rem rgb(255 255 255 / 0.2), 0 3rem 6rem -2rem rgb(0 0 0 / 0.95), 0 0 0 0.375rem rgb(255 255 255 / 0.03);
}

.release-more {
  margin-top: clamp(3rem, 8vh, 5rem);
  scroll-margin-top: calc(var(--bar-h) + 2rem);
}

.release-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.release-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
}

.release-stats dt {
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.release-stats dd {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.release-cast {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
  text-align: left;
}

.release-cast-words p {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--ink-2);
}

.release-cast-words .release-by {
  color: var(--ink-3);
  font-size: var(--t-small);
}

.release-cast .cast {
  margin-top: 0;
}

.release-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

/* The black sheet rises out of the sky instead of starting on a hard edge. */
.sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12rem;
  background: linear-gradient(180deg, rgb(0 0 0 / 0), #000);
  pointer-events: none;
}

@media (min-width: 60rem) {
  .release-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .release-cast {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
    gap: 3rem;
  }

  .release-cast .cast {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ---- Services as bronze, silver and gold cards. They tilt toward the pointer (js/main.js) and give when pressed. ---- */

.tier {
  --metal-dark: #b77a4b;
  --metal: linear-gradient(125deg, #b77a4b 0%, #f2c39d 24%, #c98b5c 46%, #f6d2b2 70%, #b77a4b 100%);
  --glow: 214 140 92;
  border: 0.125rem solid transparent;
  background: linear-gradient(var(--box), var(--box)) padding-box, var(--metal) border-box;
  transform: perspective(70rem) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transform-style: preserve-3d;
  box-shadow: 0 1.5rem 3rem -2rem rgb(var(--glow) / 0.35);
}

.tier-silver {
  --metal-dark: #9aa3b0;
  --metal: linear-gradient(125deg, #9aa3b0 0%, #f4f6f9 24%, #aeb6c2 46%, #ffffff 70%, #9aa3b0 100%);
  --glow: 200 210 225;
}

.tier-gold {
  --metal-dark: #c9a24a;
  --metal: linear-gradient(125deg, #c9a24a 0%, #fff0b5 24%, #d6ae52 46%, #fff4c9 70%, #c9a24a 100%);
  --glow: 230 186 84;
}

/* The face of the card is metal, with dark words engraved on it. Its plain colour is the darkest part of the
   metal, so the words are readable even where the shine is lowest (5.1:1 on bronze, 7.1 on silver, 7.3 on gold). */
.tier-plate {
  position: relative;
  margin: calc(-1 * var(--box-pad)) calc(-1 * var(--box-pad)) 0;
  padding: var(--box-pad);
  overflow: hidden;
  border-radius: calc(var(--box-r) - 0.125rem) calc(var(--box-r) - 0.125rem) 0 0;
  background-color: var(--metal-dark);
  background-image: var(--metal);
  background-size: 220% 220%;
  background-position: 0% 0%;
  color: #1b130d;
  transform: translateZ(1.5rem);
}

/* A fine brushed grain over the metal. */
.tier-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 1px, rgb(0 0 0 / 0.03) 1px 3px);
  pointer-events: none;
}

.tier-metal {
  position: relative;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.tier .spec-name {
  position: relative;
  margin-top: 0.5rem;
  color: #1b130d;
}

.tier .spec-for {
  position: relative;
  min-height: 0;
  color: #1b130d;
  font-weight: 500;
}

.tier .rows {
  margin-top: 1.25rem;
}

/* The shine that follows the pointer across the card. */
.tier::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 45%);
  opacity: 0;
  pointer-events: none;
}

.tier:hover {
  --lift: -0.375rem;
  box-shadow: 0 2.5rem 4rem -2rem rgb(var(--glow) / 0.55);
}

.tier:hover::after {
  opacity: 1;
}

.tier:hover .tier-plate {
  background-position: 100% 100%;
}

.tier:active {
  --lift: 0;
}

.tier .pick {
  z-index: 2;
  transform: translateZ(2.5rem);
}

/* ---- The process tracker moves through its four stages (js/main.js) ---- */

.console .meter span {
  transition: width 1.1s var(--ease);
}

.console .stepper li::before,
.console .stepper li {
  transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out, color 0.4s ease-out;
}

.status.is-live {
  border-color: rgb(212 175 106 / 0.7);
}

.status.is-live .pulse {
  background-color: rgb(212 175 106);
}

.updates li.is-new {
  animation: feed-in 0.35s var(--ease) both;
}

.updates li.is-new:nth-child(2) { animation-delay: 0.05s; }
.updates li.is-new:nth-child(3) { animation-delay: 0.1s; }
.updates li.is-new:nth-child(4) { animation-delay: 0.15s; }

@keyframes feed-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
}

/* ---- Custom software: each kind in its own colour from the sky ---- */

.tile {
  overflow: hidden;
  background:
    radial-gradient(22rem 12rem at 0% 0%, rgb(var(--c) / 0.13), rgb(var(--c) / 0) 70%),
    var(--box);
}

/* A short line in the colour along the top edge. */
.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--box-pad);
  width: 3rem;
  height: 0.125rem;
  background-color: rgb(var(--c));
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border: 0.0625rem solid rgb(var(--c) / 0.45);
  border-radius: 0.5rem;
  background-color: rgb(var(--c) / 0.12);
  color: rgb(var(--c));
}

.tile h3 {
  color: var(--ink);
}

.tile:hover {
  border-color: rgb(var(--c) / 0.55);
  transform: translateY(-0.25rem);
}

.tile:hover .tile-icon {
  background-color: rgb(var(--c) / 0.22);
}

/* ---- The process: four steps as tabs down the left, a picture of the open step on the right ----
   The layout comes from the "Vertical Tabs" component on 21st.dev, rewritten from React to plain HTML, CSS and a
   little JavaScript (js/main.js), with our own drawn pictures instead of photographs. Without JavaScript every
   step stays open and the first picture shows. When the script runs it adds "is-live": one step is open at a
   time, the line beside it fills, and when it is full the next step opens. */

.steps {
  display: grid;
  grid-template-areas: "head" "stage" "list";
}

.steps .head {
  grid-area: head;
}

.steps-list {
  grid-area: list;
  padding-block: 0.5rem;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.875rem;
  padding: 1.375rem 0 1.375rem 1.375rem;
}

.step + .step {
  border-top: 0.0625rem solid var(--line);
}

/* The line beside each step: a dim track, and the part that fills while the step is open. */
.step-rail {
  position: absolute;
  top: 1.125rem;
  bottom: 1.125rem;
  left: 0;
  width: 0.125rem;
  border-radius: 0.125rem;
  background-color: rgb(255 255 255 / 0.14);
  overflow: hidden;
}

.step-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--ink));
  transform-origin: top;
}

.steps .t-num {
  padding-top: 0.6em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: clamp(1.5rem, 1.24rem + 1.1vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* The heading of each step is a button once the script runs. The whole row answers to it while the step is shut. */
.step-btn {
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.step:not(.is-open) .step-btn::after {
  content: "";
  position: absolute;
  inset: 0;
}

.step-more-in {
  padding-top: 0.75rem;
}

.step-more p:not(.t-tag) {
  max-width: 26rem;
  color: var(--ink-2);
}

.steps .t-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.32);
  border-radius: 62.5rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* One step open at a time. Every open step has the height of the tallest one (--more-h, measured by the
   script), so the list keeps its height while one step shuts and the next one opens. */
.steps.is-live .step-more {
  height: var(--more-h, auto);
  overflow: hidden;
}

.steps.is-live .step:not(.is-open) .step-more {
  height: 0;
  opacity: 0;
  visibility: hidden;
}

.steps.is-live .step:not(.is-open) h3 {
  color: var(--ink-3);
}

.steps.is-live .step:not(.is-open):hover h3 {
  color: var(--ink);
}

.steps.is-live .step:not(.is-open) .step-fill {
  transform: scaleY(0);
}

/* The picture. Each one is drawn in the page and tinted with one of the six colours. */
.stage {
  grid-area: stage;
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border: 0.0625rem solid var(--box-edge);
  border-radius: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  background-color: var(--box);
  box-shadow: inset 0 0.0625rem 0 rgb(255 255 255 / 0.05), 0 2rem 4rem -2rem rgb(0 0 0 / 0.9);
  overflow: hidden;
  isolation: isolate;
}

.stage-shot {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 76% 12%, rgb(var(--c) / 0.26), rgb(var(--c) / 0) 72%),
    linear-gradient(180deg, #131316, #09090b);
  color: rgb(var(--c));
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--y, 0%));
}

.stage-shot.is-on {
  opacity: 1;
  visibility: visible;
}

.stage-shot svg {
  width: 100%;
  height: 100%;
}

.stage-shot text {
  font-family: var(--font);
  font-size: 1.1875rem;
  font-weight: 560;
  fill: var(--ink);
}

.stage-shot .s-word { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.stage-shot .s-quiet { fill: var(--ink-2); font-weight: 500; }
.stage-shot .s-chip { fill: #fff; }
.stage-shot .s-on { fill: #1b1310; font-weight: 700; }
.stage-shot .s-pin { fill: #1b1310; font-size: 1.125rem; font-weight: 750; }

.stage-count {
  position: absolute;
  left: clamp(0.875rem, 2.4vw, 1.5rem);
  bottom: clamp(0.875rem, 2.4vw, 1.5rem);
  z-index: 2;
  padding: 0.375rem 0.875rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.2);
  border-radius: 62.5rem;
  background-color: rgb(10 10 13 / 0.9);
  color: var(--champagne);
  font-size: 0.875rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.stage-nav {
  position: absolute;
  right: clamp(0.875rem, 2.4vw, 1.5rem);
  bottom: clamp(0.875rem, 2.4vw, 1.5rem);
  z-index: 2;
  display: flex;
  gap: 0.625rem;
}

.stage-count[hidden],
.stage-nav[hidden] {
  display: none;
}

.stage-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0.0625rem solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  background-color: rgb(10 10 13 / 0.9);
  color: var(--ink);
  cursor: pointer;
}

.stage-btn:hover {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #000;
}

/* Narrow screens: the picture is too small to carry the counter and the arrows, so they sit in a strip under
   it, inside the same frame. The strip covers the pictures as they slide past. */
@media (max-width: 59.99rem) {
  .steps.is-live .stage {
    aspect-ratio: auto;
    padding-bottom: 4.25rem;
  }

  .steps.is-live .stage::before {
    content: "";
    display: block;
    aspect-ratio: 4 / 3;
  }

  .steps.is-live .stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 4.25rem;
    border-top: 0.0625rem solid var(--line);
    background-color: var(--box);
  }

  .steps.is-live .stage-shot {
    bottom: 4.25rem;
  }

  .stage-count {
    left: 1.25rem;
    bottom: 1.4375rem;
    padding: 0;
    border: 0;
    background: none;
  }

  .stage-nav {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .stage-btn {
    width: 2.75rem;
    height: 2.75rem;
    background-color: transparent;
  }
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head head" "list stage";
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }

  .step {
    column-gap: 1.125rem;
    padding: 1.625rem 0 1.625rem 1.75rem;
  }

  /* The picture is as tall as the list beside it. */
  .stage {
    aspect-ratio: auto;
    min-height: 26rem;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .step h3 {
    transition: color 0.4s ease-out;
  }

  .steps.is-live .step-more {
    transition: height 0.55s var(--ease), opacity 0.4s ease-out, visibility 0s linear 0s;
  }

  .steps.is-live .step:not(.is-open) .step-more {
    transition: height 0.55s var(--ease), opacity 0.25s ease-out, visibility 0s linear 0.55s;
  }

  /* A new picture slides in from above or below, and the old one leaves the other way (--y, set by the script). */
  .stage-shot {
    transition: transform 0.85s var(--ease), opacity 0.5s ease-out, visibility 0s linear 0.85s;
  }

  .stage-shot.is-on {
    transition: transform 0.85s var(--ease), opacity 0.5s ease-out, visibility 0s linear 0s;
  }

  .stage-btn {
    transition: background-color 0.25s ease-out, border-color 0.25s ease-out, color 0.25s ease-out, transform 0.2s var(--ease);
  }

  .stage-btn:active {
    transform: scale(0.92);
  }

  /* The line of the open step fills in six seconds, and the script opens the next step when it is full. It only
     runs while the section is on screen, motion is on, and nobody is pointing at it or tabbing through it. */
  .steps.is-live .step.is-open .step-fill {
    animation: step-fill 6s linear both paused;
  }

  .steps.is-running .step.is-open .step-fill {
    animation-play-state: running;
  }

  .paused .steps.is-live .step.is-open .step-fill,
  .at-rest .steps.is-live .step.is-open .step-fill {
    animation: none;
  }
}

@keyframes step-fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (forced-colors: active) {
  .step-rail {
    background-color: GrayText;
  }

  .step-fill {
    background: Highlight;
  }

  .stage-btn,
  .stage-count {
    border-color: ButtonText;
  }
}

/* ---- Portfolio sites ---- */

.folio-panel {
  display: grid;
  gap: 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(40rem 24rem at 100% 0%, rgb(201 138 96 / 0.12), rgb(201 138 96 / 0) 70%),
    radial-gradient(30rem 20rem at 0% 100%, rgb(255 182 155 / 0.08), rgb(255 182 155 / 0) 70%),
    var(--box);
}

.folio-tag {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  border-radius: 0.25rem;
  background-color: var(--accent);
  color: #1b1310;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.folio-copy .title {
  margin-top: 1rem;
}

.folio-lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}

.folio-copy .ticks {
  margin-top: 1.75rem;
}

/* The example portfolio: a small browser window, tilted a little toward the reader. */
.folio-mock {
  align-self: center;
  margin: 0;
  overflow: hidden;
  border: 0.0625rem solid var(--box-edge);
  border-radius: var(--box-r);
  background-color: #16161a;
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.9);
  transform: perspective(70rem) rotateY(-8deg) rotateX(3deg);
}

.mock-page {
  padding: 1.5rem;
}

.mock-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mock-line {
  display: block;
  height: 0.5rem;
  margin-top: 0.75rem;
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.14);
}

.mock-short {
  width: 60%;
  margin-top: 0.5rem;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mock-card {
  padding: 0.5rem;
  border-radius: 0.375rem;
  background-color: rgb(255 255 255 / 0.04);
}

.mock-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 0.25rem;
  background: linear-gradient(135deg, rgb(var(--c) / 0.85), rgb(var(--c) / 0.25));
}

.mock-card .mock-line {
  width: 70%;
  margin-top: 0.5rem;
  height: 0.375rem;
}

.folio-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.folio-steps li {
  position: relative;
}

.folio-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid var(--ink);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 800;
}

.folio-steps h3 {
  margin-top: 1rem;
}

.folio-steps p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .folio-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* An arrow between the steps. */
  .folio-steps li + li::before {
    content: "";
    position: absolute;
    top: calc(var(--box-pad) + 1.25rem);
    left: -0.875rem;
    width: 0.75rem;
    height: 0.75rem;
    border-top: 0.125rem solid var(--ink-3);
    border-right: 0.125rem solid var(--ink-3);
    transform: translate(-0.125rem, -50%) rotate(45deg);
  }
}

@media (min-width: 60rem) {
  .folio-panel {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 4rem;
    padding: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ---- Motion for all of the above. Off when motion is paused ("paused") or turned down by the system. ---- */

@media (prefers-reduced-motion: no-preference) {
  .tier {
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  }

  .tier.tilting {
    transition: transform 0.12s linear, box-shadow 0.6s var(--ease);
  }

  .tier::after {
    transition: opacity 0.3s ease-out;
  }

  .tier-plate {
    transition: background-position 1.2s var(--ease);
  }

  .tile {
    transition: transform 0.4s var(--ease), border-color 0.3s ease-out;
  }

  .tile-icon {
    transition: background-color 0.3s ease-out;
  }

  .mock-card {
    transition: transform 0.4s var(--ease);
  }

  .folio-mock:hover .mock-card {
    transform: translateY(-0.125rem);
  }

  .folio-mock {
    transition: transform 0.8s var(--ease);
  }

  .folio-mock:hover {
    transform: perspective(70rem) rotateY(-3deg) rotateX(1deg);
  }

  .paused .pulse {
    animation-play-state: paused;
  }

  .status .pulse {
    animation: pulse 1.6s ease-in-out infinite;
  }

  .at-rest .status .pulse {
    animation: none;
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 182 155 / 0.6); }
  50% { box-shadow: 0 0 0 0.375rem rgb(255 182 155 / 0); }
}

@media (forced-colors: active) {
  .tier {
    border: 0.125rem solid CanvasText;
    background: Canvas;
  }

  .tier-plate {
    background: Canvas;
    color: CanvasText;
  }

  .tier .spec-name,
  .tier .spec-for {
    color: CanvasText;
  }

  .release-stage::before {
    display: none;
  }
}

/* The new release's boxes span its full width. */
.release .box-sky {
  max-width: none;
}

/* The closing matches the opening: everything in the middle. */
.closing-copy {
  margin-inline: auto;
  text-align: center;
}

.closing-copy .display,
.closing-copy .lede {
  margin-inline: auto;
}

.closing-copy .actions {
  justify-content: center;
}

/* The three metal faces are the same height, and the names fit on one line on a laptop. */
.tier .spec-name {
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem);
}

@media (min-width: 60rem) {
  .tier-plate {
    min-height: 10.5rem;
  }
}

.release {
  padding-bottom: 9rem;
}

/* ==================================================================================================
   Sixth pass (November 13, 2026): real metal cards, an intense project tracker, the New release badge,
   and a smoother flow from part to part.
   ================================================================================================== */

/* An angle the browser can animate, for the light that runs around the tracker. */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---- Services: whole metal cards ---- */

/* The card is a slab of metal with a rim all round. The name is engraved on the metal, and the details sit
   in a dark panel set into it. The plain colour under the shine is the darkest part of the metal, so the
   engraved words stay readable (5.1:1 on bronze, 7.1 on silver, 7.3 on gold). */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 1.25rem;
  background-color: var(--metal-dark);
  background-image: var(--metal);
  background-size: 200% 200%;
  background-position: 0% 0%;
  box-shadow:
    inset 0 0.0625rem 0 rgb(255 255 255 / 0.65),
    inset 0 -0.125rem 0 rgb(0 0 0 / 0.28),
    inset 0.0625rem 0 0 rgb(255 255 255 / 0.25),
    inset -0.0625rem 0 0 rgb(0 0 0 / 0.2),
    0 0 0 0.0625rem rgb(0 0 0 / 0.7),
    0 0.375rem 0 -0.125rem rgb(0 0 0 / 0.55),
    0 2rem 4rem -2rem rgb(var(--glow) / 0.5);
}

/* A fine brushed grain across the whole slab. */
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.07) 0 1px, rgb(0 0 0 / 0.035) 1px 3px);
  pointer-events: none;
}

.tier-plate {
  position: relative;
  margin: 0;
  padding: 1.125rem 1rem 1.5rem;
  overflow: hidden;
  border-radius: 0.875rem 0.875rem 0 0;
  background: none;
  color: #1b130d;
  transform: translateZ(1.25rem);
}

.tier-plate::before {
  content: none;
}

/* A band of light that sweeps across the metal when the pointer arrives. */
.tier-plate::after {
  content: "";
  position: absolute;
  inset: -50% -20%;
  background: linear-gradient(110deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0.55) 50%, rgb(255 255 255 / 0) 60%);
  transform: translateX(-70%);
  pointer-events: none;
}

.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tier-emblem {
  flex: none;
  color: rgb(27 19 13 / 0.55);
}

.tier .spec-name {
  margin-top: 1rem;
}

.tier .spec-for {
  margin-top: 0.625rem;
}

/* The dark panel set into the metal: a shadow along its top edge, a thin light along its bottom edge. */
.tier-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.25rem 1.25rem 1.25rem;
  border-radius: 0.875rem;
  background-color: #0d0d10;
  box-shadow: inset 0 0.125rem 0.375rem rgb(0 0 0 / 0.85), inset 0 0 0 0.0625rem rgb(0 0 0 / 0.6), 0 0.0625rem 0 rgb(255 255 255 / 0.4);
  transform: translateZ(0.5rem);
}

.tier .rows {
  margin: 0 0 1.75rem;
}

.tier .rows div:first-child {
  border-top: 0;
}

.tier-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Under a button that opens an email: the address in plain words, so a visitor whose device opens no mail
   app can still copy it. */
.tier-body .note,
.agent-copy .note {
  margin-top: 0.75rem;
}

.tier .pick {
  top: -0.75rem;
  left: 1.5rem;
  box-shadow: 0 0.25rem 0.75rem -0.25rem rgb(0 0 0 / 0.8);
}

.tier:hover {
  --lift: -0.5rem;
  box-shadow:
    inset 0 0.0625rem 0 rgb(255 255 255 / 0.65),
    inset 0 -0.125rem 0 rgb(0 0 0 / 0.28),
    inset 0.0625rem 0 0 rgb(255 255 255 / 0.25),
    inset -0.0625rem 0 0 rgb(0 0 0 / 0.2),
    0 0 0 0.0625rem rgb(0 0 0 / 0.7),
    0 0.375rem 0 -0.125rem rgb(0 0 0 / 0.55),
    0 3rem 5rem -2rem rgb(var(--glow) / 0.7);
}

.tier:hover .tier-plate {
  background-position: 0 0;
}

.tier:hover {
  background-position: 100% 100%;
}

/* On wide screens the three plates share one height and the three panels another, so everything lines up. */
@media (min-width: 60rem) {
  @supports (grid-template-rows: subgrid) {
    .specs {
      grid-template-rows: auto 1fr;
      row-gap: 0;
    }

    .tier {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
  }
}

/* ---- The tracker: more light, more life ---- */

.tracker {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 1.25rem;
  isolation: isolate;
  background:
    radial-gradient(36rem 22rem at 100% 0%, rgb(201 138 96 / 0.16), rgb(201 138 96 / 0) 70%),
    radial-gradient(30rem 20rem at 0% 100%, rgb(255 182 155 / 0.16), rgb(255 182 155 / 0) 70%),
    radial-gradient(24rem 14rem at 60% 100%, rgb(212 175 106 / 0.1), rgb(95 212 168 / 0) 70%),
    #0b0b0e;
}

/* A light that runs round the edge of the panel. */
.tracker::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 0.0625rem;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), rgb(232 211 168 / 0.9), rgb(212 175 106 / 0.55) 18%, rgb(255 255 255 / 0.07) 36%, rgb(255 255 255 / 0.07) 82%, rgb(212 175 106 / 0.55) 92%, rgb(232 211 168 / 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 0.0625rem solid rgb(212 175 106 / 0.45);
  border-radius: 62.5rem;
  background-color: rgb(212 175 106 / 0.1);
  color: rgb(232 211 168);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgb(212 175 106);
  box-shadow: 0 0 0.5rem rgb(212 175 106);
}

.tracker-title {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  line-height: 1.05;
}

.tracker-copy > p:not(.live-pill) {
  margin-top: 1.25rem;
}

.console {
  border-color: rgb(255 255 255 / 0.14);
  background-color: #141418;
  box-shadow: 0 2.5rem 5rem -2.5rem rgb(0 0 0 / 0.95), 0 0 4rem -1rem rgb(212 175 106 / 0.18);
}

.console .meter-note {
  display: none;
}

/* The big number, and the week beside it. */
.progress {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.progress-num {
  font-size: clamp(3rem, 2.4rem + 2.6vw, 4.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.pct-sign {
  margin-left: 0.125rem;
  color: var(--ink-3);
  font-size: 0.45em;
  font-weight: 700;
}

.progress-meta {
  color: var(--ink-2);
  font-size: var(--t-small);
  text-align: right;
}

.progress-week {
  color: var(--ink);
  font-weight: 700;
}

/* The bar: a gradient from the sky, with a light running through it. */
.console .meter {
  position: relative;
  height: 0.5rem;
  margin-top: 1rem;
  background-color: rgb(255 255 255 / 0.08);
}

.console .meter span {
  position: relative;
  width: var(--p, 66%);
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(201 138 96), rgb(212 175 106) 55%, rgb(232 211 168));
  box-shadow: 0 0 1rem rgb(212 175 106 / 0.4);
}

.console .meter span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0) 0, rgb(255 255 255 / 0.65) 50%, rgb(255 255 255 / 0) 100%);
  transform: translateX(-100%);
}

.console .stepper {
  margin-top: 1.75rem;
}

.console .stepper::before {
  background: rgb(255 255 255 / 0.15);
}

.console .stepper .done::before {
  background-color: rgb(212 175 106);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.25 7 10.5l4.5-5' fill='none' stroke='%231b130d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.console .stepper .done {
  color: var(--ink-2);
}

.console .stepper .now::before {
  background: radial-gradient(circle, rgb(255 182 155) 0 0.3rem, #141418 0.35rem);
  box-shadow: inset 0 0 0 0.125rem rgb(255 182 155), 0 0 0 0.3rem rgb(255 182 155 / 0.18), 0 0 1rem rgb(255 182 155 / 0.5);
}

.console-split {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.console .updates {
  margin-top: 0;
}

/* The small site taking shape. Each stage (data-stage on .console) adds a layer:
   0 scope: outlines only. 1 design: colour. 2 build: content. 3 launch: live. */
.mini-site {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.625rem;
  min-height: 12rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #0c0c0f;
  box-shadow: inset 0 0 0 0.0625rem rgb(255 255 255 / 0.08);
}

.mini-site span {
  display: block;
  border: 0.0625rem dashed rgb(255 255 255 / 0.28);
  border-radius: 0.25rem;
  background-color: transparent;
}

.mini-nav {
  display: flex;
  gap: 0.375rem;
}

.mini-nav span {
  height: 0.5rem;
  flex: 1;
}

.mini-nav span:first-child {
  flex: 2;
}

.mini-hero {
  display: grid;
  gap: 0.375rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
}

.mini-h { height: 0.875rem; width: 75%; }
.mini-l { height: 0.5rem; width: 55%; }
.mini-btn { height: 1rem; width: 30%; margin-top: 0.25rem; }

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.375rem;
}

.mini-cards span {
  aspect-ratio: 4 / 3;
}

.mini-live {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.625rem !important;
  border: 0 !important;
  border-radius: 62.5rem !important;
  background-color: rgb(212 175 106) !important;
  color: #1b130d;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.6);
}

/* Design: the outlines fill with colour. */
.console[data-stage="1"] .mini-site span,
.console[data-stage="2"] .mini-site span,
.console[data-stage="3"] .mini-site span {
  border-style: solid;
  border-color: rgb(255 255 255 / 0.06);
  background-color: rgb(255 255 255 / 0.1);
}

.console[data-stage="1"] .mini-hero,
.console[data-stage="2"] .mini-hero,
.console[data-stage="3"] .mini-hero {
  background: linear-gradient(135deg, rgb(255 182 155 / 0.35), rgb(201 138 96 / 0.3));
}

.console[data-stage="1"] .mini-cards span:nth-child(1),
.console[data-stage="2"] .mini-cards span:nth-child(1),
.console[data-stage="3"] .mini-cards span:nth-child(1) { background-color: rgb(201 138 96 / 0.45); }

.console[data-stage="1"] .mini-cards span:nth-child(2),
.console[data-stage="2"] .mini-cards span:nth-child(2),
.console[data-stage="3"] .mini-cards span:nth-child(2) { background-color: rgb(232 211 168 / 0.35); }

.console[data-stage="1"] .mini-cards span:nth-child(3),
.console[data-stage="2"] .mini-cards span:nth-child(3),
.console[data-stage="3"] .mini-cards span:nth-child(3) { background-color: rgb(212 175 106 / 0.45); }

/* Build: real words and a working button. */
.console[data-stage="2"] .mini-site .mini-h,
.console[data-stage="3"] .mini-site .mini-h,
.console[data-stage="2"] .mini-site .mini-l,
.console[data-stage="3"] .mini-site .mini-l {
  background-color: rgb(255 255 255 / 0.85);
}

.console[data-stage="2"] .mini-site .mini-btn,
.console[data-stage="3"] .mini-site .mini-btn {
  background-color: #fff;
}

/* Launch: it is live. */
.console[data-stage="3"] .mini-live {
  opacity: 1;
  transform: none;
}

.console[data-stage="3"] .mini-site {
  box-shadow: inset 0 0 0 0.0625rem rgb(212 175 106 / 0.6), 0 0 2rem -0.5rem rgb(212 175 106 / 0.45);
}

@media (min-width: 40rem) {
  .console-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

@media (min-width: 60rem) {
  .tracker {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
    gap: 3.5rem;
  }
}

/* ---- The New release label: lettering only, like a jeweller's tag ---- */

.release-new {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: rgb(232 211 168);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.release-new::before,
.release-new::after {
  content: "";
  width: 2.5rem;
  height: 0.0625rem;
  background: linear-gradient(90deg, rgb(212 175 106 / 0), rgb(212 175 106));
}

.release-new::after {
  background: linear-gradient(90deg, rgb(212 175 106), rgb(212 175 106 / 0));
}

.release-name {
  text-shadow: none;
}

/* ---- Flow: the parts follow each other at one rhythm ---- */

.section {
  scroll-margin-top: calc(var(--bar-h) + 1rem);
}

.head .title + p {
  max-width: 40rem;
}

/* ---- Motion for all of the above ---- */

@media (prefers-reduced-motion: no-preference) {
  .tier {
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-position 1.4s var(--ease);
  }

  .tier:hover .tier-plate::after {
    animation: sweep 1.1s var(--ease) both;
  }

  .tracker::before {
    animation: spin 8s linear infinite;
  }

  .console .meter span {
    transition: width 0.6s var(--ease);
  }

  .console .meter span::after {
    animation: shimmer 2.2s ease-in-out infinite;
  }

  .live-dot {
    animation: glow-pulse 1.8s ease-in-out infinite;
  }

  .mini-site span,
  .mini-hero,
  .mini-site {
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out;
  }

  .mini-live {
    transition: opacity 0.4s ease-out, transform 0.5s var(--ease);
  }

  .release-stage::before {
    animation: breathe 7s ease-in-out infinite;
  }

  .paused .tracker::before,
  .paused .console .meter span::after,
  .paused .live-dot,
  .paused .release-stage::before {
    animation-play-state: paused;
  }

  .at-rest .tracker::before,
  .at-rest .console .meter span::after,
  .at-rest .live-dot,
  .at-rest .release-stage::before {
    animation: none;
  }
}

@keyframes spin {
  to { --spin: 360deg; }
}

@keyframes sweep {
  0% { transform: translateX(-120%); }
  30%, 100% { transform: translateX(120%); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.8; scale: 0.94; }
  50% { opacity: 1; scale: 1.06; }
}

@media (forced-colors: active) {
  .tier {
    border: 0.125rem solid CanvasText;
    background: Canvas;
  }

  .tier-body,
  .tracker {
    border: 0.0625rem solid CanvasText;
    background: Canvas;
  }

  .tracker::before,
  .tier-plate::after {
    display: none;
  }
}

/* ---- The tracker runs continuously (js/main.js): the bar follows the number exactly, and updates arrive like
   phone notifications, sliding in at the top and pushing the others down. ---- */

@media (prefers-reduced-motion: no-preference) {
  .console .meter span {
    transition: none;
  }

  .updates li.is-new {
    animation: notify 0.42s cubic-bezier(0.2, 1.2, 0.3, 1) both;
  }

  .at-rest .updates li.is-new {
    animation: none;
  }
}

@keyframes notify {
  from { opacity: 0; transform: translateY(-0.75rem) scale(0.97); }
}

.console .updates {
  min-height: 12.5rem;
}

/* ---- Custom software: a small screen of each kind of tool, in its own colour (redrawn November 23, 2026).
   Each picture is a little window on a dotted stage, and each tells one short story in a loop: the chart draws
   itself, an order moves along its track, a product lands in the basket, a card crosses the board, permissions
   switch on, data passes the lock. The page as written shows the finished state of each story, so that is what
   shows with motion off. The loops stop with "Pause motion" and while the cards are off screen. ---- */

.tile-visual {
  display: block;
  margin: calc(-1 * var(--box-pad)) calc(-1 * var(--box-pad)) 1.5rem;
  padding: 1.125rem 1.125rem 0.875rem;
  border-bottom: 0.0625rem solid var(--line);
  background:
    radial-gradient(20rem 10rem at 50% 0%, rgb(var(--c) / 0.2), rgb(var(--c) / 0) 75%),
    radial-gradient(circle, rgb(255 255 255 / 0.1) 0.05rem, rgb(255 255 255 / 0) 0.0625rem) 50% 0.5rem / 0.875rem 0.875rem;
  color: rgb(var(--c));
}

.viz {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tile::before {
  z-index: 1;
}

/* The parts every picture is drawn from. */
.viz .v-win { fill: #15151a; stroke: rgb(255 255 255 / 0.16); }
.viz .v-in { fill: rgb(255 255 255 / 0.05); stroke: rgb(255 255 255 / 0.1); }
.viz .v-in2 { fill: #1e1e23; stroke: rgb(255 255 255 / 0.14); }
.viz .v-hi { fill: rgb(255 255 255 / 0.62); }
.viz .v-lo { fill: rgb(255 255 255 / 0.18); }
.viz .v-c { fill: currentColor; }
.viz .v-ct { fill: rgb(var(--c) / 0.16); stroke: rgb(var(--c) / 0.55); }

.viz .v-line,
.viz .v-glyph,
.viz .v-tick {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viz .v-glyph { stroke: rgb(255 255 255 / 0.6); stroke-width: 1.3; }
.viz .v-tick { stroke: #141414; stroke-width: 1.7; }

.viz .b-wire {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-opacity: 0.8;
  stroke-dasharray: 5 6;
}

/* Things that only exist while a story is playing. */
.viz .s-fly,
.viz .s-press,
.viz .b-pk {
  opacity: 0;
}

.viz .b-halo {
  opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
  .viz {
    transition: transform 0.5s var(--ease);
  }

  .tile:hover .viz {
    transform: translateY(-0.1875rem) scale(1.02);
  }

  .viz .d-bar,
  .viz .d-grow,
  .viz .d-dot,
  .viz .p-on,
  .viz .s-cart,
  .viz .s-badge,
  .viz .w-meter,
  .viz .w-check,
  .viz .a-badge,
  .viz .b-halo {
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Dashboards: the bars rise one after another, the line draws across them, the last point lights. */
  .viz .d-bar {
    transform-origin: bottom;
    animation: v-bar 5s var(--ease) var(--d, 0s) infinite backwards;
  }

  .viz .d-grow {
    transform-origin: left;
    animation: v-grow 5s var(--ease) var(--d, 0s) infinite backwards;
  }

  .viz .d-line {
    stroke-dasharray: 100;
    animation: v-draw 5s ease-in-out infinite;
  }

  .viz .d-dot {
    animation: v-dot 5s ease-out infinite;
  }

  /* Customer portals: an order moves along its track, stop by stop, and then it has arrived. */
  .viz .p-fill {
    stroke-dasharray: 100;
    animation: v-track 6s ease-in-out infinite;
  }

  .viz .p-on {
    animation: v-stop-2 6s ease-out infinite;
  }

  .viz .p-s3 { animation-name: v-stop-3; }
  .viz .p-s4 { animation-name: v-stop-4; }

  .viz .p-pill {
    animation: v-pill 6s ease-out infinite;
  }

  /* Online shops: a button is pressed, the product flies to the basket, the basket jumps. */
  .viz .s-fly {
    offset-path: path("M70 137C90 60 200 26 278 28");
    animation: v-fly 5s cubic-bezier(0.5, 0, 0.3, 1) infinite;
  }

  .viz .s-press {
    animation: v-press 5s ease-out infinite;
  }

  .viz .s-2 {
    animation-delay: 2.5s;
  }

  .viz .s-fly.s-2 {
    offset-path: path("M250 137C268 100 280 60 278 28");
  }

  .viz .s-cart,
  .viz .s-badge {
    animation: v-bump 2.5s ease-out infinite;
  }

  /* Admin tools and workflows: one card crosses the board, is checked in the middle, and lands as done. */
  .viz .w-card {
    animation: v-move 7s var(--ease) infinite;
  }

  .viz .w-meter {
    transform-origin: left;
    animation: v-meter 7s ease-in-out infinite;
  }

  .viz .w-check {
    animation: v-check 7s ease-out infinite;
  }

  /* User accounts: two permissions switch on, and the person is approved. */
  .viz .a-knob {
    animation: v-knob 6s var(--ease) infinite backwards;
  }

  .viz .a-on {
    animation: v-on 6s ease-out infinite backwards;
  }

  .viz .a-2 {
    animation-delay: 1.1s;
  }

  .viz .a-badge {
    animation: v-badge 6s ease-out infinite;
  }

  /* Databases and secure APIs: data leaves the store, passes the lock, and reaches each tool. */
  .viz .b-wire {
    animation: wire 1.2s linear var(--d, 0s) infinite;
  }

  .viz .b-pk {
    animation: v-through 3.6s linear infinite;
  }

  .viz .b-p1 { offset-path: path("M96 85H178C198 85 194 36 214 36"); }
  .viz .b-p2 { offset-path: path("M96 85H214"); animation-delay: 1.2s; }
  .viz .b-p3 { offset-path: path("M96 85H178C198 85 194 134 214 134"); animation-delay: 2.4s; }
  .viz .b-p4 { offset-path: path("M214 36C194 36 198 85 178 85H96"); animation-delay: 1.8s; }

  .viz .b-halo {
    animation: v-halo 1.2s ease-out infinite;
  }

  .viz .b-ring {
    animation: v-glow 2.4s ease-in-out var(--d, 0s) infinite;
  }

  .viz .b-led {
    animation: v-blink 1.5s ease-in-out var(--d, 0s) infinite;
  }

  .paused .viz *,
  .grid6.is-away .viz * {
    animation-play-state: paused;
  }

  .at-rest .viz * {
    animation: none;
  }
}

@keyframes v-bar {
  0% { transform: scaleY(0.1); }
  26%, 90% { transform: scaleY(1); }
  100% { transform: scaleY(0.1); }
}

@keyframes v-grow {
  0% { transform: scaleX(0.3); }
  30%, 90% { transform: scaleX(1); }
  100% { transform: scaleX(0.3); }
}

@keyframes v-draw {
  0%, 16% { stroke-dashoffset: 100; opacity: 1; }
  52%, 90% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes v-dot {
  0%, 50% { opacity: 0; transform: scale(0.2); }
  56% { opacity: 1; transform: scale(1.6); }
  62%, 90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes v-track {
  0%, 8% { stroke-dashoffset: 100; }
  18%, 32% { stroke-dashoffset: 66.7; }
  42%, 56% { stroke-dashoffset: 33.3; }
  66%, 93% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}

@keyframes v-stop-2 {
  0%, 16% { opacity: 0; transform: scale(0.3); }
  21% { opacity: 1; transform: scale(1.35); }
  27%, 93% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes v-stop-3 {
  0%, 40% { opacity: 0; transform: scale(0.3); }
  45% { opacity: 1; transform: scale(1.35); }
  51%, 93% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes v-stop-4 {
  0%, 64% { opacity: 0; transform: scale(0.3); }
  69% { opacity: 1; transform: scale(1.35); }
  75%, 93% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes v-pill {
  0%, 64% { opacity: 0.35; }
  70%, 93% { opacity: 1; }
  100% { opacity: 0.35; }
}

@keyframes v-fly {
  0%, 14% { offset-distance: 0%; opacity: 0; }
  18% { offset-distance: 0%; opacity: 1; }
  42% { offset-distance: 100%; opacity: 1; }
  46%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes v-press {
  0%, 6% { opacity: 0; }
  10%, 30% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

@keyframes v-bump {
  0%, 80% { transform: scale(1); }
  88% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes v-move {
  0% { transform: translate(-180px, 32px); opacity: 0; }
  6%, 16% { transform: translate(-180px, 32px); opacity: 1; }
  30%, 52% { transform: translate(-90px, 0); opacity: 1; }
  66%, 92% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}

@keyframes v-meter {
  0%, 30% { transform: scaleX(0); }
  52%, 100% { transform: scaleX(1); }
}

@keyframes v-check {
  0%, 66% { opacity: 0; transform: scale(0.3); }
  71% { opacity: 1; transform: scale(1.3); }
  77%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes v-knob {
  0%, 12% { transform: translateX(-12px); }
  20%, 86% { transform: translateX(0); }
  94%, 100% { transform: translateX(-12px); }
}

@keyframes v-on {
  0%, 12% { opacity: 0; }
  20%, 86% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

@keyframes v-badge {
  0%, 38% { opacity: 0; transform: scale(0.3); }
  44% { opacity: 1; transform: scale(1.3); }
  50%, 86% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.3); }
}

@keyframes v-through {
  0% { offset-distance: 0%; opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes v-halo {
  from { transform: scale(0.7); opacity: 0.9; }
  to { transform: scale(1.25); opacity: 0; }
}

@keyframes v-glow {
  0%, 100% { stroke-opacity: 0.35; }
  50% { stroke-opacity: 1; }
}

@keyframes v-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes wire {
  to { stroke-dashoffset: -22; }
}

/* ---- The example portfolio: a real-looking site with a portrait (an illustration, not a real person) ---- */

.folio-mock {
  background-color: #f4ede1;
}

.folio-mock .console-bar {
  background-color: #e7ddcd;
  border-bottom-color: rgb(0 0 0 / 0.08);
}

.folio-mock .console-url {
  background-color: #fbf7f0;
  color: #5b4b3d;
}

.mock-page {
  padding: 1rem 1.25rem 1.25rem;
  color: #2b2018;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-logo {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: #2b2018;
  color: #f4ede1;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mock-links {
  display: flex;
  gap: 0.5rem;
}

.mock-links i {
  width: 1.75rem;
  height: 0.3125rem;
  border-radius: 1rem;
  background-color: rgb(43 32 24 / 0.35);
}

.mock-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.mock-portrait {
  flex: none;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  box-shadow: 0 0.5rem 1.25rem -0.5rem rgb(43 32 24 / 0.5);
}

.mock-name {
  color: #2b2018;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.mock-role {
  margin-top: 0.25rem;
  color: #6b5644;
  font-size: 0.8125rem;
}

.mock-btn {
  display: inline-block;
  margin-top: 0.625rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 62.5rem;
  background-color: #2b2018;
  color: #f4ede1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mock-section {
  margin-top: 1.25rem;
  color: #6b5644;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mock-grid {
  margin-top: 0.625rem;
  gap: 0.625rem;
}

.mock-card {
  padding: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: 0 0.25rem 0.75rem -0.25rem rgb(43 32 24 / 0.25);
}

.mock-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: none;
}

.mock-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mock-cap {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem 0.625rem;
}

.mock-card .mock-line {
  width: 70%;
  height: 0.3125rem;
  margin: 0;
  background-color: rgb(43 32 24 / 0.7);
}

.mock-tagline {
  display: block;
  width: 45%;
  height: 0.25rem;
  border-radius: 1rem;
  background-color: rgb(43 32 24 / 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .mock-card {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }

  .folio-mock:hover .mock-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 1.25rem -0.5rem rgb(43 32 24 / 0.4);
  }
}

/* ---- The Earth stays faintly in view behind the middle of the page (the owner asked for a brighter world).
   The sheet is 78% black; every block of text on it sits in an opaque box, and the headings and lines on the
   sheet itself still pass over the brightest dawn (white 12.4:1, the quietest grey 5.0:1). ---- */
.sheet {
  background-color: rgb(0 0 0 / 0.78);
}

.sheet::before {
  background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.78));
}

.closing::before {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0));
}

/* ---- The New release head: no panel behind it (the owner's request). The words stay readable over the sky
   with a soft dark fade that has no edges, and a shadow close around the letters. ---- */
.release-head {
  position: relative;
  isolation: isolate;
}

.release-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -10rem;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.45) 55%, rgb(0 0 0 / 0));
  pointer-events: none;
}

.release-head .release-name,
.release-head .release-claim,
.release-head .release-sub,
.release-head .release-new {
  text-shadow: 0 0 0.75rem rgb(0 0 0 / 0.9), 0 0 2rem rgb(0 0 0 / 0.7);
}

/* ---- The opening and the closing match the New release: no panel behind the words, only a soft dark fade
   with no edges and a shadow close around the letters. ---- */
.glow {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  box-shadow: none;
}

.glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -8rem;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.45) 55%, rgb(0 0 0 / 0));
  pointer-events: none;
}

.glow .display,
.glow .lede {
  text-shadow: 0 0 0.75rem rgb(0 0 0 / 0.9), 0 0 2rem rgb(0 0 0 / 0.7);
}

/* The soft fade behind the words is wider than a phone screen; keep it inside the screen. */
.screen {
  overflow-x: clip;
}

/* The plain pages are short: their bar sits at the top of the page instead of floating over it, so it can
   never cover the title, however many rows its links need on a phone. */
.page-plain .top {
  position: relative;
}

.page-plain .plain-main {
  padding-top: clamp(2.5rem, 6vh, 4rem);
}

/* ---- The plain pages: privacy, terms, page not found ---- */

.page-plain {
  background-color: #000;
}

.page-plain .top {
  background-color: #000;
  box-shadow: 0 0.0625rem 0 var(--line);
}

.page-plain .top::after {
  display: none;
}

/* These pages have no menu button, so the links stay in view; on a phone they sit on a second row. */
.page-plain .nav {
  display: flex;
}

@media (max-width: 59.99rem) {
  .page-plain .bar {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .page-plain .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    margin-left: -0.5rem;
  }

  .page-plain .nav a {
    min-height: 2.75rem;
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }

  .page-plain .nav .nav-cta {
    margin-left: 0.5rem;
    padding-inline: 0.75rem;
  }
}

.doc {
  max-width: 48rem;
  margin-inline: auto;
}

.doc-date {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-intro {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}

.doc-part {
  margin-top: 1rem;
}

.doc-head + .doc-part {
  margin-top: 2.5rem;
}

.doc-part h2 {
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-part p {
  max-width: 40rem;
  margin-top: 0.75rem;
  color: var(--ink-2);
}

.doc-part a {
  color: var(--ink);
}

.lost {
  display: grid;
  justify-items: center;
  min-height: 60vh;
  align-content: center;
  text-align: center;
}

.lost-code {
  color: rgb(212 175 106);
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lost .title {
  margin-top: 1rem;
}

.lost-text {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--t-lede);
}

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

/* ==================================================================================================
   The metal cards, refined (November 14, 2026): smoother metal with a soft sheen, a fine brushed grain,
   engraved lettering, the Monolen dawn mark, a quieter "Recommended" tag, and a tilt that glides.
   The darkest part of each metal stays light enough for the dark engraved words (at least 4.6:1).
   ================================================================================================== */

.tier {
  --metal-dark: #b37b55;
  --metal: linear-gradient(135deg, #b37b55 0%, #d89e74 22%, #f2cdaa 40%, #c4895f 58%, #ebbe97 76%, #b37b55 100%);
  --engrave: #2a1a10;
  --glow: 214 150 105;
  background-size: 160% 160%;
  background-position: 30% 30%;
  border-radius: 1.375rem;
  will-change: transform;
}

.tier-silver {
  --metal-dark: #a3abb6;
  --metal: linear-gradient(135deg, #a3abb6 0%, #dde1e6 22%, #f8f9fb 40%, #b4bbc5 58%, #eceef1 76%, #a3abb6 100%);
  --engrave: #1d2128;
  --glow: 205 212 222;
}

.tier-gold {
  --metal-dark: #c49d48;
  --metal: linear-gradient(135deg, #c49d48 0%, #e5c374 22%, #fbeab2 40%, #d1ab55 58%, #f3dc94 76%, #c49d48 100%);
  --engrave: #2a1f0b;
  --glow: 228 190 100;
}

/* A fine brushed grain, like real satin metal, laid softly over the colour. */
.tier::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

/* A soft sheen that follows the pointer, plus a gentle highlight along the top edge. */
.tier::after {
  background:
    radial-gradient(28rem 18rem at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.32), rgb(255 255 255 / 0) 60%),
    linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0) 22%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.tier:hover::after {
  opacity: 1;
}

/* The edge: a fine bright line on top, a darker one at the foot, like a bevel. */
.tier {
  box-shadow:
    inset 0 0.0625rem 0 rgb(255 255 255 / 0.75),
    inset 0 -0.0625rem 0 rgb(0 0 0 / 0.25),
    inset 0 0 0 0.0625rem rgb(255 255 255 / 0.12),
    0 0 0 0.0625rem rgb(0 0 0 / 0.65),
    0 1.25rem 2.5rem -1.25rem rgb(0 0 0 / 0.9),
    0 2.5rem 5rem -2.5rem rgb(var(--glow) / 0.45);
}

.tier:hover {
  --lift: -0.375rem;
  box-shadow:
    inset 0 0.0625rem 0 rgb(255 255 255 / 0.8),
    inset 0 -0.0625rem 0 rgb(0 0 0 / 0.25),
    inset 0 0 0 0.0625rem rgb(255 255 255 / 0.14),
    0 0 0 0.0625rem rgb(0 0 0 / 0.65),
    0 1.75rem 3rem -1.25rem rgb(0 0 0 / 0.95),
    0 3rem 6rem -2.5rem rgb(var(--glow) / 0.6);
}

/* Engraved lettering: dark, with a thin light edge below, as if cut into the metal. */
.tier-plate {
  color: var(--engrave);
}

.tier .spec-name,
.tier .spec-for,
.tier .tier-metal {
  color: var(--engrave);
  text-shadow: 0 0.0625rem 0 rgb(255 255 255 / 0.45);
}

.tier .spec-name {
  letter-spacing: 0.04em;
}

.tier .spec-for {
  opacity: 0.9;
}

.tier-metal {
  letter-spacing: 0.34em;
}

.tier-emblem {
  color: var(--engrave);
  opacity: 0.6;
  filter: drop-shadow(0 0.0625rem 0 rgb(255 255 255 / 0.5));
}

/* The sweep of light on hover, softer and wider. */
.tier-plate::after {
  background: linear-gradient(105deg, rgb(255 255 255 / 0) 35%, rgb(255 255 255 / 0.4) 50%, rgb(255 255 255 / 0) 65%);
  mix-blend-mode: soft-light;
}

/* The dark panel: set a little deeper, with a softer inner shadow. */
.tier-body {
  background: linear-gradient(180deg, #111115, #0b0b0e);
  box-shadow:
    inset 0 0.125rem 0.5rem rgb(0 0 0 / 0.75),
    inset 0 0 0 0.0625rem rgb(0 0 0 / 0.55),
    0 0.0625rem 0 rgb(255 255 255 / 0.45),
    0 -0.0625rem 0 rgb(0 0 0 / 0.2);
}

/* "Recommended": a small dark tag with champagne lettering and a fine gold edge, centred on the top edge. */
.tier .pick {
  left: 50%;
  top: -0.8125rem;
  padding: 0.3125rem 0.875rem;
  border: 0.0625rem solid rgb(212 175 106 / 0.75);
  border-radius: 62.5rem;
  background-color: #0d0d10;
  color: rgb(232 211 168);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  transform: translateX(-50%) translateZ(2.5rem);
  box-shadow: 0 0.375rem 1rem -0.375rem rgb(0 0 0 / 0.9);
}

@media (prefers-reduced-motion: no-preference) {
  /* The tilt is moved frame by frame by js/main.js, so only the lift and the shadow ease here. */
  .tier,
  .tier.tilting {
    transition: box-shadow 0.7s var(--ease), background-position 1.6s var(--ease), translate 0.7s var(--ease);
  }

  .tier {
    transform: perspective(70rem) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    translate: 0 var(--lift, 0);
  }

  .tier::after {
    transition: opacity 0.5s ease-out;
  }

  .tier:hover {
    background-position: 70% 70%;
  }
}

/* Polished metal: a bright band of light across a darker metal, like light on a real metal card.
   The ends are the darkest parts and stay light enough for the engraved words (at least 4.6:1). On hover the
   band glides across the card. */
.tier {
  --metal: linear-gradient(115deg, #b37b55 0%, #cf9670 26%, #efc6a1 44%, #fbe2c8 50%, #efc6a1 56%, #cf9670 74%, #b37b55 100%);
  background-size: 220% 100%;
  background-position: 20% 0;
}

.tier-silver {
  --metal: linear-gradient(115deg, #a3abb6 0%, #c3c9d1 26%, #e6e9ee 44%, #ffffff 50%, #e6e9ee 56%, #c3c9d1 74%, #a3abb6 100%);
}

.tier-gold {
  --metal: linear-gradient(115deg, #c49d48 0%, #dbb865 26%, #f1d991 44%, #fff2c6 50%, #f1d991 56%, #dbb865 74%, #c49d48 100%);
}

.tier::after {
  opacity: 0.35;
}

.tier:hover::after {
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  .tier:hover {
    background-position: 80% 0;
  }
}

/* ==================================================================================================
   Space cards (November 14, 2026): each metal card carries a small engraved space scene that moves (moons on
   their orbits, stars that twinkle), a sheen that sweeps across it now and then, and the three cards drift
   gently, a little out of step, like objects floating in space. All of it stops with "Pause motion" and for
   reduced motion.
   ================================================================================================== */

/* The engraved scene in the corner. */
.tier-top {
  align-items: flex-start;
}

.tier-orbit {
  flex: none;
  width: 4.75rem;
  height: 4.75rem;
  margin: -0.5rem -0.375rem -1.25rem 0;
  overflow: visible;
  color: var(--engrave);
  opacity: 0.7;
  filter: drop-shadow(0 0.0625rem 0 rgb(255 255 255 / 0.45));
}

.tier-orbit .spin {
  transform: rotate(var(--a, 0deg));
}

/* Stars across the whole metal face, like pinpricks of light. */
.tier-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgb(255 255 255 / 0.9) 0 0.06rem, transparent 0.09rem),
    radial-gradient(circle at 38% 12%, rgb(255 255 255 / 0.7) 0 0.05rem, transparent 0.08rem),
    radial-gradient(circle at 58% 34%, rgb(255 255 255 / 0.8) 0 0.05rem, transparent 0.08rem),
    radial-gradient(circle at 26% 64%, rgb(255 255 255 / 0.6) 0 0.045rem, transparent 0.08rem),
    radial-gradient(circle at 72% 72%, rgb(255 255 255 / 0.85) 0 0.06rem, transparent 0.09rem),
    radial-gradient(circle at 88% 46%, rgb(255 255 255 / 0.6) 0 0.045rem, transparent 0.08rem),
    radial-gradient(circle at 46% 86%, rgb(255 255 255 / 0.7) 0 0.05rem, transparent 0.08rem);
  pointer-events: none;
}

.tier-plate > * {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  /* Moons on their orbits. */
  .tier-orbit .spin {
    animation: orbit var(--s, 16s) linear infinite;
  }

  /* Stars twinkle, each at its own time. */
  .tier-orbit .tw {
    animation: twinkle 3.2s ease-in-out infinite;
    animation-delay: calc(var(--k) * -0.55s);
  }

  .tier-orbit .rays {
    transform-box: view-box;
    transform-origin: 50px 50px;
    animation: rays 24s linear infinite;
  }

  .tier-plate::before {
    animation: star-dust 4.5s ease-in-out infinite alternate;
  }

  /* Now and then a sheen sweeps across the metal by itself, each card at its own time. */
  .tier-plate::after {
    animation: sheen 7.5s var(--ease) infinite;
  }

  .tier-silver .tier-plate::after { animation-delay: 2.5s; }
  .tier-gold .tier-plate::after { animation-delay: 5s; }

  .tier:hover .tier-plate::after {
    animation: sweep 1.1s var(--ease) both;
  }

  /* The three cards drift gently, out of step, like objects floating in space. */
  @supports (translate: 0 calc(sin(1deg) * 1px)) {
    .specs {
      animation: drift-clock 9s linear infinite;
    }

    .tier { --ph: 0deg; }
    .tier-silver { --ph: 120deg; }
    .tier-gold { --ph: 240deg; }

    .tier {
      translate: 0 calc(var(--lift, 0rem) + sin(var(--t) + var(--ph)) * 0.375rem);
    }
  }

  .paused .tier-orbit *,
  .paused .tier-plate::before,
  .paused .tier-plate::after,
  .paused .specs {
    animation-play-state: paused;
  }

  .at-rest .tier-orbit *,
  .at-rest .tier-plate::before,
  .at-rest .tier-plate::after,
  .at-rest .specs {
    animation: none;
  }
}

@property --t {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes drift-clock {
  to { --t: 360deg; }
}

@keyframes orbit {
  from { transform: rotate(var(--a, 0deg)); }
  to { transform: rotate(calc(var(--a, 0deg) + 360deg)); }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

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

@keyframes star-dust {
  from { opacity: 0.35; }
  to { opacity: 0.9; }
}

@keyframes sheen {
  0% { transform: translateX(-70%); }
  22%, 100% { transform: translateX(70%); }
}

/* The space scene sits large in the top right corner of the metal, behind the words, so every title stays level. */
.tier-plate {
  min-height: 11.5rem;
}

.tier-top {
  position: static;
}

.tier-orbit {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0;
  opacity: 0.55;
  filter: drop-shadow(0 0.0625rem 0 rgb(255 255 255 / 0.5));
  pointer-events: none;
}

.tier .spec-name,
.tier .spec-for {
  max-width: calc(100% - 4rem);
}

.tier .spec-for {
  max-width: 100%;
}

@media (min-width: 60rem) {
  .tier-plate {
    min-height: 0;
  }
}

/* The scene has its own band at the top of the card, beside the metal's name, so it never touches the title. */
.tier-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 5.25rem;
}

.tier-orbit {
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  width: 7.25rem;
  height: 7.25rem;
  opacity: 0.6;
}

.tier .spec-name {
  max-width: none;
  margin-top: 0.5rem;
}

.tier-plate {
  min-height: 0;
}

/* ==================================================================================================
   The card scenes, livelier and sized to the card (November 14, 2026): an engraved, shaded planet, rings that
   pass behind and in front of it, moons with a fading trail, a sun with a breathing corona, twinkling stars,
   and a shooting star across the metal now and then. The scene grows on hover. Everything is sized to the
   card's own width, so it fits a phone and a wide screen alike, and all motion stops with "Pause motion".
   ================================================================================================== */

/* The scene and the title are sized to the metal face (not the whole card, which lines up with its
   neighbours through a subgrid that a size container would switch off). */
.tier-plate {
  container-type: inline-size;
}

.tier-orbit {
  top: -0.75rem;
  right: -0.25rem;
  width: clamp(5.5rem, 34cqi, 8rem);
  height: clamp(5.5rem, 34cqi, 8rem);
  opacity: 0.68;
}

.tier-top {
  height: clamp(4.25rem, 22cqi, 5.5rem);
}

.tier .spec-name {
  font-size: clamp(1.25rem, 0.9rem + 3.4cqi, 1.75rem);
}

/* The shooting star: a short line of light that crosses the metal, high up. */
.shoot {
  position: absolute;
  top: 18%;
  left: -30%;
  width: 4.5rem;
  height: 0.0625rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.95));
  box-shadow: 0 0 0.375rem rgb(255 255 255 / 0.8);
  opacity: 0;
  transform: rotate(-14deg);
  pointer-events: none;
}

.tier-silver .shoot { top: 30%; }
.tier-gold .shoot { top: 12%; }

@media (prefers-reduced-motion: no-preference) {
  .tier-orbit {
    transition: transform 0.9s var(--ease), opacity 0.6s ease-out;
  }

  .tier:hover .tier-orbit {
    transform: scale(1.12) rotate(-4deg);
    opacity: 0.85;
  }

  .tier-orbit .corona {
    transform-box: view-box;
    transform-origin: 50px 50px;
    animation: corona 3.6s ease-in-out infinite;
  }

  .shoot {
    animation: shoot 9s cubic-bezier(0.3, 0, 0.2, 1) infinite;
  }

  .tier-silver .shoot { animation-delay: 3s; }
  .tier-gold .shoot { animation-delay: 6s; }

  .paused .shoot,
  .paused .tier-orbit .corona {
    animation-play-state: paused;
  }

  .at-rest .shoot,
  .at-rest .tier-orbit .corona {
    animation: none;
  }
}

@keyframes corona {
  0%, 100% { transform: scale(1); opacity: 0.14; }
  50% { transform: scale(1.35); opacity: 0.28; }
}

@keyframes shoot {
  0%, 82% { left: -30%; opacity: 0; }
  84% { opacity: 1; }
  92% { left: 110%; opacity: 0; }
  100% { left: 110%; opacity: 0; }
}

/* Smoother movement: a gentler tilt, and no layer forced on the card at rest, so the words stay sharp. */
.tier {
  will-change: auto;
}

.tier.tilting {
  will-change: transform;
}

/* Phones: the scene stays in its corner and the cards breathe a little less. */
@media (max-width: 39.99rem) {
  .tier-orbit {
    width: 6rem;
    height: 6rem;
  }
}

/* ==================================================================================================
   Typography: elegant sentence case (the owner's choice, November 14, 2026), so the site no longer reads like
   a copy of SpaceX. Headings are large and light with tight spacing; buttons and links are in normal case;
   small labels are champagne with only a little spacing. One typeface, Ysabeau Office, as before.
   ================================================================================================== */

:root {
  --t-display: clamp(2.5rem, 1.35rem + 4.6vw, 5.25rem);
  --t-title: clamp(2.125rem, 1.5rem + 2.6vw, 3.75rem);
  --champagne: rgb(232 211 168);
}

/* Headings */
.display,
.title,
.doc-part h2,
.tier .spec-name,
.tracker-title {
  text-transform: none;
}

.display {
  max-width: 15em;
  font-weight: 340;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* The one word of the opening's heading that is picked out in colour (the owner's request, November 24, 2026):
   the dawn colour here, 12.4:1 on black; light mode gives it a burnt orange in theme.css. */
.display .key {
  color: var(--accent);
}

.title {
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.tracker-title {
  font-weight: 400;
  letter-spacing: -0.02em;
}

h3,
.doc-part h2 {
  text-transform: none;
  font-weight: 620;
  letter-spacing: -0.005em;
}

h3 {
  font-size: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
}

.tier .spec-name {
  font-weight: 560;
  letter-spacing: -0.015em;
}

.release-name {
  font-weight: 650;
  letter-spacing: -0.025em;
}

.release-claim {
  font-weight: 450;
  letter-spacing: -0.015em;
}

/* The name in the bar: a word, not a spaced-out logo. */
.brand {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* Buttons and links: normal case, softly rounded. */
.btn,
.nav a,
.pause,
.phone-play,
.foot-links a {
  text-transform: none;
  letter-spacing: 0.005em;
}

.btn {
  border-radius: 62.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.nav a {
  font-size: 0.9688rem;
  font-weight: 550;
}

.nav .nav-cta {
  border-radius: 62.5rem;
  font-weight: 600;
}

.pause {
  border-radius: 62.5rem;
}

.phone-play {
  border-radius: 62.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.foot-links a {
  font-size: 0.9375rem;
  font-weight: 550;
}

/* Small labels: champagne, normal case, a little spacing. */
.label,
.rows dt,
.stats dt,
.release-stats dt,
.console-label,
.product-own,
.doc-date,
.cast span,
.mock-section,
.stepper {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 550;
}

.label,
.rows dt,
.stats dt,
.release-stats dt,
.console-label,
.product-own {
  color: var(--champagne);
  font-size: 0.875rem;
}

.doc-date,
.cast span,
.stepper {
  font-size: 0.875rem;
}

/* Tags and badges: normal case. */
.pick,
.t-tag,
.tag,
.status,
.mini-live,
.folio-tag,
.live-pill,
.tier-metal,
.release-new {
  text-transform: none;
  letter-spacing: 0.02em;
}

.tag,
.status,
.mini-live {
  font-size: 0.8125rem;
}

.pick {
  font-size: 0.75rem;
  font-weight: 650;
}

.tier-metal {
  font-size: 0.875rem;
  font-weight: 650;
}

.release-new {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.folio-tag,
.live-pill {
  font-size: 0.8125rem;
  font-weight: 650;
}

.mock-name {
  text-transform: none;
  letter-spacing: -0.01em;
}

.mock-section {
  font-size: 0.75rem;
}

/* The dark panel in each metal card: a solid colour under its gradient, so it is dark even where the
   gradient is not drawn, and checking tools can measure the words on it. */
.tier-body {
  background-color: #0d0d10;
  background-image: linear-gradient(180deg, #111115, #0b0b0e);
}

/* The labels on the offer steps, in normal case too. */
.offer-steps .t-tag {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  border-radius: 62.5rem;
  padding: 0.25rem 0.75rem;
}

/* ---- The portfolio offer (the owner's request, November 21, 2026): 50% off the finished portfolio, with a
   code sent by email. Antique gold, plain lettering in a fine frame, no glow. On the dark panel: words 12.9:1,
   "50% off" in antique gold 9.4:1. ---- */
.folio-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1.125rem;
  border: 0.0625rem solid rgb(212 175 106 / 0.55);
  border-radius: var(--box-r);
  background-color: #17140e;
  color: var(--ink-2);
  font-size: var(--t-body);
}

.folio-offer-big {
  color: rgb(212 175 106);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.folio-offer a {
  color: var(--ink);
  font-weight: 600;
}

.folio-offer a:hover {
  color: var(--accent);
}

/* ==================================================================================================
   Agentic AI, inside the custom software section (the owner's request, November 23, 2026). A band under the
   six cards: the words on one side, and on the other an example workflow that an agent works through, step by
   step, until it stops and asks for a person's OK. js/main.js sets data-step (0 to 5) on .agent-run:
   0 to 3 the agent is working on that row, 4 it waits for the OK, 5 it is approved and sent. The page as
   written shows step 4, so that is what shows without JavaScript and with motion off.
   Colours: the dawn accent while the agent works, champagne while it waits, white when a step is done.
   On the panel (#141418): white 18.4:1, light grey 11.1:1, grey 7.3:1, accent 10.9:1, champagne 12.5:1.
   ================================================================================================== */

.agent {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 0.0625rem solid var(--box-edge);
  border-radius: 1.25rem;
  background:
    radial-gradient(34rem 20rem at 0% 0%, rgb(255 182 155 / 0.13), rgb(255 182 155 / 0) 70%),
    radial-gradient(30rem 18rem at 100% 100%, rgb(232 211 168 / 0.08), rgb(232 211 168 / 0) 70%),
    #0b0b0e;
}

.agent-title {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.agent-copy > p:not(.label) {
  max-width: 32rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
}

.agent .ticks {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.5rem;
}

/* The tools, as their own marks in their own colours with the name beside each (the owner's request, November 23,
   2026). Made bigger the next day, when the owner also asked for motion: the chips take turns to lift a little
   while a band of light crosses them. The chip moves, never the mark inside it. */
.agent-tools {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 0.0625rem solid var(--line);
}

.agent-tools p {
  color: var(--ink-3);
  font-size: var(--t-small);
}

.agent-marks {
  --mark-light: rgb(255 255 255 / 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.agent-marks li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem 0.625rem 1rem;
  overflow: hidden;
  border: 0.0625rem solid rgb(255 255 255 / 0.16);
  border-radius: 62.5rem;
  background-color: rgb(255 255 255 / 0.04);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
}

.agent-marks .agent-logo {
  width: 1.5rem;
  height: 1.5rem;
}

/* The band of light that crosses a chip on its turn. It waits out of sight to the left. */
.agent-marks li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, rgb(255 255 255 / 0), var(--mark-light) 50%, rgb(255 255 255 / 0));
  transform: translateX(-130%);
  pointer-events: none;
}

/* One after another, every six seconds: a small lift, a brighter edge, the light across. Held still by "Pause
   motion", at rest for the checking switches, and never started when the system asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .agent-marks li {
    animation: mark-turn 6s var(--ease) infinite;
  }

  .agent-marks li::after {
    animation: mark-light 6s ease-in-out infinite;
  }

  .agent-marks li:nth-child(2),
  .agent-marks li:nth-child(2)::after {
    animation-delay: 2s;
  }

  .agent-marks li:nth-child(3),
  .agent-marks li:nth-child(3)::after {
    animation-delay: 4s;
  }

  .paused .agent-marks li,
  .paused .agent-marks li::after {
    animation-play-state: paused;
  }

  .at-rest .agent-marks li,
  .at-rest .agent-marks li::after {
    animation: none;
  }
}

@keyframes mark-turn {
  0%, 30%, 100% { transform: translateY(0); border-color: rgb(255 255 255 / 0.16); }
  12% { transform: translateY(-0.25rem); border-color: var(--accent); }
}

@keyframes mark-light {
  0% { transform: translateX(-130%); }
  26%, 100% { transform: translateX(330%); }
}

/* n8n's mark is nearly twice as wide as it is tall. */
.agent-logo.agent-logo-wide {
  width: 1.425rem;
  height: 0.75rem;
}

.agent-marks .agent-logo.agent-logo-wide {
  width: 2.1875rem;
  height: 1.125rem;
}

.agent-copy .btn {
  margin-top: 1.75rem;
}

/* The picture */
.agent-run {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 0.0625rem solid rgb(255 255 255 / 0.14);
  border-radius: 0.75rem;
  background-color: #141418;
  box-shadow: 0 2.5rem 5rem -2.5rem rgb(0 0 0 / 0.95), 0 0 4rem -1rem rgb(255 182 155 / 0.16);
  cursor: default;
  --p: 75%;
}

.agent-body {
  padding: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
}

.agent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.agent-run .status {
  border-radius: 62.5rem;
}

.agent-run .status.is-ask {
  border-color: rgb(232 211 168 / 0.7);
}

.agent-run .status.is-ask .pulse {
  background-color: var(--champagne);
}

/* The flow, on a dotted canvas like a workflow editor: three kinds of request on the left (email, a form, a
   chat), the agent in the middle, finished work on the right (sorted, a record, a reply). Each finished piece
   gets a tick on its corner. Under the agent, joined to it by a short line, is what it runs on. */
.agent-canvas {
  margin-top: 1.25rem;
  padding: 0.875rem 0.75rem 1rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.1);
  border-radius: 0.625rem;
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.09) 0.05rem, rgb(255 255 255 / 0) 0.0625rem) 50% 50% / 0.875rem 0.875rem,
    #0e0e11;
}

.agent-flow {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--accent);
}

.agent-flow .core-arc,
.agent-flow .core-ticks,
.agent-flow .core-halo,
.agent-flow .core-dot,
.agent-flow .o-ring {
  transform-box: fill-box;
  transform-origin: center;
}

.agent-flow .n-box,
.flow-out .o-box {
  fill: #1a1a1f;
  stroke: rgb(255 255 255 / 0.16);
}

.agent-flow .n-chip { fill: rgb(255 182 155 / 0.16); }
.agent-flow .n-hi { fill: rgb(255 255 255 / 0.6); }
.agent-flow .n-lo { fill: rgb(255 255 255 / 0.18); }

.agent-flow .n-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-out .o-chip { fill: rgb(255 255 255 / 0.07); }
.flow-out .n-icon { stroke: rgb(255 255 255 / 0.4); }
.flow-out .o-line { fill: rgb(255 255 255 / 0.18); }

.flow-out .o-ring {
  fill: #141418;
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 1.5;
}

.flow-out .o-check {
  fill: none;
  stroke: #141418;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.flow-out.on .o-box {
  fill: #211b1a;
  stroke: rgb(255 182 155 / 0.6);
}

.flow-out.on .o-chip { fill: rgb(255 182 155 / 0.18); }
.flow-out.on .n-icon { stroke: currentColor; }
.flow-out.on .o-line { fill: rgb(255 255 255 / 0.6); }
.flow-out.on .o-line-2 { fill: rgb(255 255 255 / 0.22); }
.flow-out.on .o-check { opacity: 1; }

.flow-out.on .o-ring {
  fill: currentColor;
  stroke: currentColor;
}

.flow-out.wait {
  color: var(--champagne);
}

.flow-out.wait .o-box {
  fill: #1d1b17;
  stroke: rgb(232 211 168 / 0.8);
  stroke-dasharray: 4 4;
}

.flow-out.wait .o-chip { fill: rgb(232 211 168 / 0.14); }
.flow-out.wait .n-icon { stroke: currentColor; }
.flow-out.wait .o-ring { stroke: currentColor; }
.flow-out.wait .o-line { fill: rgb(255 255 255 / 0.4); }

/* While it waits for the OK the agent itself turns champagne and holds still. */
.agent-run[data-step="4"] .flow-core {
  color: var(--champagne);
}

.agent-run[data-step="5"] .flow-core {
  color: var(--ink);
}

.flow-dot {
  fill: currentColor;
  stroke: currentColor;
  stroke-opacity: 0.25;
  stroke-width: 5;
  opacity: 0;
}

/* What the example runs on: label and value in one fine frame, hanging from the agent. */
.agent-stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 1.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.5rem 1.125rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.16);
  border-radius: 0.75rem;
  background-color: #17171b;
}

.agent-stack div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-stack dt {
  white-space: nowrap;
  color: var(--champagne);
  font-size: 0.8125rem;
  font-weight: 550;
}

.agent-stack dd {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* On a phone each label sits above its value, so nothing breaks in the middle. */
@media (max-width: 39.99rem) {
  .agent-stack {
    gap: 0.5rem 1.25rem;
    padding: 0.625rem 0.875rem;
  }

  .agent-stack div {
    flex-direction: column;
    gap: 0.125rem;
  }
}

.agent-stack .agent-or {
  color: var(--ink-3);
  font-weight: 450;
}

.agent-logo {
  flex: none;
  width: 1rem;
  height: 1rem;
}

/* How far the agent has got */
.agent-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 1.5rem;
}

.agent-count {
  color: var(--ink-2);
  font-size: var(--t-small);
}

.agent-n {
  display: inline-block;
  min-width: 1.1em;
  margin-right: 0.25rem;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 340;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.agent-note {
  color: var(--ink-3);
  font-size: var(--t-small);
}

.agent-meter {
  height: 0.25rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.12);
}

.agent-meter span {
  position: relative;
  display: block;
  height: 100%;
  transform: translateX(calc(var(--p) - 100%)); /* the bar slides in from the left, so nothing is laid out again */
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(255 182 155), rgb(232 211 168));
}

.agent-meter span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.7), rgb(255 255 255 / 0));
  transform: translateX(-100%);
}

/* The steps */
.agent-tasks {
  margin: 1rem 0 0;
  padding: 0;
  border-top: 0.0625rem solid var(--line);
  list-style: none;
}

.agent-tasks li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.875rem;
  padding: 0.5rem 0.5rem;
  overflow: hidden;
  border-bottom: 0.0625rem solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-small);
}

.agent-task {
  flex: 1;
  min-width: 0;
}

.agent-mark {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 0.125rem solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
}

.agent-tasks .tag {
  border-radius: 62.5rem;
  padding: 0.1875rem 0.625rem;
}

.agent-tasks .now,
.agent-tasks .done,
.agent-tasks .ask {
  color: var(--ink);
}

.agent-tasks .now .agent-mark {
  border-color: rgb(255 182 155 / 0.28);
  border-top-color: var(--accent);
}

.agent-tasks .now::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 182 155 / 0), rgb(255 182 155 / 0.12), rgb(255 182 155 / 0));
  transform: translateX(-100%);
  pointer-events: none;
}

.agent-tag-now {
  border-color: rgb(255 182 155 / 0.6);
  color: var(--accent);
}

.agent-tasks .done .agent-mark {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.25 7 10.5l4.5-5' fill='none' stroke='%2316161a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

.agent-tasks .ask {
  background-color: rgb(232 211 168 / 0.07);
}

.agent-tasks .ask .agent-mark {
  border-color: var(--champagne);
  background: radial-gradient(circle, var(--champagne) 0 0.1875rem, rgb(232 211 168 / 0) 0.25rem);
}

.agent-tag-ask {
  border-color: var(--champagne);
  background-color: var(--champagne);
  color: #000;
}

/* The question at the end: nothing goes out until a person says so. */
.agent-ok {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1rem;
  margin-top: 1rem;
  padding: 0.75rem 0.875rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.14);
  border-radius: 0.625rem;
  background-color: #0e0e11;
  color: var(--ink-2);
  font-size: var(--t-small);
}

.agent-ok-words {
  flex: 1;
  min-width: 0;
}

.agent-approve {
  flex: none;
  padding: 0.375rem 1rem;
  border: 0.0625rem solid rgb(255 255 255 / 0.3);
  border-radius: 62.5rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.agent-run[data-step="4"] .agent-ok {
  border-color: rgb(232 211 168 / 0.6);
  color: var(--ink);
}

.agent-run[data-step="4"] .agent-approve {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #000;
}

.agent-run[data-step="5"] .agent-ok {
  color: var(--ink);
}

.agent-run[data-step="5"] .agent-approve {
  border-color: rgb(212 175 106 / 0.8);
  color: var(--champagne);
}

.agent-cursor {
  position: absolute;
  top: 50%;
  right: 2rem;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 60rem) {
  .agent {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 3.5rem;
  }

  /* The picture on the left, the words on the right, the other way round from the tracker above. */
  .agent-copy {
    order: 2;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .agent {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }

  .agent-flow .core-arc {
    animation: agent-turn 2.6s linear infinite;
  }

  .agent-flow .core-arc-2 {
    animation: agent-turn 3.4s linear infinite reverse;
  }

  .agent-flow .core-dot {
    animation: agent-think 0.9s ease-in-out infinite;
  }

  .agent-flow .core-dot-2 { animation-delay: 0.15s; }
  .agent-flow .core-dot-3 { animation-delay: 0.3s; }

  .agent-flow .core-halo {
    animation: agent-halo 1.8s ease-out infinite;
  }

  .agent-flow .core-ticks {
    animation: agent-turn 28s linear infinite;
  }

  .flow-dot {
    animation: agent-dot 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  }

  .flow-dot.in-1 { offset-path: path("M96 27C140 27 138 78 176 78"); }
  .flow-dot.in-2 { offset-path: path("M96 78H176"); animation-delay: 0.6s; }
  .flow-dot.in-3 { offset-path: path("M96 129C140 129 138 78 176 78"); animation-delay: 1.2s; }
  .flow-dot.out-1 { offset-path: path("M264 78C302 78 300 27 344 27"); animation-delay: 0.3s; }
  .flow-dot.out-2 { offset-path: path("M264 78H344"); animation-delay: 0.9s; }
  .flow-dot.out-3 { offset-path: path("M264 78C302 78 300 129 344 129"); animation-delay: 1.5s; }

  /* Work comes out only once there is some: sorting from the second step, records from the third, and the
     replies only after the OK. While the agent waits, nothing moves through it at all. */
  .agent-run[data-step="0"] .flow-dot.out,
  .agent-run[data-step="1"] .flow-dot.out-2,
  .agent-run:not([data-step="5"]) .flow-dot.out-3,
  .agent-run[data-step="4"] .flow-dot,
  .agent-run[data-step="5"] .flow-dot:not(.out) {
    animation: none;
  }

  .agent-run[data-step="4"] .core-arc,
  .agent-run[data-step="4"] .core-halo,
  .agent-run[data-step="4"] .core-dot,
  .agent-run[data-step="5"] .core-dot {
    animation: none;
  }

  .agent-run[data-step="5"] .core-arc {
    animation-duration: 6s;
  }

  .flow-out.wait .o-ring,
  .agent-tasks .ask .agent-mark {
    animation: agent-wait 1.2s ease-in-out infinite;
  }

  .flow-out .o-box,
  .flow-out .o-chip,
  .flow-out .n-icon,
  .flow-out .o-ring,
  .flow-out .o-line,
  .flow-out .o-check,
  .flow-core {
    transition: fill 0.4s ease-out, stroke 0.4s ease-out, opacity 0.3s ease-out, color 0.4s ease-out;
  }

  .agent-meter span {
    transition: transform 0.9s var(--ease);
  }

  /* A new run starts from the left at once: the bar does not slide backwards. */
  .agent-run[data-step="0"] .agent-meter span {
    transition: none;
  }

  .agent-meter span::after {
    animation: shimmer 2.2s ease-in-out infinite;
  }

  .agent-tasks li {
    transition: background-color 0.35s ease-out, color 0.35s ease-out;
  }

  .agent-tasks .now .agent-mark {
    animation: agent-turn 0.8s linear infinite;
  }

  .agent-tasks .now::after {
    animation: agent-scan 1.2s ease-in-out infinite;
  }

  .agent-tasks .done .agent-mark {
    animation: agent-pop 0.4s var(--ease) both;
  }

  .agent-tasks .done .tag {
    animation: agent-tag 0.35s var(--ease) both;
  }

  .agent-tasks .ask .tag {
    animation: agent-tag-ask 0.4s var(--ease) both;
  }

  .agent-ok,
  .agent-approve {
    transition: border-color 0.35s ease-out, background-color 0.35s ease-out, color 0.35s ease-out;
  }

  /* The pointer comes in, presses Approve, and the step after that it is sent. */
  .agent-run[data-step="4"] .agent-cursor {
    animation: agent-point 2.6s var(--ease) both;
  }

  .agent-run[data-step="4"] .agent-approve {
    animation: agent-press 2.6s ease-in-out both;
  }

  .agent-run[data-step="5"] .agent-approve {
    animation: agent-tag 0.35s var(--ease) both;
  }

  /* With motion paused the script puts the picture back at step 4, so every loop here simply stops. */
  html.paused .agent .agent-run *,
  html.paused .agent .agent-run *::after,
  .at-rest .agent,
  html.at-rest .agent .agent-run *,
  html.at-rest .agent .agent-run *::after {
    animation: none;
  }
}

@keyframes agent-turn {
  to { transform: rotate(360deg); }
}

@keyframes agent-think {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-3.5px); opacity: 1; }
}

@keyframes agent-halo {
  from { transform: scale(0.75); opacity: 1; }
  to { transform: scale(1.35); opacity: 0; }
}

@keyframes agent-dot {
  0% { offset-distance: 0%; opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes agent-wait {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes agent-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes agent-pop {
  from { transform: scale(0.4); }
}

@keyframes agent-tag {
  from { opacity: 0; transform: translateX(0.5rem); }
}

@keyframes agent-tag-ask {
  from { opacity: 0; transform: scale(0.8); }
}

@keyframes agent-point {
  0% { opacity: 0; transform: translate(2.5rem, 2.25rem); }
  20% { opacity: 1; }
  55%, 62% { opacity: 1; transform: translate(0, 0); }
  68% { opacity: 1; transform: translate(0, 0) scale(0.84); }
  76%, 100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes agent-press {
  0%, 62% { transform: scale(1); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
  68% { transform: scale(0.93); box-shadow: 0 0 0 0 rgb(255 255 255 / 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 0 0.75rem rgb(255 255 255 / 0); }
}

@media (forced-colors: active) {
  .agent,
  .agent-run {
    border: 0.0625rem solid CanvasText;
    background: Canvas;
  }
}

/* ---- CareerHex on Instagram (the owner's request, November 23, 2026): a button with the plain white Instagram
   glyph, drawn here in the page (nothing is loaded from Instagram). ---- */
.btn-icon {
  gap: 0.5rem;
}

.btn-icon .ig-glyph {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
}
