/* About page: tetris-block title, side-margin stack that builds as you scroll,
   liquid-glass panels, shifted type and big callouts. Theme-relative colors use
   the site tokens (--ink, --paper, --surface-*); the block palette is tuned per
   theme in about.js and mirrored here for the CSS tetromino tags. */

.about-page {
  --ab-coral: #e8553d;
  --ab-ochre: #f0b429;
  --ab-teal: #1f9d8a;
  --ab-cobalt: #2d5bd8;
  --ab-ctl-blue: #2d5bd8;
  --ab-plum: #8a46a8;
  --ab-glass: rgba(255, 255, 255, 0.46);
  --ab-glass-hi: var(--glass-depth-highlight-on-light);
  --ab-glass-lo: var(--glass-depth-edge-on-light);
  --ab-gutter: clamp(20px, 6vw, 88px);
  --ab-radius: 22px;
}

:root[data-theme="dark"] .about-page {
  --ab-ctl-blue: #6d95ff;
  --ab-glass: rgba(34, 30, 26, 0.62);
  --ab-glass-hi: var(--glass-depth-highlight-on-dark);
  --ab-glass-lo: var(--glass-depth-edge-on-dark);
}

.about-page main,
.about-page .site-footer {
  position: relative;
  z-index: 1;
}

.about-page main {
  overflow-x: clip;
}

body.ab-over-piece {
  cursor: grab;
}

body.ab-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

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

.about-page a:focus-visible,
.about-page button:focus-visible,
.about-page canvas:focus-visible {
  outline: 3px solid var(--ab-cobalt);
  outline-offset: 3px;
}

/* ---------- Side-margin block stack ---------- */

.ab-side {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 6%, transparent 24%, transparent 76%, #000 94%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 6%, transparent 24%, transparent 76%, #000 94%, #000 100%);
}

@media (max-width: 700px) {
  .ab-side {
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 8%, transparent 14%, transparent 86%, #000 92%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 8%, transparent 14%, transparent 86%, #000 92%, #000 100%);
  }
}

/* ---------- Floating control for the falling blocks ----------
   Rests as a small "Blocks" tab; hover, focus or a tap opens speed, pause and restart. */

.ab-ctl {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ab-ctl-blue) 42%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ab-ctl-blue) 14%, transparent), color-mix(in srgb, var(--ab-ctl-blue) 4%, transparent)),
    var(--ab-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 var(--ab-glass-hi),
    inset 0 -1px 0 var(--ab-glass-lo),
    0 12px 30px -16px color-mix(in srgb, var(--ab-ctl-blue) 70%, transparent);
  opacity: 0.92;
  transition: opacity 200ms ease;
}

.ab-ctl:hover,
.ab-ctl:focus-within,
.ab-ctl.is-open {
  opacity: 1;
}

.ab-ctl[hidden] {
  display: none;
}

.ab-ctl-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 11px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ab-ctl-blue);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.ab-ctl-tab svg {
  width: 16px;
  height: 16px;
}

.ab-ctl-body {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  padding-right: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 280ms ease, padding 280ms ease, opacity 200ms ease;
}

.ab-ctl.is-open .ab-ctl-body,
.ab-ctl:focus-within .ab-ctl-body {
  max-width: 560px;
  padding-right: 10px;
  opacity: 1;
}

@media (hover: hover) {
  .ab-ctl:hover .ab-ctl-body {
    max-width: 560px;
    padding-right: 10px;
    opacity: 1;
  }
}

.ab-ctl-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.ab-ctl-btn:hover {
  background: color-mix(in srgb, var(--ab-ctl-blue) 16%, transparent);
  color: var(--ab-ctl-blue);
}

.ab-ctl-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-ctl-btn .ab-ctl-pause,
.ab-ctl-btn .ab-ctl-play {
  fill: currentColor;
  stroke: none;
}

.ab-ctl-play {
  display: none;
}

.ab-ctl.is-paused .ab-ctl-pause {
  display: none;
}

.ab-ctl.is-paused .ab-ctl-play {
  display: block;
}

/* Same note icon and pill shape as the music player on The Stillness. */
.ab-ctl-music {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.ab-ctl-music:hover {
  background: rgba(var(--ink-rgb), 0.1);
}

.ab-ctl-music-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: rgba(var(--ink-rgb), 0.6);
}

.ab-ctl-music-icon svg {
  width: 100%;
  height: 100%;
}

.ab-ctl-music[aria-pressed="true"] {
  background: color-mix(in srgb, var(--ab-ctl-blue) 18%, transparent);
  border-color: color-mix(in srgb, var(--ab-ctl-blue) 55%, transparent);
}

.ab-ctl-music[aria-pressed="true"] .ab-ctl-music-icon {
  color: var(--ab-ctl-blue);
}

.ab-ctl-speed {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-ctl-end {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.62);
}

.ab-ctl input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 104px;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.ab-ctl input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(var(--ink-rgb), 0.2);
}

.ab-ctl input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(var(--ink-rgb), 0.2);
}

/* The slider handle is a beveled blue block, like the falling pieces. */
.ab-ctl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 2px;
  background: var(--ab-ctl-blue);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.5), inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

.ab-ctl input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 2px;
  background: var(--ab-ctl-blue);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.5), inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

.ab-ctl input[type="range"]:focus-visible {
  outline: 3px solid var(--ab-cobalt);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (max-width: 560px) {
  .ab-ctl {
    left: 10px;
    bottom: 10px;
  }
  .ab-ctl-tab span,
  .ab-ctl-end {
    display: none;
  }
  .ab-ctl-tab {
    padding: 0 10px;
  }
  .ab-ctl input[type="range"] {
    width: 84px;
  }
}

/* ---------- Shared type ---------- */

/* Even line lengths: no stranded one- or two-word last lines. */
.ab-h2,
.ab-h1,
.ab-big,
.ab-quote-xl,
.ab-quote-xl cite,
.ab-callout,
.ab-callout small,
.ab-value h3,
.ab-value p,
.ab-value small,
.ab-block h3,
.ab-era h3 {
  text-wrap: balance;
}

/* Longer paragraphs can run past the lines "balance" handles (it gives up near six
   lines, which happens on a phone), so these use "pretty" to avoid stranded words. */
.ab-lede,
.ab-block p,
.ab-era p {
  text-wrap: pretty;
}

.ab-eyebrow {
  margin: 0 0 14px;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.66);
}

.ab-h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  max-width: 18ch;
  color: var(--ink);
}

.ab-lede {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(var(--ink-rgb), 0.86);
}

.ab-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--ab-gutter);
}

.ab-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Shifted layouts: headings and copy swing right for rhythm. */
.ab-shift-r {
  margin-left: auto;
  text-align: right;
}

.ab-shift-r .ab-h2,
.ab-shift-r .ab-lede {
  margin-left: auto;
}

/* ---------- Glass ---------- */

.ab-step,
.ab-block,
.ab-value,
.ab-figure,
.ab-chip,
.ab-callout {
  border: 1px solid var(--surface-border);
  background: var(--ab-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 var(--ab-glass-hi),
    inset 0 -1px 0 var(--ab-glass-lo),
    0 18px 40px -24px rgba(var(--ink-rgb), 0.3);
}

/* Tetromino tag: each card carries one beveled piece in its accent color. */
.ab-block::before,
.ab-value::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: var(--tw);
  height: var(--th);
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2029%2019'%3E%3Crect%20x='0'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='20'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='0'%20y='10'%20width='9'%20height='9'/%3E%3C/svg%3E");
  --tw: 29px;
  --th: 19px;
  /* Same beveled-block recipe as the falling pieces: light top/left edges, dark bottom/right. */
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px) 0 0 / 10px 10px,
    linear-gradient(to right, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px) 0 0 / 10px 10px,
    linear-gradient(to top, rgba(0, 0, 0, 0.22) 0 3px, transparent 3px) 0 0 / 10px 10px,
    linear-gradient(to left, rgba(0, 0, 0, 0.22) 0 3px, transparent 3px) 0 0 / 10px 10px,
    var(--ab-accent, var(--ab-coral));
  -webkit-mask: var(--shape) no-repeat 0 0 / 100% 100%;
  mask: var(--shape) no-repeat 0 0 / 100% 100%;
}

.p-t::before {
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2029%2019'%3E%3Crect%20x='0'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='20'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='10'%20width='9'%20height='9'/%3E%3C/svg%3E");
  --tw: 29px;
  --th: 19px;
}
.p-o::before {
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2019%2019'%3E%3Crect%20x='0'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='0'%20y='10'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='10'%20width='9'%20height='9'/%3E%3C/svg%3E");
  --tw: 19px;
  --th: 19px;
}
.p-i::before {
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2039%209'%3E%3Crect%20x='0'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='20'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='30'%20y='0'%20width='9'%20height='9'/%3E%3C/svg%3E");
  --tw: 39px;
  --th: 9px;
}
.p-s::before {
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2029%2019'%3E%3Crect%20x='10'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='20'%20y='0'%20width='9'%20height='9'/%3E%3Crect%20x='0'%20y='10'%20width='9'%20height='9'/%3E%3Crect%20x='10'%20y='10'%20width='9'%20height='9'/%3E%3C/svg%3E");
  --tw: 29px;
  --th: 19px;
}

/* ---------- Hero ---------- */

.ab-hero {
  position: relative;
  padding: clamp(120px, 17vh, 170px) var(--ab-gutter) clamp(56px, 9vh, 110px);
}

/* The top of the page is centered and spaced out: name, one line about me, one idea. */
.ab-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.ab-h1 {
  margin: 4px 0 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3.9rem);
  line-height: 1.05;
  max-width: none;
  color: var(--ink);
}

.ab-hero .ab-lede {
  margin: clamp(30px, 4.5vw, 52px) auto 0;
  max-width: 52ch;
}

.ab-quote-xl {
  position: relative;
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding-top: 52px;
  max-width: 16em;
  font-size: clamp(1.55rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* The orange I-piece in the page heading: the one tetris line that gets a focal role. */
.ab-sep {
  display: inline-block;
  width: 32px;
  height: 7px;
  margin: 0 12px;
  opacity: 0.9;
  vertical-align: middle;
  background: url("/assets/about/i-piece.svg") center / contain no-repeat;
}

.ab-sep-lg {
  width: 1.05em;
  height: 0.25em;
  margin: 0 0.3em;
  opacity: 1;
}

.ab-quote-xl cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: rgba(var(--ink-rgb), 0.72);
}

.ab-quote-xl cite a {
  color: inherit;
}

.ab-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 72px);
}

.ab-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.ab-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ab-ochre);
}

.ab-chip-dot.is-live {
  background: var(--ab-teal);
}

/* A few small, still pieces in the whitespace around the Ashley line: uneven, faint, never over text. */
.ab-scatter {
  position: absolute;
  inset: -40px -130px -10px;
  pointer-events: none;
}

.ab-bit {
  position: absolute;
  display: block;
  width: var(--tw);
  height: var(--th);
  opacity: 0.75;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0 3px, transparent 3px) 0 0 / 13px 13px,
    linear-gradient(to right, rgba(255, 255, 255, 0.5) 0 3px, transparent 3px) 0 0 / 13px 13px,
    linear-gradient(to top, rgba(0, 0, 0, 0.22) 0 3px, transparent 3px) 0 0 / 13px 13px,
    linear-gradient(to left, rgba(0, 0, 0, 0.22) 0 3px, transparent 3px) 0 0 / 13px 13px,
    var(--c);
  -webkit-mask: var(--shape) no-repeat 0 0 / 100% 100%;
  mask: var(--shape) no-repeat 0 0 / 100% 100%;
}

/* Once the canvas takes over, the plain pieces stay as invisible anchors that mark each final spot. */
.ab-scatter.is-canvas .ab-bit {
  visibility: hidden;
}

.ab-scatter-canvas {
  position: absolute;
  left: -80px;
  top: -80px;
  pointer-events: none;
}

:root[data-theme="dark"] .ab-bit {
  opacity: 0.58;
}

.ab-bit.b-t { --c: #f0b429; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037%2024'%3E%3Crect%20x='0'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='26'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='13'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 37px; --th: 24px; }
.ab-bit.b-o { --c: #1f9d8a; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Crect%20x='0'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='13'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='13'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 24px; --th: 24px; }
.ab-bit.b-s { --c: #8a46a8; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037%2024'%3E%3Crect%20x='13'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='26'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='13'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='13'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 37px; --th: 24px; }
.ab-bit.b-l { --c: #2d5bd8; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037%2024'%3E%3Crect%20x='0'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='26'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='13'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 37px; --th: 24px; }
.ab-bit.b-i { --c: #e8553d; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2011%2050'%3E%3Crect%20x='0'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='13'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='26'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='39'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 11px; --th: 50px; }
.ab-bit.b-m { --c: #1f9d8a; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2037'%3E%3Crect%20x='0'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='13'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='26'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='26'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 24px; --th: 37px; }
.ab-bit.b-j { --c: #e8553d; --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2037'%3E%3Crect%20x='13'%20y='0'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='13'%20width='11'%20height='11'/%3E%3Crect%20x='13'%20y='26'%20width='11'%20height='11'/%3E%3Crect%20x='0'%20y='26'%20width='11'%20height='11'/%3E%3C/svg%3E"); --tw: 24px; --th: 37px; }

/* On a phone: four pieces only, in the empty space above and below the quote. */
@media (max-width: 700px) {
  .ab-scatter {
    inset: -60px 0 -46px;
  }

  .ab-bit:not([data-mleft]) {
    display: none;
  }

  .ab-hero-chips {
    margin-top: 84px;
  }
}

/* ---------- Values ---------- */

.ab-big {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: clamp(2.6rem, 10vw, 8.2rem);
  line-height: 0.92;
  color: var(--ink);
  margin-left: 0;
}

.ab-big span {
  display: block;
}

.ab-big .is-accent {
  color: var(--ab-coral);
  margin-left: clamp(0px, 9vw, 150px);
}

/* A faint key, from my own artwork, in the whitespace beside the heading: a quiet pun on "key". */
#values .ab-inner {
  position: relative;
}

.ab-key {
  position: absolute;
  top: 36px;
  right: clamp(0px, 2vw, 28px);
  width: clamp(240px, 30vw, 400px);
  aspect-ratio: 1;
  background: var(--ink);
  opacity: 0.07;
  -webkit-mask: url("/assets/about/key.png") center / contain no-repeat;
  mask: url("/assets/about/key.png") center / contain no-repeat;
  pointer-events: none;
}

:root[data-theme="dark"] .ab-key {
  opacity: 0.1;
}

@media (max-width: 860px) {
  .ab-key {
    top: 18px;
    right: -6px;
    width: clamp(120px, 34vw, 190px);
  }
}

.ab-values {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.ab-value {
  position: relative;
  padding: 50px 22px 24px;
  border-radius: var(--ab-radius);
}

.ab-value:nth-child(even) {
  transform: translateY(clamp(0px, 2.4vw, 30px));
}

/* The four cards drop in like falling pieces, one after another, and settle (script adds the classes). */
.ab-values.is-anim .ab-value {
  opacity: 0;
  translate: 0 -42px;
}

.ab-values.is-anim.is-in .ab-value {
  opacity: 1;
  translate: 0 0;
  transition: opacity 520ms ease, translate 760ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.ab-values.is-anim.is-in .ab-value:nth-child(2) { transition-delay: 140ms; }
.ab-values.is-anim.is-in .ab-value:nth-child(3) { transition-delay: 280ms; }
.ab-values.is-anim.is-in .ab-value:nth-child(4) { transition-delay: 420ms; }

.ab-value h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.ab-value p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.97rem;
  color: rgba(var(--ink-rgb), 0.84);
}

.ab-value small {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(var(--ink-rgb), 0.66);
}

/* ---------- Arc: compact rows that open on click ---------- */

.ab-section.is-tight {
  padding-block: clamp(40px, 6vw, 76px);
}

.ab-step-when {
  flex: none;
  min-width: 118px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--ink);
}

.ab-step-when small {
  display: block;
  margin-top: 2px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(var(--ink-rgb), 0.66);
}

.ab-case {
  margin: 6px 0 30px calc(clamp(16px, 2.5vw, 24px) + 118px + clamp(14px, 3vw, 28px));
}

/* ---------- The arc: a thin, light curve across the page; its three dots open the chapters below ---------- */

.ab-arc {
  position: relative;
  margin-top: 34px;
}

.ab-arc-plot {
  position: relative;
  min-height: 60px;
}

.ab-arc-canvas {
  display: block;
  width: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.ab-arc-tabs {
  position: relative;
  height: 62px;
}

.ab-arc-tab {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  padding: 6px 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.ab-arc-tab.is-first {
  left: 0;
  transform: translateX(-10px);
  text-align: left;
}

.ab-arc-tab.is-last {
  right: 0;
  transform: translateX(10px);
  text-align: right;
}

.ab-arc-tab:hover,
.ab-arc-tab[aria-selected="true"] {
  background: rgba(var(--ink-rgb), 0.07);
}

.ab-arc-tab:focus-visible {
  outline: 3px solid var(--ab-cobalt);
  outline-offset: 2px;
}

.ab-arc-tab small {
  display: block;
  margin-top: 2px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(var(--ink-rgb), 0.66);
}

/* The chapter panel: one glass card, with a small notch that points at the chosen dot. */
.ab-eras {
  position: relative;
  margin-top: 14px;
  --ab-notch: 98.6%;
}

.ab-era {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  background: var(--ab-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 var(--ab-glass-hi),
    inset 0 -1px 0 var(--ab-glass-lo),
    0 18px 40px -24px rgba(var(--ink-rgb), 0.3);
}

.ab-era + .ab-era {
  margin-top: 10px;
}

/* One fixed date column, wide enough for the longest label, so every chapter's title starts at the same spot. */
.ab-era .ab-step-when {
  flex: 0 0 168px;
  min-width: 0;
}

.ab-era-body {
  max-width: 64ch;
}

.ab-era h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.ab-era p {
  margin: 10px 0 0;
  line-height: 1.6;
  color: rgba(var(--ink-rgb), 0.84);
}

.ab-era .ab-case {
  margin: 20px 0 0;
}

/* With scripts on, the chapters stack in one spot so the card never changes height. */
.ab-eras.is-tabs {
  display: grid;
}

.ab-eras.is-tabs::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--ab-notch);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  transform: rotate(45deg);
  border-top: 1px solid var(--surface-border);
  border-left: 1px solid var(--surface-border);
  background: var(--paper);
  z-index: 1;
  transition: left 240ms ease;
}

.ab-eras.is-tabs .ab-era {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.ab-eras.is-tabs .ab-era.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease;
}

@media (max-width: 700px) {
  .ab-arc-tab {
    font-size: 0.8rem;
    padding: 6px 8px 8px;
  }

  .ab-arc-tab small {
    font-size: 0.7rem;
  }

  .ab-era {
    display: block;
  }

  .ab-era .ab-step-when {
    display: block;
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-eras.is-tabs .ab-era,
  .ab-eras.is-tabs::before,
  .ab-arc-dot {
    transition: none;
  }
}

/* ---------- Built grid ---------- */

.ab-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.ab-block {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 52px 24px 26px;
  border-radius: var(--ab-radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ab-block.is-wide { grid-column: span 4; }
.ab-block.is-half { grid-column: span 3; }
.ab-block.is-full { grid-column: span 6; }

.ab-block h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.1;
}

.ab-block p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.97rem;
  color: rgba(var(--ink-rgb), 0.84);
}

.ab-tag {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.66);
}

a.ab-block:hover,
a.ab-block:focus-visible {
  transform: translateY(-4px);
}

/* ---------- Callout ---------- */

.ab-closing {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.ab-callout {
  position: relative;
  margin: 0;
  padding: 16px 22px;
  width: fit-content;
  max-width: min(100%, 440px);
  border-radius: 20px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ab-callout small {
  display: block;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: rgba(var(--ink-rgb), 0.74);
}

.ab-lede.is-wide {
  max-width: 88ch;
  text-wrap: balance;
}

.ab-ico {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex: none;
}

.ab-note {
  margin: clamp(44px, 5vw, 64px) 0 0;
  font-size: 0.88rem;
  color: rgba(var(--ink-rgb), 0.66);
}

/* ---------- Creative gallery: two justified rows. Every image keeps its own shape,
   so nothing is cropped; rows share a height and the widths follow each shape. ---------- */

.ab-gallery {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.ab-gallery-row {
  display: flex;
  gap: 12px;
}

.ab-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--ab-radius);
  flex: var(--ar, 1) 1 0;
  min-width: 0;
  aspect-ratio: var(--ar, 1);
}

.ab-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-figure figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fffaf3;
  background: rgba(17, 16, 14, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Corner link on each gallery image: opens the matching page in the same tab,
   so the browser's Back button returns to this spot. */
.ab-visit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fffaf3;
  background: rgba(17, 16, 14, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.ab-visit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-visit:hover,
.ab-visit:focus-visible {
  background: rgba(17, 16, 14, 0.72);
  transform: translateX(2px);
}

.ab-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Connect: a centered liquid-glass card over soft color ---------- */

.ab-connect-wrap {
  position: relative;
  max-width: 820px;
}

/* Soft glows in the block colors sit behind the card, so its blur has something to bend. */
.ab-connect-wrap::before {
  content: "";
  position: absolute;
  inset: -30px -40px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 14% 30%, rgba(232, 85, 61, 0.55), transparent 72%),
    radial-gradient(closest-side at 84% 24%, rgba(240, 180, 41, 0.5), transparent 72%),
    radial-gradient(closest-side at 22% 86%, rgba(31, 157, 138, 0.5), transparent 72%),
    radial-gradient(closest-side at 80% 82%, rgba(45, 91, 216, 0.45), transparent 72%);
  filter: blur(28px);
  opacity: 0.8;
}

:root[data-theme="dark"] .ab-connect-wrap::before {
  opacity: 0.55;
}

.ab-connect {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 5.5vw, 68px) clamp(24px, 5vw, 64px);
  border-radius: 34px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  backdrop-filter: blur(30px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 70px -34px rgba(var(--ink-rgb), 0.45);
}

:root[data-theme="dark"] .ab-connect {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(34, 30, 26, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 30px 70px -34px rgba(0, 0, 0, 0.7);
}

.ab-connect .ab-h2,
.ab-connect .ab-lede {
  margin-left: auto;
  margin-right: auto;
}

.ab-connect .ab-lede {
  max-width: 44ch;
}

.ab-connect .ab-cta {
  justify-content: center;
}

/* ---------- CTA ---------- */

.ab-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease;
}

.ab-btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.ab-btn:hover,
.ab-btn:focus-visible {
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .ab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ab-block,
  .ab-block.is-wide,
  .ab-block.is-half,
  .ab-block.is-full {
    grid-column: span 2;
  }
  /* On a phone the rows dissolve into two columns; each image keeps its shape. */
  .ab-gallery {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .ab-gallery-row {
    display: contents;
  }
  .ab-figure {
    flex: none;
  }
  .ab-figure.is-last {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
  .ab-callout {
    margin-left: 0;
  }
  .ab-value:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 560px) {
  .ab-shift-r {
    text-align: left;
    margin-left: 0;
  }
  .ab-shift-r .ab-h2,
  .ab-shift-r .ab-lede {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-block,
  .ab-btn {
    transition: none;
  }
  a.ab-block:hover,
  a.ab-block:focus-visible,
  .ab-btn:hover,
  .ab-btn:focus-visible {
    transform: none;
  }
}

/* On a phone the three social links shrink to icons, so they sit on one tidy row under the main button. */
@media (max-width: 560px) {
  .ab-cta .ab-btn:not(.ab-btn-solid) .ab-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ab-cta .ab-btn:not(.ab-btn-solid) {
    width: 48px;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  .ab-cta .ab-btn:not(.ab-btn-solid) .ab-ico {
    margin-right: 0;
  }

  .ab-cta .ab-btn-solid {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- Definition cards: wavy-underlined terms in the opening paragraph show a short card on hover, focus or tap ---------- */
.ab-term { position: relative; display: inline; padding: 0 0 2px; margin: 0 0 -2px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 2.6Q2 0.4 4 2.6T8 2.6' fill='none' stroke='%232d5bd8' stroke-opacity='1' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 100% / 8px 4px; font: inherit; color: inherit; cursor: help; text-decoration: none; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
:root[data-theme="dark"] .ab-term { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 2.6Q2 0.4 4 2.6T8 2.6' fill='none' stroke='%236d95ff' stroke-opacity='1' stroke-width='1.6'/%3E%3C/svg%3E"); }
.ab-term:hover, .ab-term:focus-visible, .ab-term:focus { color: #2d5bd8; }
.ab-term:focus-visible { outline: 2px solid #2d5bd8; outline-offset: 3px; border-radius: 4px; }
.ab-term-tip { position: absolute; left: 50%; top: calc(100% + 10px); z-index: 20; width: 310px; padding: 14px 16px 13px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 16px; color: rgba(255, 255, 255, 0.88); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(28, 26, 24, 0.9); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 18px 44px -14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25); font-size: 0.8rem; font-weight: 400; line-height: 1.42; letter-spacing: 0; text-align: left; text-wrap: pretty; text-decoration: none; opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--tip-shift, 0px)), -6px); transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; pointer-events: none; cursor: default; }
.ab-term-tip.is-above { top: auto; bottom: calc(100% + 12px); transform: translate(calc(-50% + var(--tip-shift, 0px)), 6px); }
.ab-term-tip b { color: #fff; font-weight: 650; }
.ab-tip-title { display: block; margin-bottom: 7px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8fb0ff !important; }
.ab-term-tip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ab-term-tip li { position: relative; padding-left: 15px; }
.ab-term-tip li::before { content: ""; position: absolute; left: 0; top: 0.48em; width: 7px; height: 7px; border-radius: 2px; background: #5b8cff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.25); }
.ab-term:hover .ab-term-tip, .ab-term:focus .ab-term-tip, .ab-term.is-open .ab-term-tip { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--tip-shift, 0px)), 0); transition-delay: 0s; }
@media (hover: none) {
  .ab-term:hover:not(.is-open) .ab-term-tip, .ab-term:focus:not(.is-open) .ab-term-tip { opacity: 0; visibility: hidden; }
}
@media (max-width: 640px) {
  /* On a phone the card is a sheet at the bottom of the screen, so it never runs off an edge. */
  .ab-term-tip { position: fixed; z-index: 60; left: 14px; right: 14px; bottom: 66px; width: auto; top: auto; transform: translateY(8px); }
  .ab-term:hover .ab-term-tip, .ab-term:focus .ab-term-tip, .ab-term.is-open .ab-term-tip { transform: translateY(0); }
}

/* A quiet line under the Connect buttons that opens the same Keep in Touch signup as the rest of the site. */
.ab-stay { margin: 18px 0 0; font-size: 0.9rem; color: rgba(var(--ink-rgb), 0.66); text-align: center; }
.ab-stay-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(45, 91, 216, 0.6); text-underline-offset: 3px; cursor: pointer; }
.ab-stay-btn:hover, .ab-stay-btn:focus-visible { color: #2d5bd8; text-decoration-color: currentColor; }
