:root {
  --paper: #f5f5f1;
  --surface: #ffffff;
  --ink: #11120f;
  --muted: #62645e;
  --line: #d8d9d2;
  --soft: #e9eae4;
  --acid: #c7ff3f;
  --blue: #2b59ff;
  --coral: #db5b42;
  --forest: #174d3b;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body.demo-body {
  background: #0f1110;
  color: #f5f5f1;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 68px;
  border-bottom: 1px solid rgba(17, 18, 15, 0.16);
  background: rgba(245, 245, 241, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner,
.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-weight: 750;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-icon {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  color: #33352f;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover,
.nav-icon:hover {
  border-color: var(--line);
  background: var(--surface);
}

.nav-icon {
  width: 42px;
  padding: 0;
  border-color: var(--line);
}

.nav-icon svg,
.button svg,
.summary-icon svg,
.icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.nav-resume {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  align-items: center;
  gap: 80px;
  padding: 58px 0 54px;
}

.eyebrow,
.section-label,
.project-index,
.meta-label,
.trace-label,
.demo-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: 94px;
  font-weight: 500;
  line-height: 0.92;
}

.hero-lead {
  max-width: 810px;
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.22;
}

.hero-support {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.project-actions,
.footer-actions,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--ink);
  color: white;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.button.acid {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.button.acid:hover {
  border-color: white;
  background: white;
  color: var(--ink);
}

.hero-portrait {
  position: relative;
  align-self: center;
  margin: 0;
}

.hero-portrait img {
  width: 276px;
  height: 344px;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--ink);
  filter: saturate(0.92);
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.work-intro {
  padding: 42px 0 32px;
}

.intro-grid,
.project-heading,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 84px;
}

.work-intro h2,
.section-title,
.contact h2,
.appendix-hero h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 500;
  line-height: 0.98;
}

.intro-copy,
.project-summary,
.contact-copy {
  margin: 0;
  color: #373934;
  font-size: 20px;
  line-height: 1.55;
}

.project {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 78px;
}

.project.alt {
  background: var(--surface);
}

.project.dark {
  border-color: #333530;
  background: #141614;
  color: #f5f5f1;
}

.project.dark .project-summary,
.project.dark .meta-value,
.project.dark .detail-copy,
.project.dark .detail-list,
.project.dark .proof span {
  color: #c6c8c1;
}

.project.dark .section-label,
.project.dark .project-index,
.project.dark .meta-label {
  color: #93978f;
}

.project.dark .button {
  border-color: #f5f5f1;
  color: #f5f5f1;
}

.project.dark .button.primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #11120f;
}

.project-heading {
  align-items: end;
}

.section-title {
  max-width: 660px;
  font-size: 52px;
}

.project-index {
  display: block;
  margin-bottom: 12px;
}

.project-summary {
  font-size: 18px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project.dark .proof-row,
.project.dark .proof {
  border-color: #373a35;
}

.proof {
  min-height: 76px;
  padding: 12px 16px 10px 0;
  border-right: 1px solid var(--line);
}

.proof + .proof {
  padding-left: 18px;
}

.proof:last-child {
  border-right: 0;
}

.proof b {
  display: block;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.project-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 30px;
  padding: 13px 0;
}

.meta-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
}

.meta-value {
  color: #30322e;
  font-size: 14px;
}

.product-frame {
  position: relative;
  height: 300px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #e8e9e3;
}

.project.dark .product-frame {
  border-color: #4b4f48;
}

.browser-bar {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(17, 18, 15, 0.35);
  background: #f2f2ee;
  color: #4d4f49;
  font-family: var(--mono);
  font-size: 10px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9aaa4;
}

.browser-dots i:first-child {
  background: var(--coral);
}

.browser-dots i:nth-child(2) {
  background: #e4b340;
}

.browser-dots i:nth-child(3) {
  background: #58a66e;
}

.technical {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project.dark .technical {
  border-color: #3d413b;
}

.technical > summary {
  display: flex;
  min-height: 56px;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 750;
}

.technical > summary::-webkit-details-marker {
  display: none;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 180ms ease;
}

.technical[open] .summary-icon {
  transform: rotate(45deg);
}

.detail-body {
  padding: 8px 0 42px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.project.dark .detail-grid {
  border-color: #363a34;
  background: #363a34;
}

.detail-block {
  min-height: 230px;
  padding: 26px;
  background: var(--surface);
}

.project.dark .detail-block {
  background: #1b1e1b;
}

.detail-block h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.08;
}

.detail-copy,
.detail-list {
  margin: 0;
  color: #50524c;
  font-size: 14px;
}

.detail-list {
  padding-left: 18px;
}

.detail-list li + li {
  margin-top: 7px;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
}

.project.dark .architecture {
  border-color: #3c403a;
}

.architecture-step {
  min-height: 126px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.project.dark .architecture-step {
  border-color: #3c403a;
}

.architecture-step:last-child {
  border-right: 0;
}

.architecture-step b {
  display: block;
  margin: 8px 0 5px;
  font-size: 14px;
}

.architecture-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.truth-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--coral);
  background: rgba(219, 91, 66, 0.08);
  color: #444641;
  font-size: 13px;
}

.project.dark .truth-note {
  color: #d4d7d0;
}

/* Slack preview */
.slack-shell {
  display: grid;
  min-height: 310px;
  grid-template-columns: 190px minmax(0, 1fr) 280px;
  background: #fff;
  color: #1d1c1d;
}

.slack-frame {
  height: auto;
}

.slack-rail {
  padding: 16px 14px;
  background: #291a2d;
  color: #f6f1f6;
}

.slack-workspace {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 750;
}

.slack-channel {
  display: block;
  margin: 7px 0;
  color: #cdbfce;
  font-size: 12px;
}

.slack-channel.active {
  margin-right: -16px;
  margin-left: -16px;
  padding: 7px 16px;
  background: #1164a3;
  color: white;
}

.slack-thread {
  padding: 16px 20px;
}

.slack-thread-head {
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  font-weight: 750;
}

.slack-message {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  margin-top: 15px;
}

.avatar {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #222;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.avatar.agent-avatar {
  background: var(--forest);
}

.message-name {
  font-size: 13px;
  font-weight: 800;
}

.message-time {
  margin-left: 6px;
  color: #777;
  font-size: 10px;
}

.message-copy {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.48;
}

.message-source {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 7px;
  border: 1px solid #b9b9b9;
  border-radius: 3px;
  color: #565656;
  font-family: var(--mono);
  font-size: 9px;
}

.trace-panel {
  padding: 16px;
  border-left: 1px solid #d5d5d5;
  background: #f7f7f5;
}

.trace-panel h3 {
  margin: 7px 0 13px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.trace-step {
  position: relative;
  padding: 0 0 13px 22px;
}

.trace-step::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.trace-step::after {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #c7c7c2;
  content: "";
}

.trace-step:last-child::after {
  display: none;
}

.trace-step b {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
}

.trace-step span {
  color: #686963;
  font-size: 11px;
}

/* Brokerage */
.brokerage-frame {
  height: 700px;
}

.brokerage-product {
  display: grid;
  height: calc(100% - 42px);
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 0.8fr);
}

.portal-preview {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #bbbdb6;
  background: #ded8cc;
}

.portal-preview-head {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid #bbbdb6;
  background: #efefe9;
  color: #65675f;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brokerage-preview-tabs {
  display: grid;
  min-height: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #bbbdb6;
  background: #e3e2dc;
}

.brokerage-preview-tabs button {
  border: 0;
  border-right: 1px solid #bbbdb6;
  background: transparent;
  color: #65675f;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.brokerage-preview-tabs button:last-child {
  border-right: 0;
}

.brokerage-preview-tabs button.active {
  background: #201d1b;
  color: #f5f2ed;
}

.brokerage-preview-tabs button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -3px;
}

.brokerage-preview-panel {
  min-height: 0;
  flex: 1;
}

.brokerage-preview-panel[hidden] {
  display: none;
}

.portal-panel {
  display: flex;
  flex-direction: column;
}

.portal-shot {
  position: relative;
  display: block;
  min-height: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 0, rgb(107 31 43 / 18%), transparent 40%),
    linear-gradient(135deg, #d7d0c3, #f2eee5 48%, #d7d0c3);
  color: #1c1816;
}

.portal-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.portal-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 270px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.portal-caption svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
}

.portal-proof-strip {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #bbbdb6;
  background: #ece9e1;
}

.portal-proof-strip div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid #c7c4bc;
}

.portal-proof-strip div:last-child {
  border-right: 0;
}

.portal-proof-strip span {
  color: #6c6a64;
  font-family: var(--mono);
  font-size: 8px;
}

.portal-proof-strip b {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.lease-intake-preview {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: #f7f4ee;
  color: #201d1b;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lease-demo-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #c9c4bb;
  background: #fffdf9;
}

.lease-demo-bar b {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.lease-demo-safe {
  padding: 6px 8px;
  border: 1px solid #bfc8ba;
  border-radius: 4px;
  background: #ecf3e9;
  color: #31523a;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.lease-demo-stage {
  min-height: 0;
  flex: 1;
}

.lease-demo-stage[hidden] {
  display: none !important;
}

.lease-demo-stage[data-lease-state="ready"] {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
}

.lease-drop-copy h3,
.lease-processing h3,
.lease-review-title h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.03;
}

.lease-drop-copy > p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #65615b;
  font-size: 12px;
  line-height: 1.55;
}

.lease-packet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 20px;
}

.lease-packet-list span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d2cec6;
  background: #fffdf9;
  font-family: var(--mono);
  font-size: 7px;
}

.lease-packet-list svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #31523a;
}

.lease-drop-actions {
  min-width: 0;
}

.lease-drop-zone {
  display: grid;
  min-height: 155px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px dashed #96978e;
  border-radius: 6px;
  background: #fffdf9;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.lease-drop-zone:hover,
.lease-drop-zone.dragging {
  border-color: #31523a;
  background: #edf4ea;
  transform: translateY(-1px);
}

.lease-drop-zone:focus-within {
  outline: 2px solid #31523a;
  outline-offset: 3px;
}

#lease-demo-file:focus-visible + .lease-drop-zone {
  outline: 2px solid #31523a;
  outline-offset: 3px;
}

.lease-drop-zone svg {
  width: 28px;
  height: 28px;
  color: #31523a;
}

.lease-drop-zone b {
  font-size: 12px;
}

.lease-drop-zone span {
  color: #74716b;
  font-family: var(--mono);
  font-size: 7px;
}

.lease-demo-run {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding: 0 13px;
  border: 1px solid #201d1b;
  border-radius: 4px;
  background: #201d1b;
  color: #fffdf9;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.lease-demo-run:hover {
  background: #31523a;
}

.lease-demo-run:focus-visible,
.lease-review-title button:focus-visible,
.lease-review-ledger:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.lease-demo-run svg,
.lease-review-title button svg {
  width: 14px;
  height: 14px;
}

.lease-drop-actions > small {
  display: block;
  margin-top: 8px;
  color: #79756f;
  font-size: 8px;
  line-height: 1.35;
}

.lease-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.lease-thinking {
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.lease-thinking span {
  position: absolute;
  inset: 0;
  border: 1px solid #31523a;
  border-radius: 50%;
  animation: lease-thinking 1.4s ease-in-out infinite;
}

.lease-thinking span:nth-child(2) {
  inset: 8px;
  animation-delay: -0.3s;
}

.lease-thinking span:nth-child(3) {
  inset: 17px;
  background: #31523a;
  animation-delay: -0.6s;
}

@keyframes lease-thinking {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.lease-process-steps {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid #c9c4bb;
  background: #fffdf9;
}

.lease-process-steps > div {
  position: relative;
  min-width: 0;
  padding: 13px 9px 15px;
  border-right: 1px solid #d5d0c8;
  color: #8a867f;
}

.lease-process-steps > div:last-child {
  border-right: 0;
}

.lease-process-steps span,
.lease-process-steps b {
  display: block;
}

.lease-process-steps span {
  font-family: var(--mono);
  font-size: 7px;
}

.lease-process-steps b {
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.3;
}

.lease-process-steps em {
  position: absolute;
  right: 9px;
  bottom: 7px;
  left: 9px;
  height: 2px;
  overflow: hidden;
  background: #dedad2;
}

.lease-process-steps em::after {
  display: block;
  width: 0;
  height: 100%;
  background: #31523a;
  content: "";
}

.lease-process-steps > div.active {
  color: #201d1b;
}

.lease-process-steps > div.active em::after {
  width: 72%;
  animation: lease-progress 520ms ease-out forwards;
}

.lease-process-steps > div.done {
  color: #31523a;
}

.lease-process-steps > div.done em::after {
  width: 100%;
}

@keyframes lease-progress {
  from {
    width: 8%;
  }
  to {
    width: 72%;
  }
}

.lease-processing > p {
  margin: 15px 0 0;
  color: #79756f;
  font-family: var(--mono);
  font-size: 8px;
}

.lease-review-result {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.lease-review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #c9c4bb;
  background: #fffdf9;
}

.lease-review-title h3 {
  font-size: 20px;
}

.lease-review-title button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #aaa69f;
  border-radius: 4px;
  background: transparent;
  color: #4f4b46;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.lease-review-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #c9c4bb;
  background: #ebe8e1;
}

.lease-review-counts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-right: 1px solid #c9c4bb;
}

.lease-review-counts div:last-child {
  border-right: 0;
}

.lease-review-counts span {
  color: #706c66;
  font-family: var(--mono);
  font-size: 7px;
}

.lease-review-counts b {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.lease-review-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #d8b879;
  background: #fff2d2;
  color: #5f4615;
  font-size: 9px;
}

.lease-review-alert svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.lease-review-alert p {
  margin: 0;
}

.lease-review-ledger {
  min-height: 0;
  flex: 1;
  overflow: auto;
  background: #fffdf9;
  scrollbar-width: thin;
}

.lease-review-ledger table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 9px;
}

.lease-review-ledger thead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #e9e6df;
}

.lease-review-ledger th,
.lease-review-ledger td {
  padding: 8px 11px;
  border-bottom: 1px solid #dedad2;
  text-align: left;
  vertical-align: top;
}

.lease-review-ledger thead th {
  color: #6d6963;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.lease-review-ledger tbody th {
  width: 22%;
  font-size: 9px;
}

.lease-review-ledger tbody td:nth-child(2) {
  width: 31%;
  font-weight: 600;
}

.lease-review-ledger tbody td:nth-child(3) {
  width: 17%;
}

.lease-review-ledger tbody td:last-child {
  color: #6f6b65;
  font-family: var(--mono);
  font-size: 7px;
}

.lease-review-ledger tr.needs-check {
  background: #fff7e5;
}

.lease-review-ledger .ready,
.lease-review-ledger .check {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.lease-review-ledger .ready {
  background: #e8f1e5;
  color: #31523a;
}

.lease-review-ledger .check {
  background: #f4dba9;
  color: #674a11;
}

.lease-review-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-top: 1px solid #c9c4bb;
  background: #fffdf9;
  color: #69655f;
  font-size: 8px;
}

.kwc-portal {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
}

.kwc-portal-side {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 14px;
  background: #1d1917;
  color: white;
  box-shadow: 0 12px 28px rgb(31 24 18 / 18%);
}

.kwc-portal-brand {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.kwc-portal-brand > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: #6a202e;
  font-family: var(--serif);
  font-size: 18px;
}

.kwc-portal-brand div {
  min-width: 0;
}

.kwc-portal-brand small,
.kwc-portal-brand b {
  display: block;
}

.kwc-portal-brand small {
  color: rgb(255 255 255 / 48%);
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.15em;
}

.kwc-portal-brand b {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.kwc-portal-side nav {
  flex: 1;
  padding: 10px 6px;
}

.kwc-portal-side nav span {
  display: flex;
  height: 29px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border-radius: 8px;
  color: rgb(255 255 255 / 63%);
  font-size: 7px;
}

.kwc-portal-side nav span.active {
  position: relative;
  background: rgb(255 255 255 / 9%);
  color: white;
}

.kwc-portal-side nav span.active::before {
  position: absolute;
  inset: 6px auto 6px -6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #8a3041;
  content: "";
}

.kwc-portal-side nav svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  stroke-width: 1.6;
}

.kwc-portal-secure {
  display: flex;
  gap: 7px;
  margin: 6px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 9px;
  background: rgb(255 255 255 / 4%);
}

.kwc-portal-secure svg {
  width: 11px;
  height: 11px;
}

.kwc-portal-secure b,
.kwc-portal-secure small {
  display: block;
}

.kwc-portal-secure b {
  font-size: 6px;
}

.kwc-portal-secure small {
  margin-top: 2px;
  color: rgb(255 255 255 / 44%);
  font-size: 5px;
}

.kwc-portal-main {
  min-width: 0;
  padding: 3px 3px 10px;
  overflow: hidden;
}

.kwc-portal-ribbon,
.kwc-portal-filter,
.kwc-portal-header,
.kwc-recent-deals > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kwc-portal-ribbon {
  padding-bottom: 8px;
  color: #604c49;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.16em;
}

.kwc-portal-header {
  padding-bottom: 9px;
  border-bottom: 1px solid #c4bdb2;
}

.kwc-portal-header small,
.kwc-snapshot > small,
.kwc-next-actions > small,
.kwc-recent-deals small,
.kwc-stat-row small {
  color: #705b55;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.14em;
}

.kwc-portal-header h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.kwc-portal-header p {
  margin: 3px 0 0;
  color: #615a55;
  font-size: 6px;
}

.kwc-new-deal {
  padding: 8px 10px;
  border-radius: 8px;
  background: #6a202e;
  color: white;
  font-size: 6px;
  font-weight: 700;
}

.kwc-portal-filter {
  justify-content: flex-start;
  gap: 6px;
  min-height: 36px;
  color: #725f59;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.08em;
}

.kwc-portal-filter b,
.kwc-portal-filter span:not(:first-child) {
  padding: 5px 8px;
  border: 1px solid #c7c0b6;
  border-radius: 6px;
  background: rgb(255 255 255 / 46%);
  letter-spacing: 0;
}

.kwc-portal-filter b {
  border-color: #6a202e;
  background: #6a202e;
  color: white;
}

.kwc-operating-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(130px, 0.85fr);
  gap: 8px;
}

.kwc-snapshot,
.kwc-next-actions,
.kwc-recent-deals {
  border: 1px solid #c7c0b6;
  border-radius: 11px;
  background: rgb(255 253 248 / 78%);
  box-shadow: 0 8px 22px rgb(50 40 30 / 7%);
}

.kwc-snapshot {
  padding: 12px;
}

.kwc-snapshot h4 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.kwc-snapshot > p {
  margin: 4px 0 0;
  color: #69605a;
  font-size: 6px;
}

.kwc-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.kwc-stat-row > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #d0c8bd;
  border-radius: 8px;
  background: #f6f0e7;
}

.kwc-stat-row b,
.kwc-stat-row span {
  display: block;
}

.kwc-stat-row b {
  margin-top: 4px;
  color: #6a202e;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.kwc-stat-row span {
  margin-top: 2px;
  color: #70655e;
  font-size: 5px;
}

.kwc-next-actions {
  padding: 12px;
}

.kwc-next-actions > div {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #d0c8bd;
  border-radius: 8px;
  background: #faf7f1;
}

.kwc-next-actions i {
  width: 3px;
  flex: 0 0 3px;
  border-radius: 3px;
  background: #a83142;
}

.kwc-next-actions > div:last-child i {
  background: #a46a1d;
}

.kwc-next-actions b,
.kwc-next-actions small {
  display: block;
}

.kwc-next-actions b {
  font-size: 6px;
}

.kwc-next-actions small {
  margin-top: 3px;
  color: #746a63;
  font-size: 5px;
}

.kwc-recent-deals {
  margin-top: 8px;
  padding: 10px 12px;
}

.kwc-recent-deals > div:first-child {
  padding-bottom: 7px;
}

.kwc-recent-deals > div:first-child span {
  color: #6a202e;
  font-family: var(--mono);
  font-size: 5px;
  font-weight: 700;
}

.kwc-deal-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.6fr 0.7fr;
  gap: 7px;
  padding: 6px 0;
  border-top: 1px solid #ded7cd;
  font-size: 6px;
}

.kwc-deal-row span {
  color: #6f655f;
}

.kwc-deal-head {
  padding: 4px 0;
  color: #766a63;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.08em;
}

.automation-console {
  overflow: hidden;
  padding: 18px 20px;
  background: #f3f4ef;
}

.automation-console-head {
  padding-bottom: 15px;
  border-bottom: 1px solid #c9ccc5;
}

.automation-console-head b {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
}

.automation-event {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #d0d2cc;
}

.automation-event:last-child {
  border-bottom: 0;
}

.automation-mode {
  padding-top: 2px;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 8px;
}

.automation-event b {
  display: block;
  font-size: 12px;
}

.automation-event p {
  margin: 4px 0 0;
  color: #555850;
  font-size: 10px;
  line-height: 1.42;
}

.automation-event code {
  font-family: var(--mono);
  font-size: 9px;
}

/* ESG */
.advisor-frame {
  height: auto;
}

.advisor-shell {
  display: grid;
  min-height: 360px;
  grid-template-columns: 220px 1fr;
  background: #f9faf6;
  color: #18201a;
}

.advisor-side {
  padding: 24px 18px;
  border-right: 1px solid #ccd5cb;
  background: #173f31;
  color: white;
}

.advisor-brand {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 23px;
}

.advisor-nav {
  padding: 9px 10px;
  border-radius: 3px;
  color: #c2d7cb;
  font-size: 12px;
}

.advisor-nav.active {
  background: #d9f4df;
  color: #173f31;
}

.advisor-main {
  padding: 22px 26px;
}

.advisor-main h3 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.advisor-query,
.advisor-answer {
  max-width: 690px;
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 13px;
}

.advisor-query {
  margin-left: auto;
  border: 1px solid #abc1b0;
  background: white;
}

.advisor-math {
  display: grid;
  max-width: 690px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid #c4cfc5;
  background: white;
}

.advisor-math div {
  padding: 11px 13px;
  border-right: 1px solid #c4cfc5;
}

.advisor-math div:last-child {
  border-right: 0;
}

.advisor-math span,
.advisor-math b {
  display: block;
}

.advisor-math span {
  color: #58635b;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.advisor-math b {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.advisor-answer {
  border-left: 3px solid var(--forest);
  background: #e9f0e8;
}

.advisor-answer b {
  display: block;
  margin-bottom: 6px;
}

.citation {
  display: inline-block;
  margin-top: 10px;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 9px;
}

/* Baseline */
.baseline-frame {
  height: 500px;
}

.baseline-model {
  height: calc(100% - 42px);
  padding: 17px 22px 14px;
  background: #fbfcf8;
  color: #161a16;
}

.baseline-case-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.baseline-case-head h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.baseline-case-head p {
  max-width: 390px;
  margin: 0;
  color: #62665f;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.baseline-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 15px;
  border: 1px solid #cfd3cc;
  background: white;
}

.baseline-metric {
  min-height: 78px;
  padding: 13px 15px 10px;
  border-right: 1px solid #cfd3cc;
}

.baseline-metric:last-child {
  border-right: 0;
}

.baseline-metric b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.baseline-metric span,
.baseline-metric small {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8px;
}

.baseline-metric small {
  margin-top: 2px;
  color: #6a6d66;
}

.sample-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 3px;
  background: #fff0c9;
  color: #724d00;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.baseline-table-wrap {
  margin-top: 13px;
  overflow-x: auto;
  outline-offset: 3px;
}

.measure-row {
  display: grid;
  min-width: 820px;
  grid-template-columns: 1.35fr 1fr 1fr 0.75fr 0.75fr 0.55fr;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid #d5d9d2;
  font-size: 10px;
}

.measure-row.head {
  border-top: 0;
  background: #eef1ea;
  color: #62665f;
  font-family: var(--mono);
  font-size: 8px;
}

.measure-row strong {
  font-size: 10px;
}

.baseline-footnote {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px;
  border-top: 1px solid #d5d9d2;
  color: #61645d;
  font-family: var(--mono);
  font-size: 8px;
}

/* Arthur */
.operator-frame {
  height: auto;
}

.operator-shell {
  min-height: 230px;
  padding: 25px;
  background: #141b19;
  color: #eff2ee;
}

.operator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.operator-run {
  color: #9eaaa4;
  font-family: var(--mono);
  font-size: 9px;
}

.operator-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.operator-node {
  min-height: 148px;
  padding: 16px;
  border: 1px solid #46514d;
  border-radius: 4px;
  background: #1d2724;
}

.operator-node.active {
  border-color: var(--acid);
}

.operator-node b {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.14;
}

.operator-node p {
  margin: 0;
  color: #aeb8b2;
  font-size: 11px;
  line-height: 1.5;
}

.operator-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.operator-status span {
  padding: 5px 8px;
  border-radius: 3px;
  background: #2a3934;
  color: #c7d2cc;
  font-family: var(--mono);
  font-size: 9px;
}

/* ESPM */
.terminal-shell {
  display: grid;
  min-height: 230px;
  grid-template-columns: 1fr 0.9fr;
  background: #111315;
  color: #eef0ee;
}

.terminal-chat {
  padding: 23px;
  border-right: 1px solid #383c3e;
}

.terminal-line {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.terminal-line.user {
  color: #a9c2ff;
}

.terminal-line.agent {
  color: #d7ff81;
}

.terminal-tools {
  padding: 23px;
}

.tool-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #303438;
  font-family: var(--mono);
  font-size: 10px;
}

.tool-row span:last-child {
  color: #8f9791;
}

/* CRE market MCPs */
.cre-mcp-frame {
  height: auto;
}

.cre-mcp-shell {
  display: grid;
  min-height: 350px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  background: #111315;
  color: #eef0ee;
}

.cre-question-panel,
.cre-source-panel {
  padding: 24px;
}

.cre-question-panel {
  border-right: 1px solid #383c3e;
}

.cre-question-list {
  margin-top: 12px;
}

.cre-question {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #303438;
}

.cre-question:last-child {
  border-bottom: 0;
}

.cre-question span {
  color: #96a09a;
  font-family: var(--mono);
  font-size: 9px;
}

.cre-question p {
  margin: 0;
  color: #eef0ee;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
}

.cre-source-list {
  margin-top: 12px;
}

.cre-source-list div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #303438;
}

.cre-source-list b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
}

.cre-source-list span,
.cre-source-note {
  color: #aeb4af;
  font-size: 11px;
  line-height: 1.45;
}

.cre-source-note {
  margin: 16px 0 0;
}

/* Supporting systems */
.supporting {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.support-item {
  min-height: 185px;
  padding: 22px;
  background: var(--surface);
}

.support-item h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.support-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.support-stack {
  display: block;
  margin-top: 16px;
  color: #333530;
  font-family: var(--mono);
  font-size: 10px;
}

/* Personal note */
.personal-note {
  padding: 24px 0;
  border-top: 1px solid #2e302d;
  background: #151715;
  color: #f5f5f1;
}

.personal-note-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 42px;
  align-items: center;
}

.personal-note p {
  margin: 0;
  max-width: 940px;
  color: #d3d6cf;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}

.contact {
  padding: 48px 0 50px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 650px;
}

.site-footer {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

/* Technical appendix */
.appendix-page {
  background: #f5f5f1;
}

.appendix-hero {
  padding: 90px 0 64px;
  border-bottom: 1px solid var(--line);
}

.appendix-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.appendix-nav {
  position: sticky;
  z-index: 50;
  top: 68px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 241, 0.96);
  scrollbar-width: none;
}

.appendix-nav::-webkit-scrollbar {
  display: none;
}

.appendix-nav-inner {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 3px;
  padding: 10px 24px;
}

.appendix-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.appendix-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 126px;
}

.appendix-section h2 {
  max-width: 800px;
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.appendix-lede {
  max-width: 840px;
  margin: 0;
  color: #454741;
  font-size: 18px;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.fact {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.fact.strong {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.appendix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.appendix-block {
  min-height: 220px;
  padding: 26px;
  background: white;
}

.appendix-block h3 {
  margin: 10px 0 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.appendix-block p,
.appendix-block li {
  color: #565852;
  font-size: 13px;
}

.appendix-block ul {
  margin: 0;
  padding-left: 17px;
}

.appendix-block li + li {
  margin-top: 5px;
}

/* Full Slack demo */
.demo-header {
  height: 64px;
  border-bottom: 1px solid #313531;
  background: #0f1110;
}

.demo-header .header-inner {
  width: min(1440px, calc(100% - 40px));
}

.demo-header .brand,
.demo-header .nav-link,
.demo-header .nav-icon {
  color: #f5f5f1;
}

.demo-header .nav-link,
.demo-header .nav-icon {
  border-color: #3b3f3b;
}

.demo-wrap {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  padding: 54px 0 40px;
}

.demo-intro h1 {
  max-width: 840px;
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 500;
  line-height: 0.96;
}

.demo-intro p {
  max-width: 780px;
  margin: 0;
  color: #b8bdb6;
  font-size: 17px;
}

.demo-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-self: end;
  border: 1px solid #393d39;
}

.demo-fact {
  min-height: 86px;
  padding: 16px;
  border-right: 1px solid #393d39;
  border-bottom: 1px solid #393d39;
}

.demo-fact:nth-child(2n) {
  border-right: 0;
}

.demo-fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.demo-fact b {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.demo-fact span {
  color: #969c95;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.demo-stage {
  display: grid;
  min-height: 680px;
  grid-template-columns: 248px minmax(460px, 1fr) 380px;
  margin-bottom: 44px;
  overflow: hidden;
  border: 1px solid #3b3f3b;
  border-radius: 4px;
  background: white;
  color: #1d1c1d;
}

.scenario-rail {
  padding: 20px 14px;
  background: #26172a;
  color: white;
}

.scenario-rail h2 {
  margin: 7px 8px 17px;
  font-size: 14px;
}

.scenario-button {
  display: block;
  width: 100%;
  min-height: 66px;
  margin-bottom: 6px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #d5cad7;
  text-align: left;
  cursor: pointer;
}

.scenario-button:hover,
.scenario-button.active {
  border-color: #6f5d73;
  background: #3b2740;
  color: white;
}

.scenario-button b,
.scenario-button span {
  display: block;
}

.scenario-button b {
  font-size: 12px;
}

.scenario-button span {
  margin-top: 3px;
  color: #b9aabb;
  font-size: 10px;
}

.demo-thread {
  min-width: 0;
  padding: 0 28px 28px;
}

.demo-thread-head {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dadada;
}

.demo-thread-head b {
  font-size: 14px;
}

.synthetic-badge {
  padding: 4px 7px;
  border-radius: 3px;
  background: #fff0c9;
  color: #7b5605;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.demo-question {
  margin-top: 24px;
}

.demo-question .message-copy,
.demo-answer .message-copy {
  font-size: 14px;
}

.demo-answer {
  margin-top: 26px;
  opacity: 1;
  transition: opacity 180ms ease;
}

.demo-answer.loading {
  opacity: 0.35;
}

.answer-body {
  margin-top: 8px;
  padding: 16px;
  border-left: 3px solid var(--forest);
  background: #f0f5f1;
}

.answer-body p {
  margin: 0;
  font-size: 13px;
}

.answer-body p + p {
  margin-top: 10px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.source-chip {
  padding: 4px 7px;
  border: 1px solid #bfc5bf;
  border-radius: 3px;
  color: #4d554f;
  font-family: var(--mono);
  font-size: 8px;
}

.run-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
}

.run-status {
  color: #6d706c;
  font-family: var(--mono);
  font-size: 9px;
}

.icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #1d1c1d;
  border-radius: 4px;
  background: #1d1c1d;
  color: white;
  cursor: pointer;
}

.demo-trace {
  min-width: 0;
  overflow-y: auto;
  padding: 22px;
  border-left: 1px solid #d5d5d5;
  background: #f5f5f2;
}

.demo-trace h2 {
  margin: 8px 0 20px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.trace-call {
  position: relative;
  padding: 0 0 22px 25px;
}

.trace-call::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: white;
  content: "";
}

.trace-call::after {
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: #c4c7c2;
  content: "";
}

.trace-call:last-child::after {
  display: none;
}

.trace-call b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
}

.trace-call p {
  margin: 5px 0 0;
  color: #646761;
  font-size: 11px;
}

.trace-call code {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #30352f;
  font-family: var(--mono);
  font-size: 9px;
}

.demo-architecture {
  padding: 64px 0 80px;
  border-top: 1px solid #343834;
}

.demo-architecture h2 {
  max-width: 760px;
  margin: 10px 0 30px;
  font-family: var(--serif);
  font-size: 45px;
  font-weight: 500;
  line-height: 1;
}

.demo-architecture .detail-grid {
  border-color: #343834;
  background: #343834;
}

.demo-architecture .detail-block {
  background: #171a17;
}

.demo-architecture .detail-copy,
.demo-architecture .detail-list {
  color: #b5bab3;
}

@media (max-width: 980px) {
  .header-inner,
  .wrap {
    width: min(100% - 34px, 1240px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 42px;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero-lead {
    font-size: 25px;
  }

  .hero-portrait img {
    width: 220px;
    height: 290px;
  }

  .intro-grid,
  .project-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-heading {
    align-items: start;
  }

  .slack-shell {
    grid-template-columns: 150px 1fr;
  }

  .slack-shell .trace-panel {
    grid-column: 1 / -1;
    border-top: 1px solid #d5d5d5;
    border-left: 0;
  }

  .brokerage-product {
    display: block;
    height: auto;
  }

  .brokerage-frame {
    height: auto;
  }

  .portal-preview {
    border-right: 0;
    border-bottom: 1px solid #bbbdb6;
  }

  .lease-intake-preview {
    flex: 0 0 660px;
    height: 660px;
  }

  .portal-shot img {
    width: 100%;
    height: auto;
  }

  .automation-console {
    padding: 16px;
  }

  .automation-event {
    grid-template-columns: 42px 1fr;
    padding: 11px 0;
  }

  .operator-flow,
  .architecture {
    grid-template-columns: repeat(3, 1fr);
  }

  .operator-node:nth-child(n + 4),
  .architecture-step:nth-child(n + 4) {
    border-top: 1px solid currentColor;
  }

  .demo-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .demo-stage {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .demo-trace {
    grid-column: 1 / -1;
    max-height: 380px;
    border-top: 1px solid #d5d5d5;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 62px;
  }

  html {
    scroll-padding-top: 68px;
  }

  .header-inner,
  .wrap,
  .demo-wrap {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 14px;
  }

  .nav-link {
    display: none;
  }

  .nav-icon {
    width: 40px;
    min-height: 40px;
  }

  .nav-resume {
    display: inline-flex;
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .nav-resume svg {
    width: 17px;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 18px;
    padding: 38px 0 38px;
  }

  .hero h1 {
    margin: 12px 0 18px;
    font-size: 57px;
    line-height: 0.92;
  }

  .hero-lead {
    grid-column: 1 / -1;
    font-size: 24px;
  }

  .hero-support {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .eyebrow,
  .hero-copy h1 {
    grid-column: 1;
  }

  .hero-portrait {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .hero-portrait img {
    width: 104px;
    height: 134px;
  }

  .portrait-caption {
    display: none;
  }

  .hero-actions {
    grid-column: 1 / -1;
    margin-top: 20px;
  }

  .hero-actions .button {
    flex: 1 1 145px;
  }

  .work-intro {
    padding: 36px 0 30px;
  }

  .work-intro h2,
  .section-title,
  .contact h2,
  .appendix-hero h1 {
    font-size: 43px;
  }

  .intro-copy,
  .project-summary,
  .contact-copy {
    font-size: 16px;
  }

  .project,
  .supporting {
    padding: 36px 0;
  }

  .project-heading {
    gap: 18px;
  }

  .proof-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }

  .proof {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
  }

  .proof:nth-child(2) {
    border-right: 0;
  }

  .proof:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .proof b {
    font-size: 28px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .meta-group {
    grid-template-columns: 72px 1fr;
  }

  .product-frame {
    height: auto;
    min-height: 0;
  }

  .slack-shell {
    min-height: 360px;
    grid-template-columns: 1fr;
  }

  .slack-rail {
    display: none;
  }

  .slack-thread {
    padding: 18px;
  }

  .brokerage-product {
    display: block;
    height: auto;
  }

  .portal-preview {
    border-right: 0;
    border-bottom: 1px solid #bbbdb6;
  }

  .portal-shot {
    height: auto;
    min-height: 348px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .portal-shot img {
    width: 760px;
    max-width: none;
    height: auto;
  }

  .lease-intake-preview {
    flex-basis: 670px;
    height: 670px;
  }

  .lease-demo-stage[data-lease-state="ready"] {
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
    padding: 22px 18px;
  }

  .lease-drop-copy h3,
  .lease-processing h3 {
    font-size: 24px;
  }

  .lease-packet-list {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 14px;
  }

  .lease-packet-list span:nth-child(n + 3) {
    display: none;
  }

  .lease-drop-zone {
    min-height: 120px;
  }

  .lease-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lease-process-steps > div {
    min-height: 64px;
    border-bottom: 1px solid #d5d0c8;
  }

  .lease-process-steps > div:nth-child(2) {
    border-right: 0;
  }

  .lease-process-steps > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .lease-review-title h3 {
    font-size: 17px;
  }

  .lease-review-title button {
    padding: 8px;
  }

  .lease-review-title button svg {
    width: 13px;
    height: 13px;
  }

  .lease-review-counts div {
    display: block;
    padding: 8px 10px;
  }

  .lease-review-counts b {
    display: block;
    margin-top: 2px;
    font-size: 20px;
  }

  .lease-review-ledger table {
    min-width: 590px;
  }

  .portal-caption {
    max-width: 215px;
    font-size: 9px;
  }

  .kwc-portal {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .kwc-portal-brand {
    justify-content: center;
    padding: 7px;
  }

  .kwc-portal-brand div,
  .kwc-portal-secure span {
    display: none;
  }

  .kwc-portal-side nav span {
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .kwc-portal-side nav svg {
    width: 13px;
    height: 13px;
  }

  .kwc-portal-secure {
    justify-content: center;
  }

  .kwc-operating-grid {
    grid-template-columns: 1fr;
  }

  .kwc-next-actions {
    display: none;
  }

  .automation-console {
    padding: 19px 18px;
  }

  .automation-console-head b {
    font-size: 25px;
  }

  .automation-event {
    grid-template-columns: 48px 1fr;
    padding: 13px 0;
  }

  .automation-event p {
    font-size: 11px;
  }

  .advisor-shell,
  .cre-mcp-shell,
  .terminal-shell {
    grid-template-columns: 1fr;
  }

  .advisor-side {
    display: none;
  }

  .advisor-main,
  .terminal-chat,
  .terminal-tools {
    padding: 22px 18px;
  }

  .advisor-shell,
  .terminal-shell {
    min-height: 310px;
  }

  .advisor-main h3 {
    font-size: 26px;
  }

  .baseline-model {
    height: auto;
    padding: 18px;
  }

  .baseline-case-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .baseline-case-head h3 {
    font-size: 25px;
  }

  .baseline-case-head p {
    max-width: none;
    text-align: left;
  }

  .baseline-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baseline-metric:nth-child(2) {
    border-right: 0;
  }

  .baseline-metric:nth-child(-n + 2) {
    border-bottom: 1px solid #cfd3cc;
  }

  .measure-row {
    min-width: 0;
  }

  .baseline-table-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .measure-row.head {
    display: none;
  }

  .measure-row:not(.head) {
    min-width: 250px;
    flex: 0 0 250px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 0;
    padding: 0;
    border: 1px solid #d5d9d2;
    scroll-snap-align: start;
  }

  .measure-row:not(.head) strong {
    grid-column: 1 / -1;
    padding: 10px;
    border-bottom: 1px solid #d5d9d2;
    background: #eef1ea;
  }

  .measure-row:not(.head) span {
    min-height: 50px;
    padding: 9px 10px;
    border-right: 1px solid #d5d9d2;
    border-bottom: 1px solid #d5d9d2;
  }

  .measure-row:not(.head) span:first-of-type {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .measure-row:not(.head) span:nth-of-type(odd):not(:first-of-type) {
    border-right: 0;
  }

  .measure-row:not(.head) span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .measure-row:not(.head) span::before {
    display: block;
    margin-bottom: 5px;
    color: #666a63;
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 7px;
    text-transform: uppercase;
  }

  .baseline-footnote {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .terminal-chat {
    border-right: 0;
    border-bottom: 1px solid #383c3e;
  }

  .cre-question-panel {
    border-right: 0;
    border-bottom: 1px solid #383c3e;
  }

  .cre-question {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .cre-question p {
    font-size: 15px;
  }

  .operator-shell {
    padding: 24px 18px;
  }

  .operator-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .architecture,
  .detail-grid,
  .appendix-grid {
    grid-template-columns: 1fr;
  }

  .operator-flow {
    grid-template-columns: 1fr;
  }

  .operator-node {
    min-height: 0;
  }

  .operator-node,
  .architecture-step {
    min-height: 112px;
  }

  .architecture-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .architecture-step:last-child {
    border-bottom: 0;
  }

  .detail-block,
  .support-item,
  .appendix-block {
    min-height: 0;
  }

  .technical > summary {
    min-height: 58px;
  }

  .summary-icon {
    width: 32px;
    height: 32px;
  }

  .support-grid {
    grid-template-columns: none;
    grid-auto-columns: 280px;
    grid-auto-flow: column;
    overflow-x: auto;
    margin-top: 28px;
    scroll-snap-type: x proximity;
  }

  .support-item {
    scroll-snap-align: start;
  }

  .personal-note-inner {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .personal-note p {
    font-size: 18px;
  }

  .contact {
    padding: 54px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .appendix-hero {
    padding: 64px 0 42px;
  }

  .appendix-section {
    padding: 52px 0;
  }

  .appendix-section h2 {
    font-size: 39px;
  }

  .demo-header {
    height: 62px;
  }

  .demo-header .header-inner {
    width: calc(100% - 28px);
  }

  .demo-intro {
    padding: 42px 0 28px;
  }

  .demo-intro h1 {
    font-size: 47px;
  }

  .demo-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-stage {
    display: block;
    min-height: 0;
  }

  .scenario-rail {
    display: flex;
    overflow-x: auto;
    padding: 12px;
    gap: 7px;
  }

  .scenario-rail h2 {
    display: none;
  }

  .scenario-button {
    min-width: 178px;
    min-height: 62px;
    margin: 0;
  }

  .demo-thread {
    padding: 0 18px 22px;
  }

  .demo-trace {
    max-height: none;
  }

  .demo-architecture {
    padding: 50px 0 64px;
  }

  .demo-architecture h2 {
    font-size: 38px;
  }
}

@media (max-width: 360px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 14px;
  }

  .hero-copy h1 {
    grid-column: 1 / -1;
  }

  .hero-portrait {
    grid-row: 1;
  }

  .hero-portrait img {
    width: 88px;
    height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
