.wf-page {
  overflow-x: clip;
}

.wf-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.wf-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 600;
}

.wf-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #a58aff;
  box-shadow: 0 0 18px #8a5cff;
  border-radius: 50%;
}

.wf-hero {
  padding: 164px 0 64px;
  position: relative;
  isolation: isolate;
}

.wf-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 85% 30%, #7a4dff20, transparent 60%);
}

.wf-hero h1 {
  font-size: clamp(40px, 5.6vw, 78px);
  max-width: 870px;
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 550;
  margin: 27px 0;
}

.wf-hero h1 em,
.wf-heading em {
  font-family: var(--serif);
  font-weight: 400;
  color: #b49aff;
}

html[data-theme="light"] .wf-hero h1 em,
html[data-theme="light"] .wf-heading em {
  color: #6541b7;
}

.wf-hero p {
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.wf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.wf-note {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: var(--muted);
}

.wf-art {
  width: 100%;
  height: clamp(210px, 32vw, 415px);
  object-fit: cover;
  object-position: center 58%;
  border-radius: 28px;
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 38px 0 0;
}

.wf-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 24px 0 0;
  gap: 24px;
}

.wf-hero-bottom p {
  font-size: 12px;
}

.wf-index {
  font: italic 24px var(--serif);
  color: var(--muted);
  white-space: nowrap;
}

.wf-section {
  padding-block: 60px;
}

.wf-heading {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -.045em;
  line-height: 1.13;
  font-weight: 550;
  margin: 18px 0;
}

.wf-section-lede {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
}

.wf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 20px;
}

.wf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
}

.wf-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 24px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
}

.wf-tabs button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.wf-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  min-height: 44px;
  background: var(--surface-2);
  color: var(--text);
  font: 500 12px var(--sans);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.wf-button:hover {
  border-color: #9e7dff;
}

.wf-button.primary {
  background: #7450d5;
  border-color: #9872f0;
  color: white;
}

.wf-button:disabled {
  cursor: default;
  opacity: .42;
}

.wf-button:focus-visible,
.wf-tabs button:focus-visible,
.wf-story-link:focus-visible,
.wf-page select:focus-visible,
.wf-page input:focus-visible,
.wf-page textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.wf-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin: 15px 0 28px;
  min-height: 28px;
}

.wf-hint b {
  color: var(--text);
  font-weight: 500;
}

.wf-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 20px;
  isolation: isolate;
}

.wf-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.wf-connectors path {
  stroke: #9c79ee;
  fill: none;
  opacity: .4;
  stroke-width: 1.3;
}

.wf-connectors path.wf-flow {
  opacity: 1;
  stroke-dasharray: 5 10;
  animation: wf-flow 1.5s linear 2;
}

@keyframes wf-flow {
  to {
    stroke-dashoffset: -60;
  }
}

.wf-node {
  grid-column: span 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wf-node[data-node="ai"] {
  grid-column: 2 / 6;
}

.wf-node[data-node="commerce"],
.wf-node[data-node="mobile"],
.wf-node[data-node="local"] {
  grid-column: span 2;
}

.wf-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-inline: 5px;
}

.wf-panel-top span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.wf-story-link {
  font-size: 11px;
  color: var(--text);
  padding: 13px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

.wf-panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  border-radius: 24px;
  padding: 23px;
  flex: 1;
  position: relative;
  box-shadow: 0 15px 50px #00000010;
}

.wf-node[data-node="ai"] .wf-panel {
  background: radial-gradient(ellipse at 15% 0%, #8655ed26, transparent 70%), var(--surface);
  border-color: #9572de66;
}

.wf-panel h3 {
  font-size: 20px;
  letter-spacing: -.035em;
  margin: 0 0 7px;
  font-weight: 550;
}

.wf-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.7;
}

.wf-panel .wf-button {
  flex: 1;
}

.wf-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.wf-panel label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0 8px;
}

.wf-page select,
.wf-page textarea,
.wf-page input[type="text"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  min-height: 44px;
  font: 13px var(--sans);
  padding: 12px;
}

.wf-screen {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 17px;
  border-radius: 13px;
  margin: 16px 0 0;
  min-height: 100px;
}

.wf-screen small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .05em;
  display: block;
  margin-bottom: 10px;
}

.wf-screen strong {
  font-weight: 500;
  font-size: 14px;
  display: block;
}

.wf-screen .wf-status {
  color: #ad98e1;
  font-size: 12px;
  display: block;
  margin-top: 9px;
}

html[data-theme="light"] .wf-screen .wf-status {
  color: #64469b;
}

.wf-ai-layout {
  display: flex;
  gap: 28px;
  align-items: center;
}

.wf-core {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 28px;
  border: 1px solid #a58aff70;
  background: linear-gradient(135deg, #ac8aff30, #4835a510);
  box-shadow: inset 0 0 24px #8a5cff20, 0 0 38px #8a5cff18;
  font: italic 34px var(--serif);
}

.wf-core::before,
.wf-core::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid #aa8be850;
  border-radius: 21px;
  transform: rotate(20deg);
}

.wf-core::after {
  transform: rotate(-20deg);
}

.wf-decision {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin-top: 10px;
}

.wf-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
}

.wf-pipeline span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 20px;
}

.wf-phone {
  max-width: 200px;
  margin: 14px auto 0;
  border-radius: 24px;
  border: 4px solid var(--line);
  padding: 18px 12px 14px;
  background: var(--bg);
}

.wf-phone::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 10px;
  margin: -7px auto 18px;
}

.wf-phone .wf-screen {
  padding: 10px;
  min-height: 105px;
  margin: 10px 0;
}

.wf-phone-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

.wf-progress {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.wf-progress i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}

.wf-progress i.done {
  background: #a08ad9;
}

.wf-log {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 20px;
}

.wf-log summary {
  font-size: 12px;
  cursor: pointer;
  min-height: 28px;
}

.wf-log ol {
  padding-left: 22px;
  margin-bottom: 0;
  max-height: 210px;
  overflow: auto;
}

.wf-log li {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 0;
  line-height: 1.6;
}

.wf-result {
  margin-top: 24px;
  padding: 23px;
  border-radius: 18px;
  border: 1px solid #9e80d855;
  background: #9870e810;
}

.wf-result h3 {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}

.wf-result p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.wf-fit {
  padding: 55px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 100% 0%, #7a4dff20, transparent 65%), var(--surface);
}

.wf-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: start;
}

.wf-fit p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.wf-fit label,
.wf-fit legend {
  font-size: 12px;
  margin-bottom: 10px;
  display: block;
}

.wf-fit fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}

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

.wf-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  margin: 0;
}

.wf-choices input {
  accent-color: #8a5cff;
  width: 16px;
  height: 16px;
}

.wf-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 28px;
}

.wf-scope h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 9px;
}

.wf-scope p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.wf-back {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  padding: 12px 0 24px;
}

.wf-chapters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.wf-chapters a {
  font-size: 11px;
  padding: 13px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
}

.wf-chapters a:hover {
  color: var(--text);
  border-color: var(--text);
}

.wf-story-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 80px;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.wf-story-copy {
  padding-top: 30px;
}

.wf-story-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.wf-chapter-number {
  color: #aa92d8;
  font: italic 28px var(--serif);
}

.wf-story-stage {
  position: sticky;
  top: 115px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: radial-gradient(ellipse at top right, #7a4dff15, transparent 70%), var(--surface);
  padding: 30px;
  min-height: 300px;
  overflow: hidden;
}

.wf-story-stage h3 {
  font-size: 21px;
  margin: 20px 0 14px;
  letter-spacing: -.03em;
}

.wf-story-stage p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.wf-story-stage .wf-core {
  margin: 20px auto 35px;
}

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

.wf-step-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 13px;
  font-size: 12px;
}

.wf-step-list li b {
  color: #a28bcf;
  font-weight: 400;
}

.wf-scatter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 15px 0;
}

.wf-scatter span {
  border: 1px dashed var(--muted);
  border-radius: 12px;
  padding: 23px 12px;
  font-size: 12px;
  text-align: center;
  transform: rotate(-3deg);
  color: var(--muted);
}

.wf-scatter span:nth-child(even) {
  transform: rotate(4deg) translateY(10px);
}

.wf-story-stage.is-active {
  border-color: #9c79ee80;
}

.wf-reveal {
  opacity: .65;
  transform: translateY(15px);
  transition: opacity .65s, transform .65s;
}

.wf-reveal.is-active {
  opacity: 1;
  transform: none;
}

html:not(.js) .wf-reveal {
  opacity: 1;
  transform: none;
}

.wf-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.wf-page [hidden] {
  display: none !important;
}

.wf-offline {
  color: #c38e59;
}

.wf-support {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.wf-support a {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.wf-component-art {
  width: calc(100% + 60px);
  height: 230px;
  object-fit: cover;
  margin: -30px -30px 25px;
  display: block;
  background: var(--bg);
}

.wf-photo-window {
  position: relative;
  width: calc(100% + 60px);
  height: 330px;
  overflow: hidden;
  margin: -30px -30px 25px;
  background: var(--bg);
}

.wf-photo-window img {
  position: absolute;
  width: 200%;
  max-width: none;
  height: auto;
  left: 0;
  top: 0;
}

.wf-photo-kiosk img {
  transform: translate(0, -14%);
}

.wf-photo-kitchen img {
  transform: translate(-38%, -5%);
}

.wf-photo-window figcaption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: #fff;
  background: #111a;
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 10px;
}

@media(max-width:650px) {
  .wf-photo-window {
    width: calc(100% + 48px);
    height: 260px;
    margin: -24px -24px 24px;
  }

  .wf-photo-window img {
    width: 220%;
  }
}

.wf-branch-map {
  position: sticky;
  top: 76px;
  z-index: 45;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  overflow-x: auto;
  margin-bottom: 30px;
}

.wf-branch-map a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  min-height: 44px;
  position: relative;
}

.wf-branch-map a span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
}

.wf-branch-map a[aria-current="step"] {
  color: var(--text);
}

.wf-branch-map a[aria-current="step"] span {
  border-color: #9e7dff;
  background: #9e7dff22;
  box-shadow: 0 0 20px #9e7dff22;
}

.wf-branch-map a.is-past span {
  color: #a58aff;
  border-color: #a58aff66;
}

.wf-story-chapter {
  position: relative;
  scroll-margin-top: 180px;
}

.wf-story-stage {
  top: 178px;
}

.wf-story-chapter::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 80px;
  top: -40px;
  left: calc(75% + 20px);
  background: linear-gradient(transparent, #9e7dff66, transparent);
  pointer-events: none;
}

@media(max-width:650px) {
  .wf-component-art {
    width: calc(100% + 48px);
    margin: -24px -24px 24px;
    height: 210px;
  }

  .wf-branch-map {
    gap: 20px;
    padding: 8px 14px;
    border-radius: 12px;
  }

  .wf-story-chapter::before {
    left: 50%;
    height: 40px;
    top: -20px;
  }
}

@media(max-width:650px) {
  .wf-page .cf-cursor {
    display: none;
  }

  .wf-story-stage {
    top: auto;
  }
}

@media(prefers-reduced-motion:reduce) {
  .wf-story-stage {
    top: auto;
  }
}

@media(min-width: 1000px) {
  .wf-story-stage {
    transition: border-color .5s, box-shadow .5s;
  }

  .wf-story-stage.is-active {
    box-shadow: 0 25px 90px #7a4dff10;
  }
}

@media(max-width: 1000px) {

  .wf-node,
  .wf-node[data-node="ai"],
  .wf-node[data-node="commerce"],
  .wf-node[data-node="mobile"],
  .wf-node[data-node="local"] {
    grid-column: span 3;
  }

  .wf-node[data-node="ai"] {
    grid-column: 1 / -1;
  }

  .wf-story-chapter {
    gap: 35px;
  }

  .wf-fit {
    padding: 32px;
  }

  .wf-fit-grid {
    gap: 30px;
  }
}

@media(max-width: 650px) {
  .wf-wrap {
    width: calc(100% - 32px);
  }

  .wf-hero {
    padding-top: 125px;
    padding-bottom: 30px;
  }

  .wf-hero h1 {
    font-size: 42px;
  }

  .wf-hero p {
    font-size: 15px;
  }

  .wf-hero-bottom {
    align-items: start;
  }

  .wf-index {
    font-size: 18px;
  }

  .wf-section {
    padding-block: 35px;
  }

  .wf-board {
    display: block;
  }

  .wf-node {
    margin-bottom: 24px;
  }

  .wf-panel {
    height: auto;
    padding: 22px;
  }

  .wf-connectors {
    display: none;
  }

  .wf-toolbar {
    align-items: stretch;
  }

  .wf-tabs {
    width: 100%;
  }

  .wf-tabs button {
    flex: 1;
    padding: 9px 12px;
  }

  .wf-hint {
    align-items: start;
    line-height: 1.7;
  }

  .wf-ai-layout {
    gap: 18px;
    align-items: start;
  }

  .wf-core {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    font-size: 25px;
    border-radius: 20px;
  }

  .wf-core::before,
  .wf-core::after {
    border-radius: 12px;
  }

  .wf-fit {
    padding: 24px;
  }

  .wf-fit-grid,
  .wf-scope,
  .wf-story-chapter {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wf-story-chapter {
    padding: 45px 0;
  }

  .wf-story-copy {
    padding-top: 0;
  }

  .wf-story-stage {
    position: relative;
    top: auto;
    min-height: 250px;
    padding: 24px;
  }

  .wf-fit .wf-heading {
    font-size: 34px;
  }

  .wf-reveal {
    opacity: 1;
    transform: none;
  }
}

@media(prefers-reduced-motion: reduce) {

  .wf-page *,
  .wf-page *::before,
  .wf-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .wf-story-stage {
    position: relative;
    top: auto;
  }

  .wf-reveal {
    opacity: 1;
    transform: none;
  }
}

@media(max-width:650px) {
  .wf-hero-bottom {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 18px;
  }

  .wf-index {
    white-space: normal;
  }
}
