/* Interaction-led motion and the Compare Finance architecture walkthrough. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 160ms ease-out both page-out;
}
::view-transition-new(root) {
  animation: 260ms ease-out both page-in;
}
@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.hero-copy,
.stack-explorer {
  animation: none;
}
.reading-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
}
.motion-toggle {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  min-height: 40px;
  border: 1px solid #4a5f6c;
  background: #101c27ed;
  backdrop-filter: blur(12px);
  border-radius: 20px;
  color: #c9d5df;
  font: 10px var(--mono);
  box-shadow: 0 4px 20px #0003;
}
.motion-symbol {
  font: 18px/1 var(--mono);
  color: var(--lime);
}
.motion-toggle[aria-pressed="false"] .motion-symbol {
  color: var(--muted);
}
.motion-toggle:hover {
  border-color: var(--lime);
}
.stack-explorer {
  background:
    radial-gradient(ellipse at 70% 25%, #14303b66, transparent 65%), #0d1620;
}
.stack-stage {
  perspective: 950px;
}
.stack-rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--depth-x, 0deg)) rotateY(var(--depth-y, 0deg));
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stack-traces {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  overflow: visible;
  z-index: -1;
  pointer-events: none;
  fill: none;
}
.stack-traces .trace-base {
  stroke: #3b6170;
  stroke-width: 1;
  opacity: 0.4;
}
.stack-traces .signal-trace {
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0;
}
.stack-traces circle {
  fill: #426c7a;
  stroke: #8ac5d6;
  stroke-width: 1;
}
.stack-plane {
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 300ms,
    border-color 300ms,
    box-shadow 300ms;
}
.stack-plane[aria-pressed="true"] {
  transform: translate(5px, -16px) rotate(-11deg) skew(8deg);
}
.stack-plane:active {
  transition-duration: 160ms;
}
.project-card {
  transition:
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 250ms,
    box-shadow 380ms;
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px #0004;
}
.project-visual:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    #b8e5f40a 48%,
    transparent 68%
  );
  transform: translateX(-100%);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-card:hover .project-visual:after {
  transform: translateX(100%);
}
.project-visual {
  overflow: hidden;
}
.project-card .check-row,
.project-card .migration-row,
.project-card .code-sample {
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .check-row,
.project-card:hover .migration-row,
.project-card:hover .code-sample {
  transform: translateX(3px);
}
.project-card:hover .revision-path > span:last-child {
  transform: rotate(-65deg);
}
.revision-path > span:last-child {
  transition: transform 450ms;
}
.project-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 230px);
}
.project-content .project-tags {
  margin-top: auto;
  padding-top: 20px;
}
.workflow-showcase {
  margin-top: 56px;
  border: 1px solid #435b64;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 0 0, #1c3a3c44, transparent 65%), #0d1822;
  overflow: hidden;
}
.workflow-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 35px 38px 30px;
}
.workflow-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--cyan);
  margin-bottom: 15px;
}
.workflow-intro h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.6px;
}
.workflow-intro > div + div {
  align-self: end;
}
.workflow-intro > div + div > p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 510px;
}
.workflow-intro .text-link {
  margin-top: 12px;
  color: var(--cyan);
  font-size: 11px;
}
.workflow-console {
  border-top: 1px solid #354c58;
  background: #101c28;
  padding: 25px 38px 22px;
}
.walkthrough-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 11px/1.7 var(--mono);
}
.walkthrough-heading > div {
  display: flex;
  align-items: center;
}
#workflow-play {
  white-space: nowrap;
  border-color: #4f6775;
  min-width: 162px;
}
#workflow-play:disabled {
  color: #9aabb7;
  opacity: 0.6;
  cursor: default;
}
#workflow-play > span {
  font-size: 10px;
  margin-right: 5px;
  color: var(--lime);
}
.walkthrough-note {
  font: 9px/1.8 var(--mono);
  color: #96aabb;
  margin-top: 8px;
}
.workflow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  isolation: isolate;
  margin: 32px 0 30px;
}
.workflow-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  top: 22px;
  background: #3a4f60;
  z-index: -1;
}
.workflow-line > span {
  display: block;
  height: 100%;
  width: var(--workflow-progress, 0%);
  background: var(--lime);
  box-shadow: 0 0 12px #bbf17966;
  transition: width 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.workflow-rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 0;
  border-radius: 5px;
  padding: 0 5px;
  background: transparent;
  min-width: 0;
}
.workflow-node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #52697b;
  background: #152330;
  border-radius: 11px;
  color: #bed0df;
  font: 11px var(--mono);
  box-shadow: 0 0 0 7px #101c28;
  transition:
    background 350ms,
    border-color 350ms,
    transform 450ms,
    box-shadow 450ms;
}
.workflow-rail strong {
  font: 12px var(--font);
  color: #cad8e3;
  margin-top: 13px;
  font-weight: 550;
}
.workflow-rail small {
  font: 8px/1.6 var(--mono);
  color: #a1b4c4;
  margin-top: 5px;
}
.workflow-rail button[aria-pressed="true"] .workflow-node {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 7px #101c28,
    0 0 25px #bbf1791a;
}
.workflow-rail button[aria-pressed="true"] strong {
  color: var(--lime);
}
.workflow-rail button[data-past="true"] .workflow-node {
  border-color: #92b96b;
  color: var(--lime);
}
.workflow-rail button:hover .workflow-node {
  border-color: var(--lime);
  transform: translateY(-3px);
}
.workflow-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  padding: 26px;
  border: 1px solid #354b5d;
  border-radius: 5px;
  background: #0c1721;
  min-height: 198px;
  align-items: center;
}
.workflow-description .eyebrow {
  font-size: 9px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.workflow-description h4 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.workflow-description > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #b3c4d1;
  max-width: 460px;
}
.workflow-artifact {
  border-left: 1px solid #334d5d;
  padding-left: 25px;
}
.artifact-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: #c1d5e5;
  font: 10px/1.7 var(--mono);
}
.artifact-bar > span:first-child {
  color: var(--lime);
  font-size: 17px;
}
.artifact-bar > span:last-child {
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: #9bb0c2;
  margin-left: auto;
}
.workflow-artifact ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: line;
}
.workflow-artifact li {
  font: 10px/1.9 var(--mono);
  color: #c4d2dc;
  padding: 4px 0;
  counter-increment: line;
}
.workflow-artifact li:before {
  content: "0" counter(line);
  color: #7d9aad;
  margin-right: 15px;
}
.workflow-status {
  font: 9px/1.8 var(--mono);
  margin-top: 15px;
  color: #9eb4c5;
  min-height: 17px;
}
.credential-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid #304757;
  border-radius: 6px;
  background: #111d29;
  padding: 28px 40px;
  margin-top: -20px;
}
.toptal-badge {
  --badge-shape: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  display: inline-block;
  flex: 0 0 auto;
  background: #25a9ef;
  padding: 4px;
  clip-path: var(--badge-shape);
  text-align: center;
}
.badge-inner {
  width: 164px;
  min-height: 202px;
  padding: 25px 5px 33px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  background: radial-gradient(ellipse at top, #d1efff, #fff 60%, #d5eeff);
  clip-path: var(--badge-shape);
  color: #204ecf;
}
.badge-inner > svg:first-child {
  width: 55px;
  height: 16px;
}
.badge-inner > svg {
  height: 28px;
  max-width: 100px;
}
.badge-inner > strong {
  font: 700 15px/1 var(--font);
  letter-spacing: -0.4px;
}
.badge-rule {
  width: 104px;
  height: 1px;
  background: #25a9ef;
}
.badge-vetted {
  font: 12px/1.3 var(--font);
  margin-bottom: -3px;
}
.badge-hire {
  padding: 4px 16px;
  border-radius: 4px;
  background: #296bff;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}
.toptal-badge:hover .badge-hire {
  background: #204ecf;
}
.toptal-badge:focus-visible {
  outline: none;
  background: var(--lime);
}
.toptal-badge:focus-visible .badge-inner {
  background: #e5f9d3;
}
.credential-copy .eyebrow {
  font-size: 9px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.credential-copy h3 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 13px;
}
.credential-copy p:not(.eyebrow) {
  font-size: 14px;
  max-width: 420px;
}
.credential-copy .text-link {
  margin-top: 10px;
  font-size: 12px;
  color: var(--cyan);
}
html[data-motion="off"] *,
html[data-motion="off"] *:before,
html[data-motion="off"] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] {
  scroll-behavior: auto;
}
html[data-motion="off"]::view-transition-old(root),
html[data-motion="off"]::view-transition-new(root) {
  animation: none;
}
html[data-motion="off"] .stack-rig {
  transform: none;
}
@media (max-width: 1100px) {
  .workflow-intro {
    padding: 30px;
    gap: 40px;
  }
  .workflow-console {
    padding-inline: 30px;
  }
  .workflow-detail {
    gap: 25px;
    padding: 22px;
    min-height: 218px;
  }
  .artifact-bar > span:last-child {
    display: none;
  }
  .workflow-artifact {
    padding-left: 20px;
  }
  .workflow-artifact li {
    font-size: 9px;
  }
  .workflow-rail small {
    font-size: 7px;
  }
}
@media (max-width: 800px) {
  .project-content {
    height: auto;
  }
  .workflow-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }
  .workflow-intro h3 {
    font-size: 36px;
  }
  .workflow-intro h3 br {
    display: none;
  }
  .workflow-intro > div + div > p {
    max-width: 100%;
    font-size: 13px;
  }
  .workflow-intro .text-link {
    margin-top: 8px;
  }
  .workflow-console {
    padding: 22px 25px;
  }
  .walkthrough-heading {
    font-size: 10px;
  }
  .walkthrough-note {
    font-size: 8px;
  }
  .workflow-rail {
    gap: 10px;
    margin: 28px 0;
  }
  .workflow-rail strong {
    font-size: 11px;
  }
  .workflow-rail small {
    display: none;
  }
  .workflow-detail {
    min-height: 230px;
    gap: 20px;
    padding: 22px;
  }
  .workflow-description h4 {
    font-size: 19px;
  }
  .workflow-description > p:not(.eyebrow) {
    font-size: 11px;
  }
  .workflow-artifact li {
    font-size: 9px;
    line-height: 1.9;
  }
  .workflow-artifact li:before {
    margin-right: 8px;
  }
  .credential-row {
    gap: 30px;
    margin-top: 0;
    padding: 25px;
  }
  .credential-copy h3 {
    font-size: 27px;
  }
  .credential-copy p:not(.eyebrow) {
    font-size: 13px;
  }
  .motion-toggle {
    bottom: 12px;
    right: 14px;
  }
}
@media (max-width: 540px) {
  .stack-rig {
    display: contents;
    transform: none;
  }
  .stack-traces {
    display: none;
  }
  .stack-plane[aria-pressed="true"] {
    transform: none;
  }
  .motion-toggle {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 9px;
    right: 10px;
    bottom: 10px;
  }
  .footer-bottom {
    padding-bottom: 65px;
  }
  .workflow-showcase {
    margin-top: 32px;
  }
  .workflow-intro {
    padding: 25px 21px;
    gap: 18px;
  }
  .workflow-intro .eyebrow {
    font-size: 8px;
    line-height: 1.9;
    max-width: 260px;
  }
  .workflow-intro h3 {
    font-size: 33px;
    letter-spacing: -1.3px;
  }
  .workflow-intro h3 br {
    display: block;
  }
  .workflow-intro > div + div > p {
    font-size: 12px;
    line-height: 1.9;
  }
  .workflow-intro .text-link {
    font-size: 11px;
  }
  .workflow-console {
    padding: 20px 14px 17px;
  }
  .walkthrough-heading {
    display: block;
    font-size: 10px;
  }
  .walkthrough-heading > div {
    max-width: 230px;
    line-height: 1.7;
  }
  .walkthrough-heading .signal {
    flex-shrink: 0;
  }
  #workflow-play {
    margin-top: 14px;
    min-height: 40px;
    font-size: 10px;
  }
  .walkthrough-note {
    margin-top: 14px;
    font-size: 8px;
    line-height: 1.8;
  }
  .workflow-rail {
    gap: 4px;
    margin: 25px 0;
  }
  .workflow-rail button {
    padding: 0 1px;
    min-height: 70px;
  }
  .workflow-node {
    width: 35px;
    height: 35px;
    font-size: 9px;
    border-radius: 9px;
    box-shadow: 0 0 0 4px #101c28;
  }
  .workflow-rail button[aria-pressed="true"] .workflow-node {
    box-shadow: 0 0 0 4px #101c28;
  }
  .workflow-line {
    top: 18px;
  }
  .workflow-rail strong {
    font-size: 9px;
    line-height: 1.4;
    margin-top: 10px;
  }
  .workflow-detail {
    display: block;
    padding: 18px 16px;
    min-height: 320px;
  }
  .workflow-description .eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .workflow-description h4 {
    font-size: 19px;
    line-height: 1.3;
    min-height: 49px;
    margin-bottom: 9px;
  }
  .workflow-description > p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.8;
    min-height: 60px;
  }
  .workflow-artifact {
    border-left: 0;
    border-top: 1px solid #334d5d;
    padding: 15px 0 0;
    margin-top: 20px;
  }
  .artifact-bar {
    font-size: 9px;
  }
  .workflow-artifact ul {
    margin-top: 8px;
  }
  .workflow-artifact li {
    font-size: 9px;
    padding: 2px 0;
  }
  .workflow-status {
    font-size: 8px;
    min-height: 30px;
  }
  .credential-row {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 27px 20px;
  }
  .credential-copy h3 {
    font-size: 27px;
  }
  .credential-copy p:not(.eyebrow) {
    font-size: 13px;
  }
  .credential-copy .text-link {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
  .stack-rig {
    transition: none;
  }
}

@media (min-width: 541px) {
  .stack-stage {
    height: 400px;
  }
  .stack-plane {
    height: 110px;
  }
  .plane-interface {
    top: 34px;
  }
  .plane-services {
    top: 141px;
  }
  .plane-ai {
    top: 248px;
  }
  .stack-plane[aria-pressed="true"] {
    transform: translate(5px, -10px) rotate(-11deg) skew(8deg);
  }
}
