@font-face {
  font-family: "HongLei XingShu";
  src: url("./assets/fonts/honglei-xingshu-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --accent: #fe6e0f;
  --ink: #030712;
  --muted: #626975;
  --line: #e3e5e9;
  --soft: #f4f5f7;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 68px;
  --gutter: max(120px, calc((100vw - 1600px) / 2));
  --cell: 11px;
  --cell-gap: 3px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: Geist, "SF Pro Display", "SF Pro Text", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--white);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

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

.js [data-reveal] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed,
.js [data-reveal]:focus-within {
  opacity: 1;
}

/* Shared entrance for ledger-like rows; --reveal-delay inherits from the
   revealed container so staggers stay in step with its fade. */
@keyframes row-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.plus {
  display: inline-block;
  transition: transform 360ms var(--ease);
}

a:hover > .plus,
a:focus-visible > .plus {
  transform: rotate(135deg);
}

.region-cursor {
  --cursor-x: -200px;
  --cursor-y: -200px;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fe6e0f;
  color: #0c0c0c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(calc(var(--cursor-x) + 20px), calc(var(--cursor-y) + 20px), 0) scale(0.85);
  transform-origin: left top;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
  will-change: transform;
}

.region-cursor.is-visible {
  opacity: 1;
  transform: translate3d(calc(var(--cursor-x) + 20px), calc(var(--cursor-y) + 20px), 0) scale(1);
}

.has-region-cursor [data-cursor-label] {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-gutter {
  padding-inline: var(--gutter);
}

.section {
  padding-top: 144px;
  padding-bottom: 144px;
}

.numbered-section {
  position: relative;
  border-top: 0;
}

.numbered-section::before {
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
  content: "";
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.98);
}

.identity,
.desktop-nav a,
.contact-link,
.menu-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.identity {
  justify-self: start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.contact-link {
  position: relative;
}

.desktop-nav a::after,
.contact-link::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.contact-link:hover::after,
.contact-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-contact {
  justify-self: end;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.menu-toggle {
  justify-self: end;
  min-width: 72px;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: var(--header-height);
  right: 0;
  left: 0;
  padding: 12px 20px 22px;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.mobile-menu a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  text-decoration: none;
}

.mobile-menu a span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + clamp(24px, 4vh, 48px));
  padding-bottom: clamp(28px, 5vh, 56px);
  background: var(--white);
  color: var(--ink);
}

.hero__title {
  width: min(100%, 860px);
  margin: 0 auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.hero__line--muted {
  color: #6e7480;
}

.hero-load-item {
  display: block;
  will-change: transform;
}

.js [data-hero-enter] {
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--hero-delay, 0ms);
  will-change: transform;
}

.js .hero.is-entered [data-hero-enter] {
  transform: translateY(0);
}

.hero__dynamic-line {
  height: auto;
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}

.hero-word-window {
  position: relative;
  width: 6.2ch;
  height: 1.1em;
  display: inline-block;
  margin-left: 0.18em;
  overflow: hidden;
  vertical-align: baseline;
}

.hero-word {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  white-space: nowrap;
  transform: translateY(108%);
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-word.is-active {
  transform: translateY(0);
}

.hero-word.is-leaving {
  transform: translateY(-108%);
}

.hero-word.is-resetting {
  transition: none;
}

.hero__meta {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.75fr;
  gap: 44px;
  margin: 44px auto 0;
  border-top: 0;
}

.js .hero__meta[data-hero-enter] {
  opacity: 0;
  transform: none;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--hero-delay, 700ms);
  will-change: opacity;
}

.js .hero.is-entered .hero__meta[data-hero-enter] {
  opacity: 1;
}

.hero__meta div {
  min-width: 0;
}

.hero__meta span,
.hero__meta strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.hero__meta span {
  margin-bottom: 7px;
  color: var(--muted);
}

.hero__meta strong {
  font-weight: 500;
}

.hero__meta-specialization {
  white-space: nowrap;
}

.hero__motion {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(8px, 1.5vh, 18px);
  width: 44px;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.motion-toggle {
  width: 44px;
  min-height: 44px;
  justify-content: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  color: var(--ink);
}

.motion-toggle:disabled {
  border-bottom-color: transparent;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.motion-toggle__symbol {
  min-width: 12px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-align: center;
}

.proof-band {
  padding-top: 24px;
  padding-bottom: 32px;
  overflow: hidden;
}

.proof-band__inner {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.eyebrow,
.instrument-label {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.proof-band__grid {
  display: none;
}

.proof-band__cell {
  height: clamp(72px, 7vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.proof-band__logo {
  width: auto;
  height: clamp(30px, 2.7vw, 44px);
  max-width: min(82%, 220px);
  object-fit: contain;
}

.proof-band__cell[data-organization="IBM"] .proof-band__logo,
.proof-band__cell[data-organization="Visa"] .proof-band__logo,
.proof-band__cell[data-organization="UCSF"] .proof-band__logo {
  height: clamp(28px, 2.2vw, 36px);
}

.proof-band__cell[data-organization="Stanford"] .proof-band__logo,
.proof-band__cell[data-organization="UC Berkeley"] .proof-band__logo {
  height: clamp(30px, 2.5vw, 40px);
}

.proof-band__cell[data-organization="Pear VC"] .proof-band__logo {
  height: clamp(40px, 3.2vw, 52px);
}

.proof-band__brand-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.proof-band__brand-stage--civ {
  position: relative;
  width: min(82%, 220px);
  min-height: 34px;
  padding: 5px 10px;
  background: var(--white);
}

.proof-band__brand-stage--hog {
  width: clamp(28px, 2.5vw, 38px);
  height: clamp(28px, 2.5vw, 38px);
  padding: 0;
  background: transparent;
}

.proof-band__brand-stage .proof-band__logo {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.proof-band__civ-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
  clip-path: inset(0 0 0 31%);
  pointer-events: none;
}

.proof-band__logo--mark {
  width: clamp(26px, 2.4vw, 36px);
  height: clamp(26px, 2.4vw, 36px);
  max-width: none;
  flex: 0 0 auto;
}

.proof-band__lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.proof-band__marquee {
  height: 96px;
  display: block;
  margin-top: 20px;
  overflow: hidden;
}

.proof-band__marquee-track {
  width: max-content;
  display: flex;
  animation: proof-marquee 42s linear infinite;
}

.proof-band__marquee-item {
  height: 96px;
  flex: 0 0 clamp(190px, 20vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.proof-band__marquee:hover .proof-band__marquee-track {
  animation-play-state: paused;
}

@keyframes proof-marquee {
  to { transform: translateX(-50%); }
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(280px, 350px) 1fr;
  gap: clamp(80px, 10vw, 160px);
  padding-bottom: 60px;
  font-size: 15px;
  font-weight: 500;
}

.section-kicker--wide {
  border-bottom: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: clamp(80px, 10vw, 160px);
  align-items: start;
}

.about__portrait {
  position: relative;
  width: 100%;
  margin: 0;
}

.about__portrait-frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8ebed;
}

.about__portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.08) translateY(-4%);
  transform-origin: center;
}

/* Settles from a tighter crop while the curtain lifts. */
.js .about__portrait .about__portrait-image {
  transform: scale(1.18) translateY(-4%);
  transition: transform 2s var(--ease);
}

.js .about__portrait.curtain-visible .about__portrait-image {
  transform: scale(1.08) translateY(-4%);
}

.about__copy {
  min-width: 0;
}

.about__body {
  max-width: 34em;
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

.about__copy h2,
.section-intro h2,
.work__intro h2,
.experience__intro h2,
.contact-footer h2,
.ai-preview__intro h3 {
  margin: 0;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 54px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.65vw, 24px);
  letter-spacing: -0.025em;
}

.js .capability-list.is-revealed li {
  animation: row-rise 600ms var(--ease) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * 60ms);
}

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

.activity {
  padding-top: 96px;
  padding-bottom: 96px;
}

.activity__title {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: clamp(80px, 10vw, 160px);
}

.activity__title-main {
  grid-column: 2;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.activity__title h2 {
  margin: 0;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.activity__index {
  align-self: start;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.activity__period {
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.activity-story {
  min-width: 0;
}

.activity-summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
  margin-top: 56px;
}

.activity-story__hero {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
  margin: 0;
}

.activity-story__number {
  font-size: clamp(72px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.76;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.activity-story__hero > span {
  max-width: 110px;
  padding-bottom: 2px;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.agent-ribbons {
  min-width: 0;
  margin: 0;
}

.agent-ribbons__heading,
.github-activity figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.github-activity figcaption {
  margin-bottom: 18px;
}

.agent-ribbons__heading h3,
.github-activity figcaption > a {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.agent-ribbons__rows {
  border-top: 1px solid var(--line);
}

.agent-ribbon {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 96px 76px minmax(0, 1fr) 68px;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  transition: color 220ms ease;
}

.agent-ribbon::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-ribbon:hover,
.agent-ribbon:focus-within {
  color: var(--white);
}

.agent-ribbon:hover::before,
.agent-ribbon:focus-within::before {
  transform: scaleX(1);
}

.agent-ribbon__share {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease;
}

.agent-ribbon:hover .agent-ribbon__share,
.agent-ribbon:focus-within .agent-ribbon__share {
  color: var(--white);
}

.agent-ribbon__track {
  position: relative;
  height: 1px;
  background: var(--line);
  transition: background-color 220ms ease;
}

.agent-ribbon__fill {
  position: absolute;
  top: -1px;
  left: 0;
  width: max(2px, calc(var(--share) * 1%));
  height: 3px;
  display: block;
  transform-origin: left;
  background: var(--ink);
  transition: background-color 220ms ease;
}

/* Fills grow from zero once the ribbons block reveals; rows are injected
   async, so an animation (not a transition) guarantees it runs either way. */
.js .agent-ribbons.is-revealed .agent-ribbon__fill {
  animation: fill-grow 1s var(--ease) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--row, 0) * 120ms);
}

.agent-ribbon:nth-child(2) .agent-ribbon__fill { --row: 1; }
.agent-ribbon:nth-child(3) .agent-ribbon__fill { --row: 2; }

@keyframes fill-grow {
  from {
    transform: scaleX(0);
  }
}

.agent-ribbon:hover .agent-ribbon__track,
.agent-ribbon:focus-within .agent-ribbon__track {
  background: rgba(255, 255, 255, 0.3);
}

.agent-ribbon:hover .agent-ribbon__fill,
.agent-ribbon:focus-within .agent-ribbon__fill {
  background: var(--white);
}

.agent-ribbon__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.github-activity {
  --cell: clamp(10px, 0.85vw, 13px);
  --cell-gap: clamp(2px, 0.2vw, 3px);
  position: relative;
  margin: 32px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

.github-activity figcaption > a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.activity-story__error {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 15px;
}

.writing {
  background: var(--white);
  color: var(--ink);
}

.writing__header {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr) auto;
  gap: clamp(80px, 10vw, 160px);
  align-items: end;
  padding-bottom: 60px;
  font-size: 15px;
  font-weight: 500;
}

/* Top-align the index with the title, matching the other section headers. */
.writing__header > span {
  align-self: start;
}

.writing__header h2 {
  margin: 0;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.writing__header > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  transition: color 220ms ease;
}

.writing__header > a:hover,
.writing__header > a:focus-visible {
  color: var(--muted);
}

.writing-archive {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: 0 clamp(80px, 10vw, 160px);
  padding: 72px 0 24px;
}

.writing-archive__year {
  grid-column: 2;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.writing-archive__list {
  grid-column: 2;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.writing-archive__item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.writing-archive__status {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.section-intro,
.work__intro,
.experience__intro {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: clamp(80px, 10vw, 160px);
  align-items: end;
  margin-top: 72px;
  margin-bottom: 86px;
}

.section-intro h2,
.work__intro h2,
.experience__intro h2 {
  grid-column: 2;
}

.section-intro p,
.work__intro p,
.experience__intro p {
  grid-column: 2;
  max-width: 520px;
  margin: 4px 0 0;
  color: var(--muted);
}

.heatmap-card {
  position: relative;
  padding: 34px 0 30px;
  border-top: 1px solid var(--ink);
}

.heatmap-card + .heatmap-card {
  margin-top: 72px;
}

.heatmap-card__header {
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.heatmap-card__label-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heatmap-card__header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heatmap-card__total {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.heatmap-card__actions > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.heatmap-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.heatmap-card__status {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-align: right;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heatmap-scroll-hint {
  display: none;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.heatmap-viewport {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 16px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.heatmap-canvas {
  position: relative;
  width: max-content;
  min-width: 796px;
  padding: 0 18px 18px 0;
}

.month-labels {
  position: relative;
  height: 24px;
  margin-left: 42px;
}

.month-labels span {
  position: absolute;
  top: 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.heatmap-layout {
  display: grid;
  grid-template-columns: 42px auto;
  align-items: start;
}

.weekday-labels {
  position: relative;
  height: calc((var(--cell) * 7) + (var(--cell-gap) * 6));
  color: var(--muted);
  font-size: 9px;
}

.weekday-labels span {
  position: absolute;
  left: 0;
}

.weekday-labels span:nth-child(1) { top: 0; }
.weekday-labels span:nth-child(2) { top: calc((var(--cell) + var(--cell-gap)) * 2); }
.weekday-labels span:nth-child(3) { top: calc((var(--cell) + var(--cell-gap)) * 4); }

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  gap: var(--cell-gap);
}

.heatmap-cell,
.heatmap-legend i {
  display: block;
  border: 1px solid #d9dde1;
  border-radius: 2px;
  background: #f2f3f4;
}

/* The calendar prints week by week toward today; --week is set per cell. */
.js .github-activity.is-revealed .heatmap-cell {
  animation: cell-in 360ms var(--ease) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--week, 0) * 7ms);
}

@keyframes cell-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

button.heatmap-cell {
  position: relative;
  z-index: 1;
  width: var(--cell);
  height: var(--cell);
  min-width: 0;
  overflow: visible;
  padding: 0;
  cursor: help;
}

button.heatmap-cell::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  content: "";
  transform: translate(-50%, -50%);
}

button.heatmap-cell:focus-visible {
  z-index: 2;
  outline: 0;
}

button.heatmap-cell:focus-visible::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

[data-heatmap="github"] [data-level="1"] { border-color: #c2dfd8; background: #cfece5; }
[data-heatmap="github"] [data-level="2"] { border-color: #75c5b5; background: #82d0c0; }
[data-heatmap="github"] [data-level="3"] { border-color: #268d7c; background: #319c89; }
[data-heatmap="github"] [data-level="4"] { border-color: #0a544b; background: #0f6258; }

[data-heatmap="tokens"] [data-level="1"] { border-color: #c7d9ee; background: #d7e6f5; }
[data-heatmap="tokens"] [data-level="2"] { border-color: #89b5de; background: #95c0e7; }
[data-heatmap="tokens"] [data-level="3"] { border-color: #427fac; background: #4c8bb9; }
[data-heatmap="tokens"] [data-level="4"] { border-color: #173f62; background: #1f4e74; }

.heatmap-tooltip {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.heatmap-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.heatmap-summary {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.heatmap-legend {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.heatmap-legend i {
  width: 11px;
  height: 11px;
}

.ai-preview {
  padding-top: 144px;
  padding-bottom: 144px;
  background: var(--white);
}

.ai-tools {
  background: var(--white);
  color: var(--ink);
}

.ai-tools__heading {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: clamp(80px, 10vw, 160px);
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.ai-tools__heading .instrument-label {
  margin: 0;
}

.ai-tools__label {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0;
}

.ai-tools__heading > div {
  min-width: 0;
}

.ai-tools__heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ai-tools__heading > div > p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
  margin: 76px 0 0;
  padding: 0;
  list-style: none;
}

.ai-tool {
  min-width: 0;
  text-align: center;
}

.ai-tool__tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--soft);
}

.ai-tool__mark {
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.ai-tool__name {
  display: block;
  margin-top: 15px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.ai-preview__sheet {
  position: relative;
  overflow: hidden;
  margin-top: 132px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.ai-preview__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
}

.instrument-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: inherit;
}

.ai-preview__intro h3 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.ai-preview__cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 220ms ease;
}

.ai-preview__cta:hover,
.ai-preview__cta:focus-visible {
  background: transparent;
  color: var(--muted);
}

.ai-preview__map {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: 380px;
}

.ai-ledger {
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--line);
  list-style: none;
}

.ai-ledger li {
  min-height: 95px;
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

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

.ai-ledger span,
.ai-ledger small {
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

.ai-ledger strong {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.system-diagram {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background-color: var(--soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1' cy='1' r='.8' fill='%23030712' fill-opacity='.11'/%3E%3C/svg%3E");
}

.system-diagram__node {
  position: absolute;
  z-index: 2;
  min-width: 76px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.system-diagram__node--input { top: 48px; left: 38px; }
.system-diagram__node--agent { top: 48px; right: 38px; background: var(--ink); color: var(--white); }
.system-diagram__node--runtime { right: 38px; bottom: 48px; }
.system-diagram__node--state { bottom: 48px; left: 38px; }

.system-diagram__line {
  position: absolute;
  z-index: 1;
  display: block;
  background: var(--ink);
}

.system-diagram__line--one {
  top: 67px;
  right: 114px;
  left: 114px;
  height: 1px;
}

.system-diagram__line--two {
  top: 67px;
  right: 76px;
  bottom: 86px;
  width: 1px;
}

.system-diagram__line--three {
  right: 114px;
  bottom: 67px;
  left: 114px;
  height: 1px;
}

.system-diagram__pulse {
  position: absolute;
  top: 62px;
  left: 48%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--soft);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  animation: diagram-travel 5s linear infinite;
}

body[data-motion="paused"] .proof-band__marquee-track,
body[data-motion="paused"] .system-diagram__pulse {
  animation-play-state: paused !important;
}

@keyframes diagram-travel {
  0% { transform: translateX(-100px); }
  50% { transform: translateX(100px); }
  100% { transform: translateX(-100px); }
}

.work {
  padding-bottom: 40px;
}

.work .section-kicker {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 80px;
  padding-bottom: 32px;
  border-bottom: 0;
}

.work .section-kicker h2 {
  margin: 0;
  font: inherit;
}

.work-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.work .work-row:first-of-type {
  border-top: 0;
}

.work-row__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.js .work-row.is-revealed .work-row__copy {
  animation: row-rise 800ms var(--ease) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.work-row__copy h3 {
  margin: 0 0 32px;
  font-size: clamp(28px, 2.3vw, 35px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.work-row__copy > p:not(.work-row__index) {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.work-row__outcomes {
  display: grid;
  gap: 0;
  margin: auto 0 0;
}

.work-row__outcomes div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.work-row__outcomes dt {
  color: var(--muted);
}

.work-row__outcomes dd {
  margin: 0;
  text-align: right;
}

.work-row__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.js [data-curtain]::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: #f9fafb;
  content: "";
  pointer-events: none;
  transform: scaleY(1);
  transform-origin: center bottom;
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}

.js [data-curtain].curtain-visible::after,
.js [data-curtain]:focus-visible::after {
  transform: scaleY(0);
}

.media-tag-row {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-tag-row i {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.work-row__media > span[class$="composition"] {
  transition: transform 500ms var(--ease);
}

.work-row__media:hover > span[class$="composition"],
.work-row__media:focus-visible > span[class$="composition"] {
  transform: scale(1.018);
}

.work-row__touch-cta {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: 18px;
  min-width: 132px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 15px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.work-row__touch-cta i {
  font-style: normal;
}

.work-row__media:focus-visible .work-row__touch-cta {
  opacity: 1;
  transform: translateY(0);
}

.work-row--civ { --cta: #ff8b5c; }
.work-row--hog { --cta: #d9ff6f; }
.work-row--kepler { --cta: #f7dc72; }
.work-row--async { --cta: #74d4c5; }

.civ-composition,
.hog-composition,
.kepler-composition,
.async-composition {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.composition-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composition-shot--civ {
  object-position: left top;
}

.composition-shot--civ-week {
  object-position: center top;
}

.composition-shot--hog {
  object-position: center 62%;
}

.composition-shot--kepler {
  object-position: center center;
}

.composition-shot--async {
  object-position: center center;
}

.civ-composition {
  background: #d1e0e6;
}

.composition-window {
  position: absolute;
  top: 77px;
  right: -7%;
  bottom: -10%;
  left: 10%;
  display: grid;
  grid-template-columns: 74px 1fr 32%;
  grid-template-rows: 38px 1fr;
  overflow: hidden;
  border: 1px solid #536b75;
  background: #f7fafb;
}

.composition-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid #b8c8ce;
}

.composition-topbar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fb0b7;
}

.composition-topbar b {
  margin-left: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.civ-composition__sidebar {
  display: block;
  padding: 18px 14px;
  border-right: 1px solid #cbd5d9;
}

.civ-composition__sidebar i,
.civ-composition__drawer i {
  height: 4px;
  display: block;
  margin-bottom: 15px;
  background: #c1cdd1;
}

.civ-composition__sidebar i:nth-child(2) { width: 65%; }
.civ-composition__sidebar i:nth-child(4) { width: 78%; }

.civ-composition__map {
  position: relative;
  overflow: hidden;
  border-right: 1px solid #cbd5d9;
  background-color: #e9f0ee;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Cpath d='M0 0H38M0 0V38' fill='none' stroke='%232f5752' stroke-opacity='.09'/%3E%3C/svg%3E");
}

.civ-composition__map b {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #e9f0ee;
  border-radius: 50%;
  background: #e66842;
  box-shadow: 0 0 0 1px #274b47;
}

.civ-composition__map b:nth-child(1) { top: 28%; left: 20%; }
.civ-composition__map b:nth-child(2) { top: 58%; left: 47%; }
.civ-composition__map b:nth-child(3) { top: 34%; left: 74%; }
.civ-composition__map b:nth-child(4) { top: 72%; left: 82%; }

.civ-composition__map i {
  position: absolute;
  width: 68%;
  height: 1px;
  display: block;
  background: #71948f;
  transform-origin: left;
}

.civ-composition__map i:nth-of-type(1) { top: 30%; left: 20%; transform: rotate(19deg); }
.civ-composition__map i:nth-of-type(2) { top: 60%; left: 45%; width: 40%; transform: rotate(-29deg); }
.civ-composition__map i:nth-of-type(3) { top: 42%; left: 72%; width: 35%; transform: rotate(71deg); }

.civ-composition__drawer {
  display: block;
  padding: 22px 18px;
}

.civ-composition__drawer small,
.civ-composition__drawer strong {
  display: block;
}

.civ-composition__drawer small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.civ-composition__drawer strong {
  margin: 8px 0 28px;
  font-size: 15px;
}

.hog-composition {
  background: #101619;
  color: #e9fbc0;
}

.hog-composition__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 86px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 79px 16px 20px;
  border-right: 1px solid #344047;
}

.hog-composition__nav b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hog-composition__nav i {
  width: 100%;
  height: 4px;
  background: #415057;
}

.hog-composition__endpoint {
  position: absolute;
  top: 88px;
  right: 6%;
  left: 15%;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #4a5a62;
}

.hog-composition__endpoint small {
  padding: 4px 7px;
  border: 1px solid #d9ff6f;
  color: #d9ff6f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.hog-composition__endpoint strong {
  margin-left: 14px;
  color: #f5f7ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 400;
}

.hog-composition__endpoint b {
  margin-left: auto;
  color: #d9ff6f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.hog-composition__code {
  position: absolute;
  top: 174px;
  bottom: 42px;
  left: 15%;
  width: 45%;
  padding: 25px;
  border: 1px solid #344047;
}

.hog-composition__code i {
  width: 82%;
  height: 5px;
  display: block;
  margin-bottom: 15px;
  background: #3b4a51;
}

.hog-composition__code i:nth-child(2) { width: 63%; background: #5f784b; }
.hog-composition__code i:nth-child(3) { width: 90%; }
.hog-composition__code i:nth-child(4) { width: 47%; }
.hog-composition__code i:nth-child(5) { width: 72%; background: #5f784b; }

.hog-composition__usage {
  position: absolute;
  top: 174px;
  right: 6%;
  bottom: 42px;
  width: 30%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #344047;
}

.hog-composition__usage small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hog-composition__usage span {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.hog-composition__usage i {
  flex: 1;
  background: #d9ff6f;
  opacity: 0.76;
}

.hog-composition__usage i:nth-child(1) { height: 22%; }
.hog-composition__usage i:nth-child(2) { height: 54%; }
.hog-composition__usage i:nth-child(3) { height: 40%; }
.hog-composition__usage i:nth-child(4) { height: 75%; }
.hog-composition__usage i:nth-child(5) { height: 62%; }
.hog-composition__usage i:nth-child(6) { height: 88%; }
.hog-composition__usage i:nth-child(7) { height: 70%; }

.kepler-composition {
  background: #d9d5e9;
  color: #302a51;
}

.kepler-composition__thread {
  position: absolute;
  top: 86px;
  bottom: 52px;
  left: 7%;
  width: 32%;
  display: block;
  padding: 28px;
  border: 1px solid #8b84a8;
  background: #f1eff7;
}

.kepler-composition__thread i {
  width: 88%;
  height: 6px;
  display: block;
  margin-bottom: 18px;
  background: #beb9d0;
}

.kepler-composition__thread i:nth-child(2) { width: 62%; }
.kepler-composition__thread i:nth-child(4) { width: 76%; }
.kepler-composition__thread i:nth-child(5) { width: 48%; }

.kepler-composition__thread b {
  width: 100%;
  height: 64px;
  display: block;
  margin: 30px 0;
  border: 1px solid #8b84a8;
  background: #e2deed;
}

.kepler-composition__node {
  position: absolute;
  z-index: 3;
  right: 7%;
  width: 42%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border: 1px solid #534c75;
  background: #f7f5fa;
}

.kepler-composition__node small {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid #8b84a8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.kepler-composition__node strong {
  padding: 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.kepler-composition__node--vm { top: 86px; }
.kepler-composition__node--tools { top: 196px; }
.kepler-composition__node--state { top: 306px; }

.kepler-composition__wire {
  position: absolute;
  z-index: 1;
  left: 39%;
  right: 28%;
  height: 1px;
  background: #635c82;
  transform-origin: left;
}

.kepler-composition__wire--one { top: 183px; transform: rotate(-12deg); }
.kepler-composition__wire--two { top: 254px; transform: rotate(14deg); }

.async-composition {
  background: #cce3df;
  color: #153b37;
}

.async-composition__header {
  position: absolute;
  top: 78px;
  right: 8%;
  left: 8%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid #6a9e97;
  background: #eaf4f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.async-composition__header b { font-weight: 500; }

.async-composition__wave {
  position: absolute;
  top: 126px;
  right: 8%;
  left: 8%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #6a9e97;
  border-top: 0;
  background: #f5faf9;
}

.async-composition__wave i {
  width: 4px;
  background: #377f76;
}

.async-composition__wave i:nth-child(1),
.async-composition__wave i:nth-child(12) { height: 18%; }
.async-composition__wave i:nth-child(2),
.async-composition__wave i:nth-child(11) { height: 38%; }
.async-composition__wave i:nth-child(3),
.async-composition__wave i:nth-child(10) { height: 64%; }
.async-composition__wave i:nth-child(4),
.async-composition__wave i:nth-child(9) { height: 42%; }
.async-composition__wave i:nth-child(5),
.async-composition__wave i:nth-child(8) { height: 78%; }
.async-composition__wave i:nth-child(6) { height: 52%; }
.async-composition__wave i:nth-child(7) { height: 88%; }

.async-composition__lines {
  position: absolute;
  top: 244px;
  bottom: 46px;
  left: 8%;
  width: 49%;
  display: grid;
  grid-template-columns: 24px 1fr 0.7fr;
  gap: 14px 10px;
  align-content: center;
  padding: 18px;
  border: 1px solid #6a9e97;
  background: #eaf4f2;
}

.async-composition__lines b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #377f76;
  border-radius: 50%;
  font-size: 8px;
}

.async-composition__lines i {
  height: 5px;
  align-self: center;
  background: #95bdb7;
}

.async-composition__review {
  position: absolute;
  top: 244px;
  right: 8%;
  bottom: 46px;
  width: 31%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid #6a9e97;
  background: #153b37;
  color: #eaf4f2;
}

.async-composition__review small,
.async-composition__review strong {
  display: block;
}

.async-composition__review small {
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.async-composition__review strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.experience {
  padding-top: 112px;
  padding-bottom: 112px;
}

.experience .section-kicker {
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: clamp(80px, 10vw, 160px);
  padding-bottom: 48px;
  border-bottom: 0;
}

.experience__content {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 820px);
  gap: clamp(80px, 10vw, 160px);
}

.experience__column {
  min-width: 0;
  grid-column: 2;
}

.experience__story {
  margin-bottom: 48px;
}

.experience__story h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.experience-ledger {
  display: flex;
  flex-direction: column;
}

.experience-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.experience-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.experience-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.experience-row strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.experience-row > div span,
.experience-row__date {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.experience-row__date {
  white-space: nowrap;
}

/* The ledger prints one row at a time. */
.js .experience-ledger.is-revealed .experience-row {
  animation: row-rise 640ms var(--ease) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * 45ms);
}

.experience-row:nth-child(2) { --i: 1; }
.experience-row:nth-child(3) { --i: 2; }
.experience-row:nth-child(4) { --i: 3; }
.experience-row:nth-child(5) { --i: 4; }
.experience-row:nth-child(6) { --i: 5; }
.experience-row:nth-child(7) { --i: 6; }
.experience-row:nth-child(8) { --i: 7; }
.experience-row:nth-child(9) { --i: 8; }
.experience-row:nth-child(n + 10) { --i: 9; }

.experience-row > div,
.experience-row__date {
  transition: transform 420ms var(--ease), color 220ms ease;
}

@media (hover: hover) {
  .experience-row:hover > div {
    transform: translateX(10px);
  }

  .experience-row:hover .experience-row__date {
    color: var(--ink);
  }
}

.contact-footer {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding-top: 0;
  background: var(--white);
  color: var(--ink);
}

.footer-top-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  min-height: 150px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}

.footer-top-bar > a {
  justify-self: start;
  text-decoration: none;
}

.footer-top-bar > a,
.footer-socials a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 36px;
}

.footer-socials a {
  text-decoration: none;
}

.footer-credit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-credit__name {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-family: "HongLei XingShu", "STXingkai", "KaiTi", cursive;
  font-size: clamp(38px, 3vw, 48px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  white-space: nowrap;
  -webkit-text-stroke: 0.4px currentColor;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .proof-band__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1279px) {
  :root {
    --gutter: 64px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__title { width: min(100%, 860px); }
  .about__grid,
  .section-kicker,
  .section-intro,
  .work__intro,
  .experience__intro {
    grid-template-columns: minmax(230px, 30%) minmax(0, 1fr);
    gap: 72px;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
  }

  .work-row__media {
    min-height: 0;
  }

  .kepler-composition__node--state {
    top: 290px;
  }

  .ai-preview__intro {
    padding-inline: 40px;
  }

  .ai-ledger li {
    grid-template-columns: 0.75fr 1fr;
  }

  .ai-ledger small {
    grid-column: 2;
  }

  .experience .section-kicker,
  .experience__content,
  .activity__title {
    grid-template-columns: minmax(230px, 30%) minmax(0, 1fr);
    gap: 72px;
  }

  .writing__header {
    grid-template-columns: minmax(230px, 30%) minmax(0, 1fr) auto;
    gap: 72px;
  }

  .writing-archive {
    grid-template-columns: minmax(230px, 30%) minmax(0, 1fr);
    gap: 0 72px;
  }

}

@media (max-width: 959px) {
  .activity-summary {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .desktop-nav {
    gap: 24px;
  }

  .hero__title {
    font-size: clamp(56px, 8vw, 82px);
  }

  .ai-tools__heading {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai-tool-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .ai-preview__intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ai-preview__cta {
    width: fit-content;
  }

  .ai-preview__map {
    grid-template-columns: 1fr;
  }

  .ai-ledger {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ai-ledger li {
    grid-template-columns: 0.75fr 1.1fr 1fr;
  }

  .ai-ledger small {
    grid-column: auto;
  }

  .system-diagram {
    min-height: 300px;
  }

  .work-row {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }

  .work-row__media {
    min-height: 0;
  }

  .composition-window {
    left: 8%;
    grid-template-columns: 58px 1fr 31%;
  }

  .civ-composition__drawer strong {
    font-size: 12px;
  }

  .kepler-composition__node {
    width: 48%;
  }

  .async-composition__review strong {
    font-size: 11px;
  }

}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --cell: 12px;
    --cell-gap: 4px;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .desktop-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .hero {
    min-height: 100svh;
    justify-content: center;
    padding-top: calc(var(--header-height) + 5.5vh);
    padding-bottom: 10vh;
  }

  .hero__title {
    width: 100%;
    margin: 0;
    font-size: clamp(40px, 12.4vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.065em;
  }


  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    margin: 32px 0 0;
  }

  .hero__meta div:last-child {
    grid-column: 1 / -1;
  }

  .hero__meta span,
  .hero__meta strong {
    font-size: 14px;
  }

  .proof-band {
    margin-inline: 0;
    padding-inline: 0;
    padding-top: 32px;
    padding-bottom: 28px;
    overflow: hidden;
  }

  .proof-band__inner {
    margin-inline: var(--gutter);
    padding-top: 20px;
  }

  .proof-band__grid {
    display: none;
  }

  .proof-band__marquee {
    height: 88px;
    display: block;
    margin-top: 12px;
    overflow: hidden;
  }

  .proof-band__marquee-track {
    width: max-content;
    display: flex;
    animation: proof-marquee 42s linear infinite;
  }

  .proof-band__marquee-item {
    height: 88px;
    flex: 0 0 clamp(168px, 46vw, 212px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .proof-band__marquee-item .proof-band__logo {
    height: 34px;
    max-width: 82%;
  }

  .proof-band__marquee-item .proof-band__logo--mark {
    width: 26px;
    height: 26px;
  }

  .proof-band__marquee-item .proof-band__brand-stage .proof-band__logo {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  @keyframes proof-marquee {
    to { transform: translateX(-50%); }
  }

  .section-kicker,
  .section-intro,
  .work__intro,
  .experience__intro,
  .activity__title,
  .about__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-kicker {
    grid-template-columns: 42px 1fr;
    gap: 0;
    padding-bottom: 34px;
    font-size: 15px;
  }

  .work .section-kicker {
    grid-template-columns: 42px 1fr;
    gap: 0;
  }

  .experience .section-kicker {
    grid-template-columns: 42px 1fr;
    gap: 0;
    padding-bottom: 48px;
  }

  .experience__content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .experience__content > [aria-hidden="true"] {
    display: none;
  }

  .experience__column {
    grid-column: 1;
  }

  .experience__story {
    margin-bottom: 48px;
  }

  .experience__story h2 {
    font-size: 40px;
  }

  .about__portrait {
    width: min(100%, 350px);
    margin-bottom: 52px;
  }

  .about__copy h2,
  .section-intro h2,
  .work__intro h2,
  .experience__intro h2,
  .contact-footer h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .about__body {
    margin-top: 20px;
    max-width: none;
  }

  .capability-list {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .capability-list li {
    padding: 15px 0;
    font-size: 18px;
  }

  .section-intro,
  .work__intro,
  .experience__intro {
    margin-top: 48px;
    margin-bottom: 60px;
  }

  .activity__title {
    grid-template-columns: 42px 1fr;
    gap: 0;
    align-items: baseline;
    margin-bottom: 0;
  }

  .activity__title-main {
    grid-column: 2;
    display: block;
  }

  .activity__title h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .activity__period {
    display: block;
    margin-top: 14px;
    padding-bottom: 0;
  }

  .activity {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .activity-summary {
    gap: 48px;
    margin-top: 48px;
  }

  .activity-story__hero {
    display: block;
    margin: 0;
  }

  .activity-story__number {
    font-size: clamp(72px, 24vw, 112px);
  }

  .activity-story__hero > span {
    display: block;
    max-width: none;
    margin-top: 16px;
    padding-bottom: 0;
  }

  .github-activity {
    margin-top: 48px;
  }

  .agent-ribbon {
    grid-template-columns: 64px 58px minmax(48px, 1fr) 58px;
    gap: 10px;
    min-height: 48px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .agent-ribbons__heading,
  .github-activity figcaption {
    align-items: flex-start;
  }

  .writing__header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 28px 12px;
    align-items: baseline;
    padding-bottom: 40px;
  }

  .writing__header h2 {
    font-size: 40px;
  }

  .writing__header > a {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .writing-archive {
    grid-template-columns: 1fr;
    padding: 48px 0 8px;
  }

  .writing-archive__year,
  .writing-archive__list {
    grid-column: 1;
  }

  .writing-archive__item {
    font-size: 22px;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .section-intro h2,
  .work__intro h2,
  .experience__intro h2,
  .section-intro p,
  .work__intro p,
  .experience__intro p {
    grid-column: 1;
  }

  .section-intro p,
  .work__intro p,
  .experience__intro p {
    margin-top: 20px;
  }

  .heatmap-card {
    padding-top: 28px;
  }

  .heatmap-card + .heatmap-card {
    margin-top: 54px;
  }

  .heatmap-card__header {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .heatmap-card__label-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .heatmap-card__header h3 {
    font-size: 21px;
  }

  .heatmap-card__actions > a {
    width: fit-content;
  }

  .heatmap-card__actions {
    align-items: flex-start;
  }

  .heatmap-card__status {
    margin: 0;
    text-align: left;
  }

  .heatmap-scroll-hint {
    display: block;
    margin-bottom: 10px;
  }

  .heatmap-canvas {
    min-width: 890px;
  }

  .heatmap-card__footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .heatmap-legend {
    justify-self: start;
  }

  .ai-preview {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .ai-tools__heading {
    gap: 24px;
    padding-top: 28px;
  }

  .ai-tools__heading h2 {
    font-size: 40px;
  }

  .ai-tools__heading > div > p {
    margin-top: 22px;
  }

  .ai-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
    margin-top: 52px;
  }

  .ai-preview__sheet {
    margin-top: 88px;
  }

  .ai-preview__intro {
    gap: 30px;
    padding: 36px 20px;
  }

  .ai-preview__intro h3 {
    font-size: 34px;
  }

  .ai-preview__cta {
    width: 100%;
    justify-content: space-between;
  }

  .ai-ledger li {
    min-height: 110px;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px;
  }

  .ai-ledger small {
    grid-column: 1;
  }

  .system-diagram {
    min-height: 260px;
  }

  .system-diagram__node {
    min-width: 68px;
    height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .system-diagram__node--input { top: 36px; left: 24px; }
  .system-diagram__node--agent { top: 36px; right: 24px; }
  .system-diagram__node--runtime { right: 24px; bottom: 36px; }
  .system-diagram__node--state { bottom: 36px; left: 24px; }
  .system-diagram__line--one { top: 53px; right: 92px; left: 92px; }
  .system-diagram__line--two { top: 53px; right: 58px; bottom: 53px; }
  .system-diagram__line--three { right: 92px; bottom: 53px; left: 92px; }
  .system-diagram__pulse { top: 48px; }

  .work {
    padding-bottom: 10px;
  }

  .work-row {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .work-row__copy h3 {
    margin-bottom: 24px;
    font-size: 26px;
    line-height: 1.05;
  }

  .work-row__outcomes {
    margin-top: 38px;
  }

  .work-row__media {
    min-height: 378px;
    aspect-ratio: 1 / 1.08;
  }

  .work-row__touch-cta {
    position: absolute;
    z-index: 9;
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    opacity: 1;
    transform: none;
  }

  .composition-window {
    top: 68px;
    right: -28%;
    bottom: 45px;
    left: 9%;
    grid-template-columns: 56px 1fr 35%;
  }

  .civ-composition__drawer {
    padding: 18px 11px;
  }

  .civ-composition__drawer strong {
    font-size: 10px;
  }

  .hog-composition__nav {
    width: 64px;
    padding-inline: 10px;
  }

  .hog-composition__endpoint,
  .hog-composition__code {
    left: 21%;
  }

  .hog-composition__endpoint {
    right: 7%;
  }

  .hog-composition__code {
    width: 72%;
    bottom: 62px;
  }

  .hog-composition__usage {
    display: none;
  }

  .kepler-composition__thread {
    top: 74px;
    bottom: 62px;
    left: 6%;
    width: 40%;
    padding: 18px;
  }

  .kepler-composition__node {
    right: 6%;
    width: 45%;
    min-height: 54px;
  }

  .kepler-composition__node--vm { top: 84px; }
  .kepler-composition__node--tools { top: 174px; }
  .kepler-composition__node--state { top: 264px; }

  .kepler-composition__node strong {
    padding-inline: 9px;
    font-size: 7px;
  }

  .async-composition__header {
    top: 68px;
  }

  .async-composition__wave {
    top: 116px;
  }

  .async-composition__lines {
    top: 230px;
    bottom: 62px;
    width: 84%;
  }

  .async-composition__review {
    display: none;
  }

  .experience-row {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 18px 0;
  }

  .experience-row > div {
    grid-column: 1;
  }

  .experience-row strong {
    font-size: 21px;
  }

  .experience-row__date {
    grid-column: 2;
    grid-row: 1;
    max-width: 104px;
    text-align: right;
    white-space: normal;
  }

  .contact-footer {
    min-height: 0;
    padding-top: 0;
  }

  .footer-top-bar {
    grid-template-columns: 1fr auto;
    gap: 18px 28px;
    align-items: start;
    min-height: 190px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .footer-top-bar > a {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-socials {
    gap: 18px;
  }

}

@media (max-width: 767px) {
  .experience {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .activity__title {
    grid-template-columns: 1fr;
  }

  .activity__index {
    grid-row: 1;
  }

  .activity__title-main {
    grid-column: 1;
    grid-row: 2;
    margin-top: 32px;
  }

  .writing__header {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .writing__header h2 {
    grid-column: 1;
    grid-row: 2;
    margin-top: 32px;
  }

  .writing__header > a {
    grid-column: 1;
    grid-row: 3;
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .work-row__media {
    aspect-ratio: auto;
  }

  .heatmap-card__label-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-top-bar {
    font-size: 15px;
  }

  .footer-socials {
    flex-direction: column;
    gap: 8px;
  }
}

@media (hover: none), (pointer: coarse) {
  .work-row__touch-cta {
    opacity: 1;
    transform: none;
  }

  .region-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-word:not(:first-child) {
    display: none;
  }

  .js .hero [data-hero-enter],
  .js .hero__meta[data-hero-enter] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .proof-band__marquee {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .proof-band__marquee-track {
    animation: none;
    transform: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transition: none;
  }

  .js [data-curtain]::after {
    display: none;
  }

  .js .about__portrait .about__portrait-image {
    transform: scale(1.08) translateY(-4%);
    transition: none;
  }

  .region-cursor,
  .work-row__touch-cta {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Fifth work row: Visa VAS composition                                 */
/* ------------------------------------------------------------------ */

.work-row--visa { --cta: #9fb6ff; }

.visa-composition {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #021e4c;
  color: #2c2c2c;
  container-type: size;
  --visa-navy: #1b2a55;
  --visa-navy-soft: #3c4c7d;
  --visa-muted: #6b78a3;
  --visa-line: #dbe1f0;
  --visa-surface: #ffffff;
  --visa-surface-alt: #f4f6fb;
  --visa-accent: #6f8fe0;
  --visa-accent-soft: #e6ecfa;
  --visa-ok: #2f7a52;
  --visa-ok-soft: #e2f1e8;
}

/* Run-detail console: an overnight pipeline run, Fluent/Azure-DevOps flavored */

.visa-orch {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #2c2c2c;
}

.visa-orch__sky {
  flex: 1.15;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 4cqw, 30px);
  padding: clamp(22px, 6cqw, 56px);
  background: #021e4c;
}

.visa-orch__sky strong {
  max-width: 16.5em;
  font-size: clamp(21px, 3.4cqw, 40px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.visa-orch__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: #1434cb;
  font-size: 13px;
  font-weight: 500;
}

.visa-orch__cta i {
  font-style: normal;
}

.visa-orch__sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visa-orch__row {
  display: grid;
  grid-template-columns: 15px 1fr 1.4fr auto;
  gap: 16px;
  align-items: center;
  padding: clamp(8px, 2.1cqh, 17px) clamp(22px, 6cqw, 56px);
  border-top: 1px solid #eef0f7;
  font-size: 13px;
}

.visa-orch__row:first-child {
  border-top: 0;
}

.visa-orch__row b {
  font-weight: 500;
  color: #2c2c2c;
}

.visa-orch__row em {
  overflow: hidden;
  color: #1434cb;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visa-orch__row--queued em {
  color: #7b7f92;
}

.visa-orch__row small {
  font-size: 12px;
  color: #55596b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.visa-orch__dot {
  position: relative;
  width: 15px;
  height: 15px;
  display: block;
  border-radius: 50%;
}

.visa-orch__dot--done {
  background: #1434cb;
}

.visa-orch__dot--done::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: rotate(45deg);
}

.visa-orch__dot--queued {
  background: #fff;
  border: 4px solid #f7b600;
}

/* ------------------------------------------------------------------ */
/* Work detail pages                                                    */
/* ------------------------------------------------------------------ */

.detail-hero {
  padding-top: calc(var(--header-height) + 96px);
  padding-bottom: 96px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.detail-back:hover span,
.detail-back:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 0.17em;
}

.detail-hero__index {
  margin: 56px 0 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.detail-hero__title {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.detail-hero__summary {
  max-width: 760px;
  margin: 36px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 72px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.detail-meta div {
  min-width: 0;
}

.detail-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.detail-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.detail-hero__media {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 620px;
  margin-top: 64px;
  overflow: hidden;
}

.detail-body {
  padding-top: 32px;
  padding-bottom: 96px;
}

.detail-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 80px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.detail-chapter:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-chapter__label {
  display: flex;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.detail-chapter__label span:first-child {
  color: var(--muted);
}

.detail-chapter__copy {
  min-width: 0;
  max-width: 760px;
}

.detail-chapter__copy h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.detail-chapter__copy p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
}

.detail-chapter__copy p:last-child {
  margin-bottom: 0;
}

.detail-shipped {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-shipped li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

.detail-shipped li:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-shipped li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: var(--muted);
}

.detail-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 40px;
  margin: 0;
}

.detail-outcomes div {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.detail-outcomes dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.detail-outcomes dd {
  margin: 10px 0 0;
}

.detail-outcomes dd strong {
  display: block;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.detail-outcomes dd span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.detail-note {
  max-width: 760px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.detail-next {
  padding-bottom: 120px;
}

.detail-next__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
  text-decoration: none;
}

.detail-next__link small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.detail-next__link strong {
  display: block;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.detail-next__link i {
  font-size: clamp(32px, 4vw, 60px);
  font-style: normal;
  line-height: 1;
  transition: transform 260ms var(--ease);
}

.detail-next__link:hover i,
.detail-next__link:focus-visible i {
  transform: translate(6px, -6px);
}

@media (max-width: 959px) {
  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-chapter {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .detail-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 56px;
  }

  .detail-hero__index {
    margin-top: 32px;
  }

  .detail-hero__summary {
    margin-top: 24px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  .detail-hero__media {
    min-height: 378px;
    aspect-ratio: 1 / 1.08;
    margin-top: 40px;
  }

  .detail-body {
    padding-bottom: 56px;
  }

  .detail-chapter {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }

  .detail-outcomes {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-next {
    padding-bottom: 72px;
  }

  .detail-next__link {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .visa-orch__sky {
    flex: 0 0 auto;
    gap: 12px;
    padding-block: 62px 18px;
  }

  .visa-orch__row {
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
  }

  .visa-orch__row em {
    display: none;
  }
}
