:root {
  --myelin-bg: #fafafa;
  --myelin-surface: #ffffff;
  --myelin-black: #101217;
  --myelin-text-secondary: #61656f;
  --myelin-text-muted: #8b8f98;
  --myelin-signal: #d93d6f;
  --myelin-border: rgba(217, 61, 111, 0.14);
  --myelin-border-strong: rgba(217, 61, 111, 0.3);
  --myelin-rule: linear-gradient(
    90deg,
    rgba(217, 61, 111, 0.06) 0%,
    rgba(217, 61, 111, 0.14) 18%,
    rgba(217, 61, 111, 0.3) 50%,
    rgba(255, 243, 247, 0.82) 76%,
    rgba(217, 61, 111, 0.12) 100%
  );
  --workflow-running: #2d6b9f;
  --workflow-approved: #247a4d;
  --workflow-failed: #b64242;
  --workflow-node-border: rgba(16, 18, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--myelin-bg);
  color: var(--myelin-black);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

.page {
  position: relative;
  padding: 14px 24px 24px;
}

.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 0;
  padding: 0 0 8px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.32rem clamp(0.72rem, 1vw, 1rem);
  min-width: 0;
}

.hero-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 96px);
  align-items: end;
  width: 100%;
  margin-top: -50px;
}

.logo {
  width: min(112px, 100%);
  height: auto;
}

.brand-meta {
  display: inline-grid;
  flex: 1 1 auto;
  min-width: 0;
  inline-size: min(54ch, 100%);
  transform: translateY(1px);
  color: var(--myelin-text-secondary);
  font-size: 12px;
  font-family: "Literata", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
  text-align: left;
  white-space: nowrap;
}

.brand-meta-sizer,
.brand-meta-write {
  grid-area: 1 / 1;
}

.brand-meta-sizer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.brand-meta-write {
  display: inline-block;
  min-height: 1.18em;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 0.14em;
  white-space: nowrap;
}

.divider {
  width: 100%;
  justify-self: stretch;
  height: 1px;
  margin: 12px 0 32px;
  background: var(--myelin-rule);
}

.intro {
  display: grid;
  gap: 12px;
  justify-items: start;
  text-align: left;
  margin-top: clamp(88px, 16vh, 168px);
  padding-bottom: clamp(88px, 14vh, 176px);
}

.intro-title {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.intro-subtitle {
  max-width: 34rem;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--myelin-black);
}

.intro .button-outline {
  margin-top: 14px;
}

.hero-art {
  display: grid;
  justify-items: end;
  align-content: end;
  align-self: stretch;
  min-height: clamp(420px, 54vw, 700px);
  margin: -252px 0 0;
}

.hero-art-image {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transform: translateY(-40px);
}

.section {
  margin-top: 56px;
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 80px);
  margin-bottom: 24px;
}

.section-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.section-eyebrow {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--myelin-text-muted);
}

.workflow-preview {
  position: relative;
  margin-top: 108px;
  border: 1px solid var(--myelin-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 28px 28px 32px;
  overflow: hidden;
}

.workflow-preview-title {
  margin-bottom: 22px;
  font-family: "Literata", Georgia, serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 350;
  line-height: 1.3;
}

.workflow-preview-title.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 0.12em;
  background: currentColor;
  vertical-align: -0.08em;
  animation: workflow-title-caret 900ms steps(1) infinite;
}

.workflow-preview-body {
  position: relative;
  z-index: 1;
  margin-left: clamp(120px, 14vw, 220px);
}

.workflow-preview-figure {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(220px, 26vw, 360px);
  height: 100%;
  z-index: 0;
  opacity: 0.8;
  transform: translate(
      var(--workflow-preview-figure-x, 100px),
      var(--workflow-preview-figure-y, 0px)
    )
    scale(var(--workflow-preview-figure-scale, 1));
  transform-origin: top right;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.example-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.example-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(16, 18, 23, 0.06);
  color: var(--myelin-text-secondary);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.example-pill.is-active {
  background: var(--myelin-black);
  border-color: var(--myelin-black);
  color: var(--myelin-surface);
}

.section-title {
  font-family: "Litterata", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-text {
  max-width: 44rem;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--myelin-text-secondary);
}

.site-footer {
  margin-top: 72px;
}

.site-footer-text {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  justify-content: flex-end;
  color: var(--myelin-text-muted);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.site-footer-text a,
.site-footer-text a:visited,
.site-footer-text a:hover,
.site-footer-text a:active {
  color: inherit;
  text-decoration: none;
}

.corner-figure {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(255px, 30.6vw, 408px);
  height: auto;
  clip-path: inset(10px 0 0 0);
  transform: translateX(var(--corner-figure-x, 0px))
    scale(var(--corner-figure-scale, 1));
  transform-origin: left bottom;
  pointer-events: none;
}

.type-grid,
.ui-grid {
  display: grid;
  gap: 16px;
}

.type-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.type-card,
.ui-block {
  border: 1px solid var(--myelin-border);
  border-radius: 4px;
  background: var(--myelin-surface);
}

.type-card {
  display: grid;
  gap: 18px;
  min-height: 220px;
  padding: 22px;
}

.type-sample {
  word-break: break-word;
}

.type-meta {
  display: grid;
  gap: 8px;
  color: var(--myelin-text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

.type-display {
  font-family: "Litterata", Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.type-h1 {
  font-family: "Litterata", Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.type-h2 {
  font-family: "Litterata", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.type-h3 {
  font-family: "Litterata", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.type-body-large {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}

.type-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.type-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.type-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.ui-block {
  padding: 22px;
}

.ui-label {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--myelin-text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid rgba(217, 61, 111, 0.48);
  border-radius: 4px;
  background: transparent;
  color: var(--myelin-signal);
  font-family: "Litterata", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.text-link {
  color: var(--myelin-signal);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.workflow-sequence {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.workflow-sequence-title {
  margin-bottom: 0;
}

.workflow-sequence-list {
  display: grid;
  gap: 18px;
  justify-items: start;
  width: 100%;
}

.workflow-sequence-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 8px;
  align-items: center;
  justify-content: start;
  width: 100%;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.workflow-sequence-line.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.workflow-sequence-index {
  min-width: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--myelin-text-muted);
}

.workflow-sequence-rail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.workflow-node {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--workflow-node-border);
  border-radius: 4px;
  background: var(--myelin-surface);
  color: var(--myelin-black);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  transition:
    color 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

@keyframes workflow-running-sheen {
  0% {
    background-position: 160% 50%;
  }

  100% {
    background-position: -60% 50%;
  }
}

@keyframes workflow-title-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.workflow-node.is-running {
  border-color: rgba(45, 107, 159, 0.22);
  background-color: rgba(45, 107, 159, 0.12);
  background-image: linear-gradient(
    115deg,
    rgba(45, 107, 159, 0.2) 0%,
    rgba(45, 107, 159, 0.24) 38%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(45, 107, 159, 0.24) 62%,
    rgba(45, 107, 159, 0.2) 100%
  );
  background-size: 240% 100%;
  background-position: 160% 50%;
  animation: workflow-running-sheen 3.8s linear infinite;
  color: #1d4668;
}

.workflow-node.is-complete {
  background: #f4f5f7;
  color: var(--myelin-black);
}

.workflow-node.is-failed {
  border-color: rgba(182, 66, 66, 0.34);
  background: rgba(182, 66, 66, 0.12);
  color: var(--workflow-failed);
}

.workflow-link {
  flex: 0 0 14px;
  min-width: 14px;
  margin: 0;
  border-top: 1px solid var(--workflow-node-border);
}

.workflow-tail {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.workflow-tail-circle {
  width: 10px;
  height: 10px;
  border: 1px solid var(--workflow-node-border);
  border-radius: 999px;
  background: var(--myelin-surface);
  transition:
    background-color 260ms ease,
    border-color 260ms ease;
}

.workflow-tail-circle.is-approved {
  border-color: var(--workflow-approved);
  background: var(--workflow-approved);
}

@media (max-width: 720px) {
  .page {
    padding: 14px 24px 20px;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 0;
  }

  .logo {
    width: min(102px, 100%);
  }

  .hero-top {
    align-items: flex-start;
    gap: 16px;
  }

  .brand-lockup {
    flex-wrap: wrap;
  }

  .brand-meta {
    display: block;
    flex: 0 0 auto;
    inline-size: auto;
    font-size: clamp(0.84rem, 1vw, 0.94rem);
    line-height: 1.18;
    white-space: normal;
  }

  .brand-meta-sizer {
    display: none;
  }

  .brand-meta-write {
    overflow: visible;
    padding-bottom: 0.14em;
    white-space: normal;
  }

  .divider {
    margin: 13px 0 24px;
  }

  .intro-title {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .intro {
    margin-top: clamp(56px, 10vh, 96px);
    padding-bottom: 0;
  }

  .intro-subtitle {
    font-size: 18px;
  }

  .intro .button-outline {
    margin-top: 10px;
  }

  .hero-art {
    min-height: auto;
    margin-top: 4px;
    padding-top: 12px;
    justify-items: center;
  }

  .hero-art-image {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    margin-top: 44px;
  }

  .section-copy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .workflow-preview {
    margin-top: 44px;
    padding: 22px 18px 24px;
  }

  .workflow-preview-body {
    margin-left: 0;
  }

  .workflow-preview-figure {
    display: none;
  }

  .example-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .example-pill {
    flex: 0 0 auto;
  }

  .workflow-sequence {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .workflow-sequence-list {
    width: max-content;
    min-width: 100%;
  }

  .workflow-sequence-line {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 8px;
    width: max-content;
    min-width: 100%;
  }

  .workflow-sequence-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    min-width: max-content;
  }

  .site-footer {
    margin-top: 56px;
  }

  .corner-figure {
    display: none;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .type-display {
    font-size: 48px;
  }

  .type-h1 {
    font-size: 38px;
  }

  .type-h2 {
    font-size: 28px;
  }

  .type-h3 {
    font-size: 20px;
  }

  .type-body-large {
    font-size: 18px;
  }

  .type-body {
    font-size: 15px;
  }

  .type-small {
    font-size: 13px;
  }

  .type-card,
  .ui-block {
    padding: 18px;
  }

  .workflow-link {
    width: auto;
    min-width: 14px;
    height: auto;
    margin: 0;
    border-top: 1px solid var(--workflow-node-border);
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .page {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-node {
    transition-duration: 1ms;
  }

  .workflow-sequence-line {
    transition-duration: 1ms;
  }

  .workflow-preview-title.is-typing::after {
    animation-duration: 1ms;
  }
}
