/* arc.acemedia.ninja. Soft greys, one orange, square pixels. One theme per colour scheme. */
@font-face { font-family: "Bricolage Grotesque"; src: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/fonts/press-start-2p.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1b1d1e; --bg-2: #222526; --ink: #edece8; --muted: #a9afad; --line: rgb(237 236 232 / 11%);
  --accent: #f39510; --accent-text: #f39510; --on-accent: #1d1608; --surface: #1b1d1e;
  --sans: "Bricolage Grotesque", system-ui, sans-serif; --display: "Bricolage Grotesque", system-ui, sans-serif; --blue: #336699; --blue-text: #7fa6cc; --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; --pixel: "Press Start 2P", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4vw, 56px);
  /* One pixel step at each corner, as on acemedia.host. */
  --cut: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
:root[data-theme="light"] { --bg: #eff1f0; --bg-2: #e6e9e8; --ink: #272b2c; --muted: #5b6362; --line: rgb(39 43 44 / 13%); --accent-text: #8f5300; --surface: #eff1f0; --blue-text: #336699; color-scheme: light; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --bg: #eff1f0; --bg-2: #e6e9e8; --ink: #272b2c; --muted: #5b6362; --line: rgb(39 43 44 / 13%); --accent-text: #8f5300; --surface: #eff1f0; --blue-text: #336699; color-scheme: light; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 350 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, pre { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 8px 14px; background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 8px; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 300; max-width: 17ch; text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 450; }
p { color: var(--muted); max-width: 60ch; }

/* Pixel lettering is kept for small signposts, never reading copy. */
.px { font: 400 .625rem/1.7 var(--pixel); letter-spacing: 0; text-transform: uppercase; }

/* Buttons: the stepped shape lives on a pseudo-element so focus outlines stay whole. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; color: var(--on-accent); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform .12s steps(2, end); }
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: var(--cut); }
.btn::after { z-index: -2; background: var(--ink); opacity: .22; transform: translate(4px, 4px); transition: transform .12s steps(2, end); }
.btn:hover { transform: translate(-2px, -2px); }
.btn:hover::after { transform: translate(6px, 6px); }
.btn:active { transform: translate(2px, 2px); }
.btn:active::after { transform: translate(0, 0); }
.btn-ghost { color: var(--ink); }
.btn-ghost::before { background: color-mix(in srgb, var(--ink) 10%, var(--bg)); }
.btn-ghost::after { opacity: .1; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; }

/* Navigation: layer 20. Lattice and art sit at 0 and 1, copy at 2. */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: 68px; display: flex; align-items: center; gap: 28px; padding-inline: var(--pad); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.mark img { display: block; height: 22px; width: auto; image-rendering: pixelated; }
.mark span { font: 400 .6rem/1 var(--pixel); text-transform: uppercase; color: var(--ink); padding-top: 3px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: .92rem; }
.nav nav a { color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* Hero: the drawing fills the whole panel with the dither lattice beneath it, and both dissolve into the page. */
.hero { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; display: flex; align-items: flex-start; padding: calc(68px + clamp(28px, 7vh, 84px)) var(--pad) 40px; }
.hero-art { position: absolute; inset: 0; z-index: 0; color: var(--ink); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero-art > svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible; }
.hero-art > .cover-lattice { position: absolute; z-index: 0; pointer-events: none; image-rendering: pixelated; opacity: .62; }
.hero-art text { font: 400 9px var(--pixel); text-transform: uppercase; paint-order: stroke; stroke: var(--surface); stroke-width: 6px; }
@keyframes ink-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-art :is(path, ellipse, circle)[pathLength]:not([stroke-dasharray]) { stroke-dasharray: 1; animation: ink-in 2.2s var(--ease) both; }
.hero-copy { position: relative; z-index: 2; max-width: calc(1320px - 2 * var(--pad)); width: 100%; margin-inline: auto; }
h1 { font-size: clamp(2.8rem, 7.8vw, 7.4rem); line-height: .96; letter-spacing: -.055em; font-weight: 250; max-width: 10.5em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: clamp(22px, 3.4vh, 38px); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 31ch; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(24px, 3.6vh, 40px); }
.hero-copy > * { animation: rise 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Sections: generous air, almost no boxes. */
section:not(.hero) { padding-block: clamp(84px, 11vw, 170px); }
.intro { margin-top: 26px; font-size: 1.15rem; }

/* How it works: three rails that run only as far as each request has to travel. */
.tracks { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 150px repeat(4, 1fr); column-gap: 0; }
.stops, .track { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.stops { color: var(--muted); text-align: center; padding-bottom: 18px; }
.track { align-items: center; padding-block: 34px; border-top: 1px solid var(--line); }
.track h3 { font: 400 .7rem/1.6 var(--pixel); text-transform: uppercase; color: var(--accent-text); }
.rail { position: relative; grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; align-items: center; height: 28px; }
.rail i, .rail u { position: absolute; left: 12.5%; top: 50%; height: 1px; width: calc(var(--reach) * 25%); background: var(--ink); opacity: .5; transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) .15s; }
.rail u { left: 62.5%; width: 25%; height: 2px; margin-top: -1px; opacity: 1; background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px); transition-delay: 1.2s; }
.rail b { position: relative; width: 8px; height: 8px; background: var(--ink); outline: 6px solid var(--bg); }
.rail b.off { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.rail b.late { background: var(--bg); box-shadow: inset 0 0 0 2px var(--muted); }
/* The request itself: one orange pixel that walks out and back in whole steps. */
.rail s { position: absolute; left: 12.5%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); opacity: 0; }
.track.in .rail i, .track.in .rail u { transform: none; }
.track.in .rail s { opacity: 1; animation: packet var(--trip, 4s) steps(24, end) .4s both; }
@keyframes packet { 0%, 100% { transform: translateX(0); } 45%, 55% { transform: translateX(var(--travel)); } }
.track p { grid-column: 2 / -1; margin-top: 16px; padding-left: calc(12.5% - 4px); font-size: 1rem; }

/* What's different: four cells of different sizes, separated by air and a single hairline each. */
.bento { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vw, 96px) clamp(28px, 4vw, 64px); }
.cell { position: relative; isolation: isolate; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.cell::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 4px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 50%, 75% 50%, 75% 100%, 0 100%); }
.cell h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 300; max-width: 15ch; }
.cell p { margin-top: 16px; max-width: 44ch; }
.cell-a { grid-column: span 7; min-height: 340px; justify-content: flex-end; }
.cell-b { grid-column: span 5; justify-content: flex-end; }
.cell-c { grid-column: span 5; }
.cell-d { grid-column: span 7; }
.dither { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; color: var(--ink); opacity: .3; pointer-events: none; }
.cell-a .dither { left: auto; bottom: auto; top: 0; width: 64%; height: 62%; }

/* At scale: figures that count themselves in, over a low band of dither. */
.scale { position: relative; isolation: isolate; overflow: hidden; --band: clamp(190px, 24vw, 340px); padding-bottom: var(--band) !important; }
.scale .dither { top: auto; height: var(--band); opacity: .34; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%); mask-image: linear-gradient(to bottom, transparent, #000 60%); }
.kicker { color: var(--accent-text); margin-bottom: 26px; }
.scale h2 { font-size: clamp(2.4rem, 6.6vw, 5.8rem); max-width: 13ch; font-weight: 250; }
.figures { margin-top: clamp(56px, 8vw, 120px); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
.figures dt { font-size: clamp(2.6rem, 8.4vw, 8rem); line-height: .9; letter-spacing: -.06em; font-weight: 200; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures dt sup { font: 400 .625rem/1 var(--pixel); letter-spacing: 0; text-transform: uppercase; color: var(--accent-text); vertical-align: top; margin-left: 10px; position: relative; top: 1em; }
.figures dd { margin-top: 22px; color: var(--muted); font-size: 1.1rem; max-width: 30ch; }
.aside { margin-top: clamp(48px, 7vw, 88px); }

/* Requirements: three rows, the number does the work. */
.requirements { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.requirements h2 { position: sticky; top: 110px; }
.need { display: grid; grid-template-columns: minmax(150px, 4fr) 8fr; gap: 24px; align-items: baseline; padding-block: 36px; }
.need + .need { border-top: 1px solid var(--line); }
.need:first-child { padding-top: 0; }
.need-value { font: 200 clamp(2.8rem, 5.4vw, 4.8rem)/1 var(--sans); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.need-value small { display: block; margin-top: 14px; color: var(--muted); }
.need p { margin-top: 8px; }

/* Get it. */
.get { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.get-lead p { margin: 24px 0 36px; font-size: 1.15rem; }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding-block: 22px; border-top: 1px solid var(--line); }
.steps strong { color: var(--accent-text); font-weight: 400; }
.steps span { color: var(--muted); }

/* Footer: project links, then the house credit and family row. */
.foot { padding-block: 56px 64px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.foot a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.foot a:hover { text-decoration-color: var(--accent); }
.foot-top { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: center; }
.houses { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; }
.houses a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.houses img { display: block; height: 26px; width: auto; image-rendering: pixelated; }
.houses .host { height: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-credit { margin-top: 40px; display: grid; gap: 6px; }
.foot-credit p { max-width: none; font-size: .86rem; }

/* Scroll reveal: content is visible without script; script adds .js to opt in. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .cell-a, .cell-b, .cell-c, .cell-d { grid-column: 1 / -1; min-height: 0; }
  .cell-a { min-height: 300px; }
  .requirements, .get { grid-template-columns: 1fr; }
  .requirements h2 { position: static; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero { padding-top: calc(68px + 28px); }
  .hero-art text { font-size: 15px; }
  .hero-art { top: auto; height: 54%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent); }
  .mark span { display: none; }
  .btn-small { padding: 0 14px; font-size: .84rem; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .tracks { grid-template-columns: repeat(4, 1fr); }
  .stops span:first-child { display: none; }
  .stops { font-size: .5rem; }
  .track h3, .rail, .track p { grid-column: 1 / -1; }
  .track h3 { margin-bottom: 14px; }
  .track p { padding-left: 0; }
  .figures { grid-template-columns: 1fr; }
  .need { grid-template-columns: 1fr; gap: 12px; }
  .steps li { grid-template-columns: 104px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rail i, .rail u { transform: none; }
  .rail s { display: none; }
}

/* The new rundown uses paired definition rows; the FAQ uses native disclosures. */
.features h2 { max-width: 21ch; }
.feature-list { margin-top: clamp(48px, 7vw, 96px); }
.feature-list > div { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 6vw, 100px); padding-block: 28px; border-top: 1px solid var(--line); }
.feature-list dt { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 350; line-height: 1.3; }
.feature-list dd { color: var(--muted); max-width: 60ch; }
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-heading p:last-child { margin-top: 26px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: 26px; padding-right: 12px; font-size: 1.2rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.faq summary::marker { color: var(--accent-text); }
.faq details p { padding-bottom: 28px; }
.config-note a, .faq a { text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Reserve space for artwork and numbers before scripts or fonts arrive. */
.hero-copy { pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-packet { transform-box: view-box; opacity: 0; }
.hero-art.in .hero-packet { animation: hero-request 4.6s steps(36, end) 1; }
@keyframes hero-request { 0%, 100% { opacity: 0; transform: translateX(0); } 8%, 92% { opacity: 1; } 48%, 56% { transform: translateX(530px); } }
.hero-art:not(.is-visible) .hero-packet { animation-play-state: paused; }
.figures [data-count] { display: inline-block; }
.figures [data-count="4"] { min-width: 1ch; }
.figures [data-count="3135613436"] { min-width: 7.2ch; }
.figures > div { min-width: 0; }
.figures dt { font-size: clamp(2.6rem, 7vw, 6.5rem); }
.figures dt sup { display: block; margin: 18px 0 0; top: auto; }
.figures dd { margin-top: 24px; }
/* Dither occupies its own space so reading copy always has a clear background. */
.cell-a { justify-content: flex-start; }
.cell-a .dither { position: relative; inset: auto; width: 100%; height: 130px; flex: none; margin-bottom: 32px; }
.cell-a h3 { max-width: 19ch; }
.scale .dither { height: calc(var(--band) - 40px); }
.rail i, .rail u { transform: none; }
.js .rail i, .js .rail u { transform: scaleX(0); }
.js .track.in .rail i, .js .track.in .rail u { transform: none; }
.track:not(.is-visible) .rail s { animation-play-state: paused; }
.track.in .rail-refresh .late { animation: refresh-node 2s steps(1, end) .4s 2; }
@keyframes refresh-node { 50% { background: var(--accent); box-shadow: none; } }
@media (max-width: 1100px) { .nav nav { gap: 18px; } }
@media (max-width: 767px) {
  .feature-list > div, .faq { grid-template-columns: 1fr; }
  .feature-list > div { gap: 14px; }
  .figures dt { font-size: clamp(2.5rem, 9vw, 4.6rem); }
  .feature-list, .faq-questions, .needs, .get-lead, .steps { min-width: 0; }
  .need-service { font-size: 3rem; }
  .steps span { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rail i, .js .rail u { transform: none; }
  .hero-packet { display: none; }
}

.hero-art { pointer-events: none; }
.family a { margin-left: 14px; }

/* Where it sits: an abstract map of the layers a request crosses. Generic by design. */
.map { padding-top: clamp(40px, 6vw, 90px) !important; }
.map-art { margin-top: clamp(32px, 5vw, 64px); color: var(--ink); overflow-x: auto; scrollbar-width: none; }
.map-art svg { display: block; width: 100%; min-width: 860px; height: auto; overflow: visible; }
.map-art text { font: 400 9px var(--pixel); text-transform: uppercase; }
.map-art .ink { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.map-art.in .ink { stroke-dashoffset: 0; }
.map-art .pkt { opacity: 0; offset-rotate: 0deg; }
.map-art.in .pkt { opacity: 1; animation: travel var(--t, 5s) steps(60, end) var(--d, 0s) infinite alternate; }
.map-art:not(.is-visible) .pkt { animation-play-state: paused; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.map-legend { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px clamp(24px, 4vw, 64px); }
.map-legend p { font-size: .98rem; }
.map-legend strong { display: block; margin-bottom: 8px; color: var(--accent-text); font-weight: 400; }

/* One month, measured: numbers count in, the grid fills, the bars grow. */
.month { margin-top: clamp(64px, 9vw, 130px); padding-top: 30px; border-top: 1px solid var(--line); }
.month > p:first-child { color: var(--muted); }
.month-grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(44px, 6vw, 96px) clamp(32px, 5vw, 80px); align-items: end; }
.stat b { display: block; font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: .95; letter-spacing: -.055em; font-weight: 200; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span.px { display: block; margin-top: 16px; color: var(--accent-text); }
.stat p { margin-top: 10px; font-size: 1rem; max-width: 34ch; }
.pixels { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; max-width: 420px; margin-bottom: 22px; }
.pixels i { aspect-ratio: 1; background: var(--ink); opacity: .14; transition: opacity .01s, background-color .01s; transition-delay: calc(var(--n) * 14ms); }
.in .pixels i.on { background: var(--accent); opacity: 1; }
.bars { display: grid; gap: 14px; margin-bottom: 22px; }
.bars div { display: grid; grid-template-columns: 1fr; gap: 6px; }
.bars i { display: block; height: 10px; width: var(--w); background: var(--ink); opacity: .45; transform-origin: left; transform: scaleX(0); transition: transform 1.6s steps(24, end) .2s; }
.bars .fast i { background: var(--accent); opacity: 1; }
.in .bars i { transform: none; }
.bars small { font: 400 .78rem var(--mono); color: var(--muted); }

@media (max-width: 767px) {
  .hero-art text { font-size: 15px; }
  .map-legend, .month-grid { grid-template-columns: 1fr; }
  .family a { display: inline-block; margin: 0 14px 0 0; }
  .family span { display: block; }
  .pixels { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .map-art .ink { stroke-dashoffset: 0; }
  .map-art .pkt { display: none; }
  .pixels i.on { background: var(--accent); opacity: 1; }
  .bars i { transform: none; }
}

/* Busiest day: 24 hourly bars built from square pixels, rising in whole steps. */
.day { margin-top: clamp(28px, 4vw, 48px); height: clamp(180px, 26vw, 340px); display: grid; grid-template-columns: repeat(24, 1fr); gap: clamp(2px, .5vw, 6px); align-items: end; }
.day i { display: block; height: var(--h); min-height: 3px; background: var(--ink); opacity: .32; transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s steps(18, end); transition-delay: calc(var(--n) * 45ms); }
.day i.peak { background: var(--accent); opacity: 1; }
.day.in i { transform: none; }
.stat-wide { grid-column: 1 / -1; }
.stat-wide .bars { max-width: 760px; }
.month-grid { align-items: start; }
@media (prefers-reduced-motion: reduce) { .day i { transform: none; } }

/* Sub-pages (changelog, blog, contact) share one opening. */
.subpage { padding-top: calc(68px + clamp(48px, 8vw, 110px)); padding-bottom: clamp(84px, 11vw, 170px); }
.subpage h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 14ch; }
.subpage h1.post-title { font-size: clamp(2rem, 4.4vw, 3.8rem); max-width: 20ch; line-height: 1.04; }
.subpage a:not(.btn) { text-underline-offset: 4px; }
.releases { margin-top: clamp(48px, 7vw, 96px); }
.release { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 5vw, 80px); padding-block: 34px; border-top: 1px solid var(--line); }
.release h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 200; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.release:first-child h2 { color: var(--accent); }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); max-width: 68ch; }
.release code, .faq code { font: 400 .86em var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.nav nav a[aria-current] { color: var(--ink); }
@media (max-width: 767px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* Blog: sticky archive on the left, reading column on the right, as on the Ace blogs. */
.post-meta { margin-top: 18px; font-size: .95rem; }
.blog-layout { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.notes-side { position: sticky; top: 100px; padding: 22px; background: var(--bg-2); clip-path: var(--cut); font-size: .95rem; }
.notes-side .px { color: var(--accent-text); margin-bottom: 14px; }
.notes-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.notes-side a { color: var(--muted); text-decoration: none; }
.notes-side a:hover, .notes-side a[aria-current] { color: var(--ink); }
.notes-more { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; }
.notes-more a { text-decoration: underline; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li > a { display: block; padding-block: 34px; text-decoration: none; transition: transform .12s steps(2, end); }
.post-list li > a:hover { transform: translateX(6px); }
.post-list .px { color: var(--accent-text); }
.post-list h2 { margin: 14px 0 12px; font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 24ch; }
.post-list .read { display: block; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.post-body { max-width: 720px; }
.post-body p, .post-body li { font-size: 1.08rem; line-height: 1.75; max-width: none; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.post-body p + p, .post-body ul + p, .post-body pre + p { margin-top: 1.1em; }
.post-body h2 { margin: 2.2em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: none; letter-spacing: -.03em; }
.post-body > h2:first-child { margin-top: 0; }
.post-body ul { margin: 1em 0; padding-left: 1.2em; display: grid; gap: 8px; }
.post-body li::marker { color: var(--accent-text); }
.post-body code { font: 400 .86em var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.post-body pre { margin: 1.4em 0; padding: 20px 22px; overflow-x: auto; background: var(--bg-2); clip-path: var(--cut); }
.post-body pre code { font-size: .86rem; line-height: 1.7; overflow-wrap: normal; }
.post-next { margin-top: 3em !important; display: flex; flex-wrap: wrap; gap: 16px; }

/* Contact: label above, help and errors below. */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.contact-lead p + p { margin-top: 18px; }
.contact-form { display: grid; gap: 22px; padding-top: 10px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--ink) 34%, var(--bg)); border-radius: 0; }
.field textarea { resize: vertical; min-height: 150px; }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field small { font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }
.form-status { min-height: 1.6em; color: var(--ink); }
.form-status[data-state="error"] { color: var(--accent-text); }
@media (max-width: 1100px) { .nav nav { gap: 18px; } }
@media (max-width: 900px) {
  .blog-layout, .contact { grid-template-columns: 1fr; }
  .notes-side { position: static; order: 2; }
}

/* Wordmark: "Redis Cache" in the same pixel blackletter as the Ace mark, at the same pixel size. */
.mark { align-items: flex-end; gap: 10px; }
.mark img { height: 26px; }
.mark .wordmark { display: block; width: calc(222px * 26 / 37); height: calc(40px * 26 / 37); margin-bottom: -2px; padding: 0; background: var(--ink); -webkit-mask: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/redis-cache-pixel.svg) center / contain no-repeat; mask: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/redis-cache-pixel.svg) center / contain no-repeat; }
@media (max-width: 767px) { .mark span.wordmark { display: block; } .mark img { height: 20px; } .mark .wordmark { width: calc(222px * 20 / 37); height: calc(40px * 20 / 37); } .nav { gap: 12px; } }
@media (max-width: 420px) { .nav .btn-small { padding: 0 10px; font-size: .74rem; } }

/* Hero labels travel with their object and share the line colour. */
.hero-art text { font-family: var(--pixel); text-transform: uppercase; fill: currentColor; stroke: none; opacity: .55; paint-order: normal; }
@media (max-width: 767px) { .hero-art text { font-size: 11px; } }

/* Map: fills the column; connectors sit in the gaps where they can be seen. */
.map-art { margin-top: clamp(20px, 3vw, 40px); }
.map-art .wire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .5s; opacity: .7; }
.map-art.in .wire { stroke-dashoffset: 0; }
.map-art .rare { opacity: .45; }
.map-art text { opacity: .6; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .map-art .wire { stroke-dashoffset: 0; } }

/* Footer: brand, two link columns, the two houses, then the credit and family row. */
.foot { padding-block: clamp(56px, 7vw, 96px) 48px; background: var(--bg-2); border-top: 0; }
.foot-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 4fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.foot-brand p { margin: 20px 0 24px; max-width: 34ch; }
.foot nav { display: grid; gap: 12px; justify-items: start; }
.foot .px { color: var(--accent-text); margin-bottom: 8px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--ink); }
.foot-houses { display: grid; gap: 18px; }
.foot-houses a { display: grid; gap: 8px; text-decoration: none; color: var(--muted); font-size: .88rem; }
.foot-houses img { display: block; height: 26px; width: auto; image-rendering: pixelated; }
.foot-houses .host { height: 17px; }
.foot-credit { margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand, .foot-houses { grid-column: 1 / -1; } }

/* House fonts: Bricolage Grotesque for display and reading, Press Start 2P for signposts. */
body { font-weight: 400; }
h1, h2, h3, .figures dt, .stat b, .need-value, .release h2, .feature-list dt { font-family: var(--display); }
h1 { font-weight: 300; letter-spacing: -.045em; }
h2, .scale h2 { font-weight: 300; letter-spacing: -.035em; }
.cell h3, .post-list h2 { font-weight: 300; }
.figures dt, .stat b, .need-value, .release h2 { font-weight: 200; letter-spacing: -.04em; }

/* Pixel text: always a whole multiple of the font's 8px grid, never smoothed, never stroked, never squeezed. */
.px, .track h3, .btn, .figures dt sup, .hero-art text, .map-art text {
  font-family: var(--pixel); font-weight: 400; font-size: 8px; line-height: 16px; letter-spacing: 0; word-spacing: 2px; text-transform: uppercase;
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset; font-smooth: never; text-rendering: optimizeSpeed; -webkit-text-stroke: 0; }
.hero-art text, .map-art text { stroke: none; paint-order: normal; }
.btn { min-height: 48px; padding: 0 22px; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 8px; }
.contact-form .btn { font: 400 8px/16px var(--pixel); }
.figures dt sup { top: auto; }
.stops { font-size: 8px; }

/* A little #336699: selection, focus on links, the quieter lines. */
::selection { background: var(--blue); color: #fff; }
.foot { border-top: 4px solid var(--blue); }
.faq summary::marker { color: var(--blue-text); }
.rail u { background: repeating-linear-gradient(90deg, var(--blue-text) 0 4px, transparent 4px 8px); }
.rail b.late { box-shadow: inset 0 0 0 2px var(--blue-text); }
.map-art .rare { stroke: var(--blue-text); opacity: .9; }
.subpage a:not(.btn):hover, .foot a:hover, .faq a:hover { text-decoration-color: var(--blue-text); }
.notes-side { border-left: 0; box-shadow: inset 4px 0 0 var(--blue); }

/* What's different: each cell opens with a small diagram that explains it. */
.cell-a, .cell-b, .cell-c, .cell-d { grid-column: span 6; min-height: 0; justify-content: flex-start; }
.viz { height: 132px; margin-bottom: 30px; display: grid; align-content: end; gap: 12px; color: var(--ink); }
.viz .dz { display: block; width: 100%; height: 100%; image-rendering: pixelated; color: var(--ink); opacity: .7; }
.viz-roles { grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: stretch; }
.viz-roles figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 0; }
.viz-roles figure:nth-child(3) .dz { color: var(--accent); opacity: 1; }
.viz figcaption, .age-labels { color: var(--muted); }
.age { display: grid; grid-template-columns: 2fr 5fr 2fr; height: 56px; }
.age .solid { background: var(--ink); opacity: .7; }
.age .solid.new { background: var(--accent); opacity: 1; transform-origin: left; transform: scaleX(0); transition: transform 1.2s steps(12, end) 1s; }
.in .age .solid.new { transform: none; }
.age-labels { display: grid; grid-template-columns: 2fr 5fr 2fr; }
.age-labels span:last-child { text-align: right; }
.age-labels span:nth-child(2) { text-align: center; }
.viz-aside svg { display: block; width: 100%; height: 96px; }
.viz-aside .bypass { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s steps(24, end) .5s; }
.in .viz-aside .bypass { stroke-dashoffset: 0; }
.viz-slots .age-labels { grid-template-columns: auto 1fr auto; }
.slots { display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; }
.slots i { aspect-ratio: 1; background: var(--ink); opacity: .16; }
.slots i.key { background: var(--accent); opacity: 0; transition: opacity .01s; transition-delay: calc(var(--n) * 160ms + .6s); }
.in .slots i.key { opacity: 1; }
@media (max-width: 1023px) { .cell-a, .cell-b, .cell-c, .cell-d { grid-column: 1 / -1; min-height: 0; } }
@media (max-width: 767px) { .slots { grid-template-columns: repeat(16, 1fr); } .age-labels span:nth-child(2) { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { .age .solid.new { transform: none; } .viz-aside .bypass { stroke-dashoffset: 0; } .slots i.key { opacity: 1; } }

/* Ace Host promo above the footer: a stepped panel with three pixel icons that bob in whole steps. */
.host-cta { padding-block: 0 clamp(72px, 9vw, 130px); }
.host-cta-panel { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 64px); background: var(--bg-2); clip-path: var(--cut); box-shadow: inset 4px 0 0 var(--blue); }
.host-cta .px { color: var(--blue-text); margin-bottom: 18px; }
.host-cta h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 16ch; }
.host-cta-copy > p:not(.px) { margin: 20px 0 30px; max-width: 46ch; }
.host-cta-art { display: flex; justify-content: flex-end; gap: clamp(8px, 2vw, 28px); }
.host-cta-art img { width: clamp(72px, 10vw, 128px); height: auto; image-rendering: pixelated; animation: bob 2.4s steps(4, end) infinite alternate; }
.host-cta-art img:nth-child(2) { animation-delay: -.8s; }
.host-cta-art img:nth-child(3) { animation-delay: -1.6s; }
@keyframes bob { from { transform: translateY(4px); } to { transform: translateY(-4px); } }
@media (max-width: 767px) { .host-cta-panel { grid-template-columns: 1fr; } .host-cta-art { justify-content: flex-start; } }

h1 { font-weight: 200; }
h2, .scale h2, .cell h3, .post-list h2 { font-weight: 250; }
.age { height: 56px; overflow: hidden; }
.age .dz { height: 56px; min-height: 0; }
.viz-stale, .viz-aside, .viz-slots { align-content: end; }

@media (max-width: 560px) { .nav .btn { display: none; } }
.get-lead h2 { font-size: clamp(2.6rem, 7vw, 6rem); }

/* Lockup: stamp mark, Ace, then "Redis Cache" at the same pixel scale and on the same baseline. */
.mark { gap: 9px; --k: calc(26 / 37); }
.mark .arc-mark { display: block; width: 32px; height: 32px; color: var(--ink); margin-right: 3px; margin-bottom: -3px; }
.mark .wordmark { width: calc(247px * var(--k)); height: calc(50px * var(--k)); margin-bottom: calc(-9px * var(--k)); }
@media (max-width: 767px) { .mark { --k: calc(20 / 37); gap: 7px; } .mark .arc-mark { width: 26px; height: 26px; } .mark .wordmark { width: calc(247px * var(--k)); height: calc(50px * var(--k)); } }
@media (max-width: 400px) { .mark .arc-mark { display: none; } }

/* Bigger pixel lettering on the main buttons: 16px on desktop, 12px on small high-density screens, both whole multiples. */
.btn { font-size: 16px; line-height: 24px; min-height: 60px; padding: 0 28px; }
.btn-small { font-size: 8px; line-height: 16px; min-height: 40px; padding: 0 16px; }
.contact-form .btn { font: 400 16px/24px var(--pixel); }
@media (max-width: 767px) { .btn, .contact-form .btn { font-size: 12px; line-height: 20px; min-height: 52px; padding: 0 18px; } .btn-small { font-size: 8px; } }
h1 { font-weight: 300; } h2, .scale h2, .cell h3, .post-list h2 { font-weight: 300; }

/* Button icons (the Ace pixel UI set) and the release line under the download label. */
.btn { gap: 14px; }
.ico { flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; image-rendering: pixelated; }
.ico-down { --i: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/ui-down.svg); }
.ico-ext { --i: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/ui-up-right.svg); }
.ico-right { --i: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/ui-right.svg); }
.btn:hover .ico-down { animation: nudge .6s steps(3, end) infinite alternate; }
@keyframes nudge { to { transform: translateY(3px); } }
.btn-text { display: grid; gap: 2px; text-align: left; }
.btn-meta { font-size: 8px; line-height: 16px; opacity: .75; white-space: pre; }
.btn:has(.btn-meta) { padding-block: 10px; }
.btn-small .ico { width: 8px; height: 8px; }
.btn-small { gap: 8px; }

/* Line work drawn without smoothing, so every stroke steps like pixels. */
.hero-art svg, .map-art svg, .viz-aside svg { shape-rendering: crispEdges; }
@media (prefers-reduced-motion: reduce) { .btn:hover .ico-down { animation: none; } }

/* Ark hints: a thin horizon arc with a few stars, and once, a small ark riding it. Never over the isometric art. */
.horizon { position: relative; height: clamp(70px, 10vw, 130px); color: var(--ink); margin-bottom: clamp(28px, 4vw, 56px); }
.horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.horizon .limb { opacity: .4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
.horizon.in .limb { stroke-dashoffset: 0; }
.horizon .sky { opacity: 0; transition: opacity .01s 1.4s; }
.horizon.in .sky { opacity: 1; }
.horizon-ark { margin-bottom: 0; }
.get { border-top: 0; }
.get-lead .kicker { color: var(--blue-text); }
@media (prefers-reduced-motion: reduce) { .horizon .limb { stroke-dashoffset: 0; } .horizon .sky { opacity: 1; } }

/* The stamp mark is parked until the chunkier redraw is ready. */
.mark .arc-mark { display: none; }

/* The four diagrams: one height, one pixel scale, each with its own slow loop. */
.viz { height: auto; display: grid; gap: 12px; align-content: start; margin-bottom: 30px; }
.vz { display: block; width: 100%; height: 132px; image-rendering: pixelated; color: var(--ink); }
.vz-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.vz-labels.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

/* Theme-dependent artwork: swap files, never filter. */
.only-light { display: none !important; }
:root[data-theme="light"] .only-light { display: block !important; }
:root[data-theme="light"] .only-dark { display: none !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .only-light { display: block !important; } :root:not([data-theme]) .only-dark { display: none !important; } }

/* Theme switch: a square that is half solid, half dither. The dissolve itself is drawn by theme.js. */
.theme-toggle { flex: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.theme-toggle span { width: 20px; height: 20px; clip-path: var(--cut); background:
  linear-gradient(90deg, currentColor 50%, transparent 50%),
  repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 4px 4px; transition: transform .2s steps(4, end); }
.theme-toggle:hover span { transform: rotate(180deg); }
.nav nav + .theme-toggle { margin-left: 0; }
.theme-wipe { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
@media (max-width: 1023px) { .theme-toggle { margin-left: auto; } .nav .btn { margin-left: 0; } }

/* Ace Host promo: the full Ace Host mark, and one of its lit pixel scenes in this site's colours. */
.host-logo { display: inline-block; margin-bottom: 26px; }
.host-logo img { display: block; height: 30px; width: auto; image-rendering: pixelated; }
.host-cta-panel { overflow: hidden; }
.host-cta .page-motion { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); }
.host-cta .page-motion > img { display: block; width: 100%; height: auto; aspect-ratio: 112 / 95; image-rendering: pixelated; }
.motion-mount { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.page-motion > .pixel-scene-canvas { display: block; z-index: 2; }
.js .host-cta-panel.reveal { transform: translateY(40px) scale(.97); transition: opacity 1s var(--ease), transform 1s steps(10, end); }
.js .host-cta-panel.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .page-motion > .pixel-scene-canvas { display: none !important; } .page-motion > img { visibility: visible !important; } }
@media (max-width: 767px) { .host-cta .page-motion { justify-self: start; } }

/* Footer houses and the closing credit row. */
.foot-houses img { height: 26px; }
.foot-houses a > img.only-dark, .foot-houses a > img.only-light { height: 22px; }
.foot-credit { display: grid; grid-template-columns: 3fr 4fr 6fr; gap: 24px clamp(24px, 4vw, 64px); align-items: start; }
.foot-credit .px { color: var(--muted); margin-bottom: 8px; }
.foot-credit p:not(.px) { font-size: .98rem; color: var(--ink); max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { margin: 0 !important; padding: 5px 12px; font-size: .86rem; text-decoration: none; background: color-mix(in srgb, var(--ink) 8%, transparent); clip-path: var(--cut); transition: background-color .15s; }
.chips a:hover { background: var(--blue); color: #fff; }
@media (max-width: 900px) { .foot-credit { grid-template-columns: 1fr; } }

/* Map connectors: dashed runs along the floor grid that visibly flow towards Redis. */
.map-art svg { min-width: 760px; max-width: 1060px; margin-inline: auto; }
.map-art .flow { stroke-dasharray: 5 6; opacity: .55; animation: march 1.2s steps(11, end) infinite; }
.map-art .flow.rare { stroke: var(--blue-text); opacity: .8; animation-duration: 2.4s; }
.map-art:not(.is-visible) .flow { animation-play-state: paused; }
.map-art.in .pkt { animation: travel var(--t, 5s) linear var(--d, 0s) infinite; }
@keyframes march { to { stroke-dashoffset: -11; } }
@media (prefers-reduced-motion: reduce) { .map-art .flow { animation: none; } }

/* Heavier headlines. */
h1 { font-weight: 400; letter-spacing: -.05em; }
h2, .scale h2 { font-weight: 400; }
.cell h3, .post-list h2, .feature-list dt { font-weight: 400; }
.figures dt, .stat b, .need-value, .release h2 { font-weight: 300; }

/* Buttons, crisper: a hard pixel bevel and a solid stepped shadow, with icons drawn at twice their grid. */
.btn::before { box-shadow: inset 0 4px 0 rgb(255 255 255 / 28%), inset 0 -4px 0 rgb(0 0 0 / 20%); }
.btn::after { opacity: 1; background: #8a5200; }
.btn-ghost::before { background: color-mix(in srgb, var(--ink) 14%, var(--bg)); box-shadow: inset 0 4px 0 color-mix(in srgb, var(--ink) 16%, transparent), inset 0 -4px 0 rgb(0 0 0 / 22%); }
.btn-ghost::after { opacity: 1; background: color-mix(in srgb, var(--ink) 34%, var(--bg)); }
.btn .ico { width: 32px; height: 32px; }
.btn-small .ico { width: 16px; height: 16px; }
.btn-small::before { box-shadow: inset 0 2px 0 rgb(255 255 255 / 28%), inset 0 -2px 0 rgb(0 0 0 / 20%); }
@media (max-width: 767px) { .btn .ico { width: 16px; height: 16px; } }

.map-art svg { max-width: none; }

/* Header: no blur. The bar is solid at the top and breaks up into ordered dither, so the page shows through as pixels. */
.nav { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; isolation: isolate; }
.nav::before { content: ""; position: absolute; inset: 0 0 -20px; z-index: -1; background: var(--bg); pointer-events: none;
  -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAsCAYAAABYMvmrAAAARElEQVR42mNkYGD4z4AHMDEQAKMKRhUMSQWMaGKM6Byi8wVWkwiaAAP/cdGUm0BQcjCZwECMIFEmEBVYDCSbQL5O6gAA8IQpEPMpUCQAAAAASUVORK5CYII=) 0 0 / 16px 100% repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAsCAYAAABYMvmrAAAARElEQVR42mNkYGD4z4AHMDEQAKMKRhUMSQWMaGKM6Byi8wVWkwiaAAP/cdGUm0BQcjCZwECMIFEmEBVYDCSbQL5O6gAA8IQpEPMpUCQAAAAASUVORK5CYII=) 0 0 / 16px 100% repeat-x; image-rendering: pixelated; }

/* Planet horizon: a full-width arc between sections. Stars sit only above it, and a small ark sails over the top. */
.planet { position: relative; height: clamp(120px, 15vw, 280px); overflow: hidden; color: var(--ink); }
.planet-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.planet .limb { opacity: .5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s var(--ease); }
.planet.in .limb { stroke-dashoffset: 0; }
.planet .star { position: absolute; width: 3px; height: 3px; background: currentColor; opacity: 0; }
.planet.in .star { animation: twinkle 3.2s steps(4, end) calc(var(--n) * -.47s) infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .8; } }
.planet .orbit { position: absolute; inset: 0; animation: sail-x 56s linear var(--delay, 0s) infinite; }
.planet .ship { position: absolute; left: 0; top: 100%; transform: translate(-50%, -100%); animation: sail-y 56s var(--delay, 0s) infinite; }
.planet .ship svg { display: block; }
@keyframes sail-x { from { transform: translateX(-4%); } to { transform: translateX(104%); } }
/* Linear travel across a quadratic arc: ease out to the crest, ease in down the far side. */
@keyframes sail-y { 0% { top: 100%; animation-timing-function: cubic-bezier(.333, .667, .667, 1); } 50% { top: 27.5%; animation-timing-function: cubic-bezier(.333, 0, .667, .333); } 100% { top: 100%; } }
.planet:not(.in) .orbit, .planet:not(.in) .ship { animation-play-state: paused; }
.js .planet.reveal { opacity: 1; transform: none; }
.scale, .get { padding-top: clamp(40px, 5vw, 80px) !important; }
@media (prefers-reduced-motion: reduce) { .planet .limb { stroke-dashoffset: 0; } .planet .star { opacity: .6; animation: none !important; } .planet .orbit { transform: translateX(62%); } .planet .ship { top: 32%; } }

/* Lockup, round 3 from the Ace font work: galleon mark, Ace, and "Redis Cache" drawn to the logo's own widths. */
.mark { --k: calc(28 / 37); gap: 10px; align-items: flex-end; }
.mark img { height: calc(37px * var(--k)); }
.mark .arc-mark { display: block; width: calc(37px * var(--k)); height: calc(37px * var(--k)); margin: 0 4px 0 0; color: var(--ink); }
.mark .wordmark { width: calc(190px * var(--k)); height: calc(45px * var(--k)); margin-bottom: calc(-5px * var(--k)); }
@media (max-width: 767px) { .mark { --k: calc(20 / 37); gap: 7px; } .mark .arc-mark { display: block; width: calc(37px * var(--k)); height: calc(37px * var(--k)); } .mark .wordmark { width: calc(190px * var(--k)); height: calc(45px * var(--k)); } }
@media (max-width: 400px) { .mark .arc-mark { display: none; } }

/* The northern sky: real stars around Polaris, turning about the pole as the arc scrolls through view. The planet hides whatever is below the horizon. */
.planet .sky { position: absolute; left: 50%; top: 30%; width: 0; height: 0; transform: rotate(40deg); }
.planet .sky .star { margin: -1px 0 0 -1px; }
.planet .sky .pole { background: var(--accent); }
.planet-body, .planet .orbit { z-index: 1; }
@supports (animation-timeline: view()) {
  .planet .sky { animation: turn linear both; animation-timeline: view(); }
  @keyframes turn { from { transform: rotate(8deg); } to { transform: rotate(78deg); } }
}
@media (prefers-reduced-motion: reduce) { .planet .sky { animation: none; } }

/* Theme switch icon: a pixel moon in the dark theme, a pixel sun in the light one. */
.theme-toggle { position: relative; z-index: 2; }
.theme-toggle span { width: 24px; height: 24px; clip-path: none; background: currentColor; --moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h5v1h-5zM2 1h4v1h-4zM1 2h4v1h-4zM1 3h3v1h-3zM0 4h4v1h-4zM0 5h4v1h-4zM0 6h4v1h-4zM1 7h4v1h-4zM1 8h5v1h-5zM10 8h1v1h-1zM2 9h9v1h-9zM3 10h7v1h-7zM5 11h3v1h-3z'/%3E%3C/svg%3E"); --sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h2v1h-2zM1 1h1v1h-1zM5 1h2v1h-2zM10 1h1v1h-1zM2 2h1v1h-1zM9 2h1v1h-1zM4 3h4v1h-4zM3 4h6v1h-6zM0 5h2v1h-2zM3 5h6v1h-6zM10 5h2v1h-2zM0 6h2v1h-2zM3 6h6v1h-6zM10 6h2v1h-2zM3 7h6v1h-6zM4 8h4v1h-4zM2 9h1v1h-1zM9 9h1v1h-1zM1 10h1v1h-1zM5 10h2v1h-2zM10 10h1v1h-1zM5 11h2v1h-2z'/%3E%3C/svg%3E");
  -webkit-mask: var(--moon) center / contain no-repeat; mask: var(--moon) center / contain no-repeat; image-rendering: pixelated; }
:root[data-theme="light"] .theme-toggle span { -webkit-mask-image: var(--sun); mask-image: var(--sun); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme-toggle span { -webkit-mask-image: var(--sun); mask-image: var(--sun); } }
.theme-toggle:hover span { transform: none; }

/* The change of theme bleeds down the page through a wide band of ordered dither, so both themes show at once inside it. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAEACAYAAACOKzdSAAAAnElEQVR42u3YQQqEMBAF0eq5/50z+xgSo6LdUG5EKD5PAi4MoDG5fiwuAwMDAwMDAwMDAwMDAwMDAwOD9EGsgva8IWaG4MZ/uVgF7XnDcOnUQnQLbxv6Iz7cL73F24ZSC/3SYbmUYfSc39A/tEH0toFtw0y/t0CFBRIauGwgoYGShr1PYDYDCQ3pFk4dWBkDCQ3cNvCBgdIGPjb8AbRv44jKmeqKAAAAAElFTkSuQmCC) 0 0 / 64px 240vh repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAEACAYAAACOKzdSAAAAnElEQVR42u3YQQqEMBAF0eq5/50z+xgSo6LdUG5EKD5PAi4MoDG5fiwuAwMDAwMDAwMDAwMDAwMDAwOD9EGsgva8IWaG4MZ/uVgF7XnDcOnUQnQLbxv6Iz7cL73F24ZSC/3SYbmUYfSc39A/tEH0toFtw0y/t0CFBRIauGwgoYGShr1PYDYDCQ3pFk4dWBkDCQ3cNvCBgdIGPjb8AbRv44jKmeqKAAAAAElFTkSuQmCC) 0 0 / 64px 240vh repeat-x; image-rendering: pixelated; animation: bleed 2.6s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes bleed { from { -webkit-mask-position: 0 -240vh; mask-position: 0 -240vh; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.theme-wipe { z-index: 15; }

.planet { overflow: visible; clip-path: inset(-280px 0 0 0); }

/* Large orange lettering needs a deeper orange on the light theme to stay readable. */
h1 em { color: var(--accent-display, var(--accent)); }
:root[data-theme="light"] { --accent-display: #b96700; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --accent-display: #b96700; } }

/* ---- No sideways scrolling. */
html, body { overflow-x: clip; }

/* ---- #336699 lives only in the Ace Media family row. Everywhere else those accents fall back to the neutral tones. */
:root:root:root { --blue-text: var(--muted); --blue: color-mix(in srgb, var(--ink) 30%, var(--bg)); }
::selection { background: var(--accent); color: var(--on-accent); }
.foot { border-top: 1px solid var(--line); }
.notes-side { box-shadow: none; }
.family { --blue: #336699; }
.family .px { color: #7fa6cc; }
:root[data-theme="light"] .family .px { color: #336699; }
.chips a { background: color-mix(in srgb, #336699 22%, transparent); }
.chips a:hover { background: #336699; color: #fff; }

/* ---- Buttons as keycaps: a face, a darker side straight beneath it, and a real press. */
.btn { transition: transform .1s steps(2, end); margin-bottom: 6px; }
.btn::before { box-shadow: inset 0 3px 0 rgb(255 255 255 / 34%), inset 0 -3px 0 rgb(0 0 0 / 14%), inset 3px 0 0 rgb(255 255 255 / 12%), inset -3px 0 0 rgb(0 0 0 / 10%); }
.btn::after { transform: translate(0, 6px); background: #9b5800; opacity: 1; transition: transform .1s steps(2, end); }
.btn:hover { transform: translate(0, -2px); }
.btn:hover::after { transform: translate(0, 8px); }
.btn:active { transform: translate(0, 4px); }
.btn:active::after { transform: translate(0, 2px); }
.btn-ghost::before { background: color-mix(in srgb, var(--ink) 16%, var(--bg)); }
.btn-ghost::after { background: color-mix(in srgb, var(--ink) 38%, var(--bg)); }
.btn-small { margin-bottom: 4px; }
.btn-small::after { transform: translate(0, 4px); }
.btn-small:hover::after { transform: translate(0, 6px); }
.btn-small:active { transform: translate(0, 3px); }
.btn-small:active::after { transform: translate(0, 1px); }

/* ---- Ace Host band: full width, flat, in this site's tones. */
.host-cta { padding-block: clamp(56px, 7vw, 110px); background: var(--bg-2); }
.host-cta-panel { background: none; clip-path: none; box-shadow: none; padding-block: 0; overflow: visible; }
.host-cta .page-motion { width: min(100%, 520px); }
.host-cta + .foot { border-top: 1px solid var(--line); }

/* ---- Lockup: variant 8. Stars beside the ark twinkle; the arc under it is a line. */
.mark .arc-mark { width: calc(41px * var(--k)); height: calc(41px * var(--k)); }
.mark .wordmark { width: calc(189px * var(--k)); height: calc(45px * var(--k)); margin-bottom: calc(-5px * var(--k)); }
.arc-mark .tw { animation: twinkle 2.4s steps(3, end) infinite alternate; }
.arc-mark .tw-b { animation-delay: -.9s; } .arc-mark .tw-c { animation-delay: -1.7s; }
@media (max-width: 767px) { .mark .arc-mark { width: calc(41px * var(--k)); height: calc(41px * var(--k)); } .mark .wordmark { width: calc(189px * var(--k)); height: calc(45px * var(--k)); } }

/* ---- Planet arcs: glow and star fields above, darkness below, and a line-work craft with space sails hanging over the limb. */
:root { --below: color-mix(in srgb, var(--bg) 62%, #000); }
:root[data-theme="light"] { --below: color-mix(in srgb, var(--bg) 84%, #000); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --below: color-mix(in srgb, var(--bg) 84%, #000); } }
.planet { overflow: visible; clip-path: inset(-320px 0 0 0); }
.planet .planet-sky { inset: auto 0 0 0; top: -300px; width: 100%; height: calc(100% + 300px); opacity: .55; z-index: 0; }
.planet .sky { z-index: 0; }
.planet .limb { opacity: .85; }
.planet .hover { position: absolute; z-index: 2; left: var(--at, 68%); top: var(--lift, 37%); width: clamp(96px, 10vw, 168px); transform: translate(-50%, calc(-100% - 14px)); }
.planet .craft { display: block; width: 100%; height: auto; overflow: visible; animation: drift 5s steps(10, end) infinite alternate; }
.planet .craft .sails { animation: breathe 4s steps(6, end) infinite alternate; }
@keyframes drift { from { transform: translateY(5px); } to { transform: translateY(-6px); } }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }
.planet:not(.in) .craft, .planet:not(.in) .craft .sails { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .planet .craft, .planet .craft .sails, .arc-mark .tw { animation: none; } }

/* ---- Theme change: a dither ripple that spreads from the click. Solid behind the front, then four thinning dither rings. */
@property --rr { syntax: "<length>"; inherits: false; initial-value: 0px; }
::view-transition-new(root) {
  -webkit-mask: none; mask: none;
  mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 0px)), transparent max(0px, calc(var(--rr) - 0px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAHklEQVR42mNgYGD4zwABuGjCAJcO8k0g3Q0MFLkBACtODPSx5qnNAAAAAElFTkSuQmCC), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 110px)), transparent max(0px, calc(var(--rr) - 110px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIklEQVR42mNgYGD4zwABuGjyJVEUMeAQ/M9AqhuwWkuZGwDd4RnngizEDAAAAABJRU5ErkJggg==), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 220px)), transparent max(0px, calc(var(--rr) - 220px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKElEQVR42mNkYGD4z4AAjFj4DAxIghg0TAcjAZMIm0C+GwhJ/idoAgDzOhvu3cZIkQAAAABJRU5ErkJggg==), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 330px)), transparent max(0px, calc(var(--rr) - 330px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAI0lEQVR42mNkYGD4z4AHMCGxGdHkGGEEXhNg4D8umnEQuAEA/7QMAXgv4xIAAAAASUVORK5CYII=), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 440px)), transparent max(0px, calc(var(--rr) - 440px)));
  mask-size: 100% 100%, 64px 64px, 100% 100%, 64px 64px, 100% 100%, 64px 64px, 100% 100%, 64px 64px, 100% 100%; mask-repeat: no-repeat, repeat, no-repeat, repeat, no-repeat, repeat, no-repeat, repeat, no-repeat; mask-composite: intersect, add, intersect, add, intersect, add, intersect, add, add;
  image-rendering: pixelated; animation: ripple-theme 2.4s cubic-bezier(.4, 0, .25, 1) both; }
@keyframes ripple-theme { from { --rr: 0px; } to { --rr: var(--far, 3000px); } }
.theme-toggle { view-transition-name: theme-toggle; }
::view-transition-old(theme-toggle) { display: none; }
::view-transition-new(theme-toggle) { animation: none; }
::view-transition-group(theme-toggle) { z-index: 5; }
/* The icon is drawn by script as loose pixels so the sun can rearrange itself into the moon. */
.theme-toggle canvas { display: none; width: 24px; height: 24px; image-rendering: pixelated; }
.theme-toggle.live canvas { display: block; }
.theme-toggle.live span { display: none; }

/* ---- Navigation, second pass: links in the heading face, centred between the lockup and the controls. */
.nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
.nav nav { margin: 0; gap: clamp(18px, 2.2vw, 38px); font: 400 1.02rem/1 var(--display); letter-spacing: -.01em; }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nav nav a { position: relative; padding: 10px 0; color: color-mix(in srgb, var(--ink) 72%, var(--bg)); }
/* Hover: a dithered rule inks in beneath the link in whole steps, and a pixel runs along it like a request on the rails. */
.nav nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 4px; transform-origin: left; transform: scaleX(0);
  background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 4px 4px; opacity: .55; transition: transform .28s steps(7, end); }
.nav nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 4px; height: 4px; background: var(--accent); opacity: 0; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--ink); text-decoration: none; }
.nav nav a:hover::before, .nav nav a:focus-visible::before, .nav nav a.here::before, .nav nav a[aria-current]::before { transform: none; }
.nav nav a:hover::after, .nav nav a:focus-visible::after { opacity: 1; animation: nav-run .7s steps(10, end) infinite alternate; }
@keyframes nav-run { from { left: 0; } to { left: calc(100% - 4px); } }
/* The section in view keeps its rule, in orange. */
.nav nav a.here, .nav nav a[aria-current] { color: var(--ink); }
.nav nav a.here::before, .nav nav a[aria-current]::before { background: var(--accent); opacity: 1; height: 2px; bottom: 3px; }
/* Header ground: fine pixels at the top, coarser as it breaks up, so the page shows through all the way up. */
.nav::before { inset: 0 0 -20px; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAABYCAYAAACUC/VYAAAA0UlEQVR42u2aQQ6FMAhEwXj/K/ev3DTf2ojALN5sDGITSl8n1uhmNqxRhzVLogCf7pXGrsSAPzybkpfoAAyUrvmchwFpHyiJYQAGYAAGpBjwh8pT8jAg7QMlTMAAPgAD+AAMtHfg0ui6Sn8fKJH/WQaf4rsxYzNejj82i/TgJH2VlPKBtJlGGEiNJXYBPgADbx3wkzwMSPtACRMw0N6Bq5LRFcPAuTi5RCYT8gG/ObSk5Pl/QGoXlKz5rLOKdhjAB2AAoYgP7LxTvh7PNsQHULt+A/N65c8ArsUAAAAASUVORK5CYII=) 0 0 / 32px 88px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAABYCAYAAACUC/VYAAAA0UlEQVR42u2aQQ6FMAhEwXj/K/ev3DTf2ojALN5sDGITSl8n1uhmNqxRhzVLogCf7pXGrsSAPzybkpfoAAyUrvmchwFpHyiJYQAGYAAGpBjwh8pT8jAg7QMlTMAAPgAD+AAMtHfg0ui6Sn8fKJH/WQaf4rsxYzNejj82i/TgJH2VlPKBtJlGGEiNJXYBPgADbx3wkzwMSPtACRMw0N6Bq5LRFcPAuTi5RCYT8gG/ObSk5Pl/QGoXlKz5rLOKdhjAB2AAoYgP7LxTvh7PNsQHULt+A/N65c8ArsUAAAAASUVORK5CYII=) 0 0 / 32px 88px repeat-x; }
@media (max-width: 1023px) { .nav { display: flex; } .nav-end { margin-left: auto; } .theme-toggle { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .nav nav a::after { display: none; } }

/* ---- Inking: heavy contours, fine hatching and stipple, quiet internal detail. */
.hero-art .contour, .map-art .contour { stroke-width: 2.3; fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-art .contour { animation: ink-in 2.6s var(--ease) both; }
.map-art .contour { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .3s; }
.map-art.in .contour { stroke-dashoffset: 0; }
.contour.asleep { stroke-width: 1.5; stroke-dasharray: 6 5 !important; stroke-dashoffset: 0 !important; animation: none !important; opacity: .75; }
.hatch { stroke-width: .7; opacity: .6; fill: none; }
.stipple { stroke-width: 1.5; stroke-linecap: round; opacity: .55; fill: none; }
.detail { stroke-width: .8; opacity: .7; fill: none; }
.shade { fill-opacity: .88 !important; }
.hero-art .shade { fill-opacity: .5 !important; }
@media (prefers-reduced-motion: reduce) { .map-art .contour { stroke-dashoffset: 0; } }

/* ---- Arc furniture: monolith spires standing on the limb and a ringed moon above it, inked with hatching. */
.planet .furn { position: absolute; z-index: 1; pointer-events: none; }
.planet .furn svg { display: block; width: 100%; height: auto; overflow: visible; }
.planet .furn-spires { left: 13%; top: 66%; width: clamp(120px, 15vw, 250px); transform: translate(-50%, -92%) rotate(-10deg); transform-origin: 50% 100%; }
.planet .furn-moon { left: 88%; top: 0; width: clamp(84px, 9vw, 150px); transform: translate(-50%, -120%); }
.planet:nth-of-type(2n) .furn-spires { left: 87%; transform: translate(-50%, -92%) rotate(10deg) scaleX(-1); }
.planet:nth-of-type(2n) .furn-moon { left: 14%; }
.planet .furn-spires svg { animation: none; }
.planet .furn-moon svg { animation: drift 9s steps(8, end) infinite alternate; }
.planet:not(.in) .furn-moon svg { animation-play-state: paused; }
@media (max-width: 767px) { .planet .furn-moon { transform: translate(-50%, -80%); } }
@media (prefers-reduced-motion: reduce) { .planet .furn-moon svg { animation: none; } }

/* ---- Navigation scrim: under the ordered dither sits a scatter of random pixels in the page colour, reaching a little
   further down, so text passing behind the bar is broken up and the links stay easy to read. */
.nav::after { content: ""; position: absolute; inset: 0 0 -60px; z-index: -2; background: var(--bg); pointer-events: none; image-rendering: pixelated;
  -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAEgklEQVR42u1a0ZIbMQjDmfv/X1Yf2mbS1ICE8W6utWduLrOJsY2FECTDzGA/x3h5/TrGr/9wno2X57P55tjE5L+92ZvZnM21yTlmNpGcy/PDzKbnCxDPnzYeyUGV578XGsElZs59f4Zgzut/EOu87m84l/HuqOHYnNnxAPE+5481PSSyhrMb95AdRVoWTQyyQ9Q5z4Zz4dF+o/nR6+feH5MPzDYyiNucHfb9GRybr+9nCIwuxpI1Zk6NIsxz/EguxdvjX6zxFaAGBE2MADnD+byHMhbBmV2QVDYcCkVwVsXpIwHb8znIkJuhA5PFo9cMMhD8sfuL9uqhHOR8EOdkbdtXkOFBKIPs4iJ1Y8l7WUQwymum0likWhCBKHD+dL9MGA7ioCM5fObo6LOZ5LRkniVUZMkFMn5gfObOj8I/oxFvLktHcBCCgLKyHAWHPhgbFQrKzhEldnwRcm2mkqpIQUIxs/lw1NcgqGwEZ0CwNoPujPZGwhR4T8LZ7VsB2SARxyZrIz4Hwo53PpDniaLJiLNN7SHI4Nnh2VDObDN0mCmi6t4g+EF97YLoEWRwpidjTvE1iELGkijzWgRRq8HT+1HPCgGVZf0cT+1kyuxp8zFxHCPXWCSPpLhjL5oJ70EcuDKiIiqTncgo8REsOpw2AYgmmycHI0QPoh5g+0FRxA7ndXSJ3npZrykSCYOpVjMZxSZJJpkrQiB6FiXpSPJmyTk6k5KjXD+CcKZS1quFTlWfW1K7sPWNUmdklw7SlnQBSq9I6fezewIRZSuAUuQto9xMjVC2mmOyu5r8qqhUHKXY74xelg5pJEHQ9yiiiuFMpd2ABkAo/oIILCn0K5Uh04/poDymsDTy4srF1QITUBVvJUxRdDgWHGCJSlGVixqZUuQoPZtqWDLJWXUw43wT9o4FWqp2YKWFUXQOmxDVb81U+oE4f0XF0W37bDEU6UeJgGrEKVHH1he2QD/KZcA2HqxSKa8e0sToq9KrFZigXKyCcIiC0EpyRYHerhgool0GK4qHRvG9FcWjyGW20l6N4nQtVrdmeWJF72Ijqqvtig5gSPJWKX7YCpeZK/2SbLEg20G7jCyl9pE5hukVqTzPVotooLkOBYciXYXdgSrHK5tlvl9WDoALqaVTicmSnv1NUEdxVUmAHTZWkvR2WQVbL1ZUm1hAExbRrqoopRnX1lwqfd22iKDq142V9sKOSl8GgdosU/s3K824rtqlI/FXfh+ETsrqkInWMAeLl7nyS7xVNbRcbndVxB3V8RWOXFWILhNUvmfFJppAw0V0iQelc4pGoFBStCLxcCEVdUQ5inPLOW1lwV39nA5U77pENET85QObI6EjAV69v3YEsQUXNkVL1/5x834+5ubZ35F+K7TudDqaqeMOcODTHY9NG60KgR21w86kjE7n4WaE4cPmLKlC3BiKu34FoQiGj+d8XIzuq2zfmsSvPhS+EeD+y4Gz98/c5FUtiVuiGgddZ+yKmiv2hbtRdYlG/lej84T2oc0zzjiRcMZB0xlnnHHGGWdcMH4ANAp/wngspSgAAAAASUVORK5CYII=) 0 0 / 192px 100% repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAEgklEQVR42u1a0ZIbMQjDmfv/X1Yf2mbS1ICE8W6utWduLrOJsY2FECTDzGA/x3h5/TrGr/9wno2X57P55tjE5L+92ZvZnM21yTlmNpGcy/PDzKbnCxDPnzYeyUGV578XGsElZs59f4Zgzut/EOu87m84l/HuqOHYnNnxAPE+5481PSSyhrMb95AdRVoWTQyyQ9Q5z4Zz4dF+o/nR6+feH5MPzDYyiNucHfb9GRybr+9nCIwuxpI1Zk6NIsxz/EguxdvjX6zxFaAGBE2MADnD+byHMhbBmV2QVDYcCkVwVsXpIwHb8znIkJuhA5PFo9cMMhD8sfuL9uqhHOR8EOdkbdtXkOFBKIPs4iJ1Y8l7WUQwymum0likWhCBKHD+dL9MGA7ioCM5fObo6LOZ5LRkniVUZMkFMn5gfObOj8I/oxFvLktHcBCCgLKyHAWHPhgbFQrKzhEldnwRcm2mkqpIQUIxs/lw1NcgqGwEZ0CwNoPujPZGwhR4T8LZ7VsB2SARxyZrIz4Hwo53PpDniaLJiLNN7SHI4Nnh2VDObDN0mCmi6t4g+EF97YLoEWRwpidjTvE1iELGkijzWgRRq8HT+1HPCgGVZf0cT+1kyuxp8zFxHCPXWCSPpLhjL5oJ70EcuDKiIiqTncgo8REsOpw2AYgmmycHI0QPoh5g+0FRxA7ndXSJ3npZrykSCYOpVjMZxSZJJpkrQiB6FiXpSPJmyTk6k5KjXD+CcKZS1quFTlWfW1K7sPWNUmdklw7SlnQBSq9I6fezewIRZSuAUuQto9xMjVC2mmOyu5r8qqhUHKXY74xelg5pJEHQ9yiiiuFMpd2ABkAo/oIILCn0K5Uh04/poDymsDTy4srF1QITUBVvJUxRdDgWHGCJSlGVixqZUuQoPZtqWDLJWXUw43wT9o4FWqp2YKWFUXQOmxDVb81U+oE4f0XF0W37bDEU6UeJgGrEKVHH1he2QD/KZcA2HqxSKa8e0sToq9KrFZigXKyCcIiC0EpyRYHerhgool0GK4qHRvG9FcWjyGW20l6N4nQtVrdmeWJF72Ijqqvtig5gSPJWKX7YCpeZK/2SbLEg20G7jCyl9pE5hukVqTzPVotooLkOBYciXYXdgSrHK5tlvl9WDoALqaVTicmSnv1NUEdxVUmAHTZWkvR2WQVbL1ZUm1hAExbRrqoopRnX1lwqfd22iKDq142V9sKOSl8GgdosU/s3K824rtqlI/FXfh+ETsrqkInWMAeLl7nyS7xVNbRcbndVxB3V8RWOXFWILhNUvmfFJppAw0V0iQelc4pGoFBStCLxcCEVdUQ5inPLOW1lwV39nA5U77pENET85QObI6EjAV69v3YEsQUXNkVL1/5x834+5ubZ35F+K7TudDqaqeMOcODTHY9NG60KgR21w86kjE7n4WaE4cPmLKlC3BiKu34FoQiGj+d8XIzuq2zfmsSvPhS+EeD+y4Gz98/c5FUtiVuiGgddZ+yKmiv2hbtRdYlG/lej84T2oc0zzjiRcMZB0xlnnHHGGWdcMH4ANAp/wngspSgAAAAASUVORK5CYII=) 0 0 / 192px 100% repeat-x; }

/* ---- Planet arcs, drawn live: one canvas holds the scattered sky, the stars and the planet's ragged dithered edge.
   Two probe colours let the script read the theme without parsing variables. */
.planet .planet-sky { position: absolute; left: 0; top: -300px; width: 100%; height: calc(100% + 300px); z-index: 1; opacity: 1; image-rendering: pixelated; pointer-events: none;
  color: var(--ink); outline: 0 solid var(--below); text-decoration-color: var(--bg); }
.planet .sky { z-index: 0; }
.planet .hover, .planet .furn { z-index: 2; }

/* ---- Charts drawn in dither: each bar has a solid cap and a body that thins towards its base. */
.day i { opacity: .8; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAwCAYAAAAsJjtLAAAAWUlEQVR42u2SMQ4AIAgDW///Z9wRUVFxkYVAmsuFQAACpwoG9QMbAY4Cct6BngNX/sEkTRF6Dkxy0Odt+j1Cs09w0KS4gzX7BD2IEcp2wLLDQwLCBIQduqQKH0BZ5zkkilwAAAAASUVORK5CYII=) 0 0 / 16px 100% repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAwCAYAAAAsJjtLAAAAWUlEQVR42u2SMQ4AIAgDW///Z9wRUVFxkYVAmsuFQAACpwoG9QMbAY4Cct6BngNX/sEkTRF6Dkxy0Odt+j1Cs09w0KS4gzX7BD2IEcp2wLLDQwLCBIQduqQKH0BZ5zkkilwAAAAASUVORK5CYII=) 0 0 / 16px 100% repeat-x; image-rendering: pixelated; }
.day i.peak { opacity: 1; }
.bars i { height: 14px; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAICAYAAABJYvnfAAAAVElEQVR42uWUwQoAIAhDZ///z3YvjAkiq7yMHYTBHjMAjnvOlryRp3U0h2f8SZ30kW5/JkpAedOdBEg2HXhZArJkSBGQJcMKyPBfNqBcx6NNs5uACX7sTTjt4XP6AAAAAElFTkSuQmCC) 0 0 / 100% 16px repeat-y; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAICAYAAABJYvnfAAAAVElEQVR42uWUwQoAIAhDZ///z3YvjAkiq7yMHYTBHjMAjnvOlryRp3U0h2f8SZ30kW5/JkpAedOdBEg2HXhZArJkSBGQJcMKyPBfNqBcx6NNs5uACX7sTTjt4XP6AAAAAElFTkSuQmCC) 0 0 / 100% 16px repeat-y; image-rendering: pixelated; opacity: .8; }
.bars .fast i { -webkit-mask: none; mask: none; opacity: 1; }

/* ---- Section grounds: every other section sits on a slightly lifted tone that dithers in and out at its edges. */
#how, #features, #requirements { position: relative; isolation: isolate; }
#how::before, #features::before, #requirements::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; image-rendering: pixelated;
  background: color-mix(in srgb, var(--bg-2) 70%, var(--bg));
  -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAMklEQVR42mNgoCb4T4BPWCcumrDxJJmAQTOiqcTGJ80EXCaRbgIcMGFzEC4F/wkpwAoA65Ud8I/yX9sAAAAASUVORK5CYII=) 0 0 / 32px 64px repeat-x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAOUlEQVR42mNkYGD4z4AHMDEQAEQpYEQTY0SmGQm5AQb+46JhJqCbhGHyf3z0fwKKqGQCeV5koA8AAMfrHPI4Rh9kAAAAAElFTkSuQmCC) 0 100% / 32px 64px repeat-x, linear-gradient(#000, #000) 0 64px / 100% calc(100% - 128px) no-repeat;
  mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAMklEQVR42mNgoCb4T4BPWCcumrDxJJmAQTOiqcTGJ80EXCaRbgIcMGFzEC4F/wkpwAoA65Ud8I/yX9sAAAAASUVORK5CYII=) 0 0 / 32px 64px repeat-x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAOUlEQVR42mNkYGD4z4AHMDEQAEQpYEQTY0SmGQm5AQb+46JhJqCbhGHyf3z0fwKKqGQCeV5koA8AAMfrHPI4Rh9kAAAAAElFTkSuQmCC) 0 100% / 32px 64px repeat-x, linear-gradient(#000, #000) 0 64px / 100% calc(100% - 128px) no-repeat; }

/* ---- Ace Host band, louder: a lifted ground with dithered orange rules above and below, and a bigger headline. */
.host-cta { position: relative; background: color-mix(in srgb, var(--ink) 9%, var(--bg)); }
.host-cta::before, .host-cta::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--accent); image-rendering: pixelated; pointer-events: none; }
.host-cta::before { top: 0; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAOUlEQVR42mNkYGD4z4AHMDEQAEQpYEQTY0SmGQm5AQb+46JhJqCbhGHyf3z0fwKKqGQCeV5koA8AAMfrHPI4Rh9kAAAAAElFTkSuQmCC) 0 0 / 16px 16px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAOUlEQVR42mNkYGD4z4AHMDEQAEQpYEQTY0SmGQm5AQb+46JhJqCbhGHyf3z0fwKKqGQCeV5koA8AAMfrHPI4Rh9kAAAAAElFTkSuQmCC) 0 0 / 16px 16px repeat-x; }
.host-cta::after { bottom: 0; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAMklEQVR42mNgoCb4T4BPWCcumrDxJJmAQTOiqcTGJ80EXCaRbgIcMGFzEC4F/wkpwAoA65Ud8I/yX9sAAAAASUVORK5CYII=) 0 0 / 16px 16px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAQCAYAAAArij59AAAAMklEQVR42mNgoCb4T4BPWCcumrDxJJmAQTOiqcTGJ80EXCaRbgIcMGFzEC4F/wkpwAoA65Ud8I/yX9sAAAAASUVORK5CYII=) 0 0 / 16px 16px repeat-x; }
.host-cta h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.host-cta .page-motion { width: min(100%, 580px); }

/* ---- Buttons, a size down, with chunkier icons on an 8-pixel grid and a release line you can read. */
.btn { min-height: 52px; padding: 0 20px; gap: 12px; }
.btn .ico { width: 24px; height: 24px; }
.btn-small { min-height: 40px; padding: 0 14px; gap: 8px; }
.btn-small .ico { width: 16px; height: 16px; }
.btn-meta { font: 600 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .92; -webkit-font-smoothing: antialiased; }
.btn:has(.btn-meta) { padding-block: 8px; }
@media (max-width: 767px) { .btn .ico { width: 16px; height: 16px; } .btn-meta { font-size: 11px; } }
.mark .wordmark { width: calc(186px * var(--k)); height: calc(45px * var(--k)); }
@media (max-width: 767px) { .mark .wordmark { width: calc(186px * var(--k)); height: calc(45px * var(--k)); } }

/* ---- Three ways a page comes back: one animated pixel lane each, in place of the thin rails. */
.track .lane { grid-column: 2 / -1; height: 108px; }
.track h3 .lap { display: block; margin-top: 10px; font: 400 .82rem/1.4 var(--sans); text-transform: none; color: var(--muted); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.track p { padding-left: 0; max-width: 56ch; margin-left: calc(12.5% - 12px); }
@media (max-width: 767px) { .track .lane { grid-column: 1 / -1; height: 90px; } .track p { margin-left: 0; } }

/* ---- Busiest day, denser where it was busier: each bar's dither density follows its hour's share of the peak. */
.day i { -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGUlEQVR42mNgYGD4zwABuGjCYDCYwECRCQAKfQ7yt6fHUwAAAABJRU5ErkJggg==) 0 0 / 16px 16px; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGUlEQVR42mNgYGD4zwABuGjCYDCYwECRCQAKfQ7yt6fHUwAAAABJRU5ErkJggg==) 0 0 / 16px 16px; opacity: .9; cursor: crosshair; outline-offset: 3px; }
.day i.d2 { -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIUlEQVR42mNgYGD4zwABuGjyJVEUMeAQ/M9AqhsYqO8GAJskGOheHM2oAAAAAElFTkSuQmCC); mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIUlEQVR42mNgYGD4zwABuGjyJVEUMeAQ/M9AqhsYqO8GAJskGOheHM2oAAAAAElFTkSuQmCC); }
.day i.d3 { -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIklEQVR42mNkYGD4z4AAjFj4DAxIgljp/wQU4TeBcRC4AQCAhxvrXGDdGAAAAABJRU5ErkJggg==); mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIklEQVR42mNkYGD4z4AAjFj4DAxIgljp/wQU4TeBcRC4AQCAhxvrXGDdGAAAAABJRU5ErkJggg==); }
.day i.d4 { -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAF0lEQVR42mNkYGD4z0AE+I+LZhwWJgAAfp8T8dviMZgAAAAASUVORK5CYII=); mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAF0lEQVR42mNkYGD4z0AE+I+LZhwWJgAAfp8T8dviMZgAAAAASUVORK5CYII=); }
.day i.d5, .day i.peak { -webkit-mask: none; mask: none; }
.day i:hover, .day i:focus-visible { background: var(--accent); opacity: 1; -webkit-mask: none; mask: none; }
.day-read { margin-top: clamp(24px, 3vw, 40px); color: var(--accent-text); min-height: 16px; }
.day { margin-top: 14px; }
.day-ms { position: relative; height: 44px; margin-top: 10px; display: grid; grid-template-columns: repeat(24, 1fr); gap: clamp(2px, .5vw, 6px); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.day-ms i { position: relative; }
.day-ms i::after { content: ""; position: absolute; left: 50%; bottom: var(--b); width: 5px; height: 5px; margin: 0 0 -2px -2px; background: var(--ink); opacity: .75; }
.day-ms i.on::after { background: var(--accent); opacity: 1; }
.day-note { margin-top: 12px; font-size: .9rem; max-width: 70ch; }
.asof { color: var(--muted); margin-left: 14px; }
@media (max-width: 767px) { .asof { display: block; margin: 6px 0 0; } }

/* ---- Hero: each slab floats on its own beat, the request route zigzags across the floor in isometric steps. */
.hero-art .slab { animation: float 6.5s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.1s); }
@keyframes float { from { transform: translateY(calc((var(--i, 0) + 1) * 2px)); } to { transform: translateY(calc((var(--i, 0) + 1) * -2.2px)); } }
.hero-art .route { animation: march 1.6s steps(9, end) infinite; }
.hero-packet { offset-rotate: 0deg; transform: none !important; }
.hero-art.in .hero-packet { animation: hero-route 5.2s steps(52, end) infinite alternate; opacity: 1; }
@keyframes hero-route { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.hero-art .hatch, .hero-art .stipple, .hero-art .detail { stroke-dasharray: 1; animation: ink-in 2.8s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .hero-art .slab, .hero-art .route { animation: none; } }

/* ---- The map may spill past the text column on large desktops. */
@media (min-width: 1500px) { .map-art { width: min(1680px, 94vw); margin-left: 50%; transform: translateX(-50%); overflow: visible; } .js .map-art.reveal { transform: translate(-50%, 26px); } .js .map-art.reveal.in { transform: translateX(-50%); } }

/* ---- Bars stack: the dither blocks keep their size and are revealed a block at a time from the base. */
.day i { transform: none !important; -webkit-mask-position: 0 100%; mask-position: 0 100%; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s steps(14, end); transition-delay: calc(var(--n) * 45ms); }
.day.in i { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) { .day i { clip-path: none; } }

/* ---- The people behind it: two inked emblems, not portraits. */
.people { padding-bottom: clamp(72px, 9vw, 130px) !important; }
.crew { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.person { display: grid; grid-template-columns: clamp(96px, 12vw, 150px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.person .emblem { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; animation: float 7s ease-in-out infinite alternate; --i: 0; }
.person:nth-child(2) .emblem { animation-delay: -3.2s; }
.person .px { color: var(--accent-text); margin-bottom: 8px; }
.person h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 400; letter-spacing: -.03em; }
.person p:not(.px) { margin: 12px 0 14px; }
.person a { text-underline-offset: 4px; text-decoration-color: var(--accent); }
@media (max-width: 767px) { .crew { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .person .emblem { animation: none; } }

/* ---- Ace Host band edges: a deep orange dither that thins into the band above and into the footer below. */
.host-cta::before, .host-cta::after { height: 64px; opacity: .95; }
.host-cta::before { top: 0; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAVUlEQVR42s2QOQ7AMAgEB///z5vKDcEccopMgxZZo8UGiIRFQeuBuZ350O4QmkrDRqf5ncGbXmZlM1rq2sDpOkW5ZVBmGnWYfTNTVOR5B6478ANTjwdctTbdvhlKngAAAABJRU5ErkJggg==) 0 0 / 16px 64px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAVUlEQVR42s2QOQ7AMAgEB///z5vKDcEccopMgxZZo8UGiIRFQeuBuZ350O4QmkrDRqf5ncGbXmZlM1rq2sDpOkW5ZVBmGnWYfTNTVOR5B6478ANTjwdctTbdvhlKngAAAABJRU5ErkJggg==) 0 0 / 16px 64px repeat-x; }
.host-cta::after { bottom: 0; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAATElEQVR42mNgGBzgPwE+9UwmrBIXTboJNHIDXuNJ8gVWk0hyA1aaMhMY0VRi4xNnAiGTiHcDBmDC4iAUmigTGNHEGBnwuRafG2ikAAAG1TXj3HtZewAAAABJRU5ErkJggg==) 0 0 / 16px 64px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAATElEQVR42mNgGBzgPwE+9UwmrBIXTboJNHIDXuNJ8gVWk0hyA1aaMhMY0VRi4xNnAiGTiHcDBmDC4iAUmigTGNHEGBnwuRafG2ikAAAG1TXj3HtZewAAAABJRU5ErkJggg==) 0 0 / 16px 64px repeat-x; }
.host-cta { padding-block: clamp(96px, 10vw, 150px); }
.host-cta + .foot { position: relative; border-top: 0; }
.host-cta + .foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: var(--accent); pointer-events: none; image-rendering: pixelated; opacity: .95;
  -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAVUlEQVR42s2QOQ7AMAgEB///z5vKDcEccopMgxZZo8UGiIRFQeuBuZ350O4QmkrDRqf5ncGbXmZlM1rq2sDpOkW5ZVBmGnWYfTNTVOR5B6478ANTjwdctTbdvhlKngAAAABJRU5ErkJggg==) 0 0 / 16px 64px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAVUlEQVR42s2QOQ7AMAgEB///z5vKDcEccopMgxZZo8UGiIRFQeuBuZ350O4QmkrDRqf5ncGbXmZlM1rq2sDpOkW5ZVBmGnWYfTNTVOR5B6478ANTjwdctTbdvhlKngAAAABJRU5ErkJggg==) 0 0 / 16px 64px repeat-x; }
.host-cta + .foot { padding-top: clamp(96px, 10vw, 140px); }

/* ---- Past the footer: one last arc, and credits that roll as you keep scrolling. */
.credits { position: relative; background: var(--bg-2); padding-top: 300px; overflow: hidden; text-align: center; }
.credits .planet { height: clamp(140px, 18vw, 300px); }
.credits-roll { padding: clamp(40px, 8vw, 120px) var(--pad) clamp(120px, 16vw, 240px); background: var(--bg); color: var(--muted); display: grid; gap: 14px; }
.credits-roll p { max-width: none; color: inherit; }
.credits-roll p:first-child { color: var(--accent-text); font-size: 16px; line-height: 24px; }
@supports (animation-timeline: view()) {
  .credits-roll p { animation: credit linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes credit { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .credits-roll p { animation: none; } }
.foot-credit .px, .foot .px { font-size: 8px; line-height: 16px; }

/* ---- Ace Host scene: larger on wide screens, where there was a gap beside it. */
@media (min-width: 1200px) { .host-cta-panel { grid-template-columns: 5fr 7fr; } .host-cta .page-motion { width: min(100%, 700px); } }
@media (min-width: 1700px) { .host-cta .page-motion { width: min(100%, 860px); } }

/* ---- Slash: the cut and its shards, drawn over the hero art for a moment. */
.hero-art .slash { position: absolute; z-index: 3; width: 260px; height: 3px; background: var(--accent); pointer-events: none; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 55%, transparent); }
.hero-art .shard { position: absolute; z-index: 3; width: 4px; height: 4px; background: var(--ink); pointer-events: none; }
.hero-art .shard:nth-of-type(3n) { background: var(--accent); }

/* ---- Three ways a page comes back, as three blocky cards in the same build as the section below. */
.ways { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px); }
.way { grid-column: auto; min-height: 0; justify-content: flex-start; }
.way .lane { grid-column: auto; height: 132px; }
.vz-labels.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.way-tag { color: var(--accent-text); margin-bottom: 10px; }
.way-tag span { color: var(--muted); margin-left: 10px; }
.way h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); max-width: 18ch; }
.way p:not(.px) { font-size: 1rem; }
@media (max-width: 1023px) { .ways { grid-template-columns: 1fr; } }
.cobweb { position: absolute; right: 0; bottom: 0; width: clamp(90px, 10vw, 150px); height: auto; color: var(--muted); opacity: .5; pointer-events: none; -webkit-mask: repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 4px 4px; mask: repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 4px 4px; }
.credits-roll { position: relative; overflow: hidden; }
.mark .wordmark { width: calc(189px * var(--k)); }
@media (max-width: 767px) { .mark .wordmark { width: calc(189px * var(--k)); } }

/* ---- Navigation ground, darker: nearly solid behind the links, still breaking into pixels below them. */
.nav::before { -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAABYCAYAAACUC/VYAAAAoklEQVR42u2XMQrAMAwDrZL/fzldOyQESmxrOG3FGYR7XFpFxIzGPNEcClDAooAOZ1LnwgMUoAAewAOOBUqZgAE8AAN4AAYsPVD6DAN4AAbwAAzAAAx81zEPZ1LmFhvAA6ut6LC1a3MYsPSAKp9hAAasGEi99XZzGLD2QAkTMGC1gd3XsTLn/BtaekCVTPAK2gsQ0u6B8fPCupZRtGU8QHzzAnFrRrQCa0vbAAAAAElFTkSuQmCC) 0 0 / 32px 88px repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAABYCAYAAACUC/VYAAAAoklEQVR42u2XMQrAMAwDrZL/fzldOyQESmxrOG3FGYR7XFpFxIzGPNEcClDAooAOZ1LnwgMUoAAewAOOBUqZgAE8AAN4AAYsPVD6DAN4AAbwAAzAAAx81zEPZ1LmFhvAA6ut6LC1a3MYsPSAKp9hAAasGEi99XZzGLD2QAkTMGC1gd3XsTLn/BtaekCVTPAK2gsQ0u6B8fPCupZRtGU8QHzzAnFrRrQCa0vbAAAAAElFTkSuQmCC) 0 0 / 32px 88px repeat-x; }
.nav::after { inset: 0 0 -70px; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAFTUlEQVR42u2a0ZYbNwxDSZ/+/y+jD21zdmcl8kLS2E7jeYmztmckEgQByhkRin+u/PLaufLff1e+e+J+13X/9/9uP3lozTmJYZLYPr681iQQ1esYbD6LoJJL5nc1+ayKdWTzPvl/NkG+vh7GhqKFoIZkPEFw3PXEpAJ29nKySqoY5yhoOUEhQRqhD5ciVinlmtAwvt8BrapUOUk8xYOzwF4XlSAgJOAn+s4IRKerJxpQ/+oBOeDw2euOi68BHnGhBkka3YdSTiz2HhW8Tfaak/73dY9Z7HWrAio0r5R8HEB1RSdZ9Ips+gjtffb1+JK5LDp/NohXkf2EwRJ4bhaqJoAa6VAbgyqOZi8yqi9HCVBR+jkI8Cg4OaCgUWCzoKxR4GRI2OzKvQFRF1hCm9lU/4/P/dWUvQD1JHiYwP1m9FWpDRpATQIaE3BRKhztvWy619g8gNGKBukdjwuiMCdIozRWNetsuHqWTK1SS1Ep3+7/AM42zM1TDs+Czq7JuKonDT4342xNFAmRjq78VaMIf/SczlTcZapc9UCNYEAfQs0Woc1OXUWx93SDEKb1r0YFJIgrEq+TxzQBKtx0Qt5v1/oAAR/RQYAKyULJZMP11GhVfxcMMBk6zhSaa+J+3JOgJWHDTaCCKps+Q92KwYtircSYrRiuhJX87XOPSZPoaGJWCZps3hlpVJ6kko1Uw8+kqybrndFmt4YZsL5V/KPR0JqYjFEZZ2OsSHArlaRC43dJIADoJrydA3eq4xeFdVRCm2MWdKKCcqjZ6+Y0He1VzZQcAAnIdTLK/0GHJOudpIpgZwg0WRSNMlDcBSMWZbLz+TZmKka0Grw/41UZPaObmQTg7SjWJtCzBEfUatSP4JqGe+y+7DSzaALQbbh7fjezcsCDgtOIhSrgdOSBsthpaxcNARFJBoREqZG1V1VSzYoIQwxjQpoQOcwgvcLh3Eq7E+/haHeS5KrRV2fPqOFTVFJ+l8HdHa0JUl33jIqS6ARXC9UaZD90shdNoih3dgklTTJgUmjiBJqyS2c4AbS50RkIfThJAAkASZDMPbr9pgsyEi/OqRg5vNjdGEGjoHwmVEOkJVVB9LPI0TqGqJuFO2YlGyca8P3uB1TOzyYDrq+bFsR1GEeHW7Pz2iySk8CFVs+tpqCkB1TJToN2I9jhfbd3XPqk8chwny7PU3rshEEYyaMmzzWYpR8i9pqqHmJSVgwYGTW4FeCMO2SAghpU7TpJ1xlSuSgTwTtjDKfyTv2GFi3CmQU5ioCoEm2gaYVWdvyKdtA+MmOuziezkxWzRqrF5XiXthzaIUGfAlbGhh3V4VSPw92rCHcB4YyqT3gKOyCCiVqdcGrj+24yZd7TUV9bLODKwlhcEC1vHdjYimzVIjCsnkXnMquJcGiLTGbdnrEqMQX/RmNYxo1MH6lkI82YqggXZTv9wnl+tzfn2NUOsuuaT8nlE0Ff7XsrdEymwUvOcZf7T92PKg4Z9zmx39uMWyxkvJO2O5vVQUpyziy0cd9j5bVj193DfRnId53/Sb/xVJTvoHD3/bsC5MpMd+1b+9r5cdUpvl9x3VoE0w49YqmsQwjSDQh99fN3mq3zY4YtijnNibrh+ysu+xn8rnDLZUESUpe7Sn2n5fFOZW4lcXdMrIXgvasCueuARnd9QYf+ftrI3XG8uEp5egWadMMzFfceFeoGwC1LJ70BRbyNxd8EleLJSNGTN/9Kx6rdytCTA/RMVD9TTi6rI71Bab/bpd8MBJ/rVcjQpwqOUdVLJN3vkkTFH7pI/YGV979sLJ9G+AnK5/pcn+v79Tc5Tdw+7DQNSAAAAABJRU5ErkJggg==) 0 0 / 192px 100% repeat-x; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABACAYAAADlNHIOAAAFTUlEQVR42u2a0ZYbNwxDSZ/+/y+jD21zdmcl8kLS2E7jeYmztmckEgQByhkRin+u/PLaufLff1e+e+J+13X/9/9uP3lozTmJYZLYPr681iQQ1esYbD6LoJJL5nc1+ayKdWTzPvl/NkG+vh7GhqKFoIZkPEFw3PXEpAJ29nKySqoY5yhoOUEhQRqhD5ciVinlmtAwvt8BrapUOUk8xYOzwF4XlSAgJOAn+s4IRKerJxpQ/+oBOeDw2euOi68BHnGhBkka3YdSTiz2HhW8Tfaak/73dY9Z7HWrAio0r5R8HEB1RSdZ9Ips+gjtffb1+JK5LDp/NohXkf2EwRJ4bhaqJoAa6VAbgyqOZi8yqi9HCVBR+jkI8Cg4OaCgUWCzoKxR4GRI2OzKvQFRF1hCm9lU/4/P/dWUvQD1JHiYwP1m9FWpDRpATQIaE3BRKhztvWy619g8gNGKBukdjwuiMCdIozRWNetsuHqWTK1SS1Ep3+7/AM42zM1TDs+Czq7JuKonDT4342xNFAmRjq78VaMIf/SczlTcZapc9UCNYEAfQs0Woc1OXUWx93SDEKb1r0YFJIgrEq+TxzQBKtx0Qt5v1/oAAR/RQYAKyULJZMP11GhVfxcMMBk6zhSaa+J+3JOgJWHDTaCCKps+Q92KwYtircSYrRiuhJX87XOPSZPoaGJWCZps3hlpVJ6kko1Uw8+kqybrndFmt4YZsL5V/KPR0JqYjFEZZ2OsSHArlaRC43dJIADoJrydA3eq4xeFdVRCm2MWdKKCcqjZ6+Y0He1VzZQcAAnIdTLK/0GHJOudpIpgZwg0WRSNMlDcBSMWZbLz+TZmKka0Grw/41UZPaObmQTg7SjWJtCzBEfUatSP4JqGe+y+7DSzaALQbbh7fjezcsCDgtOIhSrgdOSBsthpaxcNARFJBoREqZG1V1VSzYoIQwxjQpoQOcwgvcLh3Eq7E+/haHeS5KrRV2fPqOFTVFJ+l8HdHa0JUl33jIqS6ARXC9UaZD90shdNoih3dgklTTJgUmjiBJqyS2c4AbS50RkIfThJAAkASZDMPbr9pgsyEi/OqRg5vNjdGEGjoHwmVEOkJVVB9LPI0TqGqJuFO2YlGyca8P3uB1TOzyYDrq+bFsR1GEeHW7Pz2iySk8CFVs+tpqCkB1TJToN2I9jhfbd3XPqk8chwny7PU3rshEEYyaMmzzWYpR8i9pqqHmJSVgwYGTW4FeCMO2SAghpU7TpJ1xlSuSgTwTtjDKfyTv2GFi3CmQU5ioCoEm2gaYVWdvyKdtA+MmOuziezkxWzRqrF5XiXthzaIUGfAlbGhh3V4VSPw92rCHcB4YyqT3gKOyCCiVqdcGrj+24yZd7TUV9bLODKwlhcEC1vHdjYimzVIjCsnkXnMquJcGiLTGbdnrEqMQX/RmNYxo1MH6lkI82YqggXZTv9wnl+tzfn2NUOsuuaT8nlE0Ff7XsrdEymwUvOcZf7T92PKg4Z9zmx39uMWyxkvJO2O5vVQUpyziy0cd9j5bVj193DfRnId53/Sb/xVJTvoHD3/bsC5MpMd+1b+9r5cdUpvl9x3VoE0w49YqmsQwjSDQh99fN3mq3zY4YtijnNibrh+ysu+xn8rnDLZUESUpe7Sn2n5fFOZW4lcXdMrIXgvasCueuARnd9QYf+ftrI3XG8uEp5egWadMMzFfceFeoGwC1LJ70BRbyNxd8EleLJSNGTN/9Kx6rdytCTA/RMVD9TTi6rI71Bab/bpd8MBJ/rVcjQpwqOUdVLJN3vkkTFH7pI/YGV979sLJ9G+AnK5/pcn+v79Tc5Tdw+7DQNSAAAAABJRU5ErkJggg==) 0 0 / 192px 100% repeat-x; }
@media (min-width: 1500px) { .nav nav { font-size: 1.16rem; gap: 44px; } .nav { height: 76px; } }

/* ---- Latest-post beacon in the hero: a stepped chip whose ground is a strip of dither sliding past, like a signal coming in. */
.beacon { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-bottom: clamp(18px, 3vh, 30px); padding: 9px 14px; text-decoration: none; color: var(--ink); clip-path: var(--cut); }
.beacon::before { content: ""; position: absolute; inset: 0; z-index: -2; background: color-mix(in srgb, var(--ink) 12%, var(--bg)); }
.beacon::after { content: ""; position: absolute; inset: 0 -64px 0 0; z-index: -1; opacity: .16; background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 8px 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); animation: signal 2.4s steps(8, end) infinite; }
@keyframes signal { to { transform: translateX(-64px); } }
.beacon-dot { width: 8px; height: 8px; background: var(--accent); animation: blink 1.2s steps(2, end) infinite; flex: none; }
@keyframes blink { 50% { opacity: .2; } }
.beacon .px { color: var(--accent-text); flex: none; }
.beacon-title { font: 400 .98rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beacon .ico { width: 16px; height: 16px; flex: none; transition: transform .12s steps(2, end); }
.beacon:hover .ico { transform: translateX(4px); }
.beacon:hover::after { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .beacon::after, .beacon-dot { animation: none; } }

/* ---- Cobwebs: heavier, comic-book threads, spun last and slowly, as if something had just finished them. */
.web { stroke-width: 1.5; fill: none; opacity: .9; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-art .web { animation: ink-in 3.6s steps(48, end) 3.2s both; }
.map-art .web { transition: stroke-dashoffset 3.6s steps(48, end) 2.6s; }
.map-art.in .web { stroke-dashoffset: 0; }
.cobweb { opacity: .7; -webkit-mask: none; mask: none; }
.cobweb path { stroke-dasharray: 1; stroke-dashoffset: 1; }
@supports (animation-timeline: view()) { .cobweb path { animation: ink-in linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; animation-timing-function: steps(40, end); } }
@supports not (animation-timeline: view()) { .cobweb path { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .web, .cobweb path { stroke-dashoffset: 0; animation: none; } }

/* ---- Pixel cross cursor. Four arms and a centre pixel; the arms open, turn or close depending on what is under them. */
.has-cur, .has-cur * { cursor: none !important; }
.has-cur :is(input, textarea, select, [contenteditable]) { cursor: text !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0; pointer-events: none; opacity: 0; color: var(--ink); view-transition-name: cur; }
.cur i, .cur b { position: absolute; background: currentColor; box-shadow: 0 0 0 1px var(--bg); transition: transform .14s steps(3, end), background-color .1s; }
.cur b { left: -1px; top: -1px; width: 2px; height: 2px; }
.cur i { left: -1px; top: -1px; width: 2px; height: 6px; transform-origin: 1px 1px; }
.cur i:nth-child(1) { transform: translateY(-9px); }
.cur i:nth-child(2) { transform: rotate(90deg) translateY(-9px); }
.cur i:nth-child(3) { transform: rotate(180deg) translateY(-9px); }
.cur i:nth-child(4) { transform: rotate(270deg) translateY(-9px); }
/* Over anything clickable: orange, turned to a saltire, and slowly ticking round. */
.cur[data-k="link"] { color: var(--accent); animation: cur-tick 1.6s steps(8, end) infinite; }
.cur[data-k="link"] i:nth-child(1) { transform: rotate(45deg) translateY(-11px); }
.cur[data-k="link"] i:nth-child(2) { transform: rotate(135deg) translateY(-11px); }
.cur[data-k="link"] i:nth-child(3) { transform: rotate(225deg) translateY(-11px); }
.cur[data-k="link"] i:nth-child(4) { transform: rotate(315deg) translateY(-11px); }
@keyframes cur-tick { to { rotate: 90deg; } }
/* Over the hero drawing: the arms reach out, ready to cut. */
.cur[data-k="draw"] i:nth-child(1) { transform: translateY(-14px) scaleY(1.6); }
.cur[data-k="draw"] i:nth-child(2) { transform: rotate(90deg) translateY(-14px) scaleY(1.6); }
.cur[data-k="draw"] i:nth-child(3) { transform: rotate(180deg) translateY(-14px) scaleY(1.6); }
.cur[data-k="draw"] i:nth-child(4) { transform: rotate(270deg) translateY(-14px) scaleY(1.6); }
/* Pressed: everything snaps to the centre. */
.cur.down i:nth-child(1) { transform: translateY(-4px); }
.cur.down i:nth-child(2) { transform: rotate(90deg) translateY(-4px); }
.cur.down i:nth-child(3) { transform: rotate(180deg) translateY(-4px); }
.cur.down i:nth-child(4) { transform: rotate(270deg) translateY(-4px); }
.cur[data-k="text"] { opacity: 0 !important; }
::view-transition-old(cur) { display: none; } ::view-transition-new(cur) { animation: none; } ::view-transition-group(cur) { z-index: 9; }

/* ---- Extra theme ripples: every click on the switch throws a dithered ring, so quick clicks stack up. */
.theme-rings { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; view-transition-name: theme-rings; }
::view-transition-old(theme-rings) { display: none; } ::view-transition-new(theme-rings) { animation: none; } ::view-transition-group(theme-rings) { z-index: 4; }

/* ---- Theme ripples, stackable. Each click lays a full-screen sheet that inverts whatever is behind it, masked to a
   growing dithered disc, so the page changes colour exactly where the ripple has passed. Clicking again lays another
   sheet on top, which inverts back inside its own smaller disc: rings of alternating theme. When a sheet has covered
   the screen the real theme is switched and the sheet removed. */
.theme-flip { position: fixed; inset: 0; z-index: 250; pointer-events: none; image-rendering: pixelated;
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg); backdrop-filter: invert(1) hue-rotate(180deg);
  mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 0px)), transparent max(0px, calc(var(--rr) - 0px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAHklEQVR42mNgYGD4zwABuGjCAJcO8k0g3Q0MFLkBACtODPSx5qnNAAAAAElFTkSuQmCC), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 110px)), transparent max(0px, calc(var(--rr) - 110px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIklEQVR42mNgYGD4zwABuGjyJVEUMeAQ/M9AqhuwWkuZGwDd4RnngizEDAAAAABJRU5ErkJggg==), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 220px)), transparent max(0px, calc(var(--rr) - 220px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKElEQVR42mNkYGD4z4AAjFj4DAxIghg0TAcjAZMIm0C+GwhJ/idoAgDzOhvu3cZIkQAAAABJRU5ErkJggg==), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 330px)), transparent max(0px, calc(var(--rr) - 330px))), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAI0lEQVR42mNkYGD4z4AHMCGxGdHkGGEEXhNg4D8umnEQuAEA/7QMAXgv4xIAAAAASUVORK5CYII=), radial-gradient(circle at var(--cx, 50%) var(--cy, 0%), #000 max(0px, calc(var(--rr) - 440px)), transparent max(0px, calc(var(--rr) - 440px)));
  mask-size: 100% 100%, 64px 64px, 100% 100%, 64px 64px, 100% 100%, 64px 64px, 100% 100%, 64px 64px, 100% 100%; mask-repeat: no-repeat, repeat, no-repeat, repeat, no-repeat, repeat, no-repeat, repeat, no-repeat; mask-composite: intersect, add, intersect, add, intersect, add, intersect, add, add;
  animation: ripple-theme 2.1s cubic-bezier(.35, 0, .3, 1) both; }

/* ---- Planet arcs: the canvas reaches below the arc so the planet can dissolve along its own curve, behind the top of whatever follows. */
.planet { z-index: 0; clip-path: inset(-320px 0 -460px 0); }
.planet .planet-sky { top: -300px; height: calc(100% + 300px + 440px); }
.planet + section, .planet + .credits-roll { position: relative; z-index: 1; }
/* ---- Closing credits, slimmer: one ground from the footer down, a tight roll, and a proper web in the corner. */
.credits { background: var(--bg-2); padding-top: 200px; }
.credits-roll { background: none; gap: 8px; padding: clamp(110px, 12vw, 170px) var(--pad) clamp(70px, 8vw, 110px); }
.credits-roll p:first-child { margin-bottom: 6px; }
.credits-roll p:nth-child(4), .credits-roll p:nth-child(7), .credits-roll p:last-of-type { margin-top: 14px; }
.cobweb { width: clamp(110px, 12vw, 180px); opacity: .6; }

/* ---- Hero cobweb: spun the same way as the one on the firewall. The general ink-in rule for hero strokes was
   out-ranking it, so the web was being drawn quickly with everything else. */
.hero-art :is(path)[pathLength].web:not([stroke-dasharray]) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-in 3.6s steps(48, end) 2.6s both; }

/* The sheet's radius is set from script each frame (see theme.js), so it needs no keyframe animation of its own. */
.theme-flip { animation: none; }

/* ---- Theme ripple, built to work in Firefox too: the inverting sheet is clipped to a circle, and the dither lives on
   a separate canvas that inverts scattered pixels either side of the edge. */
.theme-flip { -webkit-mask: none; mask: none; mask-image: none; animation: none; clip-path: circle(var(--rr, 0px) at var(--cx, 50%) var(--cy, 0%)); }
.theme-edge { position: fixed; inset: 0; z-index: 251; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; mix-blend-mode: difference; }

.theme-flip.diff { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; mix-blend-mode: difference; }

/* Wordmark size, set by tools/sync_wordmark.py */
.mark .wordmark { width: calc(190px * var(--k)); height: calc(45px * var(--k)); }
@media (max-width: 767px) { .mark .wordmark { width: calc(190px * var(--k)); height: calc(45px * var(--k)); } }

/* Hue correction for the blend-based ripple (Firefox): over the inverting sheet, a sheet in the accent colour blended by
   hue. Greys have no hue to change; anything coloured comes back to orange. */
.theme-flip.hue { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f39510; mix-blend-mode: hue; }
.theme-edge.hue { mix-blend-mode: hue; z-index: 252; }

/* ---- Settling: when the last ripple has covered the screen, the inverted picture cross-fades into the real theme.
   (These replace the earlier masked view-transition ripple, which is no longer used.) */
::view-transition-old(root) { animation: settle-out .5s ease both; -webkit-mask: none; mask: none; }
::view-transition-new(root) { animation: settle-in .5s ease both; -webkit-mask: none; mask: none; mask-image: none; }
@keyframes settle-out { to { opacity: 0; } }
@keyframes settle-in { from { opacity: 0; } }

/* ---- Two typefaces only: Bricolage Grotesque for headings and copy, Press Start 2P for pixel labels. Code uses the
   reader's own monospace. Reading sizes get a little more weight and a touch of tracking, since the face is cut for display. */
body { font-family: var(--sans); font-weight: 400; letter-spacing: .006em; }
p, li, dd, .faq summary { font-weight: 380; }
.post-body p, .post-body li { font-weight: 400; letter-spacing: .008em; }

/* ---- Header backing bleeds a shorter way into the page, and scales with the height of the window. */
.nav::after { inset: 0 0 calc(-1 * clamp(18px, 3.4vh, 34px)); }
.nav::before { inset: 0 0 -12px; -webkit-mask-size: 32px 100%; mask-size: 32px 100%; }

/* ---- Hero entrance: each object lowers into place and is inked in turn; the route is drawn from one to the next
   only once the first of the pair has landed. --o is the object's place in the row, --r the stretch of route. */
@keyframes hero-drop { from { opacity: 0; translate: 0 -46px; } 60% { opacity: 1; } to { opacity: 1; translate: 0 0; } }
@keyframes route-wipe { from { clip-path: inset(-6px 100% -6px -6px); } to { clip-path: inset(-6px); } }
.hero-art .scene > g[transform] { animation: hero-drop 1.5s cubic-bezier(.2, .7, .2, 1) calc(var(--o, 0) * 1.9s) both; }
.hero-art .scene > g[transform] :is(path, ellipse, circle)[pathLength]:not([stroke-dasharray]),
.hero-art .scene > g[transform] :is(.contour, .hatch, .stipple, .detail) { animation-duration: 1.7s; animation-delay: calc(var(--o, 0) * 1.9s + .15s); }
.hero-art .scene > g[transform] :is(path)[pathLength].web:not([stroke-dasharray]) { animation-duration: 3.2s; animation-delay: calc(var(--o, 0) * 1.9s + 1.5s); }
.hero-art .scene > g[transform] .blocks { animation-delay: calc(var(--o, 0) * 1.9s + .9s) !important; }
.hero-art .blocks.live { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.hero-art .route { clip-path: inset(-6px) fill-box; animation: march 1.6s steps(9, end) infinite, route-wipe .5s steps(10, end) calc(var(--r, 0) * 1.9s + 1.4s) both; }
.hero-art .route-on:not([stroke-dasharray]) { animation: ink-in .5s steps(10, end) calc(var(--r, 0) * 1.9s + 1.4s) both; }
.hero-art.in .hero-packet { opacity: 0; animation: hero-route 5.2s steps(52, end) 7.4s infinite alternate, packet-on .01s 7.4s forwards; }
@keyframes packet-on { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-art .scene > g[transform] { animation: none; } .hero-art .route { animation: none; } }

/* ---- Features: one line drawing per feature. */
.feature-list > div { grid-template-columns: clamp(96px, 9vw, 132px) 4fr 8fr; align-items: center; }
.ficon { display: block; color: var(--ink); }
.ficon svg { display: block; width: 100%; height: auto; overflow: visible; stroke-width: 1.2; shape-rendering: crispEdges; }
.ficon .f { fill: var(--bg); } .ficon .c { stroke-width: 2.3; fill: none; } .ficon .h { stroke-width: .8; opacity: .75; }
.ficon .a { stroke: var(--accent); } .ficon .f.a { fill: color-mix(in srgb, var(--accent) 16%, var(--bg)); } .ficon .c.a { stroke-width: 2; }
.ficon .d { stroke-dasharray: 2 3.4; opacity: .7; }
/* The lines are plain solid strokes at rest. The draw-in is an animation that only applies while it runs, so if it
   never runs (or is interrupted) the icon is simply there, complete. */
@keyframes ficon-ink { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.js .reveal.in .ficon path[pathLength] { animation: ficon-ink 1.6s var(--ease) .1s backwards; }
.feature-list > div:hover .ficon .a { animation: ficon-blink .9s steps(2, end) infinite; }
@keyframes ficon-blink { 50% { opacity: .35; } }
@media (max-width: 767px) { .feature-list > div { grid-template-columns: 84px 1fr; align-items: start; column-gap: 18px; } .feature-list .ficon { grid-row: span 2; } }
@media (prefers-reduced-motion: reduce) { .js .reveal.in .ficon path[pathLength] { animation: none; } }

/* Wordmark size, set by tools/sync_wordmark.py */
.mark .wordmark { width: calc(190px * var(--k)); height: calc(45px * var(--k)); }
@media (max-width: 767px) { .mark .wordmark { width: calc(190px * var(--k)); height: calc(45px * var(--k)); } }

/* ---- Theme ripples as one view transition: a still picture of the old theme underneath, the live new theme on top,
   and a clip path of one circle per ripple (even-odd, so overlapping ripples flip back) deciding which shows.
   The colours a ripple leaves behind are therefore the real ones, and there is nothing to swap when it ends. */
html.theme-rippling::view-transition { pointer-events: none; }
html.theme-rippling::view-transition-group(root) { animation: vt-hold 600s linear both; }
html.theme-rippling::view-transition-image-pair(root) { isolation: auto; }
html.theme-rippling::view-transition-old(root) { animation: none; opacity: 1; mix-blend-mode: normal; -webkit-mask: none; mask: none; }
html.theme-rippling::view-transition-new(root) { animation: none; opacity: 1; mix-blend-mode: normal; -webkit-mask: none; mask: none; clip-path: var(--tclip, none); }
@keyframes vt-hold { from { opacity: 1; } to { opacity: 1; } }

/* ---- Planet arcs: the stars are the accent colour (the glow stays grey), and the turning stars are clipped to the
   sky by script, so none is seen through the planet or below the horizon. */
.planet .planet-sky { text-decoration-color: var(--accent); }
.planet .sky-clip { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.planet .sky .star { background: var(--accent); }

/* ---- Product switch. Two glyphs in a track, a keycap knob under the product you are on. hop.js does the hand-over
   to crawl.acemedia.ninja (the same file runs on both sites). */
.brand { display: flex; align-items: flex-end; gap: clamp(10px, 1.4vw, 20px); min-width: 0; }
.hop { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--muted); text-decoration: none; margin-bottom: 1px; }
.hop-track { position: relative; isolation: isolate; display: flex; width: 52px; height: 28px; padding: 2px; background: color-mix(in srgb, var(--ink) 13%, var(--bg)); clip-path: var(--cut); }
.hop-i { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--g) center / 12px 12px no-repeat; mask: var(--g) center / 12px 12px no-repeat; image-rendering: pixelated; }
.hop-arc { --g: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/hop-arc.svg); color: var(--on-accent); } .hop-crawl { --g: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/hop-crawl.svg); }
.hop-knob { position: absolute; z-index: -1; top: 2px; left: 2px; width: 24px; height: 24px; background: var(--accent); clip-path: var(--cut); transition: transform .24s steps(4, end), background-color .24s steps(2, end); }
.hop-name { color: var(--muted); white-space: nowrap; transition: color .2s; }
.hop:hover .hop-knob, .hop:focus-visible .hop-knob { transform: translateX(6px); }
.hop:hover .hop-name, .hop:hover .hop-crawl { color: var(--ink); }
.hop-out .hop-knob { transform: translateX(24px) !important; background: #b2e33a; }
.hop-out .hop-arc { color: currentColor; } .hop-out .hop-crawl { color: #141b05; }
.hop-arrive .hop-knob { animation: hop-arrive .48s steps(4, end) .18s both; }
@keyframes hop-arrive { from { transform: translateX(24px); background: #b2e33a; } to { transform: none; } }
.hop-cover { position: fixed; inset: 0; z-index: 320; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
html.hop-in body::after { content: ""; position: fixed; inset: 0; z-index: 320; background: var(--accent); }
@media (max-width: 1700px) { .hop-name { display: none; } }
@media (max-width: 400px) { .hop-track { width: 40px; height: 22px; padding: 1px; } .hop-i { width: 19px; height: 20px; } .hop-knob { top: 1px; left: 1px; width: 19px; height: 20px; } .hop-out .hop-knob { transform: translateX(19px) !important; } }
@media (prefers-reduced-motion: reduce) { .hop-knob { transition: none; } .hop-arrive .hop-knob { animation: none; } html.hop-in body::after { display: none; } }
.foot a.hop-link::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; background: var(--accent-text); -webkit-mask: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/ui-swap.svg) center / contain no-repeat; mask: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/ui-swap.svg) center / contain no-repeat; image-rendering: pixelated; }

/* ---- Short lockup. The nav logo steps down as the screen narrows so the logo, the switch and the buttons all fit:
   "Ace Redis Cache", then "Ace Redis" (tools/short_wordmark.py), then on phones the three capitals "ARC" on their own
   in the site's orange (tools/arc_letters.py). The footer keeps the full name at every size. */
@media (max-width: 1420px) { .nav .mark .wordmark { width: calc(83px * var(--k)); height: calc(41px * var(--k)); margin-bottom: 0; -webkit-mask-image: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/redis-pixel.svg); mask-image: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/redis-pixel.svg); } }
@media (max-width: 560px) { .nav .mark img { display: none; } .nav .mark .wordmark { width: calc(77px * var(--k)); height: calc(37px * var(--k)); margin-bottom: 0; background: var(--accent); -webkit-mask-image: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/arc-letters-pixel.svg); mask-image: url(https://media.acemedia.ninja/plugin-sites/arc/5b844d9c9bb36218308ce0b9/img/arc-letters-pixel.svg); } }

/* ---- Response time under the day chart: one column per hour on a 0 to 2 ms scale. Each is a faint stem with a solid
   cap, so it reads as "how long a response took" and the flat row of caps against the swinging bars is the point. */
.day-ms-head { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; color: var(--muted); }
.day-ms { height: 76px; margin-top: 8px; border-top: 1px dashed var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(to right, var(--line) 50%, transparent 0) 0 50% / 8px 1px repeat-x; }
.day-ms i::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; margin-left: -3px; height: var(--b); background: var(--ink); opacity: .2;
  clip-path: inset(100% 0 0 0); transition: clip-path .9s steps(9, end); }
.day-ms.in i::before { clip-path: inset(0); }
.day-ms i::after { width: 6px; height: 6px; margin: 0 0 -3px -3px; opacity: .9; }
.day-ms i.on::before { background: var(--accent); opacity: .45; }
.day-note { margin-top: 10px; max-width: none; color: var(--muted); }
.day-ms-head { max-width: none; width: 100%; }
@media (max-width: 560px) { .nav .mark .wordmark { width: 62px; height: 30px; } }
/* Between the phone layout and a roomy desktop the centre links are tight: drop the ship and close the gaps. */
@media (min-width: 1024px) and (max-width: 1220px) { .nav .mark .arc-mark { display: none; } .nav { gap: 14px; } .nav nav { gap: 16px; } .nav-end { gap: 10px; } }
@media (min-width: 1024px) and (max-width: 1220px) { .nav { grid-template-columns: auto minmax(0, 1fr) auto; } .nav nav { justify-content: center; font-size: .95rem; } }

/* ---- Buttons as chunky pixel keys: a dark stepped outline, a face with a light strip along the top and a darker one
   along the bottom, and a lip underneath that the face sinks into when pressed. --u is one "pixel" of the button. */
:root { --btn-line: #0a0b0b; --btn-key-line: #3a2100; }
:root[data-theme="light"] { --btn-line: #272b2c; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --btn-line: #272b2c; } }
.btn { --u: 4px; --d: 8px; --face: var(--accent); --hi: #ffc45c; --lo: #cf7a06; --lip: #9b5800; --line: var(--btn-key-line);
  margin: var(--u) var(--u) calc(var(--d) + var(--u)); transition: transform .07s steps(2, end); }
.btn-ghost { --face: color-mix(in srgb, var(--ink) 20%, var(--bg)); --hi: color-mix(in srgb, var(--ink) 36%, var(--bg)); --lo: color-mix(in srgb, var(--ink) 11%, var(--bg));
  --lip: color-mix(in srgb, var(--ink) 30%, var(--bg)); --line: var(--btn-line); }
.btn-small { --u: 2px; --d: 4px; margin: var(--u) var(--u) calc(var(--d) + var(--u)); }
.btn::before, .btn-ghost::before, .btn-small::before { inset: 0; background: var(--face); opacity: 1; transform: none;
  box-shadow: inset 0 var(--u) 0 var(--hi), inset 0 calc(-1 * var(--u)) 0 var(--lo);
  clip-path: polygon(var(--u) 0, calc(100% - var(--u)) 0, calc(100% - var(--u)) var(--u), 100% var(--u), 100% calc(100% - var(--u)), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u)) 100%, var(--u) 100%, var(--u) calc(100% - var(--u)), 0 calc(100% - var(--u)), 0 var(--u), var(--u) var(--u)); }
.btn::after, .btn-ghost::after, .btn-small::after { inset: calc(-1 * var(--u)) calc(-1 * var(--u)) calc(-1 * var(--u) - var(--d)); opacity: 1; transform: none; transition: transform .07s steps(2, end);
  background: linear-gradient(var(--lip), var(--lip)) var(--u) var(--u) / calc(100% - 2 * var(--u)) calc(100% - 2 * var(--u)) no-repeat, var(--line);
  clip-path: polygon(calc(2 * var(--u)) 0, calc(100% - 2 * var(--u)) 0, calc(100% - 2 * var(--u)) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(2 * var(--u)), 100% calc(2 * var(--u)),
    100% calc(100% - 2 * var(--u)), calc(100% - var(--u)) calc(100% - 2 * var(--u)), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - 2 * var(--u)) calc(100% - var(--u)), calc(100% - 2 * var(--u)) 100%,
    calc(2 * var(--u)) 100%, calc(2 * var(--u)) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - 2 * var(--u)), 0 calc(100% - 2 * var(--u)), 0 calc(2 * var(--u)), var(--u) calc(2 * var(--u)), var(--u) var(--u), calc(2 * var(--u)) var(--u)); }
.btn:hover, .btn-small:hover { transform: none; }
.btn:hover::after, .btn-small:hover::after { transform: none; }
.btn:hover::before { background: color-mix(in srgb, var(--face) 82%, #fff); }
/* Pressed: the face and its label drop into the lip; the outline stays where it was. */
.btn:active, .btn-small:active, .btn.is-down { transform: translateY(calc(var(--d) - var(--u) / 2)); }
.btn:active::after, .btn-small:active::after, .btn.is-down::after { transform: translateY(calc(-1 * (var(--d) - var(--u) / 2))); }
.btn:active::before, .btn.is-down::before { background: color-mix(in srgb, var(--face) 90%, #000); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: calc(var(--u) + var(--d) + 2px); }
@media (max-width: 767px) { .btn:not(.btn-small) { --u: 3px; --d: 6px; } }

/* ---- Buttons, second pass: rounder pixel corners and a thicker outline, closer to a game-menu key. The outline
   steps in 4, 2, 1, 1 pixels at each corner; the face nests inside it; the lip underneath is built from three
   strips so its lower corners follow the same steps. (Shapes generated by a small script; --u is one button pixel.) */
.btn { --u: 3px; --d: 9px; --hi: #ffcf70; --lo: #c96f00; --lip: #8f4f00; --line: #2b1700; }
.btn-ghost { --hi: color-mix(in srgb, var(--ink) 40%, var(--bg)); --lo: color-mix(in srgb, var(--ink) 12%, var(--bg)); --lip: color-mix(in srgb, var(--ink) 28%, var(--bg)); --line: var(--btn-line); }
.btn-small { --u: 2px; --d: 6px; }
.btn, .btn-small { margin: var(--u) var(--u) calc(var(--d) + var(--u)); padding-inline: calc(var(--u) * 6 + 4px); }
.btn::before, .btn-ghost::before, .btn-small::before { clip-path: polygon(calc(2 * var(--u)) 0, calc(100% - calc(2 * var(--u))) 0, calc(100% - calc(2 * var(--u))) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(2 * var(--u)), calc(100% - var(--u)) calc(3 * var(--u)), 100% calc(3 * var(--u)), 100% calc(100% - calc(3 * var(--u))), calc(100% - var(--u)) calc(100% - calc(3 * var(--u))), calc(100% - var(--u)) calc(100% - calc(2 * var(--u))), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - calc(2 * var(--u))) calc(100% - var(--u)), calc(100% - calc(2 * var(--u))) 100%, calc(2 * var(--u)) 100%, calc(2 * var(--u)) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - calc(2 * var(--u))), var(--u) calc(100% - calc(3 * var(--u))), 0 calc(100% - calc(3 * var(--u))), 0 calc(3 * var(--u)), var(--u) calc(3 * var(--u)), var(--u) calc(2 * var(--u)), var(--u) var(--u), calc(2 * var(--u)) var(--u), calc(2 * var(--u)) 0);
  box-shadow: inset 0 var(--u) 0 var(--hi), inset 0 calc(-2 * var(--u)) 0 var(--lo); }
.btn::after, .btn-ghost::after, .btn-small::after { clip-path: polygon(calc(4 * var(--u)) 0, calc(100% - calc(4 * var(--u))) 0, calc(100% - calc(4 * var(--u))) var(--u), calc(100% - calc(2 * var(--u))) var(--u), calc(100% - calc(2 * var(--u))) calc(2 * var(--u)), calc(100% - var(--u)) calc(2 * var(--u)), calc(100% - var(--u)) calc(3 * var(--u)), calc(100% - var(--u)) calc(4 * var(--u)), 100% calc(4 * var(--u)), 100% calc(100% - calc(4 * var(--u))), calc(100% - var(--u)) calc(100% - calc(4 * var(--u))), calc(100% - var(--u)) calc(100% - calc(3 * var(--u))), calc(100% - var(--u)) calc(100% - calc(2 * var(--u))), calc(100% - calc(2 * var(--u))) calc(100% - calc(2 * var(--u))), calc(100% - calc(2 * var(--u))) calc(100% - var(--u)), calc(100% - calc(4 * var(--u))) calc(100% - var(--u)), calc(100% - calc(4 * var(--u))) 100%, calc(4 * var(--u)) 100%, calc(4 * var(--u)) calc(100% - var(--u)), calc(2 * var(--u)) calc(100% - var(--u)), calc(2 * var(--u)) calc(100% - calc(2 * var(--u))), var(--u) calc(100% - calc(2 * var(--u))), var(--u) calc(100% - calc(3 * var(--u))), var(--u) calc(100% - calc(4 * var(--u))), 0 calc(100% - calc(4 * var(--u))), 0 calc(4 * var(--u)), var(--u) calc(4 * var(--u)), var(--u) calc(3 * var(--u)), var(--u) calc(2 * var(--u)), calc(2 * var(--u)) calc(2 * var(--u)), calc(2 * var(--u)) var(--u), calc(4 * var(--u)) var(--u), calc(4 * var(--u)) 0);
  background:
    linear-gradient(var(--lip), var(--lip)) left var(--u) top calc(4 * var(--u)) / calc(100% - 2 * var(--u)) calc(100% - 8 * var(--u)) no-repeat,
    linear-gradient(var(--lip), var(--lip)) left calc(2 * var(--u)) bottom calc(2 * var(--u)) / calc(100% - 4 * var(--u)) calc(2 * var(--u)) no-repeat,
    linear-gradient(var(--lip), var(--lip)) left calc(3 * var(--u)) bottom var(--u) / calc(100% - 6 * var(--u)) var(--u) no-repeat,
    var(--line); }
.btn:active, .btn-small:active, .btn.is-down { transform: translateY(calc(var(--d) - var(--u))); }
.btn:active::after, .btn-small:active::after, .btn.is-down::after { transform: translateY(calc(-1 * (var(--d) - var(--u)))); }
@media (max-width: 767px) { .btn:not(.btn-small) { --u: 2px; --d: 6px; } }

/* ---- Suite switch. The grid button beside the logo opens a menu of every Ace plugin site (hop.js builds it and does
   the hand-over). Each tile carries its plugin's own colour in --c; sites that are not live yet are shown dimmed. */
.brand { position: relative; }
.hop { gap: 8px; }
.suite-ico { position: relative; flex: none; width: 28px; height: 28px; background: color-mix(in srgb, var(--ink) 13%, var(--bg)); clip-path: var(--cut); transition: background-color .15s steps(2, end); }
.suite-ico::before { content: ""; position: absolute; inset: 6px; background: var(--accent); image-rendering: pixelated;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v2h-2zM3 0h2v2h-2zM6 0h2v2h-2zM0 3h2v2h-2zM3 3h2v2h-2zM6 3h2v2h-2zM0 6h2v2h-2zM3 6h2v2h-2zM6 6h2v2h-2z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v2h-2zM3 0h2v2h-2zM6 0h2v2h-2zM0 3h2v2h-2zM3 3h2v2h-2zM6 3h2v2h-2zM0 6h2v2h-2zM3 6h2v2h-2zM6 6h2v2h-2z'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.hop:hover .suite-ico, .hop:focus-visible .suite-ico, .suite-open .suite-ico { background: var(--accent); }
.hop:hover .suite-ico::before, .hop:focus-visible .suite-ico::before, .suite-open .suite-ico::before { background: var(--on-accent); }
.hop:hover .hop-name, .suite-open .hop-name { color: var(--ink); }
.suite { position: absolute; z-index: 30; left: 0; top: calc(100% + 18px); width: min(760px, calc(100vw - 2 * var(--pad))); padding: 16px; background: var(--bg);
  box-shadow: 0 0 0 3px var(--btn-line), 0 0 0 4px color-mix(in srgb, var(--ink) 22%, transparent), 10px 10px 0 4px color-mix(in srgb, #000 28%, transparent);
  clip-path: inset(-20px -20px calc(100% + 20px) -20px); transition: clip-path .24s steps(8, end); }
.suite.on { clip-path: inset(-20px); }
.suite-h { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 12px; color: var(--accent-text, var(--accent)); max-width: none; }
.suite-h span { color: var(--muted); }
.suite-home { display: inline-flex; align-items: center; min-height: 28px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.suite-home:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.suite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.suite-tile { position: relative; isolation: isolate; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 10px; color: var(--ink); text-decoration: none; }
.suite-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: 0; transition: opacity .12s steps(2, end);
  -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGUlEQVR42mNgYGD4zwABuGjCYDCYwECRCQAKfQ7yt6fHUwAAAABJRU5ErkJggg==) 0 0 / 8px 8px; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGUlEQVR42mNgYGD4zwABuGjCYDCYwECRCQAKfQ7yt6fHUwAAAABJRU5ErkJggg==) 0 0 / 8px 8px; image-rendering: pixelated; }
a.suite-tile:hover::before, a.suite-tile:focus-visible::before { opacity: .5; }
.suite-tile.here::before { opacity: .22; }
a.suite-tile:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.suite-g { grid-row: span 3; display: block; width: 40px; height: 40px; background: var(--c); clip-path: var(--cut); position: relative; color: #14110a; transition: transform .12s steps(2, end); }
.suite-g svg { position: absolute; inset: 8px; width: 24px; height: 24px; fill: currentColor; }
.suite-g[style*="--g"]::after { content: ""; position: absolute; inset: 8px; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; image-rendering: pixelated; }
a.suite-tile:hover .suite-g { transform: translateY(-2px); } a.suite-tile:active .suite-g { transform: translateY(2px); }
.suite-n { font: 500 .98rem/1.2 var(--display); letter-spacing: -.01em; }
.suite-l { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.suite-s { margin-top: 5px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.suite-s b { font-weight: 400; margin-left: 6px; color: var(--c); }
:root[data-theme="light"] .suite-s b { color: color-mix(in srgb, var(--c) 55%, #000); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .suite-s b { color: color-mix(in srgb, var(--c) 55%, #000); } }
.suite-tile.soon .suite-g { opacity: .45; } .suite-tile.soon .suite-n { color: var(--muted); } .suite-tile.soon .suite-s b { color: var(--muted); }
@media (max-width: 900px) { .suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .suite { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100dvh - 84px); overflow-y: auto; padding: 12px; }
  .suite-tile { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 8px; } .suite-g { width: 32px; height: 32px; } .suite-g svg, .suite-g[style*="--g"]::after { inset: 6px; width: 20px; height: 20px; } .suite-l { display: none; } .suite-h span { display: none; } }
@media (max-width: 420px) { .suite-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .suite { transition: none; } }

/* ---- Buttons, third pass: rounder still (the outline steps 5, 3, 2, 1, 1 at each corner), and the lip under the
   face is dithered, a checker of the lip colour and the outline colour, so it reads as the depth of the key and not
   as a shadow. The checker is laid over the whole base in the outline's own colour: over the outline it changes
   nothing, over the lip it makes the dither. */
.btn, .btn-small { padding-inline: calc(var(--u) * 7 + 4px); }
.btn::before, .btn-ghost::before, .btn-small::before { clip-path: polygon(calc(3 * var(--u)) 0, calc(100% - calc(3 * var(--u))) 0, calc(100% - calc(3 * var(--u))) var(--u), calc(100% - calc(2 * var(--u))) var(--u), calc(100% - calc(2 * var(--u))) calc(2 * var(--u)), calc(100% - var(--u)) calc(2 * var(--u)), calc(100% - var(--u)) calc(3 * var(--u)), calc(100% - var(--u)) calc(4 * var(--u)), 100% calc(4 * var(--u)), 100% calc(100% - calc(4 * var(--u))), calc(100% - var(--u)) calc(100% - calc(4 * var(--u))), calc(100% - var(--u)) calc(100% - calc(3 * var(--u))), calc(100% - var(--u)) calc(100% - calc(2 * var(--u))), calc(100% - calc(2 * var(--u))) calc(100% - calc(2 * var(--u))), calc(100% - calc(2 * var(--u))) calc(100% - var(--u)), calc(100% - calc(3 * var(--u))) calc(100% - var(--u)), calc(100% - calc(3 * var(--u))) 100%, calc(3 * var(--u)) 100%, calc(3 * var(--u)) calc(100% - var(--u)), calc(2 * var(--u)) calc(100% - var(--u)), calc(2 * var(--u)) calc(100% - calc(2 * var(--u))), var(--u) calc(100% - calc(2 * var(--u))), var(--u) calc(100% - calc(3 * var(--u))), var(--u) calc(100% - calc(4 * var(--u))), 0 calc(100% - calc(4 * var(--u))), 0 calc(4 * var(--u)), var(--u) calc(4 * var(--u)), var(--u) calc(3 * var(--u)), var(--u) calc(2 * var(--u)), calc(2 * var(--u)) calc(2 * var(--u)), calc(2 * var(--u)) var(--u), calc(3 * var(--u)) var(--u), calc(3 * var(--u)) 0); }
.btn::after, .btn-ghost::after, .btn-small::after { clip-path: polygon(calc(5 * var(--u)) 0, calc(100% - calc(5 * var(--u))) 0, calc(100% - calc(5 * var(--u))) var(--u), calc(100% - calc(3 * var(--u))) var(--u), calc(100% - calc(3 * var(--u))) calc(2 * var(--u)), calc(100% - calc(2 * var(--u))) calc(2 * var(--u)), calc(100% - calc(2 * var(--u))) calc(3 * var(--u)), calc(100% - var(--u)) calc(3 * var(--u)), calc(100% - var(--u)) calc(4 * var(--u)), calc(100% - var(--u)) calc(5 * var(--u)), 100% calc(5 * var(--u)), 100% calc(100% - calc(5 * var(--u))), calc(100% - var(--u)) calc(100% - calc(5 * var(--u))), calc(100% - var(--u)) calc(100% - calc(4 * var(--u))), calc(100% - var(--u)) calc(100% - calc(3 * var(--u))), calc(100% - calc(2 * var(--u))) calc(100% - calc(3 * var(--u))), calc(100% - calc(2 * var(--u))) calc(100% - calc(2 * var(--u))), calc(100% - calc(3 * var(--u))) calc(100% - calc(2 * var(--u))), calc(100% - calc(3 * var(--u))) calc(100% - var(--u)), calc(100% - calc(5 * var(--u))) calc(100% - var(--u)), calc(100% - calc(5 * var(--u))) 100%, calc(5 * var(--u)) 100%, calc(5 * var(--u)) calc(100% - var(--u)), calc(3 * var(--u)) calc(100% - var(--u)), calc(3 * var(--u)) calc(100% - calc(2 * var(--u))), calc(2 * var(--u)) calc(100% - calc(2 * var(--u))), calc(2 * var(--u)) calc(100% - calc(3 * var(--u))), var(--u) calc(100% - calc(3 * var(--u))), var(--u) calc(100% - calc(4 * var(--u))), var(--u) calc(100% - calc(5 * var(--u))), 0 calc(100% - calc(5 * var(--u))), 0 calc(5 * var(--u)), var(--u) calc(5 * var(--u)), var(--u) calc(4 * var(--u)), var(--u) calc(3 * var(--u)), calc(2 * var(--u)) calc(3 * var(--u)), calc(2 * var(--u)) calc(2 * var(--u)), calc(3 * var(--u)) calc(2 * var(--u)), calc(3 * var(--u)) var(--u), calc(5 * var(--u)) var(--u), calc(5 * var(--u)) 0);
  background:
    repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) left bottom / calc(2 * var(--u)) calc(2 * var(--u)),
    linear-gradient(var(--lip), var(--lip)) left var(--u) top calc(5 * var(--u)) / calc(100% - 2 * var(--u)) calc(100% - 10 * var(--u)) no-repeat,
    linear-gradient(var(--lip), var(--lip)) left calc(2 * var(--u)) bottom calc(3 * var(--u)) / calc(100% - 4 * var(--u)) calc(2 * var(--u)) no-repeat,
    linear-gradient(var(--lip), var(--lip)) left calc(3 * var(--u)) bottom calc(2 * var(--u)) / calc(100% - 6 * var(--u)) var(--u) no-repeat,
    linear-gradient(var(--lip), var(--lip)) left calc(4 * var(--u)) bottom var(--u) / calc(100% - 8 * var(--u)) var(--u) no-repeat,
    var(--line); }
.btn { --lip: #b86a00; --d: 12px; }
.btn-ghost { --lip: color-mix(in srgb, var(--ink) 34%, var(--bg)); }
.btn-small { --d: 8px; }
@media (max-width: 767px) { .btn:not(.btn-small) { --d: 8px; } }

/* Wordmark size, set by tools/sync_wordmark.py */
.mark .wordmark { width: calc(192px * var(--k)); height: calc(45px * var(--k)); }
@media (max-width: 767px) { .mark .wordmark { width: calc(192px * var(--k)); height: calc(45px * var(--k)); } }
