/* Base reset. */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}

/* Layout: one fixed 3D stage of 96 A4 sheets behind sparse type; each section re-files the sheets into a new form, on the side opposite the text. */
:root {
  --mark-b: url('../assets/brand/imci-logo-black.svg');
  --mark-w: url('../assets/brand/imci-logo-white.svg');
  --word-b: url('../assets/brand/imci-wordmark-black.svg');
  --word-w: url('../assets/brand/imci-wordmark-white.svg');
  --mark: var(--mark-b);
  --word: var(--word-b);
  --bg: #e6e9ec;
  --ink: #0d1a22;
  --mute: #55646e;
  --line: rgba(13, 26, 34, 0.16);
  --panel: rgba(255, 255, 255, 0.62);
  --accent: #0b3a82;
  --on-accent: #fff;
  --sheet: #ffffff;
  --sheet-accent: #bccbea;
  --hover: rgba(13, 26, 34, 0.06);
  --logo-bg: #fff;
  --logo-ink: #0d1a22;
  --glow: rgba(11, 58, 130, 0.14);
  --shade: rgba(13, 26, 34, 0.05);
  --shade-deep: rgba(13, 26, 34, 0.28);
  --bad: #c2321f;
  --good: #0a7f55;
  --bad-t: rgba(194, 50, 31, 0.06);
  --good-t: rgba(10, 127, 85, 0.07);
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gutr: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a1115;
    --ink: #eef2f4;
    --mute: #93a3ad;
    --line: rgba(238, 242, 244, 0.18);
    --panel: rgba(16, 26, 32, 0.66);
    --accent: #74a7ea;
    --on-accent: #0a1115;
    --sheet: #2b3942;
    --mark: var(--mark-w);
    --word: var(--word-w);
    --sheet-accent: #35527f;
    --hover: rgba(238, 242, 244, 0.08);
    --logo-bg: #fff;
    --logo-ink: #0d1a22;
    --glow: rgba(116, 167, 234, 0.2);
    --shade: rgba(0, 0, 0, 0.3);
    --shade-deep: rgba(0, 0, 0, 0.7);
    --bad: #ff907c;
    --good: #63d8a6;
    --bad-t: rgba(255, 144, 124, 0.08);
    --good-t: rgba(99, 216, 166, 0.08);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a1115;
  --ink: #eef2f4;
  --mute: #93a3ad;
  --line: rgba(238, 242, 244, 0.18);
  --panel: rgba(16, 26, 32, 0.66);
  --accent: #74a7ea;
  --on-accent: #0a1115;
  --sheet: #2b3942;
  --mark: var(--mark-w);
  --word: var(--word-w);
  --sheet-accent: #35527f;
  --hover: rgba(238, 242, 244, 0.08);
  --logo-bg: #fff;
  --logo-ink: #0d1a22;
  --glow: rgba(116, 167, 234, 0.2);
  --shade: rgba(0, 0, 0, 0.3);
  --shade-deep: rgba(0, 0, 0, 0.7);
  --bad: #ff907c;
  --good: #63d8a6;
  --bad-t: rgba(255, 144, 124, 0.08);
  --good-t: rgba(99, 216, 166, 0.08);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
@property --ml {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}
@property --mr {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}
#stage {
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, var(--ml)) 24%, rgba(0, 0, 0, var(--mr)) 74%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, var(--ml)) 24%, rgba(0, 0, 0, var(--mr)) 74%);
  transition:
    opacity 0.9s ease,
    --ml 1s ease,
    --mr 1s ease;
}
#stage[data-side='1'] {
  --ml: 0.14;
}
#stage[data-side='-1'] {
  --mr: 0.14;
}
.wrap {
  padding-left: var(--gut);
  padding-right: var(--gutr);
  max-width: 1440px;
  margin-inline: auto;
}

/* nav */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}
.util {
  position: relative;
  z-index: 9;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
}
.util .wrap {
  display: flex;
  gap: 1.6rem;
  padding-block: 0.5rem;
  align-items: center;
}
.util a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.util a:hover {
  border-color: currentColor;
}
.util .sp {
  margin-left: auto;
}
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
}
.mark {
  font: 600 1.4rem/1 var(--display);
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.mark i {
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  font-style: normal;
}
.lg {
  display: block;
  height: 1.75rem;
  aspect-ratio: 2.478;
  background: var(--mark) left center/contain no-repeat;
}
.lg.word {
  height: 1.5rem;
  aspect-ratio: 7.36;
  max-width: 100%;
  background-image: var(--word);
}
.links {
  display: flex;
  gap: 1.8rem;
  margin-left: 2rem;
  margin-right: auto;
  font-size: 0.92rem;
  align-items: center;
}
.item {
  position: relative;
}
.links > a,
.item > a {
  position: relative;
  display: block;
  padding-block: 0.55rem;
  color: var(--mute);
  transition: color 0.25s;
}
.links > a::after,
.item > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.links > a:hover,
.item:hover > a,
.links > a.on,
.item > a.on {
  color: var(--ink);
}
.links > a:hover::after,
.item:hover > a::after,
.links > a.on::after,
.item > a.on::after {
  transform: scaleX(1);
  transform-origin: left;
}
.drop {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 21rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1),
    visibility 0.25s;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.45);
}
.item:hover .drop,
.item:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drop a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
  transition: background 0.2s;
}
.drop a:hover {
  background: var(--hover);
}
.drop b {
  display: block;
  font: 500 1.02rem var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.drop span {
  font-size: 0.84rem;
  color: var(--mute);
}
.menu {
  display: none;
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: auto;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}
.trust div {
  padding: 1rem 1.2rem 0 0;
  font: 500 1rem/1.3 var(--display);
  min-width: 0;
}
.trust small {
  display: block;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.35rem;
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.3rem;
  font: 500 0.95rem var(--body);
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
  z-index: -1;
}
.btn:hover {
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn:hover::before {
  transform: none;
}
.btn b {
  font-weight: 400;
  transition: transform 0.35s;
}
.btn:hover b {
  transform: translateX(4px);
}
.btn.solid {
  background: var(--ink);
  color: var(--bg);
}
.btn.solid:hover {
  color: var(--on-accent);
}
.btn.sm {
  padding: 0.6rem 0.95rem;
  font-size: 0.86rem;
}
.txt {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  font-weight: 500;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.txt:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* type */
.tag {
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tag::before {
  content: '';
  width: 0.5rem;
  height: 0.7rem;
  background: var(--accent);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
  line-height: 0.94;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.98;
}
h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
p {
  margin: 0;
  max-width: 34rem;
}
.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--mute);
}
.small {
  font-size: 0.9rem;
  color: var(--mute);
}
/* a one-sentence note that should sit on one line where the screen allows */
.small.wide {
  max-width: none;
}
.ph {
  font: 400 0.78rem var(--mono);
  color: var(--mute);
  border: 1px dashed var(--line);
  padding: 0.9rem 1rem;
  border-radius: 2px;
}
/* an embedded demo app: inline on wider screens, the "Open full screen" button only on phones */
.demo {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sheet);
  aspect-ratio: 16 / 10;
  max-height: 80vh;
  width: 100%;
}
.demo iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .demo {
    display: none;
  }
}
/* The Operations Management diagram (opsFlow in views.js): sources send pulses down thin wires into the AI,
   which works one example through, then the outputs light up in turn. One story cycle is --cy long.
   The motion runs only while the diagram is on screen (app.js adds .play). With reduced motion every
   animation is off, so the resting styles below are the finished picture: everything lit and shown. */
.opf {
  --cy: 13s;
  --bus: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bus) minmax(0, 1.1fr) var(--bus) minmax(0, 1.15fr);
  align-items: center;
  width: 100%;
}
.opf *,
.opf *::before,
.opf *::after {
  animation-play-state: paused;
}
.opf.play *,
.opf.play *::before,
.opf.play *::after {
  animation-play-state: running;
}
.oi {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.opf-in,
.opf-out,
.opf-core {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.opf-grp {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.opf-grp + .opf-grp {
  margin-top: 0.6rem;
}
.opf-grp .tag {
  color: var(--mute);
}
.opf-grp ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
/* one source: icon, name, a live dot, and its wire to the bus */
.opf-src {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.opf-src .oi {
  color: var(--accent);
}
.opf-src::after {
  content: '';
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: opf-live 2.4s ease-in-out var(--d) infinite;
}
/* a wire: a thin line with a small square that travels along it */
.opf-w {
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(var(--bus) / 2);
  height: 1px;
  background: var(--line);
}
.opf-w::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
  animation: opf-run 2.4s linear var(--d) infinite;
}
/* the bus: one upright line collecting the wires, and one wire across to the next box */
.opf-bus {
  position: relative;
  align-self: stretch;
}
.opf-bus::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4.3rem;
  bottom: 1.3rem;
  width: 1px;
  background: var(--line);
}
.opf-bus.out::before {
  top: 4.4rem;
  bottom: 3.4rem;
}
.opf-bus i {
  position: absolute;
  top: 50%;
  left: 50%;
  right: 0;
  height: 1px;
  background: var(--line);
}
.opf-bus.out i {
  left: 0;
  right: 50%;
}
.opf-bus i::before,
.opf-bus i::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
  animation: opf-run 1.2s linear infinite;
}
.opf-bus i::after {
  animation-delay: 0.6s;
}
.opf-bus.out i::before,
.opf-bus.out i::after {
  animation: opf-out var(--cy) linear infinite;
}
.opf-bus.out i::after {
  animation-delay: 0.25s;
}
/* the AI box: three steps, then the worked example */
.opf-core {
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 2px;
  gap: 1rem;
}
.opf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.opf-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--accent);
  font: 500 1.05rem var(--display);
  color: var(--ink);
}
.opf-steps i {
  font: 400 0.7rem var(--mono);
  font-style: normal;
  color: var(--accent);
}
.opf-steps .s1 {
  animation: opf-s1 var(--cy) infinite;
}
.opf-steps .s2 {
  animation: opf-s2 var(--cy) infinite;
}
.opf-steps .s3 {
  animation: opf-s3 var(--cy) infinite;
}
.opf-ex {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.opf-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.3;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}
.opf-card small {
  display: block;
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.opf-card .oi {
  margin-top: 0.15rem;
  color: var(--mute);
}
.opf-card.c3,
.opf-card.c4 {
  border-color: var(--accent);
}
.opf-card.c3 .oi,
.opf-card.c4 .oi {
  color: var(--accent);
}
.opf-card.c4 {
  border-left-width: 3px;
}
.opf-card.c1 {
  animation: opf-c1 var(--cy) infinite;
}
.opf-card.c2 {
  animation: opf-c2 var(--cy) infinite;
}
.opf-card.c3 {
  animation: opf-c3 var(--cy) infinite;
}
.opf-card.c4 {
  animation: opf-c4 var(--cy) infinite;
}
/* one output: its wire in from the bus, a small picture, and a label */
.opf-o {
  position: relative;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  animation: opf-lit var(--cy) infinite;
}
.opf-o p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}
.opf-o .opf-w {
  left: auto;
  right: 100%;
}
.opf-o .opf-w::after {
  animation: opf-out var(--cy) linear infinite;
}
.opf-o.o2 {
  animation-delay: 0.25s;
}
.opf-o.o3 {
  animation-delay: 0.5s;
}
.opf-o.o4 {
  animation-delay: 0.75s;
}
.opf-o.o2 .opf-w::after {
  animation-delay: 0.25s;
}
.opf-o.o3 .opf-w::after {
  animation-delay: 0.5s;
}
.opf-o.o4 .opf-w::after {
  animation-delay: 0.75s;
}
.opf-map {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.opf-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.opf-map i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem 0 0 -0.8rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: opf-ping 1.5s ease-out infinite;
}
.opf-num {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}
.opf-num > span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.3rem 0.1rem;
  font: 400 0.55rem/1.15 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--mute);
  border-top: 2px solid var(--accent);
}
.opf-num b {
  display: grid;
  font: 500 1.35rem/1 var(--display);
  color: var(--accent);
}
.opf-num s,
.opf-num em {
  grid-area: 1 / 1;
  font-style: normal;
  text-decoration: none;
}
.opf-num s {
  opacity: 0;
  color: var(--mute);
  animation: opf-zero var(--cy) infinite;
}
.opf-num em {
  animation: opf-n var(--cy) infinite;
}
.opf-ch {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.opf-ch > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}
.opf-ch .oi {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent);
}
.opf-ch i {
  display: flex;
  margin-left: auto;
  color: var(--accent);
}
.opf-ch .h1 i {
  animation: opf-t1 var(--cy) infinite;
}
.opf-ch .h2 i {
  animation: opf-t2 var(--cy) infinite;
}
.opf-ch .h3 i {
  animation: opf-t3 var(--cy) infinite;
}
.opf-doc {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.opf-doc .oi {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
}
.opf-doc span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.2rem;
}
.opf-doc span i {
  display: block;
  height: 3px;
  background: var(--mute);
  opacity: 0.5;
  transform-origin: left;
  animation: opf-write var(--cy) infinite;
}
.opf-doc span i:nth-child(1) {
  width: 90%;
}
.opf-doc span i:nth-child(2) {
  width: 70%;
  animation-delay: 0.3s;
}
.opf-doc span i:nth-child(3) {
  width: 82%;
  animation-delay: 0.6s;
}
.opf-doc span i:nth-child(4) {
  width: 55%;
  animation-delay: 0.9s;
}
/* phones and narrow tablets: one column, the buses become short downward wires */
@media (max-width: 900px) {
  .opf {
    grid-template-columns: minmax(0, 1fr);
  }
  .opf-grp ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opf-src {
    font-size: 0.82rem;
    padding: 0.45rem 0.55rem;
  }
  .opf-src .opf-w,
  .opf-o .opf-w {
    display: none;
  }
  .opf-bus {
    height: 2.6rem;
  }
  .opf-bus::before {
    display: none;
  }
  .opf-bus i,
  .opf-bus.out i {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }
  .opf-bus i::before,
  .opf-bus i::after {
    left: -2.5px;
    animation-name: opf-down;
  }
  .opf-bus.out i::before,
  .opf-bus.out i::after {
    animation: opf-down 1.2s linear infinite;
  }
  .opf-o {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
}
@keyframes opf-live {
  0%,
  100% {
    opacity: 0.25;
  }
  15% {
    opacity: 1;
  }
}
@keyframes opf-run {
  0% {
    left: 0;
    opacity: 0;
  }
  10%,
  80% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
@keyframes opf-down {
  0% {
    top: 0;
    opacity: 0;
  }
  10%,
  80% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}
/* the story, as shares of one 13s cycle: combine 4-28%, spot 30-43%, suggest 43%, outputs 46-60%,
   then the whole finished picture holds until 95% before it all resets */
@keyframes opf-out {
  0%,
  44% {
    left: 0;
    opacity: 0;
  }
  46% {
    opacity: 1;
  }
  51% {
    left: calc(100% - 6px);
    opacity: 1;
  }
  53%,
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
@keyframes opf-s1 {
  0%,
  3%,
  98%,
  100% {
    color: var(--mute);
    border-top-color: var(--line);
  }
  5.5%,
  95% {
    color: var(--ink);
    border-top-color: var(--accent);
  }
}
@keyframes opf-s2 {
  0%,
  28%,
  98%,
  100% {
    color: var(--mute);
    border-top-color: var(--line);
  }
  30%,
  95% {
    color: var(--ink);
    border-top-color: var(--accent);
  }
}
@keyframes opf-s3 {
  0%,
  40%,
  98%,
  100% {
    color: var(--mute);
    border-top-color: var(--line);
  }
  43%,
  95% {
    color: var(--ink);
    border-top-color: var(--accent);
  }
}
@keyframes opf-c1 {
  0%,
  4% {
    opacity: 0;
    transform: translateX(-10px);
  }
  8%,
  28% {
    opacity: 1;
    transform: none;
  }
  32%,
  95% {
    opacity: 0.4;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes opf-c2 {
  0%,
  12.5% {
    opacity: 0;
    transform: translateX(-10px);
  }
  16.5%,
  28% {
    opacity: 1;
    transform: none;
  }
  32%,
  95% {
    opacity: 0.4;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes opf-c3 {
  0%,
  29% {
    opacity: 0;
    transform: translateY(6px);
  }
  33%,
  95% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes opf-c4 {
  0%,
  39% {
    opacity: 0;
    transform: translateY(6px);
  }
  43%,
  95% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes opf-lit {
  0%,
  47%,
  98%,
  100% {
    border-color: var(--line);
  }
  50%,
  95% {
    border-color: var(--accent);
  }
}
@keyframes opf-ping {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@keyframes opf-zero {
  0%,
  50%,
  97%,
  100% {
    opacity: 1;
  }
  51%,
  96% {
    opacity: 0;
  }
}
@keyframes opf-n {
  0%,
  50%,
  97%,
  100% {
    opacity: 0;
  }
  51%,
  96% {
    opacity: 1;
  }
}
@keyframes opf-t1 {
  0%,
  51%,
  98%,
  100% {
    opacity: 0;
  }
  52.5%,
  96% {
    opacity: 1;
  }
}
@keyframes opf-t2 {
  0%,
  54.5%,
  98%,
  100% {
    opacity: 0;
  }
  56%,
  96% {
    opacity: 1;
  }
}
@keyframes opf-t3 {
  0%,
  58%,
  98%,
  100% {
    opacity: 0;
  }
  59.5%,
  96% {
    opacity: 1;
  }
}
@keyframes opf-write {
  0%,
  51% {
    transform: scaleX(0);
  }
  58%,
  96% {
    transform: scaleX(1);
  }
  98.5%,
  100% {
    transform: scaleX(0);
  }
}
/* five numbered steps in a row, ruled across the top */
.story {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}
.story i {
  font: 400 0.72rem var(--mono);
  font-style: normal;
  color: var(--accent);
}
.story b {
  font: 500 1.3rem var(--display);
  line-height: 1.15;
}
.story span {
  color: var(--mute);
}
@media (max-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* a screenshot of a demo, shown on phones in place of the embedded demo */
.poster {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
}
@media (min-width: 701px) {
  .poster.phone {
    display: none;
  }
}

/* sections */
main {
  position: relative;
  z-index: 1;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
main.out {
  opacity: 0;
  transform: translateY(14px);
}
.sec {
  padding-block: clamp(4.5rem, 13vh, 9.5rem);
}
.sec .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2.2rem;
}
.hero {
  min-height: min(88svh, 860px);
  display: flex;
  align-items: center;
  padding-block: 3rem 5rem;
}
.hero .wrap {
  width: 100%;
}
.L {
  grid-column: 1/8;
}
.R {
  grid-column: 7/13;
}
.F {
  grid-column: 1/-1;
}
.M {
  grid-column: 3/11;
  text-align: center;
}
.M p {
  margin-inline: auto;
}
.M .tag,
.M .row {
  justify-content: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-start;
  min-width: 0;
}
.M.stack {
  align-items: center;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
._hint {
  font: 400 0.72rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--mute);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.hint::before {
  content: '';
  width: 1px;
  height: 1.6rem;
  background: var(--ink);
  animation: drop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* reveal: resting state is visible; the class only plays an entrance */
.in > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.in > *:nth-child(2) {
  animation-delay: 0.08s;
}
.in > *:nth-child(3) {
  animation-delay: 0.16s;
}
.in > *:nth-child(4) {
  animation-delay: 0.24s;
}
.in > *:nth-child(5) {
  animation-delay: 0.32s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

/* sector rows */
.rows {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.rowlink {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  transition:
    padding 0.45s cubic-bezier(0.2, 0.7, 0.1, 1),
    color 0.3s;
}
.rowlink:last-child {
  border-bottom: 1px solid var(--line);
}
.rowlink h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  letter-spacing: -0.035em;
}
.rowlink span {
  font-size: 0.9rem;
  color: var(--mute);
  text-align: right;
  max-width: 17rem;
}
.rowlink:hover,
.rowlink.sel {
  padding-left: 1.1rem;
  color: var(--accent);
}

/* blueprint */
.bp {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
.tog {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tog button {
  padding: 0.55rem 0.95rem;
  transition:
    background 0.3s,
    color 0.3s;
}
.tog button[aria-selected='true'] {
  background: var(--ink);
  color: var(--bg);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps div {
  padding: 0.9rem 0.9rem 0.9rem 0;
  border-right: 1px solid var(--line);
  font-size: 0.9rem;
  min-width: 0;
}
.steps div + div {
  padding-left: 0.9rem;
}
.steps div:last-child {
  border-right: 0;
}
.steps b {
  display: block;
  font: 500 1rem/1.2 var(--display);
  margin-bottom: 0.3rem;
}
.steps span {
  color: var(--mute);
}
.nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.nums b {
  display: block;
  font: 500 clamp(1.7rem, 3.4vw, 3rem) / 1 var(--display);
  letter-spacing: -0.04em;
}
.nums span {
  font-size: 0.88rem;
  color: var(--mute);
  display: block;
  margin-top: 0.45rem;
}
.swap {
  transition: opacity 0.25s;
}
.swap.fade {
  opacity: 0;
}

/* blueprint flow diagram */
.bp {
  gap: 1.8rem;
}
.bp em {
  font-style: normal;
}
.bp.before em {
  color: var(--bad);
}
.bp.after em {
  color: var(--good);
}
.bp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}
.bp-top h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  max-width: 27ch;
}
#bpv {
  width: 100%;
  transition: opacity 0.22s;
}
#bpv.fade {
  opacity: 0;
}
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1.75fr) 2.6rem minmax(0, 1.1fr) 2.6rem minmax(0, 0.62fr);
  width: 100%;
  --spd: 3.4s;
  --c: var(--mute);
}
.after .flow {
  --spd: 0.9s;
  --c: var(--accent);
}
.fcol {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.flab {
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  gap: 0.5rem;
}
.flab i {
  font-style: normal;
  color: var(--accent);
}
.fbody {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}
.fcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.86rem;
  min-width: 0;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}
.fcard > div {
  min-width: 0;
}
.fcard b {
  display: block;
  font: 500 1rem/1.2 var(--display);
}
.fcard span {
  color: var(--mute);
}
.fcard ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}
.fcard li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.doc {
  flex: none;
  width: 1.25rem;
  height: 1.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 30%/55% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 52%/55% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 50% 74%/55% 1.5px no-repeat;
}
.usr {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 1.4rem;
}
.uico,
.nico {
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  transition:
    color 0.4s,
    border-color 0.4s;
}
.uico {
  width: 3rem;
  height: 3rem;
}
.nico {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--mute);
}
.uico svg,
.nico svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wire {
  align-self: center;
  margin-top: 1.6rem;
  height: 1px;
  background: var(--line);
  position: relative;
}
.wire::before {
  content: '';
  position: absolute;
  right: 1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--c);
  border-right: 1px solid var(--c);
  transform: rotate(45deg);
}
.wire::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  animation: runx var(--spd) steps(4, end) infinite;
}
.after .wire::after {
  animation-timing-function: linear;
  box-shadow: 0 0 0 4px var(--glow);
}
@keyframes runx {
  from {
    left: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    left: calc(100% - 7px);
    opacity: 0;
  }
}
@keyframes runy {
  from {
    top: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    top: calc(100% - 7px);
    opacity: 0;
  }
}
.node {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}
.after .node {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--glow);
}
.nhead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.nhead b {
  font: 500 1.05rem var(--display);
  display: block;
  margin-bottom: 0.45rem;
}
.pill {
  display: inline-block;
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  background: var(--hover);
  color: var(--mute);
}
.after .pill {
  background: var(--accent);
  color: var(--on-accent);
}
.after .nico {
  color: var(--accent);
  border-color: var(--accent);
}
.when {
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.after .when {
  color: var(--accent);
}
.fsteps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fsteps li {
  position: relative;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.6rem 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  transition:
    background 0.3s,
    opacity 0.3s;
}
.fsteps i {
  font: 500 0.72rem var(--mono);
  font-style: normal;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--mute);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.fsteps b {
  display: block;
  font: 500 0.98rem/1.25 var(--display);
}
.fsteps span {
  color: var(--mute);
}
.fsteps li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
}
.fsteps li.act {
  background: var(--hover);
}
.fsteps li.act::after {
  transform: scaleX(1);
  transition: transform var(--dur, 1s) linear;
}
.fsteps li.act i {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.after .fsteps li.act i,
.after .fsteps li.done i {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.before .fsteps li.done {
  opacity: 0.5;
}
.deliv .out {
  border-color: var(--c);
}
.after.deliv .out {
  box-shadow: 0 0 0 5px var(--glow);
}
.before .st {
  color: var(--bad);
}
.after .st {
  color: var(--good);
}
.deliv .uico {
  border-color: var(--c);
  color: var(--c);
}
.bp .nums {
  gap: 1rem;
  width: 100%;
}
.bp .nums div {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  border-radius: 2px;
  background: var(--bad-t);
}
.bp.after .nums div {
  background: var(--good-t);
}
.bp .nums b {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--bad);
}
.bp.after .nums b {
  color: var(--good);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font: 500 0.84rem var(--body);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.sel {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
@media (max-width: 900px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .wire {
    width: 1px;
    height: 2.2rem;
    margin: 0.5rem auto;
  }
  .wire::before {
    right: -3px;
    top: auto;
    bottom: 1px;
    transform: rotate(135deg);
  }
  .wire::after {
    left: -3px;
    top: 0;
    animation-name: runy;
  }
}

.creds {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.cgrp {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}
.ctiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}
.ctiles > div {
  background: var(--logo-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 5rem;
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
/* the "Memberships" label takes a row of its own, so the membership logos start a new row under it */
.ctiles > .tag {
  grid-column: 1/-1;
  margin-top: 0.6rem;
}
.ctiles > .tbc {
  border-style: dashed;
  border-color: var(--mute);
}
.ctiles > .scmc {
  padding: 0.35rem 0.45rem;
}
.ctiles > .scmc img {
  width: 100%;
}
.ctiles b {
  font: 600 0.9rem/1.15 var(--display);
  letter-spacing: -0.01em;
  color: var(--logo-ink);
  text-align: center;
}
.ctiles i {
  font: 500 0.56rem/1.2 var(--mono);
  font-style: normal;
  letter-spacing: 0.03em;
  color: var(--logo-ink);
  text-align: center;
}
.creds img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  object-fit: contain;
}
.creds small {
  display: block;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.joe {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: 100%;
}
.joeimg {
  display: block;
  width: 100%;
  max-width: 13rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--logo-bg);
}
@media (max-width: 1150px) {
  .ctiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .cgrp {
    grid-template-columns: minmax(0, 1fr);
  }
  .ctiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .joe {
    grid-template-columns: minmax(0, 1fr);
  }
}
.lede.big {
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 46rem;
}
.q {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.qs {
  color: var(--mute);
  font-size: 1.05rem;
  margin-top: 0.35rem;
  max-width: none;
}
.q h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.qn {
  font: 500 0.8rem var(--mono);
  color: var(--on-accent);
  background: var(--accent);
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}
.of {
  gap: 0.85rem;
  position: relative;
}
.esg {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--logo-bg);
  padding: 0.7rem 0.9rem 0.55rem;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 2px 0 2px;
}
.esg img {
  display: block;
  height: 2.2rem;
  width: auto;
}
.esg em {
  font: 500 0.6rem var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--logo-ink);
}

.of h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}
.flag {
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.32rem 0.55rem;
  border-radius: 2px;
}
.flag.none {
  visibility: hidden;
}
.tops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.lvl {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
}
.lvl i {
  width: 0.26rem;
  height: 0.7rem;
  background: var(--line);
}
.lvl i.on {
  background: var(--good);
}
.lvl i:last-of-type {
  margin-right: 0.3rem;
}
.say {
  font: 500 1.05rem/1.35 var(--display);
  color: var(--mute);
  max-width: none;
}
.place {
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.card .facts {
  width: 100%;
  gap: 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.card .facts li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.scale {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.scale i {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line), var(--accent));
}
.cmp {
  width: 100%;
  border-top: 1px solid var(--ink);
}
.cmp-h,
.cmp-r {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cmp-h {
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.75rem 0;
}
.cmp-h span:last-child {
  color: var(--accent);
}
.cmp-r {
  padding: 0.9rem 0;
  align-items: baseline;
  transition: background 0.3s;
}
.cmp-r:hover {
  background: var(--hover);
}
.cmp .no {
  color: var(--mute);
  font-size: 0.95rem;
}
.cmp .yes {
  font: 500 1.12rem/1.25 var(--display);
  letter-spacing: -0.015em;
}
@media (max-width: 900px) {
  .cmp-h,
  .cmp-r {
    gap: 0 0.9rem;
  }
  .cmp .no {
    font-size: 0.88rem;
  }
  .cmp .yes {
    font-size: 1rem;
  }
}
.gcheck {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.2rem, 2vw, 1.7rem);
}
.gcheck .tag {
  margin-bottom: 0.9rem;
}
.gck {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font: 400 1rem/1.4 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}
.gck input {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.gfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.gres {
  font: 500 1.15rem/1.2 var(--display);
  letter-spacing: -0.015em;
  color: var(--mute);
  transition: color 0.3s;
}
.gres.ok {
  color: var(--good);
}
.acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
}
.act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.15rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition:
    border-color 0.3s,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.act:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.ico {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  flex: none;
  margin-bottom: 0.6rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  transition:
    background 0.3s,
    color 0.3s;
}
.act:hover .ico {
  background: var(--accent);
  color: var(--on-accent);
}
.ico.em {
  background: var(--accent);
  color: var(--on-accent);
}
.act:hover .ico.em {
  background: var(--ink);
  color: var(--bg);
}
.ico.wa,
.act:hover .ico.wa {
  background: none;
}
.ico.wa img {
  display: block;
  width: 118%;
  height: 118%;
  max-width: none;
}
.ico svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.act b {
  font: 500 1.15rem/1.2 var(--display);
  letter-spacing: -0.015em;
}
.act > span:last-child {
  font-size: 0.88rem;
  color: var(--mute);
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .acts {
    grid-template-columns: minmax(0, 1fr);
  }
  .act {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.1rem;
    align-items: center;
  }
  .ico {
    grid-row: 1/3;
    margin: 0;
  }
  .act b {
    align-self: end;
  }
  .act > span:last-child {
    align-self: start;
  }
}
.founder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.6rem;
}
.fnd {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
}
.fimg {
  display: block;
  width: 5.4rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--logo-bg);
}
.evimg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--logo-bg);
}
/* the Erika logo: blue on a clear background, white in dark mode */
.erk {
  display: block;
  height: 3rem;
  width: auto;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .erk {
    filter: brightness(0) invert(1);
  }
}
:root[data-theme='dark'] .erk {
  filter: brightness(0) invert(1);
}
/* A product showcase (Offline AI, Erika): a centred heading, a large screenshot, then a row of features. */
@media (min-width: 901px) {
  .F.shotbox {
    grid-column: 2/12;
  }
  /* a product photo is shown smaller than a screenshot */
  .F.shotbox.photo {
    grid-column: 3/11;
  }
}
.shot {
  display: block;
  width: 100%;
  height: auto;
}
.feats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}
.feats h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}
.feats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .feats,
  .feats.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .feats,
  .feats.three {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fimg,
.joeimg,
.evimg {
  filter: grayscale(1);
}
/* About, "Why IMCI exists": the photo sits left of the text on wide screens and under it on phones. */
.whyimg {
  grid-column: 1/7;
  grid-row: 1;
  align-self: center;
}
.R:has(+ .whyimg) {
  grid-row: 1;
}
/* Business Transformation, Fractional CIO: one header across the top (row 1), then the offer card on the left
   and the points with the actions on the right (row 2). On phones: header, points, card. */
.cio-head {
  grid-row: 1;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vh, 4rem);
}
.cio-pts {
  grid-column: 7/13;
  grid-row: 2;
  align-self: center;
  gap: 1.2rem;
}
.cio-pts .row {
  margin-top: 0.6rem;
  gap: 1.4rem;
}
.cioside {
  grid-column: 1/6;
  grid-row: 2;
  align-self: start;
}
@media (max-width: 900px) {
  .cio-pts,
  .cioside {
    grid-column: 1/-1;
    grid-row: auto;
  }
}
@media (max-width: 900px) {
  .whyimg {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .R:has(+ .whyimg) {
    grid-row: auto;
  }
}
.fnd h3 {
  font-size: 1.55rem;
}
.fnd .fq {
  font: 500 1.15rem/1.35 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fnd p {
  font-size: 0.98rem;
  color: var(--mute);
  max-width: 31rem;
}
@media (max-width: 900px) {
  .fnd {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
  .fimg {
    width: 4.6rem;
    height: 6.4rem;
  }
}
.creds > .ctiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 45rem;
}
.cacc {
  display: none;
}
@media (max-width: 900px) {
  .creds > .ctiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
  .creds > .ctiles > div {
    height: 5.2rem;
  }
  .cacc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 2px;
    font: 500 0.7rem var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-align: left;
  }
  .cacc i {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0;
  }
  .cacc i::before {
    content: '+';
  }
  .creds.open .cacc i::before {
    content: '\2212';
  }
  .creds:not(.open) > .ctiles {
    display: none;
  }
}
/* cards */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
  min-width: 0;
  transition:
    border-color 0.35s,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}
a.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.card h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}
.card ul,
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--mute);
}
.card .go {
  margin-top: auto;
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pt {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.pt p {
  font-size: 0.95rem;
  color: var(--mute);
}
ol.time {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
  width: 100%;
}
ol.time li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  font: 500 1.15rem/1.2 var(--display);
}
ol.time li::before {
  content: counter(s, decimal-leading-zero);
  font: 400 0.72rem var(--mono);
  color: var(--accent);
  padding-top: 0.25rem;
}
ol.time small {
  display: block;
  font: 400 0.88rem/1.4 var(--body);
  color: var(--mute);
  margin-top: 0.2rem;
}
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font: 500 clamp(1.2rem, 2vw, 1.7rem) var(--display);
  letter-spacing: -0.02em;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 0.8rem 0.8rem 0.8rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
th {
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.scroll {
  overflow-x: auto;
  width: 100%;
}

/* form */
form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  min-width: 0;
}
label.w {
  grid-column: 1/-1;
}
input,
select,
textarea {
  font: 400 1rem var(--body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.55rem 0;
  border-radius: 0;
  width: 100%;
}
select option {
  color: #111;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.note {
  grid-column: 1/-1;
  font-size: 0.82rem;
  color: var(--mute);
  max-width: none;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9rem;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}
footer .cols div {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  align-items: flex-start;
}
footer h4 {
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.5rem;
}
footer .cols a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
footer .cols a:hover {
  border-color: var(--ink);
}
footer .cols span {
  color: var(--mute);
}
footer .base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-block: 1.2rem 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
}
footer .end {
  margin-left: auto;
}
/* News page: a row of topic filters over a grid of story cards. */
.news {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nfs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nf {
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.nf span {
  color: var(--mute);
  margin-left: 0.3rem;
}
.nf:hover {
  border-color: var(--accent);
}
.nf[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.nf[aria-pressed='true'] span {
  color: inherit;
}
.nlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.ncard {
  padding: 1.4rem;
  gap: 0.8rem;
}
.ncard[hidden] {
  display: none;
}
/* The picture runs edge to edge at the top of the card. Its panel shows the publisher's name when there is no picture. */
.nimg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  aspect-ratio: 16/9;
  margin: -1.4rem -1.4rem 0.2rem;
  padding: 1rem;
  overflow: hidden;
  background: var(--hover);
  border-bottom: 1px solid var(--line);
  font: 500 0.8rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--mute);
}
.nimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--logo-bg);
}
.nimg img[hidden] {
  display: none;
}
.ncard h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}
.ncard p {
  font-size: 0.95rem;
  color: var(--mute);
  margin: 0;
}
.ntags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.ntags span {
  font: 500 0.65rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--mute);
}
@media (max-width: 1150px) {
  .nlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .nlist {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* "Skip to content": hidden until a keyboard user tabs to it. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 0 0 2px 0;
  background: var(--accent);
  color: var(--on-accent);
}
.skip:focus {
  left: 0;
}
#view:focus {
  outline: none;
}
/* WhatsApp button, fixed to the corner of every page. It sits under the open phone menu. */
.wa-float {
  position: fixed;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  width: 3.25rem;
  height: 3.25rem;
  filter: drop-shadow(0 4px 10px var(--shade-deep));
  transition: transform 0.18s;
}
.wa-float:hover {
  transform: scale(1.06);
}
.wa-float img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0;
    background: var(--bg);
    padding: 0 var(--gutr) 1.2rem var(--gut);
    border-bottom: 1px solid var(--line);
    font: 500 1.5rem var(--display);
  }
  .links > a,
  .item > a {
    padding-block: 0.7rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
  }
  .item {
    display: contents;
  }
  .drop {
    display: none;
  }
  .links > a::after,
  .item > a::after {
    display: none;
  }
  .util .hide {
    display: none;
  }
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust div {
    padding-bottom: 0.4rem;
  }
  footer .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav.open {
    background: var(--bg);
  }
  .nav.open .links {
    display: flex;
  }
  .menu {
    display: block;
  }
  .nav .btn {
    display: none;
  }
  .L,
  .R,
  .M {
    grid-column: 1/-1;
  }
  .duo,
  .trio,
  .nums {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps div:nth-child(2) {
    border-right: 0;
  }
  .steps div:nth-child(3) {
    padding-left: 0;
  }
  .steps div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .rowlink {
    grid-template-columns: minmax(0, 1fr);
  }
  .rowlink span {
    text-align: left;
    max-width: none;
  }
  form {
    grid-template-columns: minmax(0, 1fr);
  }
  footer .end {
    margin-left: 0;
    width: 100%;
  }
}
/* offer cards v2 */
.of {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 0;
  align-items: stretch;
  transition:
    border-color 0.4s,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1),
    box-shadow 0.6s;
}
.of::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(13rem circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.of::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
}
a.of:hover {
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 44px 70px -52px rgba(0, 0, 0, 0.5);
}
a.of:hover::before {
  opacity: 0.5;
}
a.of:hover::after {
  transform: scaleX(1);
}
.of > * {
  position: relative;
}
.of > .esg {
  position: absolute;
}
.of-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  padding: clamp(1.5rem, 2.4vw, 2.3rem);
}
.of-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
  min-height: 1.2rem;
}
.of .flag {
  background: none;
  color: var(--accent);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.12em;
}
.of .flag::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}
.of .lvl {
  border: 0;
  padding: 0;
  gap: 0.2rem;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.12em;
}
.of .lvl i {
  width: 1.15rem;
  height: 3px;
}
.of .lvl i:last-of-type {
  margin-right: 0.5rem;
}
.of .say {
  font: 400 1.02rem/1.4 var(--body);
  color: var(--mute);
}
.of h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.of-line {
  font-size: 1.02rem;
  max-width: 33rem;
}
.of .facts {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.of .facts li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.of .facts li::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  background: var(--accent);
  flex: none;
  transform: translateY(-0.12rem);
}
.of .go {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.5rem, 2.4vw, 2.3rem);
  border-top: 1px solid var(--line);
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.of .go i {
  font-style: normal;
  font-size: 0.95rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  flex: none;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1),
    background 0.35s,
    color 0.35s,
    border-color 0.35s;
}
a.of:hover .go i {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateX(4px);
}
.of-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}
.of-hl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}
.of .esg {
  position: static;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 1rem 0.65rem;
  gap: 0.4rem;
}
.of .esg img {
  height: 2.1rem;
}
.pt {
  width: 100%;
}
.links .only-m {
  display: none;
}
@media (max-width: 900px) {
  .sec {
    padding-block: 3rem;
  }
  .hero {
    padding-block: 2.2rem 2.8rem;
  }
  .q {
    margin-top: 0.6rem;
  }
  .of-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem 0.9rem;
  }
  .of-hl {
    display: contents;
  }
  .of-head .flag {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .of-head .esg {
    grid-column: 2;
    grid-row: 1;
  }
  .of .esg {
    padding: 0.5rem 0.6rem 0.45rem;
    gap: 0.3rem;
  }
  .of .esg img {
    height: 1.5rem;
  }
  .of .esg em {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }
  .of .flag {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
  .txt {
    padding-top: 0.9rem;
    margin-top: -0.9rem;
  }
  .tog button {
    padding: 0.8rem 1rem;
  }
  .chip {
    padding: 0.7rem 1rem;
  }
  .menu {
    padding: 0.8rem 0 0.8rem 1rem;
  }
  .links .only-m {
    display: block;
    color: var(--accent);
  }
  footer .cols {
    padding-block: 2.5rem 2rem;
  }
  footer .cols > div:first-child {
    grid-column: 1/-1;
  }
  footer .cols > div:not(:first-child) {
    gap: 0;
  }
  footer .cols > div:not(:first-child) > a,
  footer .cols > div:not(:first-child) > span {
    padding-block: 0.65rem;
  }
}
/* home: four offer cards, tags, security options */
.quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
}
.quad .of-body {
  padding: clamp(1.25rem, 1.6vw, 1.6rem);
}
.quad .of h3 {
  font-size: clamp(1.4rem, 1.75vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.quad .of .go {
  padding-inline: clamp(1.25rem, 1.6vw, 1.6rem);
}
.quad .facts,
.quad .ph {
  width: 100%;
}
.imp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.imp b {
  display: block;
  font: 500 1.9rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--accent);
}
.imp span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--mute);
}
.tgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: auto;
}
.tg {
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  border-radius: 2px;
}
.opts {
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.opt {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  align-items: center;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.opt .lvl {
  justify-self: start;
}
.opt b {
  font: 500 1.15rem/1.2 var(--display);
  transition: color 0.25s;
}
.opt:hover b {
  color: var(--accent);
}
/* each card shares the row tracks of .quad, so titles, lines, points, figures and tags line up across cards */
@media (min-width: 901px) {
  .quad > .of {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    row-gap: 0;
  }
  .quad .of-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 5;
    row-gap: 1rem;
    align-items: start;
  }
  .quad .of-body > h3 {
    grid-row: 1;
  }
  .quad .of-line {
    grid-row: 2;
  }
  .quad .facts {
    grid-row: 3;
  }
  .quad .imp {
    grid-row: 4;
  }
  .quad .tgs {
    grid-row: 5;
    margin-top: 0;
  }
  .quad .of .go {
    grid-row: 6;
  }
}
@media (max-width: 1150px) {
  .quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .quad,
  .opt {
    grid-template-columns: minmax(0, 1fr);
  }
  .tg {
    font-size: 0.7rem;
  }
}
/* private ai: the three level cards */
.lvls .card {
  padding: clamp(1.25rem, 1.8vw, 1.9rem);
}
.lvls .card h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  line-height: 1.08;
}
.lvls .card .lvl {
  align-self: flex-start;
}
/* about: customer review cards */
.rev {
  gap: 1rem;
}
.stars {
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.rev-q {
  font: 500 1.15rem/1.35 var(--display);
  letter-spacing: -0.015em;
}
.rev-by {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  width: 100%;
}
.rev-by .plogo {
  flex: none;
  padding: 0.5rem 0.7rem;
}
.rev-by .plogo img {
  height: 1.7rem;
}
/* a partner logo on its own white tile */
.plogo {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: var(--logo-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.plogo img {
  display: block;
  height: 2.2rem;
  width: auto;
}
.plogos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
/* about: brands Joe has worked with, on a white band across the full width. White in dark mode too, as the logos need it */
.brandsec > .wrap {
  margin-bottom: 1.6rem;
}
.brandband {
  background: var(--logo-bg);
  border-block: 1px solid var(--line);
  padding-block: 2.2rem;
}
.brandband {
  overflow: hidden;
}
/* the moving row: four copies of the set, shifted left by exactly one copy, then started again */
.brandrow {
  display: flex;
  width: max-content;
  animation: brands 60s linear infinite;
}
.brandrow:hover {
  animation-play-state: paused;
}
.brandset {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
}
.brandset img {
  display: block;
  flex: none;
  height: calc(var(--h) * 1rem);
  width: auto;
}
@keyframes brands {
  to {
    transform: translateX(-25%);
  }
}
@media (max-width: 640px) {
  .brandrow {
    animation-duration: 45s;
  }
  .brandset {
    gap: 3rem;
    padding-right: 3rem;
  }
  .brandset img {
    height: calc(var(--h) * 0.8rem);
  }
}
/* reduced motion: one still set, wrapped and centred */
@media (prefers-reduced-motion: reduce) {
  .brandrow {
    width: auto;
    animation: none;
  }
  .brandset {
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    padding-inline: var(--gut) var(--gutr);
  }
  .brandset[aria-hidden] {
    display: none;
  }
}
.plogo.tbc {
  border-style: dashed;
  border-color: var(--mute);
}
/* fractional cio: six cards of example work */
.jobs .card {
  padding: clamp(1.25rem, 1.6vw, 1.6rem);
  gap: 1rem;
}
.jobs .card h3 {
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.1;
}
.jobs .facts {
  width: 100%;
}
@media (min-width: 901px) and (max-width: 1150px) {
  .trio.jobs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* sales teams: the stack diagram and the workflow cards that light it up */
.hero .imp {
  max-width: 26rem;
}
.tgs .esg {
  position: static;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 1rem 0.65rem;
  gap: 0.4rem;
}
.tgs .esg img {
  height: 2.1rem;
}
.stk {
  align-self: center;
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(1.1rem, 3.2vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 1px 2px var(--shade),
    0 2.5rem 5rem -2.5rem var(--shade-deep);
}
.stk-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.stk-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.stk-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stk-col .nd {
  flex: 1;
}
.nd {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sheet);
  box-shadow:
    0 1px 2px var(--shade),
    0 0.75rem 1.5rem -1rem var(--shade-deep);
  transition:
    opacity 0.35s,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1),
    box-shadow 0.5s;
}
.nd:hover {
  transform: translateY(-2px);
}
.nd b {
  display: block;
  font: 500 clamp(1.2rem, 1.9vw, 1.5rem) / 1.1 var(--display);
  letter-spacing: -0.025em;
}
.nd span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--mute);
}
.nd.hub,
.nd.team {
  align-items: center;
  text-align: center;
}
.nd.hub {
  padding: 1.6rem 1rem;
}
.nd.team {
  padding: 2.4rem 1rem;
}
.nd.hub b {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.nd.team b {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.035em;
}
/* a connector between blocks, with a small square that travels down it */
.ar {
  position: relative;
  display: block;
  width: 1px;
  height: 3rem;
  margin-inline: auto;
  background: var(--line);
  transition: opacity 0.35s;
}
.ar::after {
  content: '';
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 5px;
  height: 5px;
  background: var(--mute);
}
.ar::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  opacity: 0;
  animation: flow 2.8s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.stk-col:nth-child(2) .ar::before {
  animation-delay: 1.4s;
}
.stk-flow > .ar::before {
  animation-delay: 0.7s;
}
@keyframes flow {
  0% {
    top: 0;
    opacity: 0;
  }
  20%,
  70% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 7px);
    opacity: 0;
  }
}
.stk-base {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: clamp(1.1rem, 2.4vw, 1.75rem);
  padding-top: clamp(1.1rem, 2.4vw, 1.75rem);
  border-top: 1px solid var(--line);
}
.stk-base span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 0.8rem;
  border-radius: 2px;
  background: var(--hover);
  text-align: center;
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stk-base span::before {
  content: '';
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}
/* the AI brain block: engine, the IMCI operating system (the bright row), then the experts */
.nd.hub {
  align-items: stretch;
  gap: 0.55rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  text-align: left;
}
.nd.hub > b {
  margin-bottom: 0.35rem;
}
.hubhd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}
.nd.hub .hubhd .tg {
  display: inline-block;
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--ink);
}
.lay {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.55rem clamp(0.8rem, 1.8vw, 1.1rem);
}
.lay em {
  font: 500 0.7rem/1.3 var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lay.os {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.3rem;
  padding-block: clamp(1rem, 2.2vw, 1.4rem);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
}
.lay.os strong {
  font: 500 clamp(1.2rem, 2.2vw, 1.6rem) / 1.1 var(--display);
  letter-spacing: -0.025em;
}
.nd.hub .lay.os span {
  color: var(--mute);
  opacity: 1;
}
.xps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}
.nd.hub .xp {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  opacity: 1;
  transition:
    opacity 0.35s,
    background 0.35s,
    color 0.35s;
}
.nd.hub .xp.gap {
  border-style: dashed;
}
.stk.dim .xp.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sheet);
}
.stk.dim [data-n]:not(.on) {
  opacity: 0.28;
}
.stk-top.one {
  grid-template-columns: minmax(0, 1fr);
}
.wf .tgs:empty {
  display: none;
}
@media (min-width: 1151px) {
  .wfs.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* wide screens: the flow runs left to right, with the base strips under all of it */
@media (min-width: 1101px) {
  .stk {
    max-width: none;
  }
  .stk-flow {
    flex-direction: row;
  }
  .stk-top {
    flex: 0 0 15.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
  .stk-col {
    flex: 1;
    flex-direction: row;
    align-items: center;
  }
  .stk-col .nd {
    align-self: stretch;
    justify-content: center;
  }
  .ar {
    flex: none;
    align-self: center;
    width: 2.75rem;
    height: 1px;
    margin: 0;
  }
  .ar::after {
    left: auto;
    right: -2px;
  }
  .ar::before {
    left: 0;
    top: -3px;
    animation-name: flowx;
  }
  .nd.hub {
    flex: 1;
    justify-content: center;
  }
  .nd.team {
    flex: 0 0 15rem;
    justify-content: center;
    padding: 1.5rem 1.25rem;
  }
  .nd.team b {
    font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  }
}
@keyframes flowx {
  0% {
    left: 0;
    opacity: 0;
  }
  20%,
  70% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}
.wfs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}
.wf {
  padding: clamp(1.25rem, 1.6vw, 1.6rem);
  gap: 1rem;
  cursor: pointer;
}
.wf:hover,
.wf.sel {
  border-color: var(--accent);
}
.wf h3 {
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.1;
}
.wfb {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wf .facts,
.wf .imp {
  width: 100%;
}
.wf-out {
  font: 500 1.1rem/1.25 var(--display);
  letter-spacing: -0.015em;
  color: var(--accent);
}
.srcs {
  font-size: 0.9rem;
  gap: 0.6rem;
  max-width: 46rem;
}
.srcs a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
@media (min-width: 901px) {
  .wfs > .wf {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 1rem;
    align-items: start;
  }
  .wf .tgs {
    margin-top: 0;
  }
}
@media (max-width: 1150px) {
  .wfs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .wfs {
    grid-template-columns: minmax(0, 1fr);
  }
  .nd {
    padding: 0.9rem;
  }
  .stk-base span {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }
  .srcs a {
    display: inline-block;
    padding-block: 0.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* insights: one article. A reading panel with pictures, tables, flows and bar charts. */
.art-hero {
  min-height: 0;
  padding-block: clamp(3rem, 9vh, 6rem) 0;
}
.art-sec {
  padding-block: clamp(2rem, 5vh, 3.5rem) clamp(4.5rem, 13vh, 9.5rem);
}
.art {
  max-width: 50rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 0;
}
.art p,
.art li {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.6;
}
.art h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  margin-top: 1rem;
}
.art h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}
.art p a,
.art li a,
.art td a,
.art figcaption a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.art ul,
.art ol {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.art figure {
  margin: 0;
  width: 100%;
}
.art figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.art figcaption {
  font: 400 0.72rem/1.5 var(--mono);
  color: var(--mute);
  margin-top: 0.6rem;
}
.art .note {
  border-left: 3px solid var(--accent);
  background: var(--hover);
  padding: 0.9rem 1.1rem;
}
.art td,
.art th {
  padding-right: 1rem;
  min-width: 7rem;
}
/* a flow: boxes joined by arrows, across on a wide screen and down on a phone */
.art .flow {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.6rem;
  width: 100%;
}
.art .flow li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--sheet);
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--mute);
}
.art .flow li b {
  font: 500 1rem/1.2 var(--display);
  color: var(--ink);
}
.art .flow li + li::before {
  content: '→';
  position: absolute;
  left: -1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}
/* a bar chart: each row is a label, a bar and a value. Set the length with style="--v:46" (0 to 100). */
.art .chart {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.art .bar {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 3.5rem;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.92rem;
  line-height: 1.3;
}
.art .bar i {
  display: block;
  height: 1.3rem;
  background: var(--hover);
  border-radius: 2px;
}
.art .bar i::before {
  content: '';
  display: block;
  height: 100%;
  width: calc(var(--v) * 1%);
  background: var(--accent);
  border-radius: 2px;
}
.art .bar b {
  font: 500 0.95rem var(--mono);
}
.art-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.6rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .art .flow {
    flex-direction: column;
  }
  .art .flow li + li::before {
    content: '↓';
    left: 50%;
    top: -1.45rem;
    transform: translateX(-50%);
  }
  .art .bar {
    grid-template-columns: minmax(0, 1fr) 3.5rem;
  }
  .art .bar span {
    grid-column: 1/-1;
  }
}

/* the card page: the digital business card, one narrow column built for a phone */
.cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;
}
.cd .lg {
  height: 2.4rem;
}
.cd h1 {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
}
.cd-caps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cd-acts {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.9rem;
}
.cd-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.7rem 1.1rem;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.cd-btn:hover {
  border-color: var(--accent);
}
.cd-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.cd-btn.pri {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.cd-btn.pri:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.cd-ic,
.cd-go {
  flex: none;
}
.cd-go {
  opacity: 0.5;
}
.cd-lbl {
  flex: 1 1 auto;
  min-width: 0;
}
.cd-lbl b {
  display: block;
  font: 500 1.1rem/1.25 var(--display);
  letter-spacing: -0.015em;
}
.cd-lbl span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.78;
  overflow-wrap: anywhere;
}
.cd-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.cd-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  font-size: 0.9rem;
}
.cd-links a {
  white-space: nowrap;
}
.cd-foot {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--mute);
}
.cd-foot span {
  display: block;
}

/* AI Academy. The page reuses the News filter and card styles; these are its own additions. */
/* the Lessons database: one panel holding the heading, the filter bar and the lesson cards */
.adb {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}
.adbh {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.adbh h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
/* the search box and the filter rows, ruled above and below */
.abar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-block: 1px solid var(--line);
  padding-block: 1rem;
}
.asearch {
  width: 100%;
  font: 400 1rem/1.3 var(--body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.95rem;
}
.asearch::placeholder {
  color: var(--mute);
}
.asearch:hover,
.asearch:focus {
  border-color: var(--accent);
}
.asearch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.arow {
  display: flex;
  align-items: baseline;
  gap: 0.6rem 1rem;
}
.aflab {
  flex: none;
  min-width: 3.4rem;
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.nf:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.aclear {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 0.15rem;
  cursor: pointer;
}
@media (max-width: 600px) {
  .arow {
    flex-direction: column;
    gap: 0.45rem;
  }
}
.acard .go {
  margin-top: 0.4rem;
}
.acts.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 34rem;
  margin-inline: auto;
}
/* a lesson's video: a file kept on this site (the security policy blocks players from other sites) */
.avid {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink);
}
/* an example prompt in a lesson, with a small label above it */
.art .pr {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--hover);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.art .pr > span {
  font: 500 0.68rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.art .pr p {
  font: 400 0.92rem/1.6 var(--mono);
}
.art .pr.bad {
  border-left-color: var(--bad);
  background: var(--bad-t);
}
.art .pr.bad > span {
  color: var(--bad);
}
.art .pr.good {
  border-left-color: var(--good);
  background: var(--good-t);
}
.art .pr.good > span {
  color: var(--good);
}
/* a lesson's quiz */
.quiz {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.6rem;
  margin-top: 1rem;
}
.quiz h2 {
  margin-top: 0;
}
.qq {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qq legend {
  font: 500 1.1rem/1.35 var(--display);
  letter-spacing: -0.01em;
  padding: 0;
  margin-bottom: 0.7rem;
}
.qo {
  font: 400 1rem/1.45 var(--body);
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.95rem;
  cursor: pointer;
}
.qo:hover:not(:disabled) {
  border-color: var(--accent);
}
.qo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.qo:disabled {
  cursor: default;
  color: var(--mute);
}
.qo.right {
  border-color: var(--good);
  background: var(--good-t);
  color: var(--ink);
}
.qo.right::after {
  content: ' \2713';
  color: var(--good);
}
.qo.wrong {
  border-color: var(--bad);
  background: var(--bad-t);
  color: var(--ink);
}
.qo.wrong::after {
  content: ' \2717';
  color: var(--bad);
}
.art .qwhy {
  font-size: 0.95rem;
  color: var(--mute);
}
.qwhy b {
  color: var(--bad);
}
.qwhy.ok b {
  color: var(--good);
}
.qend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.qend[hidden] {
  display: none;
}
.art .qscore {
  font: 500 1.25rem/1.2 var(--display);
}
@media (max-width: 600px) {
  .acts.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lesson elements. The bank, with a working example of each, is .claude/skills/academy-lesson/elements.html (not published). */
/* do and don't: two columns, one green, one red */
.art .dodont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.art .dodont > div {
  border: 1px solid var(--line);
  border-top: 3px solid var(--good);
  border-radius: 2px;
  background: var(--good-t);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.art .dodont > .dont {
  border-top-color: var(--bad);
  background: var(--bad-t);
}
.art .dodont b {
  font: 500 0.68rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--good);
}
.art .dodont .dont b {
  color: var(--bad);
}
.art .dodont li {
  font-size: 0.98rem;
}
/* a quick check in the middle of a lesson: one question in its own box */
.qq.solo {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 1rem 1.1rem;
}
.qq.solo legend {
  float: left;
  width: 100%;
  font-size: 1.05rem;
}
/* try it, then reveal: the answer stays shut until the learner opens it */
.art .reveal {
  border: 1px solid var(--line);
  border-radius: 2px;
}
.art .reveal summary {
  font: 500 0.95rem/1.3 var(--body);
  padding: 0.75rem 0.95rem;
  cursor: pointer;
}
.art .reveal summary:hover {
  color: var(--accent);
}
.art .reveal summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.art .reveal[open] summary {
  border-bottom: 1px solid var(--line);
}
.art .reveal > :not(summary) {
  margin: 0.95rem;
}
/* tabs: the same idea shown several ways, one on screen at a time */
.art .tabs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.art .tabl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.art .tab {
  font: 500 0.95rem/1.3 var(--body);
  color: var(--mute);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.5rem 0;
  cursor: pointer;
}
.art .tab:hover {
  color: var(--ink);
}
.art .tab[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.art .tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.art .tabp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.art .tabp[hidden] {
  display: none;
}
/* the copy button on a prompt box */
.art .prc {
  align-self: flex-start;
  font: 500 0.68rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.art .prc:hover {
  border-color: var(--accent);
}
.art .prc:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* the disclaimer on a lesson about the law: one word, and the full text appears on hover, focus or tap */
.art .disc {
  position: relative;
  align-self: flex-start;
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: help;
}
.art .disc > span {
  border-bottom: 1px dashed var(--mute);
  padding-bottom: 0.15rem;
}
.art .disc:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.art .disct {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(34rem, 78vw);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  box-shadow: 0 12px 28px var(--shade-deep);
  font: 400 0.88rem/1.55 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: auto;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.15s,
    visibility 0.15s;
}
.art .disc:hover .disct,
.art .disc:focus .disct,
.art .disc:focus-within .disct {
  visibility: visible;
  opacity: 1;
}
/* a tick list the learner works through */
.art .ticks {
  list-style: none;
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--line);
}
.art .ticks li {
  border-bottom: 1px solid var(--line);
}
.art .ticks label {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.2rem;
  font: 400 1.05rem/1.5 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}
.art .ticks input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
}
.art .ticks input:checked + span {
  color: var(--mute);
}
@media (max-width: 600px) {
  .art .dodont {
    grid-template-columns: minmax(0, 1fr);
  }
}
