/* ==========================================================================
   Lavrentech — design system
   Palette: cool steel paper / near-black ink / cobalt signal / dark "box" panel
   Type:    Archivo (display, variable width) + IBM Plex Sans + IBM Plex Mono
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Homepage concept — editorial engineering system
   Inspired by the supplied reference: monochrome grid, technical diagrams,
   asymmetrical content blocks and restrained signal colour.
   ========================================================================== */

.home-reference {
  --maxw: 1280px;
  --paper: #f4f4f1;
  --paper-2: #fafaf8;
  --rule: #d9d9d4;
  --ink: #161616;
  --slate: #6f706d;
  --slate-2: #8c8d88;
  --signal: #214ee5;
  --signal-lit: #214ee5;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, .025) 1px, transparent 1px) 50% 0 / min(14vw, 176px) 100%,
    var(--paper);
}

.home-reference .nav {
  background: rgba(244, 244, 241, .92);
  backdrop-filter: blur(14px);
}

.home-reference .nav__brand {
  letter-spacing: .18em;
}

.home-reference .reference-hero {
  min-height: calc(100vh - 73px);
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: 32px;
  display: grid;
  grid-template-rows: auto auto minmax(310px, 1fr) auto;
}

.reference-hero__topline,
.reference-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reference-kicker,
.reference-hero__filters,
.reference-hero__note > span {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.reference-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reference-kicker > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.reference-hero__title {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  padding: clamp(28px, 5vw, 66px) 0 clamp(30px, 5vw, 60px);
}

.home-reference .reference-hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -.06em;
  line-height: .88;
}

.home-reference .reference-hero h1 span {
  color: #b9bab6;
}

.reference-hero__title .lead {
  max-width: 30ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.reference-hero__canvas {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .62fr);
  border: 1px solid var(--rule);
  background: rgba(250, 250, 248, .55);
  overflow: hidden;
}

.system-map {
  position: relative;
  min-height: 310px;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 58px 58px;
}

.workflow-stage,
.dashboard-stage {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.workflow-stage {
  animation: workflow-to-dashboard 12s cubic-bezier(.22, .61, .36, 1) infinite;
}

.workflow-link {
  position: absolute;
  z-index: 0;
  height: 1px;
  background: #9fa19c;
  transform-origin: left center;
}

.workflow-link::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #9fa19c;
  border-right: 1px solid #9fa19c;
  transform: rotate(45deg);
}

.workflow-link--1 { left: 18%; top: 50%; width: 15%; transform: rotate(-24deg); }
.workflow-link--2 { left: 18%; top: 50%; width: 15%; transform: rotate(24deg); }
.workflow-link--3 { left: 42%; top: 30%; width: 18%; transform: rotate(20deg); }
.workflow-link--4 { left: 42%; top: 70%; width: 18%; transform: rotate(-20deg); }
.workflow-link--5 { left: 65%; top: 50%; width: 16%; }
.workflow-link--6 { left: 13%; top: 50%; width: 7%; }

.workflow-node {
  position: absolute;
  z-index: 2;
  width: clamp(92px, 13vw, 128px);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #c9cac5;
  border-radius: 4px;
  background: rgba(250, 250, 248, .96);
  box-shadow: 0 4px 12px rgba(22, 22, 22, .06);
  transform: translateY(-50%);
}

.workflow-node::before,
.workflow-node::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border: 1px solid #969892;
  border-radius: 50%;
  background: var(--paper-2);
}

.workflow-node::before { left: -5px; }
.workflow-node::after { right: -5px; }

.workflow-node__icon {
  width: 30px;
  height: 30px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid #d5d6d1;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .67rem;
  font-weight: 500;
}

.workflow-node > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workflow-node strong,
.workflow-node small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-node strong {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
}

.workflow-node small {
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .52rem;
}

.workflow-node--trigger { left: 4%; top: 50%; }
.workflow-node--extract { left: 31%; top: 28%; }
.workflow-node--store { left: 31%; top: 72%; }
.workflow-node--review { left: 57%; top: 50%; }
.workflow-node--notify { right: 4%; top: 50%; }

.workflow-status {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.workflow-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f9b55;
  box-shadow: 0 0 0 3px rgba(47, 155, 85, .12);
}

.dashboard-stage {
  z-index: 4;
  inset: 22px 28px 26px;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cacbc6;
  border-radius: 5px;
  background: #f9f9f7;
  box-shadow: 0 18px 48px rgba(22, 22, 22, .12);
  opacity: 0;
  transform: translateY(14px) scale(.84);
  animation: dashboard-from-workflow 12s cubic-bezier(.22, .61, .36, 1) infinite;
}

.dashboard-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .56rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-stage__bar b {
  color: var(--ink);
  letter-spacing: .1em;
}

.dashboard-stage__live {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-stage__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f9b55;
}

.dashboard-stage__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
}

.dashboard-stage__nav {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 14px 10px;
  border-right: 1px solid var(--rule);
  color: var(--slate-2);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: .62rem;
}

.dashboard-stage__nav strong {
  margin: 2px 7px 8px;
  color: var(--ink);
  font-size: .56rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-stage__nav span {
  padding: 6px 7px;
  border-radius: 3px;
}

.dashboard-stage__nav .is-active {
  background: #e8ebf7;
  color: var(--signal);
  font-weight: 600;
}

.dashboard-stage__main {
  min-width: 0;
  padding: 13px 15px;
}

.dashboard-stage__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.dashboard-stage__heading > span {
  display: grid;
  gap: 2px;
}

.dashboard-stage__heading small,
.dashboard-stage__metrics small,
.dashboard-stage__metrics span {
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .48rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-stage__heading strong {
  font-size: .76rem;
  font-weight: 600;
}

.dashboard-stage__heading > b {
  padding: 6px 9px;
  border-radius: 3px;
  background: var(--signal);
  color: #fff;
  font-size: .55rem;
  font-weight: 500;
}

.dashboard-stage__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.dashboard-stage__metrics article {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
}

.dashboard-stage__metrics strong {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.dashboard-stage__queue {
  margin-top: 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  font-size: .56rem;
}

.dashboard-stage__queue > div {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px;
  border-bottom: 1px solid #e6e6e2;
}

.dashboard-stage__queue > div:last-child {
  border-bottom: 0;
}

.dashboard-stage__queue-head {
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .46rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.dashboard-stage__queue > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-stage__queue i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efefeb;
  color: var(--slate);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .43rem;
  font-style: normal;
}

.dashboard-stage__queue b {
  padding: 3px 6px;
  border-radius: 10px;
  font-size: .46rem;
  font-weight: 500;
}

.dashboard-stage__queue .is-review { background: #fff2d7; color: #8e5a00; }
.dashboard-stage__queue .is-done { background: #e3f2e8; color: #236b3a; }

.dashboard-stage__heading,
.dashboard-stage__metrics article,
.dashboard-stage__queue {
  animation: dashboard-content-build 12s cubic-bezier(.22, .61, .36, 1) infinite;
  animation-fill-mode: both;
}

.dashboard-stage__metrics article:nth-child(2) { animation-delay: .08s; }
.dashboard-stage__metrics article:nth-child(3) { animation-delay: .16s; }
.dashboard-stage__queue { animation-delay: .24s; }

@keyframes workflow-to-dashboard {
  0%, 13% { opacity: 1; transform: translateY(0) scale(1); }
  22%, 82% { opacity: 0; transform: translateY(4px) scale(.78); }
  91%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dashboard-from-workflow {
  0%, 15% { opacity: 0; transform: translateY(14px) scale(.84); }
  25%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(10px) scale(.88); }
}

@keyframes dashboard-content-build {
  0%, 19% { opacity: 0; transform: translateY(8px) scale(.96); }
  29%, 80% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(5px) scale(.98); }
}

.reference-hero__note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--rule);
  background: rgba(232, 232, 228, .75);
}

.reference-hero__note h2 {
  margin: auto 0 18px;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.reference-hero__note p {
  color: var(--slate);
  font-size: .93rem;
  line-height: 1.5;
}

.reference-hero__footer {
  padding-top: 26px;
}

.reference-hero__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-hero__filters span {
  padding: 7px 10px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.reference-hero__footer .hero__cta { margin: 0; }

.reference-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

@media (max-width: 820px) {
  .reference-hero__title,
  .reference-hero__canvas {
    grid-template-columns: 1fr;
  }

  .reference-hero__title { gap: 24px; }
  .reference-hero__title .lead { max-width: 42ch; }
  .reference-hero__note { border-left: 0; border-top: 1px solid var(--rule); min-height: 260px; }
  .reference-hero__footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .home-reference .reference-hero { min-height: auto; }
  .home-reference .reference-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .reference-hero__footer .hero__cta { align-items: flex-start; flex-direction: column; }
  .workflow-node { width: 76px; min-height: 50px; gap: 5px; padding: 6px; }
  .workflow-node__icon { width: 22px; height: 22px; font-size: .52rem; }
  .workflow-node strong { font-size: .62rem; }
  .workflow-node small { font-size: .44rem; }
  .workflow-node--extract,
  .workflow-node--store { left: 30%; }
  .workflow-node--review { left: 52%; }
  .workflow-node--notify { right: 2%; }
  .workflow-status { right: 10px; bottom: 10px; font-size: .48rem; }
  .dashboard-stage { inset: 14px 12px 18px; grid-template-rows: 32px minmax(0, 1fr); }
  .dashboard-stage__bar { padding-inline: 9px; font-size: .46rem; }
  .dashboard-stage__body { grid-template-columns: 1fr; }
  .dashboard-stage__nav { display: none; }
  .dashboard-stage__main { padding: 9px; }
  .dashboard-stage__heading { margin-bottom: 7px; }
  .dashboard-stage__heading strong { font-size: .65rem; }
  .dashboard-stage__heading > b { padding: 5px 7px; font-size: .48rem; }
  .dashboard-stage__metrics { gap: 4px; }
  .dashboard-stage__metrics article { padding: 6px; }
  .dashboard-stage__metrics strong { font-size: .92rem; }
  .dashboard-stage__metrics span { display: none; }
  .dashboard-stage__queue { margin-top: 5px; }
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surface */
  --paper: #E9EBED;
  --paper-2: #F5F6F7;
  --rule: #CBD1D7;

  /* ink */
  --ink: #101418;
  --slate: #59626C;
  --slate-2: #59626C;

  /* the black box */
  --box: #12161B;
  --box-2: #1B2128;
  --box-rule: #2C343D;
  --box-ink: #E4E7EA;
  --box-slate: #7E8994;

  /* signal */
  --signal: #2B54E8;
  --signal-lit: #384a8a;

  /* metrics */
  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 64px);
  --band: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: "Archivo", system-ui, sans-serif;
  margin: 0;
  line-height: 1.02;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  font-weight: 650;
  font-stretch: 108%;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 34ch;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.band--dark .eyebrow {
  color: var(--box-slate);
}

.band--dark .eyebrow::after {
  background: var(--box-rule);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-2);
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band {
  padding-block: var(--band);
  border-top: 1px solid var(--rule);
}

.band--dark {
  background: var(--box);
  color: var(--box-ink);
  border-top: none;
}

.band--dark h2 {
  color: #fff;
}

.band--plain {
  border-top: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(233, 235, 237, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gut);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: .24em;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}

.wordmark__a {
  color: var(--signal);
}

.nav__links {
  display: flex;
  gap: 26px;
}

.nav__links a {
  font-size: .92rem;
  text-decoration: none;
  color: var(--slate);
  transition: color .18s var(--ease);
}

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

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

@media (max-width:900px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gut) 20px;
  }

  .nav__links:not(.is-open) {
    display: none;
  }

  .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav .btn {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .95rem;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover {
  background: var(--signal);
  border-color: var(--signal);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--signal);
  border-color: var(--signal);
}

.btn--lit {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.btn--lit:hover {
  background: #1c3fc4;
  border-color: #1c3fc4;
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(64px, 10vw, 124px) clamp(56px, 8vw, 96px);
}

.hero h1 {
  max-width: 17ch;
}

.hero .lead {
  margin-top: 26px;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* ---------- failure states (dark band) ---------- */
.failures {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.failure {
  border-top: 1px solid var(--box-rule);
  padding: 26px 0 26px 22px;
  position: relative;
}

.failure:last-child {
  border-bottom: 1px solid var(--box-rule);
}

.failure::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--box-rule);
  transition: background .3s var(--ease);
}

.failure:hover::before {
  background: var(--signal-lit);
}

.failure h3 {
  color: #fff;
  margin-bottom: 8px;
}

.failure p {
  color: var(--box-slate);
  max-width: 62ch;
}

.failures--light .failure {
  border-color: var(--rule);
}

.failures--light .failure:last-child {
  border-color: var(--rule);
}

.failures--light .failure::before {
  background: var(--rule);
}

.failures--light .failure h3 {
  color: var(--ink);
}

.failures--light .failure p {
  color: var(--slate);
}

.thesis {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--box-rule);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 26ch;
}

.thesis em {
  color: var(--signal-lit);
  font-style: normal;
}

/* ---------- deliverables ---------- */
.deliverables {
  display: grid;
  gap: 0;
}

.deliverable {
  display: grid;
  grid-template-columns: minmax(0, 22ch) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 52px);
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.deliverable:last-child {
  border-bottom: 1px solid var(--rule);
}

.deliverable h3 {
  margin: 0;
}

.deliverable p {
  color: var(--slate);
  margin: 0;
}

.deliverables--dark {
  margin-top: 44px;
}

.deliverables--dark .deliverable {
  border-color: var(--box-rule);
}

.deliverables--dark .deliverable h3 {
  color: #fff;
}

.deliverables--dark .deliverable p {
  color: var(--box-slate);
}

@media (max-width:700px) {
  .deliverable {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- cases ---------- */
.cases {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}

.case {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s var(--ease);
}

.case:hover {
  border-color: var(--signal);
}

.case__shot {
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(45deg, #DDE1E5 0 12px, #E4E8EB 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
}

.case__body {
  padding: clamp(22px, 3vw, 34px);
}

.case__tags {
  margin-bottom: 14px;
}

.case__tags span {
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 4px 9px;
  margin-right: 6px;
  display: inline-block;
}

.case h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.case p {
  color: var(--slate);
  max-width: 64ch;
}

.case__stack {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: .76rem;
  color: var(--slate-2);
  line-height: 1.7;
}

@media (min-width:900px) {
  .cases--split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- work tabs + screenshot carousel ---------- */
.work-showcase {
  margin-top: 44px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.work-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.work-tab {
  appearance: none;
  min-width: 0;
  padding: 20px clamp(16px, 2.8vw, 30px);
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--slate);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(.9rem, 1.5vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -.012em;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.work-tab:last-child {
  border-right: 0;
}

.work-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.work-tab:hover {
  color: var(--ink);
  background: rgba(203, 209, 215, .18);
}

.work-tab.is-active {
  color: var(--signal);
}

.work-tab.is-active::after {
  background: var(--signal);
}

.work-panel {
  background: var(--paper-2);
}

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

.case-gallery {
  padding: clamp(16px, 2.8vw, 30px) clamp(16px, 2.8vw, 30px) 0;
}

.case-gallery__viewport {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #DDE1E5;
  touch-action: pan-y;
}

.case-gallery__track {
  display: flex;
  transition: transform .42s var(--ease);
  will-change: transform;
}

.case-gallery__slide {
  appearance: none;
  flex: 0 0 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.case-gallery__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
}

.case-gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background:
    linear-gradient(135deg, rgba(43, 84, 232, .08), transparent 46%),
    repeating-linear-gradient(45deg, #DDE1E5 0 14px, #E4E8EB 14px 28px);
  color: var(--slate);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
}

.case-gallery__placeholder small {
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-gallery__controls {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.case-gallery__arrows {
  display: flex;
  gap: 8px;
  justify-self: start;
}

.case-gallery__arrow {
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  line-height: 1;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.case-gallery__arrow:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.case-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.case-gallery__dot {
  appearance: none;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  transition: width .2s var(--ease), border-radius .2s var(--ease), background .2s var(--ease);
}

.case-gallery__dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--signal);
}

.case-gallery__counter {
  justify-self: end;
  margin: 0;
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .08em;
}

.work-panel .case__body {
  padding-top: clamp(22px, 2.5vw, 30px);
  border-top: 1px solid var(--rule);
}

.case-lightbox {
  width: min(94vw, 1440px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.case-lightbox::backdrop {
  background: rgba(10, 13, 16, .9);
  backdrop-filter: blur(5px);
}

.case-lightbox__frame {
  position: relative;
}

.case-lightbox__media {
  overflow: hidden;
  border-radius: 5px;
  background: var(--box-2);
}

.case-lightbox__media .case-gallery__media {
  max-height: calc(94vh - 52px);
  object-fit: contain;
}

.case-lightbox__close {
  appearance: none;
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(16, 20, 24, .78);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.case-lightbox__title {
  margin: 12px 0 0;
  color: var(--box-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width:680px) {
  .work-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .work-tabs::-webkit-scrollbar {
    display: none;
  }

  .work-tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 17px 18px;
    font-size: .9rem;
  }

  .case-gallery__controls {
    grid-template-columns: 1fr auto;
  }

  .case-gallery__dots {
    display: none;
  }

  .case-gallery__counter {
    grid-column: 2;
  }
}

/* ---------- pricing ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.service-card {
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.service-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
}

.service-card__meta {
  display: block;
  margin-bottom: 26px;
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .06em;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.service-card p {
  max-width: 48ch;
  margin: 0;
  color: var(--slate);
}

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

  .service-card {
    min-height: 0;
  }
}

.tiers {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

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

.tier {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
}

.tier--featured {
  border-color: var(--signal);
  border-width: 1.5px;
  box-shadow: 0 1px 0 var(--signal);
  position: relative;
}

.tier__flag {
  position: absolute;
  top: -11px;
  left: clamp(24px, 2.6vw, 32px);
  background: var(--signal);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.tier h3 {
  margin-bottom: 10px;
}

.tier__price {
  font-family: "Archivo", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 18px;
}

.tier--featured .tier__price {
  color: var(--signal);
}

.tier p {
  color: var(--slate);
  font-size: .96rem;
}

.tier__time {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--slate-2);
}

.tiers__note {
  margin-top: 24px;
  color: var(--slate);
  font-size: .95rem;
}

/* ---------- fit ---------- */
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

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

.fit__col h3 {
  margin-bottom: 18px;
}

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

.fit__list li {
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  position: relative;
}

.fit__list li::before {
  position: absolute;
  left: 0;
  top: 13px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .9rem;
}

.fit__list--yes li::before {
  content: "+";
  color: var(--signal);
}

.fit__list--no li::before {
  content: "–";
  color: var(--slate-2);
}

/* ---------- about ---------- */
.about__photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(45deg, #DDE1E5 0 12px, #E4E8EB 12px 24px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.about__body p {
  color: var(--slate);
  max-width: 58ch;
}

.about__body p:first-of-type {
  color: var(--ink);
  font-size: 1.1rem;
}

/* ---------- faq ---------- */
.faq {
  max-width: none;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -.015em;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  color: var(--slate-2);
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--signal);
}

.faq details p {
  color: var(--slate);
  padding: 0 0 24px;
  max-width: 70ch;
}

/* ---------- contact ---------- */
.contact-grid {
  margin-top: 12px;
}

.contact-grid .lead {
  margin-top: 22px;
}

.contact__direct {
  margin-top: 32px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.contact__email {
  text-decoration: none;
}

.contact__email:hover {
  color: var(--signal);
}

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #1d8b4d;
  color: #fff;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.contact__whatsapp:hover {
  background: #176f3e;
  transform: translateY(-1px);
}

.contact__whatsapp svg,
.footer__whatsapp svg,
.whatsapp-float svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}

.form {
  display: grid;
  gap: 16px;
}

.form[aria-busy="true"] {
  opacity: .78;
}

.form .btn:disabled {
  cursor: wait;
  opacity: .7;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

.field label span {
  color: var(--slate-2);
  letter-spacing: 0;
  text-transform: none;
}

.field--trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: .98rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--signal);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form__note {
  font-size: .86rem;
  color: var(--slate-2);
}

.form__status {
  min-height: 1.5em;
  margin: 0;
  font-size: .9rem;
  color: var(--slate-2);
}

.form__status.is-success {
  color: #176b3a;
}

.form__status.is-error {
  color: #9f2f2f;
}

/* ---------- footer ---------- */
.footer {
  background: var(--box);
  color: var(--box-slate);
  padding-block: clamp(52px, 6vw, 76px) 36px;
}

.footer a {
  color: var(--box-ink);
  text-decoration: none;
}

.footer a:hover {
  color: var(--signal-lit);
}

.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

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

.footer h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--box-slate);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: .94rem;
}

.footer__brand {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .22em;
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--box-rule);
  font-size: .82rem;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 9px 24px rgba(10, 20, 14, .26);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  background: #1eb958;
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 20, 14, .32);
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible,
.contact__whatsapp:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width:640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

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

  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- a11y ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- images in cases (added: SEO pass) ---------- */
.case__shot {
  position: relative;
}

.case__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- internal service links ---------- */
.svc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 38px;
}

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

.svc a {
  display: block;
  padding: 24px 0;
  text-decoration: none;
  border-top: 1px solid var(--rule);
  transition: padding-left .2s var(--ease);
}

.svc a:nth-child(odd) {
  padding-right: 28px;
}

.svc a:nth-child(even) {
  padding-left: 28px;
}

@media (min-width:701px) {
  .svc a:nth-child(even) {
    border-left: 1px solid var(--rule);
  }
}

@media (max-width:700px) {
  .svc a:nth-child(even) {
    padding-left: 0;
  }
}

.svc a:hover {
  padding-left: 12px;
}

@media (min-width:701px) {
  .svc a:nth-child(even):hover {
    padding-left: 40px;
  }
}

.svc strong {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.015em;
  display: block;
  margin-bottom: 5px;
}

.svc span {
  color: var(--slate);
  font-size: .94rem;
}

.svc a:hover strong {
  color: var(--signal);
}

/* ---------- related links (service pages) ---------- */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.related a {
  font-size: .92rem;
  text-decoration: none;
  color: var(--slate);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 9px 15px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.related a:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* ---------- breadcrumb ---------- */
.crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--slate-2);
  margin-bottom: 24px;
}

.crumb a {
  text-decoration: none;
  color: var(--slate-2);
}

.crumb a:hover {
  color: var(--signal);
}

/* ---------- interactive automation demo ---------- */
.demo-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.demo-teaser .lead {
  max-width: 50ch;
  margin-top: 22px;
}

.demo-teaser__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-2);
}

.demo-teaser__flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  font-size: .93rem;
}

.demo-teaser__flow li:last-child {
  border-bottom: 0;
}

.demo-teaser__flow span {
  color: var(--slate-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
}

.demo-teaser__flow .is-human {
  color: var(--ink);
  background: rgba(43, 84, 232, .08);
  box-shadow: inset 3px 0 0 var(--signal);
  font-weight: 600;
}

.demo-teaser__flow .is-human span {
  color: var(--signal);
}

@media (max-width:820px) {
  .demo-teaser {
    grid-template-columns: 1fr;
  }
}

/* ---------- operations workspace demo ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.demo-hero h1 {
  max-width: 17ch;
}

.demo-hero .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.demo-hero .hero__meta span {
  color: var(--slate);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .76rem;
  letter-spacing: .05em;
}

.demo-hero .hero__meta b {
  color: var(--ink);
  font-weight: 500;
}

#workspace {
  scroll-margin-top: 74px;
}

/* intro (dark band) */
.ws-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.ws-intro h2 {
  max-width: 20ch;
}

.ws-intro > div > p {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--box-slate);
}

.ws-intro__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ws-step;
  display: grid;
  gap: 12px;
}

.ws-intro__steps li {
  position: relative;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--box-rule);
  border-radius: 6px;
  background: var(--box-2);
  color: var(--box-ink);
  font-size: .92rem;
  counter-increment: ws-step;
}

.ws-intro__steps li::before {
  content: counter(ws-step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
}

/* band head */
.ws-band__head {
  max-width: 62ch;
  margin-bottom: 34px;
}

.ws-band__note {
  margin-top: 14px;
  color: var(--slate);
  font-size: .95rem;
}

/* ---- the app shell ---- */
.ws {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--box-rule);
  border-radius: 10px;
  background: var(--box);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .28);

  /* status tokens */
  --st-review-fg: #7a5200; --st-review-bg: #f7e6bf;
  --st-ok-fg: #0f6a3c;     --st-ok-bg: #d3eddc;
  --st-hold-fg: #8a2f2f;   --st-hold-bg: #f2dcdc;
  --st-muted-fg: #4c5661;  --st-muted-bg: #e5e9ee;
}

.ws__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #0d1116;
  border-bottom: 1px solid var(--box-rule);
}

.ws__dots {
  display: inline-flex;
  gap: 7px;
}

.ws__dots span {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--box-rule);
}

.ws__chrome-title {
  margin: 0;
  color: var(--box-ink);
  font-size: .84rem;
  font-weight: 600;
}

.ws__chrome-badge {
  margin: 0 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--box-rule);
  border-radius: 999px;
  color: var(--box-slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ws__frame {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 560px;
}

/* sidebar */
.ws__sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  background: var(--box);
  border-right: 1px solid var(--box-rule);
}

.ws__org {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 14px;
  border-bottom: 1px solid var(--box-rule);
}

.ws__org-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--signal);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: .82rem;
}

.ws__org-name,
.ws__user-name {
  display: flex;
  flex-direction: column;
  color: var(--box-ink);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.25;
}

.ws__org-name small,
.ws__user-name small {
  color: var(--box-slate);
  font-weight: 400;
  font-size: .72rem;
}

.ws__tablist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--box-slate);
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.ws__tab:hover {
  background: var(--box-2);
  color: var(--box-ink);
}

.ws__tab[aria-selected="true"] {
  background: rgba(43, 84, 232, .16);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--signal);
}

.ws__tab-ico {
  width: 18px;
  color: var(--box-slate);
  font-size: .9rem;
  text-align: center;
}

.ws__tab[aria-selected="true"] .ws__tab-ico {
  color: #9db4ff;
}

.ws__tab-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  text-align: center;
}

.ws__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--box-rule);
}

.ws__user-avatar {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--box-2);
  border: 1px solid var(--box-rule);
  color: var(--box-ink);
  font-weight: 600;
  font-size: .8rem;
}

/* main */
.ws__main {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  color: var(--ink);
  min-width: 0;
}

.ws__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.ws__topbar-title {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}

.ws__topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws__automation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slate);
  font-size: .8rem;
}

.ws__automation-dot,
.ws__stat-dot,
.ws__saved-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #17a05a;
  box-shadow: 0 0 0 3px rgba(23, 160, 90, .18);
}

.ws__reset {
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.ws__reset:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.ws__announce {
  margin: 0;
  padding: 0 20px;
  color: var(--signal);
  font-size: .85rem;
  font-weight: 600;
}

.ws__announce:empty {
  display: none;
}

.ws__views {
  min-width: 0;
}

.ws__view {
  padding: 22px 20px 28px;
}

.ws__view:focus {
  outline: none;
}

.ws__view-title {
  margin: 0;
  font-size: 1.28rem;
}

.ws__view-sub {
  margin: 6px 0 20px;
  color: var(--slate);
  font-size: .92rem;
}

.ws__view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* status chips */
.ws__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}

.ws__status--review { color: var(--st-review-fg); background: var(--st-review-bg); }
.ws__status--ok     { color: var(--st-ok-fg);     background: var(--st-ok-bg); }
.ws__status--hold   { color: var(--st-hold-fg);   background: var(--st-hold-bg); }
.ws__status--muted  { color: var(--st-muted-fg);  background: var(--st-muted-bg); }

.ws__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ws__badge--new {
  background: var(--signal);
  color: #fff;
}

.ws__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
}

.ws__pill--warn { color: var(--st-review-fg); background: var(--st-review-bg); }
.ws__pill--ok   { color: var(--st-ok-fg);     background: var(--st-ok-bg); }

.ws__btn-sm {
  padding: 8px 14px;
  font-size: .82rem;
}

/* overview stats */
.ws__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ws__stat {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

.ws__stat-label {
  display: block;
  color: var(--slate);
  font-size: .78rem;
}

.ws__stat-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  font-family: "Archivo", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.ws__stat-value--ok {
  font-size: 1.15rem;
  color: #0f6a3c;
}

.ws__stat-foot {
  display: block;
  color: var(--slate);
  font-size: .74rem;
}

/* attention block */
.ws__attention {
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

.ws__attention-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ws__attention-head h4 {
  margin: 0;
  font-size: 1rem;
}

.ws__attention-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: 7px;
  background: rgba(43, 84, 232, .05);
}

.ws__attention-name {
  margin: 6px 0 2px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.ws__attention-meta {
  margin: 0;
  color: var(--slate);
  font-size: .84rem;
}

/* leads table */
.ws__table-wrap {
  overflow-x: auto;
}

.ws__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.ws__table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.ws__table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.ws__row.is-new td {
  background: rgba(43, 84, 232, .05);
}

.ws__row.is-new td:first-child {
  box-shadow: inset 3px 0 0 var(--signal);
}

.ws__lead-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.ws__lead-link:hover {
  color: var(--signal);
  text-decoration: underline;
}

/* lead detail */
.ws__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.ws__back:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.ws__lead {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.ws__lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.ws__lead-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws__lead-avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
}

.ws__lead-name {
  margin: 0;
  font-size: 1.2rem;
}

.ws__lead-sub {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: .84rem;
}

.ws__lead-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ws__saved {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f6a3c;
  font-size: .8rem;
  font-weight: 600;
}

.ws__drawer-open {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--signal);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.ws__drawer-open:hover {
  border-color: var(--signal);
  background: rgba(43, 84, 232, .06);
}

.ws__lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: 18px;
  padding: 20px;
}

.ws__lead-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ws__card,
.ws__record {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

.ws__lead-col--side .ws__record {
  background: var(--paper-2);
}

.ws__card-label {
  margin: 0 0 10px;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ws__card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ws__quote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--signal-lit);
  background: var(--paper-2);
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  font-size: .95rem;
}

.ws__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}

.ws__fields div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws__fields dt {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ws__fields dd {
  margin: 0;
  font-weight: 600;
  font-size: .92rem;
}

.ws__qualify {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--st-ok-bg);
  color: var(--st-ok-fg);
  font-size: .86rem;
  font-weight: 600;
}

.ws__qualify-ico {
  font-weight: 700;
}

.ws__next {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(43, 84, 232, .1);
  color: var(--signal);
  font-size: .74rem;
  font-weight: 600;
}

.ws__reply {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: .92rem;
  line-height: 1.55;
  resize: vertical;
}

.ws__reply:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(43, 84, 232, .18);
  background: #fff;
}

/* record side */
.ws__record-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.ws__record-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ws__record-list dt {
  color: var(--slate);
  font-size: .8rem;
}

.ws__record-list dd {
  margin: 0;
  font-weight: 600;
  font-size: .85rem;
  text-align: right;
}

.ws__record-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: .8rem;
}

.ws__timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.ws__timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  color: var(--slate);
  font-size: .82rem;
}

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

.ws__timeline li::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--rule);
}

.ws__timeline li::after {
  content: "";
  position: absolute;
  left: 7px; top: 13px; bottom: 0;
  width: 1px;
  background: var(--rule);
}

.ws__timeline li:last-child::after {
  display: none;
}

.ws__timeline li.is-done::before {
  background: #17a05a;
  border-color: #17a05a;
}

.ws__timeline li.is-current::before {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(43, 84, 232, .18);
}

.ws__timeline li.is-current {
  color: var(--ink);
  font-weight: 600;
}

.ws__timeline span {
  display: inline-block;
  margin-right: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  color: var(--slate-2);
}

/* actions */
.ws__lead-actions {
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.ws__lead-actions-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ws__lead-actions-note {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: .82rem;
}

/* confirmation */
.ws__confirm {
  padding: 22px 20px;
  border-top: 1px solid var(--rule);
  background: var(--st-ok-bg);
}

.ws__confirm:focus {
  outline: none;
}

.ws__confirm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ws__confirm-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #17a05a;
  color: #fff;
  font-weight: 700;
}

.ws__confirm-ico--hold {
  background: var(--st-hold-fg);
}

.ws__confirm-title {
  margin: 0;
  font-size: 1.1rem;
}

.ws__confirm-sub {
  margin: 2px 0 0;
  color: var(--st-ok-fg);
  font-size: .86rem;
}

.ws__confirm-ico--hold ~ div .ws__confirm-sub {
  color: var(--st-hold-fg);
}

.ws__confirm-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ws__confirm-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
}

.ws__confirm-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: #0f6a3c;
  font-weight: 700;
}

.ws__confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* approvals */
.ws__approvals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ws__approval {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

.ws__approval-title {
  margin: 0;
  font-weight: 600;
  font-size: .95rem;
}

.ws__approval-meta {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: .82rem;
}

.ws__approval > div:first-child {
  flex: 1 1 auto;
  min-width: 160px;
}

.ws__approval-done {
  color: #0f6a3c;
  font-weight: 700;
}

/* activity feed */
.ws__feed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.ws__feed li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: .88rem;
}

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

.ws__feed-time {
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  color: var(--slate-2);
  min-width: 42px;
}

.ws__feed-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ws__feed-tag--auto {
  background: rgba(43, 84, 232, .12);
  color: var(--signal);
}

.ws__feed-tag--human {
  background: var(--st-muted-bg);
  color: var(--st-muted-fg);
}

/* settings */
.ws__settings {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ws__settings li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

.ws__setting-name {
  margin: 0;
  font-weight: 600;
  font-size: .92rem;
}

.ws__setting-desc {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: .82rem;
}

.ws__toggle {
  flex: none;
  padding: 5px 12px 5px 26px;
  position: relative;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ws__toggle.is-on {
  background: var(--st-ok-bg);
  color: var(--st-ok-fg);
}

.ws__toggle.is-on::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 999px;
  background: #17a05a;
}

.ws__ownership {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  color: var(--slate);
  font-size: .86rem;
}

/* drawer */
.ws__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 12, .5);
  z-index: 5;
}

.ws__drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 90%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--box-2);
  color: var(--box-ink);
  border-left: 1px solid var(--box-rule);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  overflow-y: auto;
}

.ws[data-drawer="open"] .ws__drawer {
  transform: translateX(0);
}

.ws__drawer .ws__card-label {
  color: var(--box-slate);
}

.ws__drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ws__drawer-title {
  margin: 4px 0 0;
  font-size: 1.1rem;
  color: #fff;
}

.ws__drawer-close {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--box-rule);
  border-radius: 7px;
  background: transparent;
  color: var(--box-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.ws__drawer-close:hover {
  background: var(--box);
}

.ws__stages {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.ws__stages li {
  position: relative;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--box-rule);
  border-radius: 7px;
  background: var(--box);
}

.ws__stages li strong {
  display: block;
  color: var(--box-ink);
  font-size: .9rem;
}

.ws__stages li span {
  color: var(--box-slate);
  font-size: .78rem;
}

.ws__stages li::before {
  content: "✓";
  position: absolute;
  left: 12px; top: 12px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: .7rem;
  background: #17a05a;
  color: #fff;
}

.ws__stages li.is-pending::before {
  content: "";
  background: transparent;
  border: 2px dashed var(--box-slate);
}

.ws__stages li.is-pending strong {
  color: var(--box-slate);
}

.ws__drawer-foot {
  margin: 16px 0 0;
  color: var(--box-slate);
  font-size: .8rem;
}

/* connection band */
.ws-link__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.ws-link__list div {
  display: grid;
  grid-template-columns: minmax(120px, .5fr) 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.ws-link__list div:last-child {
  border-bottom: 0;
}

.ws-link__list dt {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ws-link__list dd {
  margin: 0;
  font-weight: 600;
}

/* examples band (dark) */
.ws-examples__lead {
  max-width: 60ch;
  margin: 14px 0 32px;
  color: var(--box-slate);
}

.ws-examples {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.ws-examples li {
  padding: 16px 18px;
  border: 1px solid var(--box-rule);
  border-radius: 8px;
  background: var(--box-2);
}

.ws-examples strong {
  display: block;
  color: var(--box-ink);
  font-family: "Archivo", sans-serif;
  font-size: 1.05rem;
}

.ws-examples span {
  color: var(--box-slate);
  font-size: .85rem;
}

/* cta */
.demo-cta h2 {
  max-width: 20ch;
}

.demo-cta .lead {
  max-width: 60ch;
  margin-top: 18px;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .ws-intro {
    grid-template-columns: 1fr;
  }
  .ws__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ws__lead-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ws__frame {
    grid-template-columns: 1fr;
  }
  .ws__sidebar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--box-rule);
    overflow-x: auto;
  }
  .ws__org,
  .ws__user {
    display: none;
  }
  .ws__tablist {
    flex-direction: row;
    gap: 6px;
  }
  .ws__tab {
    white-space: nowrap;
  }
  .ws__tab[aria-selected="true"] {
    box-shadow: inset 0 -2px 0 var(--signal);
  }
}

/* ==========================================================================
   Approved editorial system — service, demo and error pages
   ========================================================================== */

.site-reference {
  --paper: #f4f4f1;
  --paper-2: #fafaf8;
  --rule: #d9d9d4;
  --ink: #161616;
  --slate: #686a66;
  --slate-2: #8c8d88;
  --box: #151515;
  --box-2: #202020;
  --box-rule: #383838;
  --box-ink: #f4f4f1;
  --box-slate: #a5a6a2;
  --signal: #214ee5;
  --signal-lit: #214ee5;
  --maxw: 1280px;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, .025) 1px, transparent 1px) 50% 0 / min(14vw, 176px) 100%,
    var(--paper);
}

.site-reference .nav {
  background: rgba(244, 244, 241, .92);
  backdrop-filter: saturate(120%) blur(14px);
}

.site-reference .nav__brand {
  letter-spacing: .18em;
}

.site-reference .nav__links a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-reference .btn {
  border-radius: 0;
}

.site-reference .hero {
  min-height: min(760px, calc(100vh - 73px));
  padding-block: clamp(72px, 9vw, 132px);
}

.site-reference.site-service .hero,
.site-reference.site-error .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(44px, 8vw, 120px);
  align-items: end;
}

.site-reference .crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(48px, 8vw, 90px);
  color: var(--slate-2);
  text-transform: uppercase;
}

.site-reference .crumb::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.site-reference.site-service .hero .crumb,
.site-reference.site-error .hero .crumb {
  grid-column: 1 / -1;
  align-self: start;
}

.site-reference .hero h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 500;
  font-stretch: 112%;
  line-height: .9;
  letter-spacing: -.06em;
}

.site-reference.site-service .hero h1,
.site-reference.site-error .hero h1 {
  grid-column: 1;
  grid-row: 2 / span 2;
}

.site-reference.site-service .hero .lead,
.site-reference.site-error .hero .lead {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
}

.site-reference.site-service .hero .hero__cta,
.site-reference.site-error .hero .related {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
}

.site-reference .band {
  padding-block: clamp(84px, 10vw, 144px);
  background: transparent;
}

.site-reference .band--dark {
  background: var(--box);
  color: var(--box-ink);
}

.site-reference .eyebrow {
  gap: 12px;
  margin-bottom: 34px;
  color: var(--ink);
}

.site-reference .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.site-reference .eyebrow::after {
  display: none;
}

.site-reference .band--dark .eyebrow,
.site-reference .band--dark h2 {
  color: #fff;
}

.site-reference .band--dark .eyebrow::before {
  background: #fff;
}

.site-reference .band h2 {
  max-width: 19ch;
  font-size: clamp(2.2rem, 4.5vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -.05em;
}

.site-reference .failures {
  counter-reset: use-cases;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(44px, 7vw, 80px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.site-reference .failure {
  counter-increment: use-cases;
  min-height: 230px;
  display: block;
  padding: 72px clamp(26px, 4vw, 48px) 34px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 248, .55);
}

.site-reference .failure::before {
  content: "0" counter(use-cases);
  top: 24px;
  bottom: auto;
  left: clamp(26px, 4vw, 48px);
  width: auto;
  height: auto;
  background: none;
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .08em;
}

.site-reference .failure:hover::before {
  background: none;
  color: var(--signal);
}

.site-reference .failure h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.site-reference .failure p {
  color: var(--slate);
}

.site-reference .deliverables {
  counter-reset: delivery;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(44px, 7vw, 80px) !important;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.site-reference .deliverable {
  counter-increment: delivery;
  position: relative;
  min-height: 230px;
  display: block;
  padding: 72px clamp(26px, 4vw, 48px) 34px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at calc(100% - 42px) 42px, transparent 0 25px, rgba(22,22,22,.08) 26px 27px, transparent 28px),
    rgba(250, 250, 248, .55);
}

.site-reference .deliverable::before {
  content: "0" counter(delivery);
  position: absolute;
  top: 24px;
  left: clamp(26px, 4vw, 48px);
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
}

.site-reference .deliverable h3 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.site-reference .deliverable p {
  color: var(--slate);
}

.site-reference .cases {
  margin-top: clamp(44px, 7vw, 80px) !important;
}

.site-reference .case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  min-height: 430px;
  border-radius: 0;
  background: rgba(250, 250, 248, .65);
}

.site-reference .case__shot {
  border-right: 1px solid var(--rule);
  border-bottom: 0;
}

.site-reference .case__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    rgba(250, 250, 248, .84);
  background-size: 52px 52px;
}

.site-reference .case__body:only-child {
  grid-column: 1 / -1;
}

.site-reference .case__tags span,
.site-reference .related a {
  border-radius: 0;
  background: var(--paper-2);
}

.site-reference .case h3 {
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.05em;
}

.site-reference .case__stack {
  background: rgba(250, 250, 248, .8);
}

.site-reference .faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 68px) !important;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.site-reference .faq details,
.site-reference .faq details:last-of-type {
  min-height: 118px;
  padding-inline: 24px;
  border-top: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 248, .5);
}

.site-reference .related {
  gap: 0;
  margin-top: clamp(40px, 6vw, 68px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.site-reference .related a {
  flex: 1 1 250px;
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-reference .related a:hover {
  background: var(--ink);
  color: #fff;
}

.site-reference .service-pricing {
  background: #e9e9e5;
}

.site-reference .service-pricing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  column-gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.site-reference .service-pricing .eyebrow {
  grid-column: 1 / -1;
}

.site-reference .service-pricing h2 {
  grid-column: 1;
  grid-row: 2 / span 2;
}

.site-reference .service-pricing .lead,
.site-reference .service-pricing .hero__cta {
  grid-column: 2;
}

.site-reference .service-pricing .lead {
  margin-top: 0 !important;
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.site-reference .service-pricing .hero__cta {
  margin-top: 18px !important;
}

.site-reference #contact:not(.band--dark) {
  background: #e9e9e5;
}

.site-reference .contact-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  margin-top: clamp(42px, 6vw, 72px);
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.site-reference .field input,
.site-reference .field textarea,
.site-reference .field select {
  border-width: 0 0 1px;
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}

.site-reference .footer {
  padding-top: clamp(58px, 8vw, 100px);
  background: var(--paper-2);
  color: var(--slate);
  border-top: 1px solid var(--rule);
}

.site-reference .footer a,
.site-reference .footer__brand {
  color: var(--ink);
}

.site-reference .footer h3 {
  color: var(--slate-2);
}

.site-reference .footer__bottom {
  border-color: var(--rule);
}

/* Interactive demo within the same editorial shell. */
.site-reference.site-demo .demo-hero {
  min-height: auto;
  padding-bottom: clamp(78px, 10vw, 132px);
}

.site-reference.site-demo .demo-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
}

.site-reference.site-demo .demo-hero .lead {
  max-width: 42ch;
}

.site-reference .hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(52px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.site-reference .hero__meta span {
  min-height: 100px;
  padding: 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 248, .55);
}

.site-reference .ops-intro,
.site-reference .ops-explainer {
  gap: clamp(44px, 8vw, 120px);
}

.site-reference .ops-intro__list {
  border-color: var(--box-rule);
}

.site-reference .ops-intro__list li {
  min-height: 92px;
  border-color: var(--box-rule);
}

.site-reference .ops {
  border-radius: 0;
  box-shadow: 0 28px 70px rgba(22, 22, 22, .12);
}

.site-reference .ops__chrome,
.site-reference .ops__app,
.site-reference .ops__stat,
.site-reference .ops__panel,
.site-reference .ops__detail-panel,
.site-reference .ops__scenario,
.site-reference .ops__action,
.site-reference .ops__back,
.site-reference .ops__notice,
.site-reference .ops__detail-panel textarea {
  border-radius: 0;
}

.site-reference .ops-use-cases ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--box-rule);
  border-left: 1px solid var(--box-rule);
}

.site-reference .ops-use-cases li {
  min-height: 130px;
  padding: 28px 20px;
  border-right: 1px solid var(--box-rule);
  border-bottom: 1px solid var(--box-rule);
}

.site-reference .demo-cta {
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

@media (max-width: 900px) {
  .site-reference.site-service .hero,
  .site-reference.site-error .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .site-reference.site-service .hero > *,
  .site-reference.site-error .hero > * {
    grid-column: 1;
    grid-row: auto;
  }

  .site-reference.site-service .hero .lead,
  .site-reference.site-error .hero .lead {
    margin-top: 30px;
  }

  .site-reference .case {
    grid-template-columns: 1fr;
  }

  .site-reference .case__shot {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .site-reference .ops-use-cases ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-reference .hero {
    min-height: auto;
  }

  .site-reference .hero h1,
  .site-reference.site-demo .demo-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .site-reference .failures,
  .site-reference .deliverables,
  .site-reference .faq,
  .site-reference .contact-grid,
  .site-reference .hero__meta,
  .site-reference .ops-use-cases ul {
    grid-template-columns: 1fr;
  }

  .site-reference .service-pricing .wrap {
    grid-template-columns: 1fr;
  }

  .site-reference .service-pricing .wrap > * {
    grid-column: 1;
    grid-row: auto;
  }

  .site-reference .service-pricing .lead {
    margin-top: 32px !important;
  }

  .site-reference .failure,
  .site-reference .deliverable {
    min-height: 190px;
  }

  .site-reference .faq details {
    min-height: auto;
  }

  .site-reference .contact-grid {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .ws__table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ws__table,
  .ws__table tbody,
  .ws__table tr,
  .ws__table td {
    display: block;
    width: 100%;
  }
  .ws__table tr {
    margin-bottom: 12px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .ws__row.is-new td:first-child {
    box-shadow: none;
  }
  .ws__row.is-new {
    box-shadow: inset 3px 0 0 var(--signal);
  }
  .ws__table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    text-align: right;
  }
  .ws__table td:last-child {
    border-bottom: 0;
  }
  .ws__table td::before {
    content: attr(data-label);
    color: var(--slate);
    font-family: "IBM Plex Mono", monospace;
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
  }
  .ws__lead-head-actions {
    align-items: flex-start;
    width: 100%;
  }
  .ws__fields {
    grid-template-columns: 1fr;
  }
  .ws__drawer {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .ws__stats {
    grid-template-columns: 1fr;
  }
  .ws__chrome-title {
    display: none;
  }
  .ws__view {
    padding: 18px 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws__drawer {
    transition: none;
  }
  .ws__automation-dot,
  .ws__stat-dot,
  .ws__saved-dot,
  .ws__timeline li.is-current::before {
    box-shadow: none;
  }
}

/* ---------- operations workspace demo v2 ---------- */
.ops-intro,
.ops-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: start;
}

.ops-intro > div > p {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--box-slate);
}

.ops-intro__list,
.ops-use-cases ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ops-intro__list {
  border-top: 1px solid var(--box-rule);
}

.ops-intro__list li {
  padding: 16px 0;
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--box-rule);
}

.ops-intro__list strong {
  color: var(--box-ink);
  font-weight: 600;
}

.ops-intro__list span {
  color: var(--box-slate);
  font-size: .9rem;
}

.ops-band__head {
  max-width: 760px;
  margin-bottom: 42px;
}

.ops-band__head > p:last-child {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--slate);
}

.ops {
  overflow: hidden;
  min-height: 660px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 20, 24, .12);
  color: #171A1F;
  font-size: 14px;
  line-height: 1.45;
}

.ops button,
.ops textarea {
  font: inherit;
}

.ops button {
  cursor: pointer;
}

.ops h3,
.ops h4,
.ops p {
  margin: 0;
}

.ops h3,
.ops h4 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0;
}

.ops h3 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.ops h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.ops__chrome {
  min-height: 58px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #E2E5E8;
  background: #fff;
}

.ops__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ops__brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #171A1F;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .75rem;
}

.ops__safe,
.ops__scenario-bar > span {
  color: #69727C;
  font-size: .82rem;
}

.ops__app {
  min-height: 602px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
}

.ops__sidebar {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  background: #171A1F;
  color: #F4F5F6;
}

.ops__sidebar-label {
  padding: 0 10px 10px;
  color: #8D97A2;
  font-size: .8rem;
}

.ops__nav {
  display: grid;
  gap: 4px;
}

.ops__nav-button {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #A7AFB8;
  text-align: left;
}

.ops__nav-button[aria-current="page"] {
  background: #2B3037;
  color: #fff;
}

.ops__sidebar-note {
  margin-top: auto;
  padding: 15px 10px 0;
  border-top: 1px solid #343A42;
  color: #8D97A2;
  font-size: .78rem;
}

.ops__main {
  min-width: 0;
  padding: 24px;
  background: #F3F4F5;
}

.ops__scenario-bar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ops__scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops__scenario,
.ops__action,
.ops__back {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #D9DDE1;
  border-radius: 7px;
  background: #fff;
  color: #424A53;
}

.ops__scenario[aria-pressed="true"],
.ops__action--primary {
  border-color: #171A1F;
  background: #171A1F;
  color: #fff;
}

.ops__notice {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #EAF6EE;
  color: #17643A;
  font-weight: 600;
}

.ops__heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ops__heading p,
.ops__record-heading p {
  margin-top: 4px;
  color: #69727C;
}

.ops__automation {
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #EAF6EE;
  color: #17643A;
  white-space: nowrap;
}

.ops__automation i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ops__stats {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ops__stat,
.ops__panel,
.ops__detail-panel {
  border: 1px solid #DDE1E4;
  border-radius: 10px;
  background: #fff;
}

.ops__stat {
  padding: 14px;
}

.ops__stat span {
  display: block;
  color: #69727C;
  font-size: .82rem;
}

.ops__stat strong {
  display: block;
  margin-top: 4px;
  color: #171A1F;
  font-size: 1.65rem;
  line-height: 1.1;
}

.ops__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .85fr);
  gap: 12px;
  align-items: start;
}

.ops__panel {
  overflow: hidden;
}

.ops__panel > header {
  min-height: 50px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #E2E5E8;
}

.ops__panel > header > span {
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #F1F2F3;
  color: #69727C;
  text-align: center;
}

.ops__item {
  padding: 13px 14px;
  border-bottom: 1px solid #E2E5E8;
}

.ops__item:last-child {
  border-bottom: 0;
}

.ops__item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops__item-top p,
.ops__activity p {
  margin-top: 2px;
  color: #69727C;
}

.ops__tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops__tag {
  padding: 4px 7px;
  border-radius: 6px;
  background: #F1F2F3;
  color: #69727C;
  font-size: .78rem;
  line-height: 1.25;
}

.ops__tag--attention {
  background: #FFF1DF;
  color: #8A4B08;
}

.ops__tag--done {
  background: #EAF6EE;
  color: #17643A;
}

.ops__activity {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  border-bottom: 1px solid #E2E5E8;
}

.ops__activity:last-child {
  border-bottom: 0;
}

.ops__activity > i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--signal);
}

.ops__activity time {
  color: #69727C;
  font-size: .78rem;
  white-space: nowrap;
}

.ops__back {
  margin-bottom: 16px;
}

.ops__record-heading {
  margin-bottom: 18px;
}

.ops__record-heading > span {
  color: #69727C;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  text-transform: uppercase;
}

.ops__detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  gap: 12px;
  align-items: start;
}

.ops__detail-column {
  display: grid;
  gap: 12px;
}

.ops__detail-panel {
  padding: 15px;
}

.ops__detail-panel h4,
.ops__detail-panel label {
  display: block;
  margin-bottom: 11px;
  color: #171A1F;
  font-weight: 600;
}

.ops__detail-panel > p:not(.ops__message) {
  margin-bottom: 12px;
  color: #69727C;
}

.ops__message {
  padding: 13px;
  border-left: 3px solid var(--signal);
  background: #F7F8F9;
  white-space: pre-line;
}

.ops__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops__field span {
  display: block;
  color: #69727C;
  font-size: .8rem;
}

.ops__field strong {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

.ops__detail-panel textarea {
  width: 100%;
  min-height: 120px;
  padding: 11px;
  resize: vertical;
  border: 1px solid #D9DDE1;
  border-radius: 7px;
  background: #F8F9FA;
  color: #171A1F;
  line-height: 1.45;
}

.ops__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ops__checks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ops__checks li span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #EAF6EE;
  color: #17643A;
  font-size: .72rem;
}

.ops__decisions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops__noscript {
  padding: 20px;
  border: 1px solid #D9DDE1;
  background: #fff;
}

.ops-explainer .lead {
  margin-top: 20px;
}

.ops-explainer__list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.ops-explainer__list > div {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.ops-explainer__list dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ops-explainer__list dd {
  margin: 0;
  color: var(--slate);
}

.ops-use-cases h2 {
  max-width: 24ch;
}

.ops-use-cases ul {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--box-rule);
  border-left: 1px solid var(--box-rule);
}

.ops-use-cases li {
  min-height: 86px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  border-right: 1px solid var(--box-rule);
  border-bottom: 1px solid var(--box-rule);
  color: var(--box-ink);
}

@media (max-width: 900px) {
  .ops-intro,
  .ops-explainer {
    grid-template-columns: 1fr;
  }

  .ops__columns,
  .ops__detail-grid {
    grid-template-columns: 1fr;
  }

  .ops-use-cases ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ops {
    min-height: 0;
  }

  .ops__app {
    min-height: 0;
    display: block;
  }

  .ops__sidebar {
    padding: 8px;
    display: block;
  }

  .ops__sidebar-label,
  .ops__sidebar-note {
    display: none;
  }

  .ops__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops__nav-button {
    justify-content: center;
    text-align: center;
  }

  .ops__main {
    padding: 18px 14px 22px;
  }

  .ops__scenario-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .ops__scenarios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops__scenario {
    padding-inline: 7px;
  }
}

@media (max-width: 540px) {
  .ops__chrome {
    align-items: flex-start;
  }

  .ops__safe {
    max-width: 150px;
    text-align: right;
  }

  .ops__heading {
    display: block;
  }

  .ops__automation {
    margin-top: 10px;
  }

  .ops__scenarios,
  .ops__stats {
    grid-template-columns: 1fr;
  }

  .ops__scenario {
    width: 100%;
    text-align: left;
  }

  .ops__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .ops__stat strong {
    margin-top: 0;
    font-size: 1.35rem;
  }

  .ops__item-top {
    display: grid;
  }

  .ops__item-top .ops__action {
    justify-self: start;
  }

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

  .ops__decisions {
    display: grid;
  }

  .ops-use-cases ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .ops__brand > span:last-child {
    display: none;
  }

  .ops__nav-button {
    padding-inline: 4px;
    gap: 5px;
    font-size: .78rem;
  }

  .ops-explainer__list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-stage {
    animation: none;
    opacity: 0;
    transform: scale(.8);
  }

  .dashboard-stage,
  .dashboard-stage__heading,
  .dashboard-stage__metrics article,
  .dashboard-stage__queue {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- homepage reference direction: complete system ---------- */
.home-reference .band {
  padding-block: clamp(84px, 10vw, 144px);
  background: transparent;
}

.home-reference .band > .wrap {
  position: relative;
}

.home-reference .eyebrow {
  gap: 12px;
  margin-bottom: 34px;
  color: var(--ink);
}

.home-reference .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.home-reference .eyebrow::after {
  display: none;
}

.home-reference .band h2 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.05em;
}

.home-reference .work-showcase {
  margin-top: clamp(38px, 6vw, 74px);
  border-radius: 0;
  background: rgba(250, 250, 248, .7);
}

.home-reference .work-tabs {
  counter-reset: work-tabs;
  background: var(--paper-2);
}

.home-reference .work-tab {
  counter-increment: work-tabs;
  min-height: 94px;
  padding-top: 40px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-reference .work-tab::before {
  content: "0" counter(work-tabs);
  position: absolute;
  top: 14px;
  left: clamp(16px, 2.8vw, 30px);
  color: var(--slate-2);
}

.home-reference .work-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.home-reference .work-tab.is-active::before {
  color: #aeb0aa;
}

.home-reference .work-tab.is-active::after {
  background: var(--signal);
}

.home-reference .work-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr);
  background: transparent;
}

.home-reference .case-gallery {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
}

.home-reference .case-gallery__viewport,
.home-reference .case-gallery__media {
  border-radius: 0;
}

.home-reference img.case-gallery__media {
  height: auto;
  /* aspect-ratio: auto; */
  object-fit: contain;
}

.home-reference .case-gallery__controls {
  min-height: 52px;
}

.home-reference .work-panel .case__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 52px);
  border-top: 0;
  border-left: 1px solid var(--rule);
  background: #ecece8;
}

.home-reference .case__body h3 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.04em;
}

.home-reference .case__body p {
  font-size: .94rem;
  line-height: 1.55;
}

.home-reference .case__tags span,
.home-reference .reference-hero__filters span {
  border-radius: 0;
}

.home-reference .service-grid {
  counter-reset: services;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(38px, 6vw, 74px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.home-reference .service-card {
  counter-increment: services;
  position: relative;
  min-height: 300px;
  padding: 74px 24px 28px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(250, 250, 248, .62);
  transition: color .24s var(--ease), background .24s var(--ease);
}

.home-reference .service-card::before {
  content: "0" counter(services);
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  color: var(--slate-2);
}

.home-reference .service-card:hover {
  border-color: var(--rule);
  background: var(--ink);
  color: #fff;
  transform: none;
}

.home-reference .service-card:hover p,
.home-reference .service-card:hover .service-card__meta {
  color: #afb0ac;
}

.home-reference .service-card__meta {
  min-height: 34px;
  margin-bottom: 34px;
  color: var(--slate-2);
  font-size: .66rem;
  text-transform: uppercase;
}

.home-reference .service-card h3 {
  margin-top: auto;
  font-weight: 500;
}

.home-reference .service-card p {
  font-size: .9rem;
  line-height: 1.5;
}

.reference-pricing {
  margin-top: clamp(74px, 9vw, 116px);
  border-top: 1px solid var(--rule);
}

.reference-price {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  gap: 40px;
  align-items: end;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--rule);
  border-top: 0;
  background: rgba(250, 250, 248, .55);
}

.reference-price > div {
  display: grid;
  gap: 10px;
}

.reference-price > div:last-child {
  justify-items: start;
}

.reference-price span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.reference-price h3,
.reference-price p {
  margin: 0;
}

.reference-price h3 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 500;
}

.reference-price p {
  max-width: 56ch;
  color: var(--slate);
}

.reference-price strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -.06em;
}

.reference-price--featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.reference-price--featured p,
.reference-price--featured span {
  color: #a8a9a5;
}

.home-reference #how.band--dark {
  background: #e8e8e4;
  color: var(--ink);
}

.home-reference #how.band--dark h2,
.home-reference #how .deliverable h3 {
  color: var(--ink);
}

.home-reference #how .deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(44px, 7vw, 84px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.home-reference #how .deliverable {
  min-height: 230px;
  display: block;
  padding: clamp(28px, 4vw, 48px);
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at calc(100% - 44px) 44px, transparent 0 28px, rgba(22,22,22,.09) 29px 30px, transparent 31px),
    linear-gradient(135deg, transparent 0 70%, rgba(22,22,22,.035) 70% 70.5%, transparent 70.5%);
}

.home-reference #how .deliverable:first-child {
  grid-column: 1 / -1;
  min-height: 280px;
}

.home-reference #how .deliverable h3 {
  margin-bottom: 42px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
}

.home-reference #how .deliverable p {
  max-width: 48ch;
  color: var(--slate);
}

.reference-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 86px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.reference-metrics article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.reference-metrics span,
.reference-metrics p {
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .66rem;
  line-height: 1.45;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.reference-metrics strong {
  margin-top: auto;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.07em;
}

.reference-metrics p {
  margin-top: 14px;
}

.home-reference .reference-demo-band {
  background: var(--ink);
  color: #fff;
  border-top-color: var(--ink);
}

.home-reference .reference-demo-band .eyebrow,
.home-reference .reference-demo-band h2 {
  color: #fff;
}

.home-reference .reference-demo-band .eyebrow::before {
  background: #fff;
}

.home-reference .reference-demo-band .lead {
  color: #aaa;
}

.home-reference .reference-demo-band .demo-teaser__flow {
  border-color: #d6d7d2;
  background: #f8f8f6;
}

.home-reference .reference-demo-band .demo-teaser__flow li {
  border-color: #d6d7d2;
  color: #353634;
  font-weight: 500;
}

.home-reference .reference-demo-band .demo-teaser__flow span {
  color: #777974;
}

.home-reference .reference-demo-band .demo-teaser__flow .is-human {
  background: var(--signal);
  color: #fff;
  box-shadow: none;
}

.home-reference .reference-demo-band .demo-teaser__flow .is-human span {
  color: #fff;
}

.home-reference #fit .fit,
.home-reference #about .grid-2,
.home-reference #contact .contact-grid {
  margin-top: clamp(42px, 6vw, 72px) !important;
}

.home-reference .fit__col {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--rule);
  background: rgba(250, 250, 248, .55);
}

.home-reference #about .grid-2 {
  grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
}

.home-reference .faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.home-reference .faq details,
.home-reference .faq details:last-of-type {
  min-height: 112px;
  padding-inline: 24px;
  border-top: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 248, .45);
}

.home-reference #contact {
  background: #e9e9e5;
}

.home-reference .contact-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.home-reference .field input,
.home-reference .field textarea,
.home-reference .field select {
  border-width: 0 0 1px;
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}

.home-reference .footer {
  padding-top: clamp(58px, 9vw, 120px);
  background: var(--paper-2);
  color: var(--slate);
}

.home-reference .reference-footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: clamp(54px, 8vw, 104px);
  color: var(--ink);
  text-decoration: none;
}

.reference-footer-cta > span {
  display: grid;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.reference-footer-cta small {
  margin: 0 0 24px 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reference-footer-cta b {
  width: clamp(62px, 8vw, 92px);
  aspect-ratio: 1;
  display: grid;
  flex: none;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 400;
}

.home-reference .footer__grid {
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.home-reference .footer a,
.home-reference .footer__brand {
  color: var(--ink);
}

.home-reference .footer h3 {
  color: var(--slate-2);
}

.home-reference .footer__bottom {
  border-color: var(--rule);
}

@media (max-width: 980px) {
  .home-reference .service-grid,
  .reference-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-reference .work-panel {
    grid-template-columns: 1fr;
  }

  .home-reference .work-panel .case__body {
    min-height: 300px;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .home-reference .service-grid,
  .reference-metrics,
  .home-reference #how .deliverables,
  .home-reference .faq {
    grid-template-columns: 1fr;
  }

  .home-reference #how .deliverable:first-child {
    grid-column: auto;
  }

  .reference-price,
  .home-reference #about .grid-2,
  .home-reference .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-reference #about .about__photo {
    max-width: 420px;
  }

  .reference-price {
    gap: 28px;
  }

  .reference-metrics article {
    min-height: 190px;
  }

  .home-reference .faq details {
    min-height: auto;
  }

  .reference-footer-cta > span {
    font-size: clamp(3.6rem, 18vw, 7rem);
  }
}

/* ---------- notes ---------- */
.notes-hero h1 {
  max-width: 17ch;
}

.notes-hero .lead {
  max-width: 43ch;
}

.notes-list-head {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.notes-list-head .eyebrow {
  flex: 1;
  margin-bottom: 0;
}

.notes-list-head > p:last-child {
  max-width: 38ch;
  margin: 0;
  color: var(--slate);
}

.notes-list {
  border-top: 1px solid var(--rule);
}

.note-row {
  min-height: 230px;
  padding: clamp(28px, 5vw, 58px) 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 48px;
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
  border-bottom: 1px solid var(--rule);
}

.note-row__meta {
  display: grid;
  gap: 7px;
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.note-row__body h2 {
  max-width: 24ch;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.note-row__body h2 a {
  text-decoration: none;
}

.note-row__body h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.note-row__body p {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--slate);
}

.note-row__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.35rem;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.note-row__arrow:hover {
  background: var(--ink);
  color: #fff;
}

.notes-cta h2 {
  max-width: 22ch;
}

.notes-cta > p:not(.eyebrow) {
  max-width: 56ch;
  margin: 20px 0 30px;
  color: var(--box-slate);
}

.note-hero h1 {
  max-width: 19ch;
}

.note-hero .lead {
  max-width: 54ch;
}

.note-byline {
  margin-top: 44px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--rule);
  color: var(--slate-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.note-body-band {
  background: var(--paper-2);
}

.note-layout {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 720px);
  gap: clamp(54px, 9vw, 120px);
  justify-content: center;
  align-items: start;
}

.note-essay {
  max-width: 860px;
}

.note-aside {
  padding-top: 4px;
  color: var(--slate);
}

.note-aside > p:nth-child(2) {
  margin-top: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.note-aside nav {
  margin-top: 30px;
  display: grid;
  border-top: 1px solid var(--rule);
}

.note-aside nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  font-size: .82rem;
  line-height: 1.35;
  text-decoration: none;
}

.note-aside nav a:hover {
  color: var(--ink);
}

.note-content {
  min-width: 0;
}

.note-content p,
.note-content li {
  line-height: 1.72;
}

.note-opening {
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  line-height: 1.55 !important;
}

.note-rule {
  margin: 38px 0 62px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--box);
  color: var(--box-ink);
}

.note-rule span,
.note-example > span {
  display: block;
  margin-bottom: 13px;
  color: var(--box-slate);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.note-rule p {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.note-content section {
  scroll-margin-top: 90px;
  margin-top: 66px;
}

.note-content section:first-of-type {
  margin-top: 0;
}

.note-content h2 {
  margin-bottom: 24px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.note-content h3 {
  margin: 34px 0 10px;
  font-size: 1.18rem;
}

.note-content p + p {
  margin-top: 18px;
}

.note-checklist,
.note-questions {
  margin: 0;
  padding: 0;
}

.note-checklist {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.note-checklist li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--rule);
}

.note-checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
}

.note-checklist + p {
  margin-top: 25px;
}

.note-example {
  padding: 26px 0 30px;
  border-top: 1px solid var(--rule);
}

.note-example:last-child {
  border-bottom: 1px solid var(--rule);
}

.note-example > span {
  margin-bottom: 9px;
  color: var(--signal);
}

.note-example h3 {
  margin: 0 0 10px;
}

.note-example p {
  color: var(--slate);
}

.note-numbered {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  counter-reset: note-step;
  border-top: 1px solid var(--rule);
}

.note-numbered li {
  counter-increment: note-step;
  padding: 15px 0;
  display: grid;
  grid-template-columns: 34px 130px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--rule);
}

.note-numbered li::before {
  content: "0" counter(note-step);
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
}

.note-numbered strong {
  font-weight: 600;
}

.note-numbered span {
  color: var(--slate);
}

.note-cost {
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.note-cost h2 {
  max-width: 18ch;
}

.note-questions {
  margin-left: 1.2em;
}

.note-questions li {
  padding: 8px 0 8px 8px;
}

.note-questions li::marker {
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
}

.note-questions + p {
  margin-top: 25px;
}

.note-conclusion {
  margin-top: 66px;
  padding-top: 30px;
  border-top: 3px solid var(--ink);
}

.note-conclusion p {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.note-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.note-next h2 {
  max-width: 18ch;
}

.note-next p:not(.eyebrow) {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--box-slate);
}

.site-reference.site-notes .note-next-band {
  background: #151515;
  color: #f4f4f1;
}

.site-reference.site-notes .note-next-band .eyebrow,
.site-reference.site-notes .note-next-band h2 {
  color: #fff;
}

.site-reference.site-notes .note-next-band .eyebrow::before {
  background: #fff;
}

.site-reference.site-notes .note-next-band .note-next p:not(.eyebrow) {
  color: #d0d2ce;
}

.site-reference.site-notes .note-next-band .btn--ghost {
  border-color: #8d8f8a;
  color: #f4f4f1;
}

.site-reference.site-notes .note-next-band .btn--ghost:hover {
  border-color: var(--signal);
  color: #fff;
}

@media (max-width: 820px) {
  .note-row {
    grid-template-columns: 130px minmax(0, 1fr) 46px;
    gap: 24px;
  }

  .note-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .note-aside {
    max-width: 720px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
  }

  .note-aside nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .note-next {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .notes-list-head {
    display: block;
  }

  .notes-list-head .eyebrow {
    margin-bottom: 20px;
  }

  .note-row {
    grid-template-columns: 1fr 44px;
  }

  .note-row__meta {
    grid-column: 1 / -1;
  }

  .note-row__body {
    grid-column: 1;
  }

  .note-row__arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .note-aside nav {
    grid-template-columns: 1fr;
  }

  .note-numbered li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .note-numbered span {
    grid-column: 2;
  }
}
