:root {
  --ink: #282624;
  --body: #474645;
  --muted: #848281;
  --line: #ebe8e4;
  --sand: #f6f4f0;
  --paper: #ffffff;
  --btn: #171717;
  --measure: 42rem;
  --page: 76rem;
  --accent: #e2570f;
  --accent-soft: #fff1e8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 1.25rem;
  --header: 3.6rem;
}

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

html {
  background: var(--paper);
  color: var(--body);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
}

/* Prototype banner */

.banner {
  background: var(--sand);
  color: var(--body);
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.55rem 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.banner a {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.banner a:hover {
  text-decoration: underline;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  view-transition-name: site-header;
  z-index: 20;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(40, 38, 36, 0.05);
}

.header .wrap {
  position: relative;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-10deg) scale(1.08);
}

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

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.25rem;
  background: rgba(246, 244, 240, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-pill {
  position: absolute;
  top: 0.25rem;
  left: 0;
  height: calc(100% - 0.5rem);
  width: 0;
  opacity: 0;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(40, 38, 36, 0.05);
  box-shadow: 0 1px 2px rgba(40, 38, 36, 0.08), 0 6px 14px rgba(40, 38, 36, 0.06);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s var(--ease);
  pointer-events: none;
}

.nav-pill.no-anim {
  transition: none;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s var(--ease);
}

.nav-link svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  opacity: 0.7;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover svg,
.nav-link.is-active svg {
  color: var(--accent);
  opacity: 1;
}

.nav-link:hover svg:not(.chev) {
  transform: translateY(-1px) scale(1.08);
}

.nav-link .chev {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: -0.15rem;
  opacity: 0.5;
}

.has-sub:hover .chev,
.has-sub:has(:focus-visible) .chev {
  transform: rotate(180deg);
}

.nav-ping {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.2s var(--ease) infinite;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.subnav {
  display: none;
}

.has-sub .subnav {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.2s;
  min-width: 19.5rem;
  padding: 0.4rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(40, 38, 36, 0.12);
  z-index: 20;
}

.has-sub .subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.has-sub:hover .subnav,
.has-sub:has(:focus-visible) .subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.subnav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.65rem;
  border-radius: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: background-color 0.2s var(--ease), opacity 0.35s var(--ease),
    transform 0.4s var(--ease);
}

.has-sub:hover .subnav a,
.has-sub:has(:focus-visible) .subnav a {
  opacity: 1;
  transform: none;
}

.has-sub:hover .subnav a:nth-child(2),
.has-sub:has(:focus-visible) .subnav a:nth-child(2) {
  transition-delay: 0.06s;
}

.subnav a:hover {
  background: var(--sand);
}

.sub-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: var(--sand);
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.35s var(--ease);
}

.sub-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.subnav a:hover .sub-icon {
  background: var(--accent-soft);
  color: var(--accent);
  transform: scale(1.08) rotate(-5deg);
}

.sub-text {
  min-width: 0;
}

.sub-text b {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sub-text small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.tag-new {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(110deg, #e2570f 0%, #ff8a3d 45%, #e2570f 90%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

#pairwit,
#zictionary {
  scroll-margin-top: var(--header);
}

/* Page backdrop while a menu is open */

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(40, 38, 36, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

@media (min-width: 721px) {
  .header:has(.has-mega:hover, .has-mega:has(:focus-visible)) + .nav-scrim {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}

@media (max-width: 720px) {
  .header:has(.nav.is-open) + .nav-scrim {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-scrim {
    transition: none;
  }
}

/* Writings mega menu */

.has-mega {
  position: static;
}

.mega {
  display: none;
}

.has-mega .mega {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  width: 46rem;
  margin-top: 0.5rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(40, 38, 36, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.2s;
  z-index: 20;
}

.has-mega .mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.has-mega:hover .mega,
.has-mega:has(:focus-visible) .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.mega-inner {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  gap: 0.4rem;
}

.mega-head {
  margin: 0;
  padding: 0.55rem 0.65rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-head b {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.mega-cat,
.mega-all {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.65rem;
  border-radius: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-6px);
  transition: background-color 0.2s var(--ease), opacity 0.35s var(--ease),
    transform 0.4s var(--ease);
}

.has-mega:hover .mega-cat,
.has-mega:has(:focus-visible) .mega-cat,
.has-mega:hover .mega-all,
.has-mega:has(:focus-visible) .mega-all {
  opacity: 1;
  transform: none;
}

.has-mega:hover .mega-cat:nth-of-type(2),
.has-mega:has(:focus-visible) .mega-cat:nth-of-type(2) {
  transition-delay: 0.04s;
}

.has-mega:hover .mega-cat:nth-of-type(3),
.has-mega:has(:focus-visible) .mega-cat:nth-of-type(3) {
  transition-delay: 0.08s;
}

.has-mega:hover .mega-cat:nth-of-type(4),
.has-mega:has(:focus-visible) .mega-cat:nth-of-type(4) {
  transition-delay: 0.12s;
}

.has-mega:hover .mega-all,
.has-mega:has(:focus-visible) .mega-all {
  transition-delay: 0.16s;
}

.mega-cat.is-on,
.mega-cat:hover,
.mega-cat:focus-visible {
  background: var(--sand);
}

.mega-cat.is-on .sub-icon {
  background: var(--accent-soft);
  color: var(--accent);
  transform: scale(1.06) rotate(-4deg);
}

.mega-cat .go,
.mega-all .go,
.mega-more .go {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.mega-cat .go {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
}

.mega-cat.is-on .go {
  opacity: 0.7;
  transform: none;
}

.mega-all {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body);
  border-top: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
  padding-top: 0.75rem;
}

.mega-all:hover {
  color: var(--ink);
}

.mega-all:hover .go,
.mega-card:hover .mega-more .go {
  transform: translateX(3px);
}

.mega-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0.4rem 0.4rem;
  background: var(--sand);
  border-radius: 15px;
}

.mega-cards {
  position: relative;
  flex: 1;
  display: grid;
}

.mega-card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) scale(0.985);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.3s;
  pointer-events: none;
}

.mega-card.is-on {
  opacity: 1;
  /* Follow the panel: a closed menu must not catch the mouse through its card. */
  visibility: inherit;
  transform: none;
  transition-delay: 0s;
  pointer-events: inherit;
}

.mega-media {
  position: relative;
  aspect-ratio: 1200 / 560;
  overflow: hidden;
  border-radius: 9px;
  background: var(--sand);
}

.mega-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.1s var(--ease);
}

.mega-card.is-on .mega-media img,
.mega-card.is-on .mega-art svg {
  transform: scale(1);
}

.mega-card:hover .mega-media img {
  transform: scale(1.04);
}

.mega-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mega-art svg {
  width: 2.6rem;
  height: 2.6rem;
  stroke-width: 1.5;
  transform: scale(0.6) rotate(-12deg);
  transition: transform 0.9s var(--ease);
}

.mega-card.is-on .mega-art svg {
  transform: scale(1) rotate(0);
}

.mega-term {
  display: grid;
  place-items: center;
  background: var(--sand);
}

.mega-term .mt {
  width: 74%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(40, 38, 36, 0.08);
  transform: translateY(14px);
  transition: transform 0.7s var(--ease);
}

.mega-card.is-on .mega-term .mt {
  transform: none;
}

.mega-term .vis-bar {
  padding: 0.45rem 0.7rem;
  font-size: 0.6875rem;
}

.mega-term .vis-body {
  padding: 0.55rem 0.8rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.55;
}

.mega-term .vis-choices {
  margin-top: 0.4rem;
  gap: 0.3rem;
}

.mega-term .vis-choices span {
  padding: 0.05rem 0.5rem;
}

.art-side {
  background: linear-gradient(135deg, #e2570f, #ff8a3d);
}

.art-cloud {
  background: linear-gradient(135deg, #1f3a8a, #2d8cf0);
}

.art-agents {
  background: linear-gradient(135deg, #3b1d7a, #8b5cf6);
}

.art-kothon {
  background: linear-gradient(135deg, #be185d, #f97316);
}

.mega-kicker,
.mega-card h4,
.mega-card p,
.mega-more {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.mega-card.is-on .mega-kicker,
.mega-card.is-on h4,
.mega-card.is-on p,
.mega-card.is-on .mega-more {
  opacity: 1;
  transform: none;
}

.mega-card.is-on h4 {
  transition-delay: 0.08s;
}

.mega-card.is-on p {
  transition-delay: 0.14s;
}

.mega-card.is-on .mega-more {
  transition-delay: 0.2s;
}

.mega-kicker {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.mega-card h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.topic-note {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.topic-note b {
  color: var(--ink);
  font-weight: 600;
}

.topic-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.write-list > li[hidden],
.pkg-list > li[hidden],
.pkg-heading[hidden] {
  display: none;
}

@media (min-width: 721px) and (max-width: 960px) {
  .has-mega .mega {
    width: 22rem;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }

  .mega-stage {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-mega .mega,
  .mega-cat,
  .mega-all,
  .mega-card,
  .mega-card *,
  .mega-art svg {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .has-mega .mega,
  .has-mega:hover .mega {
    position: static;
    width: auto;
    margin: 0 0 0.35rem 0.55rem;
    padding: 0 0 0 0.9rem;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .has-mega .mega::before,
  .mega-stage,
  .mega-head {
    display: none;
  }

  .mega-inner {
    display: block;
  }

  .mega-cat,
  .mega-all,
  .has-mega:hover .mega-cat,
  .has-mega:hover .mega-all {
    opacity: 1;
    transform: none;
    padding: 0.5rem 0.4rem;
  }

  .mega-cat .go {
    display: none;
  }

  .mega-all {
    border-top: 0;
    border-radius: 13px;
    padding-top: 0.5rem;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.4rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.nav-cta svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.nav-cta .arrow {
  transition: transform 0.3s var(--ease);
}

.nav-cta:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.18);
}

.nav-cta:hover .arrow {
  transform: translateX(3px);
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.hero-talk {
  display: none;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  width: 14px;
  height: 10px;
}

.menu-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-icon i:first-child {
  top: 1px;
}

.menu-icon i:last-child {
  top: 7px;
}

.menu-btn.is-open .menu-icon i:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.menu-btn.is-open .menu-icon i:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

/* Layout */

main {
  flex: 1;
}

.wrap {
  width: min(var(--page), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

main .wrap {
  width: min(var(--page), calc(100% - (2 * var(--gutter))));
}

.prose .wrap,
main:has(.prose) .product-hero .wrap {
  width: min(var(--measure), calc(100% - (2 * var(--gutter))));
}

.measure {
  width: 100%;
}

.hero,
.page-head,
.section {
  padding: 5.5rem 0 4.5rem;
}

.page-head,
.home-hero,
.product-hero {
  padding: 4.25rem 0 2.25rem;
}

.page-head h1,
.home-hero h1,
.product-hero h1 {
  max-width: none;
  font-size: clamp(1.85rem, 8.4vw, 3.75rem);
}

.section {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  line-height: 1.08;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.lede,
.prose p,
.prose li {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.013em;
}

.lede {
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.lede a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.lede a:hover {
  text-decoration-thickness: 2px;
}

.hero .lede {
  margin-top: 1.4rem;
}

.home-hero .lede,
.page-head .lede,
.product-hero .lede {
  max-width: none;
  color: var(--body);
}

.home-write {
  padding: 1.25rem 0 4.5rem;
}

.home-write .kicker {
  margin-bottom: 0;
}

.home-write .kicker a:hover {
  color: var(--ink);
}

.home-write .write-list {
  margin-top: 1.15rem;
}

.life {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid var(--line);
}

.life > li {
  position: relative;
  padding: 0 0 1.85rem;
}

.life > li:last-child {
  padding-bottom: 0;
}

.life-when {
  margin: 0 0 0.7rem;
}

.life-dot {
  position: absolute;
  left: -0.85rem;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.life time {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.life-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.life-item {
  display: block;
  min-width: 0;
}

.life-kind {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.life-item .work-logo {
  display: block;
  height: 1.3rem;
  width: auto;
}

.life-item .work-logo-pairwit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.3rem;
}

.life-item .work-logo-pairwit .mark {
  height: 1.2rem;
  width: 1.2rem;
  border-radius: 0.25rem;
}

.life-item .work-logo-pairwit strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.life-item h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1rem;
}

.life-item:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.life-item p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.life-item + .life-item {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pkg-heading {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pkg-heading + .pkg-list {
  margin-top: 0;
}

.pkg-heading:not(:first-of-type) {
  margin-top: 2.25rem;
}

.pkg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.pkg-list li {
  padding: 1.2rem 1.35rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pkg-list li:hover {
  transform: translateY(-4px);
  border-color: #dcd7d0;
  box-shadow: 0 14px 34px rgba(40, 38, 36, 0.08);
}

.pkg-list h3 {
  font-size: 1.05rem;
}

.pkg-list h3 a {
  color: var(--ink);
}

.pkg-list h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.pkg-list p {
  margin: 0.3rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.pkg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.pkg-links a {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.study-meta code {
  font-size: 0.8125rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.16);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.text-link {
  font-size: 0.90625rem;
  font-weight: 500;
  color: var(--body);
}

.text-link:hover {
  color: var(--ink);
}

/* Work list */

.work-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.work-list li + li {
  border-top: 1px solid var(--line);
}

.work-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
}

.work-list .num {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.work-list h3 {
  margin: 0 0 0.25rem;
}

.work-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.work-list .meta {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.work-list a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.work-list.work-list-plain {
  margin-top: 0;
}

.work-list.work-list-plain a {
  grid-template-columns: 1fr auto;
}

/* Proof / products */

.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
}

.proof article h3 {
  font-size: 1rem;
}

.proof article p {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.proof a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* Writing list */

.write-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
}

.write-list li {
  display: flex;
}

.write-list time {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.write-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid transparent;
  color: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.tag-series {
  background: var(--accent-soft);
  border-color: #ffdcc7;
  color: #9a3a05;
}

.write-list a:hover .tag {
  background: var(--paper);
  border-color: var(--line);
}

.write-list a:hover .tag-series {
  background: var(--accent-soft);
  border-color: #ffc9a8;
}

.write-list a::after {
  content: "\2192";
  position: absolute;
  right: 1.2rem;
  top: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.write-list a:hover {
  transform: translateY(-4px);
  border-color: #dcd7d0;
  box-shadow: 0 14px 34px rgba(40, 38, 36, 0.08);
}

.write-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.write-list p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Close band */

.close {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.close .lede {
  margin-bottom: 0;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer .wrap {
  width: min(var(--measure), calc(100% - (2 * var(--gutter))));
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.socials a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Case study */

.product-hero .kicker {
  margin-bottom: 1.5rem;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-mark img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
}

.product-hero h1 {
  max-width: none;
  font-size: clamp(2.15rem, 7vw, 3.75rem);
}

.product-hero .product-title {
  max-width: none;
  font-size: clamp(2.15rem, 7vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.product-stage img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.product-hero .lede {
  max-width: none;
  margin: 1.35rem 0 0;
  color: var(--body);
}

.product-hero .actions {
  margin-top: 1.75rem;
}

.product-hero .note {
  margin: 1rem 0 0;
}

.product-hero .note a {
  overflow-wrap: anywhere;
}

.talk-hero {
  padding-bottom: 5rem;
}

.product-banner {
  padding: 0 0 4.5rem;
}

.product-stage {
  margin: 0;
  max-width: none;
  background: var(--sand);
  border-radius: 1.35rem;
  padding: 1.15rem 1.15rem 0;
  overflow: hidden;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border-radius: 0.75rem 0.75rem 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.product-dots {
  display: flex;
  gap: 0.35rem;
}

.product-dots i {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #d8d4cf;
}

.product-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.pypi-card {
  margin: 0;
  padding: 1.5rem 1.25rem 1.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 0 0.75rem 0.75rem;
}

.pypi-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pypi-card-head img {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
}

.pypi-card-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pypi-card-head span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.pypi-card > p {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pypi-install {
  display: flex;
  align-items: center;
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--sand);
  border-radius: 0.65rem;
}

.pypi-install code {
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pypi-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.pypi-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.product-points {
  padding: 0 0 5.5rem;
}

.product-points ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-points h2 {
  font-size: 1.15rem;
}

.product-points p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.product-more {
  padding: 0 0 5.5rem;
}

.product-more .measure {
  width: 100%;
}

.study-head h1 {
  max-width: 18ch;
}

.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted);
}

.study-meta span {
  color: var(--ink);
  font-weight: 500;
}

.study-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.callout {
  margin: 2.25rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--sand);
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body);
}

.prose {
  padding: 3rem 0 5rem;
  text-align: left;
}

.prose .measure > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.post-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--sand);
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose ol {
  padding-left: 1.3rem;
}

.post-poster {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--sand);
}

.prose pre {
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  background: var(--sand);
  border-radius: 10px;
  overflow-x: auto;
}

.prose pre code {
  font-size: 0.875rem;
  color: var(--ink);
  white-space: pre;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
}

.prose th,
.prose td {
  padding: 0.7rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose thead th {
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
}

.prose tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.prose td {
  color: var(--muted);
}

.prose tbody tr:last-child th,
.prose tbody tr:last-child td {
  border-bottom: 0;
}

.share {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.share h2 {
  margin-top: 0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.share-actions button.btn {
  font-family: inherit;
  cursor: pointer;
}

.share .note {
  min-height: 1.4em;
  margin-top: 0.75rem;
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* About */

.timeline {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.timeline h3 {
  font-size: 1.05rem;
}

.timeline p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Talk */

.talk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.cal-slot {
  background: var(--sand);
  border-radius: 14px;
  min-height: 22rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-slot p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--paper);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* IA notes */

.ia {
  padding-bottom: 5rem;
}

.ia-grid {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.75rem 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.ia-grid dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.ia-grid dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.cut {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.cut h3 {
  margin-bottom: 0.75rem;
}

.cut ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cut li + li {
  margin-top: 0.35rem;
}

/* Quotes */

.quotes {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.quotes li + li {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.quotes blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.quotes footer {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border: 0;
  padding: 0;
}

.t-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.t-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.t-list img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sand);
}

.t-list blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.t-who {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.t-who strong {
  font-weight: 500;
  color: var(--ink);
}

.path-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.path-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.path-list a {
  display: block;
}

.path-list h3 {
  font-size: 1.05rem;
}

.path-list a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.path-list p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slot {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.slot:hover,
.slot.is-picked {
  border-color: var(--ink);
}

/* Steps */

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.steps .num {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Mentor desk */

.desk {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.desk-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.desk-nav button {
  font: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--body);
  padding: 0.55rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
}

.desk-nav button.is-active {
  color: var(--ink);
}

.desk-panel[hidden] {
  display: none;
}

.session {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.session h3 {
  font-size: 1.05rem;
}

.session p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Chat */

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.chip {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body);
  background: var(--sand);
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

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

.chat {
  margin: 2rem 0 5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.chat-log {
  flex: 1;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.msg p {
  margin: 0;
}

.msg p + p {
  margin-top: 0.65rem;
}

.msg-user {
  align-self: flex-end;
  color: var(--ink);
}

.msg-ai {
  align-self: flex-start;
  background: var(--sand);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--body);
}

.chat-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  font: inherit;
  font-size: 0.9375rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.chat-form button {
  flex-shrink: 0;
}

/* Mobile */

@media (min-width: 721px) {
  .page-head,
  .home-hero,
  .product-hero {
    padding: 5.5rem 0 2.75rem;
  }

  .page-head h1,
  .home-hero h1,
  .product-hero h1,
  .product-hero .product-title {
    max-width: none;
    font-size: clamp(2.4rem, 6vw, 4rem);
  }

  .home-write {
    padding: 1.5rem 0 7rem;
  }

  .product-stage {
    padding: 1.75rem 1.75rem 0;
    border-radius: 1.6rem;
  }

  .pypi-card {
    padding: 1.85rem 1.75rem 2rem;
  }

  .product-points ul {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.25rem 2rem;
  }

  .life {
    padding-left: 0;
    border-left: 0;
  }

  .life > li {
    display: grid;
    grid-template-columns: 7.25rem 1fr;
    gap: 1.75rem;
    padding-bottom: 2.35rem;
  }

  .life-when {
    margin: 0;
  }

  .life-dot {
    left: 7.25rem;
    top: 0.45rem;
  }

  .life > li::before {
    content: "";
    position: absolute;
    left: 7.25rem;
    top: 0.7rem;
    bottom: 0;
    width: 1px;
    background: var(--line);
    transform: translateX(-50%);
  }

  .life > li:last-child::before {
    display: none;
  }

  .life time {
    padding-top: 0.15rem;
    font-size: 0.8125rem;
  }

  .life-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .life-items-now {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .life-item + .life-item {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 1rem;
  }

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(40, 38, 36, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1.1rem;
    gap: 0.5rem;
  }

  .nav.is-open {
    display: flex;
    animation: rise 0.35s var(--ease) both;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .nav-pill {
    display: none;
  }

  .nav-link {
    padding: 0.8rem 0.25rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-link svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .nav-link .chev,
  .nav-ping {
    display: none;
  }

  .nav-item {
    display: block;
  }

  .has-sub .subnav,
  .has-sub:hover .subnav {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: none;
    position: static;
    transform: none;
    min-width: 0;
    margin: 0 0 0.35rem 0.55rem;
    padding: 0 0 0 0.9rem;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .has-sub .subnav::before {
    display: none;
  }

  .subnav a,
  .has-sub:hover .subnav a {
    opacity: 1;
    transform: none;
    padding: 0.5rem 0.4rem;
  }

  .nav-cta {
    align-self: flex-start;
    height: 2.6rem;
    margin-top: 0.4rem;
  }

  .hero-talk,
  .btn.hero-talk {
    display: inline-flex;
  }

  .hero,
  .page-head {
    padding-top: 3rem;
  }

  .product-hero {
    padding-top: 3rem;
  }

  .product-stage {
    padding: 0.85rem 0.85rem 0;
    border-radius: 1rem;
  }

  .pypi-card {
    padding: 1.25rem 1rem 1.35rem;
  }

  .home-hero {
    padding-top: 3.5rem;
  }

  .work-list a {
    grid-template-columns: 2rem 1fr;
  }

  .work-list-plain a {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .work-list .meta {
    grid-column: 2;
    text-align: left;
    margin-top: 0.35rem;
    white-space: normal;
  }

  .work-list-plain .meta {
    grid-column: 1;
  }

  .proof,
  .talk-grid,
  .cut,
  .desk {
    grid-template-columns: 1fr;
  }

  .desk-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .cal-slot {
    min-height: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Site update: motion, wide layout, hero visual */

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

@keyframes pick {
  0%,
  4% {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
  }
  8%,
  22% {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }
  27%,
  100% {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.product-hero .wrap > *,
.page-head .wrap > *,
.hero-copy > * {
  animation: rise 0.8s var(--ease) both;
}

.product-hero .wrap > *:nth-child(2),
.hero-copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.product-hero .wrap > *:nth-child(3),
.hero-copy > *:nth-child(3) {
  animation-delay: 0.16s;
}

.product-hero .wrap > *:nth-child(4),
.hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}

.product-hero .wrap > *:nth-child(5) {
  animation-delay: 0.32s;
}

/* Scroll reveal. Only hidden once JS has marked the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Home hero */

.home-hero {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: glow 14s ease-in-out infinite;
}

.hero-glow::before {
  width: 34rem;
  height: 34rem;
  right: 4%;
  top: -8rem;
  background: radial-gradient(circle, #ffd9bf 0%, rgba(255, 217, 191, 0) 70%);
}

.hero-glow::after {
  width: 28rem;
  height: 28rem;
  right: 28%;
  top: 6rem;
  background: radial-gradient(circle, #dfe6ff 0%, rgba(223, 230, 255, 0) 70%);
  animation-delay: -6s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem 4rem;
  align-items: center;
}

.hero-grid {
  animation: none !important;
}

.hero-copy .lede {
  max-width: 34rem;
}

.hero-visual {
  position: relative;
  min-height: 24rem;
}

.vis-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(40, 38, 36, 0.1);
}

.vis-term {
  top: 0.5rem;
  left: 0;
  width: min(100%, 25rem);
  animation: drift 9s ease-in-out infinite;
}

.vis-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.vis-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ddd8d2;
}

.vis-bar span {
  margin-left: 0.5rem;
}

.vis-body {
  padding: 1rem 1.1rem 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--body);
}

.vis-body p {
  margin: 0;
}

.vis-dim {
  color: var(--muted);
}

.vis-body b {
  color: var(--accent);
  font-weight: 600;
}

.vis-caret {
  display: inline-block;
  width: 0.5rem;
  height: 0.95rem;
  margin-left: 0.2rem;
  vertical-align: -0.15rem;
  background: var(--ink);
  animation: caret 1s steps(1) infinite;
}

.vis-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.vis-choices span {
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  animation: pick 8s ease-in-out infinite;
}

.vis-choices span:nth-child(2) {
  animation-delay: 2s;
}

.vis-choices span:nth-child(3) {
  animation-delay: 4s;
}

.vis-choices span:nth-child(4) {
  animation-delay: 6s;
}

.vis-words {
  right: 0;
  bottom: 0;
  width: min(100%, 22rem);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: drift 11s ease-in-out -4s infinite;
}

.vis-words .vis-label {
  flex-basis: 100%;
  margin: 0 0 0.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.vis-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  animation: drift 7s ease-in-out infinite;
}

.vis-chip:nth-of-type(2n) {
  animation-duration: 9s;
  animation-delay: -2s;
}

.vis-chip:nth-of-type(3n) {
  animation-duration: 8s;
  animation-delay: -5s;
}

.vis-chip.hot {
  background: var(--accent-soft);
  border-color: #ffd6bd;
  color: #9a3a05;
}

/* Page transitions between pages (Chrome, Safari). Others skip it. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.18s ease both vt-out;
}

::view-transition-new(root) {
  animation: 0.32s var(--ease) both vt-in;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 4.5rem;
  align-items: start;
}

.split-intro {
  position: sticky;
  top: calc(var(--header) + 2rem);
}

.split .product-stage,
.split .life {
  margin-top: 0.5rem;
}

.hero-glow {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9rem);
}

.btn.hero-talk {
  display: none;
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-intro {
    position: static;
  }

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

  .hero-visual {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .vis-card {
    position: relative;
  }

  .vis-term {
    top: auto;
    width: min(100%, 28rem);
  }

  .vis-words {
    align-self: flex-end;
    width: min(100%, 26rem);
  }
}

@media (max-width: 720px) {
  .btn.hero-talk {
    display: inline-flex;
  }

  .vis-term,
  .vis-words {
    width: 100%;
  }

  .hero-glow::before {
    width: 22rem;
    height: 22rem;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .nav {
    gap: 0.4rem;
  }

  .nav-link {
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
  }

  .nav-link .chev {
    display: none;
  }

  .nav-cta {
    padding: 0 0.85rem;
  }

  .nav-cta svg:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
