/* case-webflow-builds.html only: styles for this case study's own screens and sections.
   Shared patterns live in case-study.css (page). This page does not load
   case-ui.css, so its mock panels (.wf-win) carry their own small kit. The
   panels are product UI: they stay light in both colour modes, like the
   product screens on the other case studies. */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

.wf-page {
  --wf-ink: #14161b;
  --wf-ink-2: #565d6b;
  --wf-ink-3: #8a909b;
  --wf-line: #e4e6ea;
  --wf-line-2: #eef0f3;
  --wf-bg: #f6f7f9;
  --wf-paper: #f6f3f0;
  --wf-acc: #2f63ff;
  --wf-acc-ink: #1f4fe0;
  --wf-acc-soft: #eaf0ff;
  --wf-hover: #7a5cff;
  --wf-ok: #138a4a;
  --wf-ok-soft: #e4f5eb;
  --wf-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Hero: logo tile and the live device frame
   -------------------------------------------------------------------------- */


.wf-hero { margin: var(--spacing--48) 0 0; }

.wf-hero-frame {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--_🔘-radius---general--default);
  overflow: hidden;
  background: #0b0d14;
}

.wf-hero-frame .work-screen-wrap { position: absolute; inset: 0; }
.wf-hero-frame .tag-wrap-work-card.absolute { inset: 20px 20px auto auto; }

/* The brief: the three askers sit on the page, not in a panel */

/* What it took */
.wf-quote { margin: var(--spacing--32) 0 0; }
.wf-page .cs-section > h3.wf-sub { margin: var(--spacing--64) 0 var(--spacing--12); }

/* --------------------------------------------------------------------------
   Mock window kit
   -------------------------------------------------------------------------- */

.wf-scroll { border-radius: 14px; }

.wf-win {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  background: #fff;
  color: var(--wf-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 28px 56px -32px rgba(15, 23, 42, .38);
}

.page-wrap:not(.light-mode) .wf-win {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 28px 64px -30px rgba(0, 0, 0, .8);
}

.wf-win svg.i { width: 14px; height: 14px; stroke-width: 1.9; }
.wf-win b { font-weight: 600; }
.wf-win small { font-size: 11.5px; line-height: 15px; color: var(--wf-ink-3); }
.wf-win code,
.wf-mono {
  font-family: var(--wf-mono);
  font-size: 11.5px;
  line-height: 16px;
}

.wf-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--wf-line);
  background: var(--wf-bg);
  white-space: nowrap;
}

.wf-dots { display: flex; gap: 6px; }
.wf-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6d9df; }

.wf-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: var(--wf-ink-2);
}

.wf-crumbs b { color: var(--wf-ink); }
.wf-crumbs svg.i { width: 12px; height: 12px; color: var(--wf-ink-3); }

.wf-bps {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 9px;
  background: #eceef2;
}

.wf-bps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--wf-ink-2);
  font-variant-numeric: tabular-nums;
}

.wf-bps span.is-on { background: #fff; color: var(--wf-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.wf-bps svg.i { width: 13px; height: 13px; }

.wf-bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wf-bps + .wf-bar-end { margin-left: 0; }

.wf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--wf-acc);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 10px -4px rgba(47, 99, 255, .7);
}

.wf-btn.is-ghost {
  background: #fff;
  color: var(--wf-ink);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--wf-line) inset;
}

.wf-btn svg.i { width: 12px; height: 12px; }

.wf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wf-ok-soft);
  color: var(--wf-ok);
  font-size: 12px;
  font-weight: 600;
}

.wf-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.wf-panel { background: #fff; min-width: 0; }

.wf-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wf-ink-2);
}

.wf-panel-h span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wf-ink-3);
}

/* Highlight shared by every panel: the element the cycle is on. Before any
   script runs (or with it off) the first key of each panel stands in. */
.wf-page [data-cycle] [data-key] { transition: background-color .3s ease, color .3s ease, outline-color .3s ease, box-shadow .3s ease, border-color .3s ease; }

/* --------------------------------------------------------------------------
   Work card, drawn the way the portfolio draws it
   -------------------------------------------------------------------------- */

.wf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #0b0c0e;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.wf-win .wf-card-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%;
  border: 0;
  border-radius: 0;
}

.wf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(5, 6, 8, .96), rgba(5, 6, 8, .55) 40%, rgba(5, 6, 8, 0) 62%);
}

.wf-card-tags { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }

.wf-card-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30, 32, 38, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10.5px;
  line-height: 14px;
  color: #fff;
}

.wf-card-copy { display: grid; gap: 4px; }
.wf-card-copy b { font-size: 15px; line-height: 19px; font-weight: 600; }
.wf-card-copy span { font-size: 11.5px; line-height: 16px; color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   01 · Layout framework (.wf-build)
   -------------------------------------------------------------------------- */

.wf-build-body {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr) 232px;
  grid-template-areas: "nav canvas style";
  min-height: 430px;
}

.wf-nav { grid-area: nav; border-right: 1px solid var(--wf-line); }
.wf-style { grid-area: style; border-left: 1px solid var(--wf-line); }
.wf-canvas { grid-area: canvas; padding: 22px; background: #eceef2; }

.wf-tree { margin: 0; padding: 0 8px 12px; list-style: none; }

.wf-tree li {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding-left: calc(var(--d, 0) * 11px + 8px);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--wf-ink);
  white-space: nowrap;
}

.wf-tree li svg.i { width: 13px; height: 13px; color: var(--wf-ink-3); }
.wf-tree li.is-dim { color: var(--wf-ink-3); }

.wf-tree li.is-on,
.wf-build:not(:has(.is-on)) .wf-tree li[data-key="grid"] {
  background: var(--wf-acc-soft);
  color: var(--wf-acc-ink);
  font-weight: 600;
}

.wf-tree li.is-on svg.i,
.wf-build:not(:has(.is-on)) .wf-tree li[data-key="grid"] svg.i { color: var(--wf-acc); }

.wf-style-panels { padding: 0 14px 14px; }
.wf-style-panel { display: none; }

.wf-style-panel.is-on,
.wf-build:not(:has(.is-on)) .wf-style-panel[data-key="grid"] { display: block; animation: wf-fade .35s ease both; }

@keyframes wf-fade { from { opacity: 0; transform: translateY(4px); } }

.wf-class {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--wf-acc);
  color: #fff;
  font-family: var(--wf-mono);
  font-size: 12px;
  line-height: 16px;
}

.wf-class.is-sm { padding: 1px 6px; font-size: 11px; background: #eef0f4; color: var(--wf-ink); }

.wf-props { display: grid; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--wf-line-2); }

.wf-props > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-bottom: 1px solid var(--wf-line-2);
}

.wf-props dt { font-size: 12px; color: var(--wf-ink-3); }
.wf-props dd { margin: 0; font-size: 12.5px; color: var(--wf-ink); min-width: 0; }

.wf-props code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f2f5;
  color: var(--wf-ink);
}

.wf-var {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 7px 2px 6px;
  border-radius: 5px;
  background: #f1ecff;
  color: #5b3fd6;
  font-family: var(--wf-mono);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-var::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }

.wf-note {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  line-height: 17px !important;
  color: var(--wf-ink-2) !important;
}

/* The page on the canvas: the portfolio's own paper, heading and cards */
.wf-site {
  position: relative;
  height: 100%;
  padding: 26px 22px 22px;
  border-radius: 8px;
  background: var(--wf-paper);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

.wf-site-head {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #2a2a2a;
}

.wf-site-head em { font-family: "Instrument Serif", serif; font-style: italic; letter-spacing: 0; }

.wf-site-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wf-site-grid .wf-card { height: 248px; }

/* Outline + class label on the element the cycle is on */
.wf-canvas [data-key] { outline: 2px solid transparent; outline-offset: 3px; border-radius: 6px; }
.wf-canvas .wf-card[data-key] { border-radius: 12px; }

.wf-canvas [data-key].is-on,
.wf-build:not(:has(.is-on)) .wf-canvas [data-key="grid"] { outline-color: var(--wf-acc); }

.wf-canvas [data-key]::before {
  content: attr(data-label);
  position: absolute;
  z-index: 3;
  left: -3px;
  top: -24px;
  padding: 2px 7px;
  border-radius: 4px 4px 4px 0;
  background: var(--wf-acc);
  color: #fff;
  font-family: var(--wf-mono);
  font-size: 10.5px;
  line-height: 15px;
  font-style: normal;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.wf-canvas [data-key].is-on::before,
.wf-build:not(:has(.is-on)) .wf-canvas [data-key="grid"]::before { opacity: 1; }

.wf-site[data-key]::before { top: 4px; left: 4px; border-radius: 4px; }
.wf-card-tags span[data-key] { position: relative; }
.wf-card-tags span[data-key]::before { top: auto; bottom: -24px; left: auto; right: -3px; border-radius: 4px 0 4px 4px; }
.wf-card[data-key]::before { top: auto; bottom: 8px; left: auto; right: 8px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   02 · CMS (.wf-cms)
   -------------------------------------------------------------------------- */

.wf-cms-body {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 300px;
  min-height: 470px;
}

.wf-items { border-right: 1px solid var(--wf-line); display: flex; flex-direction: column; }

.wf-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px 8px;
  padding: 7px 10px;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  color: var(--wf-ink-3);
  font-size: 12.5px;
}

.wf-search svg.i { width: 13px; height: 13px; }

.wf-item-list { margin: 0; padding: 0 8px; list-style: none; display: grid; gap: 2px; }

.wf-item-list li {
  display: grid;
  gap: 1px;
  padding: 7px 10px;
  border-radius: 8px;
}

.wf-item-list b { font-size: 12.5px; line-height: 17px; font-weight: 500; }
.wf-item-list span { font-size: 11.5px; line-height: 15px; color: var(--wf-ink-3); }
.wf-item-list li.is-sel { background: var(--wf-acc-soft); }
.wf-item-list li.is-sel b { color: var(--wf-acc-ink); font-weight: 600; }

.wf-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 12px 12px;
  padding: 8px 10px;
  border: 1px dashed #c9cdd5;
  border-radius: 8px;
  color: var(--wf-ink-2);
  font-size: 12.5px;
}

.wf-add svg.i { width: 13px; height: 13px; }

.wf-form { display: grid; align-content: start; gap: 14px; padding: 18px 20px; }

.wf-field { display: grid; gap: 6px; }

.wf-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 600;
  color: var(--wf-ink);
  transition: color .3s ease;
}

.wf-field label svg.i { width: 13px; height: 13px; color: var(--wf-ink-3); }
.wf-field label em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--wf-ink-3); }

.wf-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 18px;
  color: var(--wf-ink);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.wf-input.is-area { align-items: flex-start; min-height: 74px; }
.wf-input.is-locked { justify-content: space-between; background: var(--wf-bg); color: var(--wf-ink-2); }
.wf-input.is-locked svg.i { width: 12px; height: 12px; color: var(--wf-ink-3); }
.wf-input.is-chips span { padding: 2px 8px; border-radius: 6px; background: #eef0f4; font-size: 12px; }
.wf-input .wf-mono { color: var(--wf-acc-ink); }

.wf-field.is-on label,
.wf-cms:not(:has(.is-on)) .wf-field[data-key="name"] label { color: var(--wf-acc-ink); }
.wf-field.is-on label svg.i,
.wf-cms:not(:has(.is-on)) .wf-field[data-key="name"] label svg.i { color: var(--wf-acc); }

.wf-field.is-on .wf-input,
.wf-cms:not(:has(.is-on)) .wf-field[data-key="name"] .wf-input {
  border-color: var(--wf-acc);
  box-shadow: 0 0 0 3px rgba(47, 99, 255, .16);
}

.wf-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  border-left: 1px solid var(--wf-line);
  background: #eceef2;
}

.wf-preview-h { display: flex; justify-content: space-between; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wf-ink-2); }
.wf-preview-h span + span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--wf-ink-3); }

.wf-card.is-big { flex: 1; min-height: 340px; padding: 14px; }
.wf-card.is-big .wf-card-copy b { font-size: 17px; line-height: 22px; }
.wf-card.is-big .wf-card-copy span { font-size: 12px; line-height: 17px; }

.wf-preview [data-key] {
  border-radius: 6px;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.wf-preview .wf-card-img[data-key] { outline-offset: -4px; border-radius: 12px; }

.wf-preview [data-key].is-on,
.wf-cms:not(:has(.is-on)) .wf-preview [data-key="name"] { outline-color: #8fb0ff; }

.wf-preview-note { display: flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 12px !important; line-height: 16px !important; color: var(--wf-ink-2) !important; }
.wf-preview-note svg.i { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   03 · Structural SEO (.wf-seo)
   -------------------------------------------------------------------------- */

.wf-seo-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  background: var(--wf-bg);
}

.wf-seo-previews { display: grid; gap: 16px; align-content: start; }

.wf-box {
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--wf-line);
  border-radius: 12px;
  background: #fff;
}

.wf-box-h {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wf-ink-2);
}

.wf-box-h svg.i { width: 13px; height: 13px; color: var(--wf-ink-3); }
.wf-box-h span { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--wf-ink-3); }

.wf-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wf-serp-site > span:last-child { display: grid; }
.wf-serp-site b { font-size: 13px; line-height: 17px; font-weight: 500; }

.wf-fav { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f2f5; }
.wf-win .wf-fav svg { display: block; width: 18px; height: 18px; border: 0; border-radius: 5px; }

.wf-serp-t { font-size: 18px; line-height: 24px; color: #1a3db8; }

.wf-serp-d {
  margin: 4px 0 0 !important;
  max-width: none !important;
  font-size: 13px !important;
  line-height: 19px !important;
  color: var(--wf-ink-2) !important;
}

.wf-og { overflow: hidden; border: 1px solid var(--wf-line); border-radius: 10px; }
.wf-win .wf-og img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border: 0; border-radius: 0; }
.wf-og-t { display: grid; gap: 2px; padding: 10px 12px; border-top: 1px solid var(--wf-line); background: var(--wf-bg); }
.wf-og-t b { font-size: 13px; line-height: 17px; }

.wf-checks { display: grid; margin: 0; padding: 0; list-style: none; }

.wf-checks li {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid var(--wf-line-2);
  font-size: 13px;
}

.wf-checks li:last-child { border-bottom: 0; }
.wf-checks b { font-weight: 500; }

.wf-checks code {
  justify-self: end;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1f2f5;
  color: var(--wf-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wf-ok-soft);
  color: var(--wf-ok);
}

.wf-tick svg.i { width: 12px; height: 12px; stroke-width: 2.6; }

@media (prefers-reduced-motion: no-preference) {
  .wf-tick { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s ease; transition-delay: calc(var(--i, 0) * 140ms + 350ms); }
  .w-mod-js .wf-seo[data-reveal]:not(.is-in) .wf-tick { transform: scale(0); }
}

/* --------------------------------------------------------------------------
   04 · Motion (.wf-motion)
   The flow writes data-flow-index on the window; the preview card reads it.
   Still frame (no script, or reduced motion): the Hover state.
   -------------------------------------------------------------------------- */

.wf-motion-body { display: grid; grid-template-columns: minmax(0, 1fr) 248px; min-height: 300px; }

.wf-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .09) 1px, transparent 0) 0 0 / 16px 16px,
    var(--wf-paper);
}

.wf-mcard {
  width: 330px;
  height: 224px;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s ease, opacity .5s ease, filter .5s ease;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45);
}

.wf-view {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #0b0c0e;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22, .61, .36, 1);
}

.wf-view svg.i { width: 12px; height: 12px; }

.wf-pointer {
  position: absolute;
  left: calc(50% + 120px);
  top: calc(50% + 70px);
  color: #0b0c0e;
  opacity: 0;
  transition: left .6s cubic-bezier(.22, .61, .36, 1), top .6s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}

.wf-pointer svg.i { width: 20px; height: 20px; fill: #fff; stroke: #0b0c0e; stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }

/* Enter */
.wf-motion[data-flow-index="0"] .wf-mcard { animation: wf-enter 1.4s cubic-bezier(.22, .61, .36, 1) both; }

@keyframes wf-enter {
  from { opacity: 0; filter: blur(12px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* Hover (also the still frame) */
.wf-motion[data-flow-index="1"] .wf-mcard,
.wf-motion:not([data-flow-index]) .wf-mcard { transform: translateY(-6px); box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .6); }

.wf-motion[data-flow-index="1"] .wf-view,
.wf-motion:not([data-flow-index]) .wf-view { opacity: 1; transform: none; }

.wf-motion[data-flow-index="1"] .wf-pointer,
.wf-motion:not([data-flow-index]) .wf-pointer { opacity: 1; left: calc(50% + 40px); top: calc(50% + 6px); }

/* Rest: the pointer leaves, the card settles */
.wf-motion[data-flow-index="2"] .wf-pointer { opacity: 1; left: calc(50% + 190px); top: calc(50% + 96px); }

.wf-states { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-left: 1px solid var(--wf-line); }

.wf-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px;
  padding: 9px 10px;
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  transition: border-color .3s ease, background-color .3s ease;
}

.wf-state > span:last-child { display: grid; }
.wf-state b { font-size: 13px; line-height: 17px; }

.wf-state-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eef0f4;
  color: var(--wf-ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: background-color .3s ease, color .3s ease;
}

.wf-state[data-state="run"] { border-color: var(--wf-acc); background: var(--wf-acc-soft); }
.wf-state[data-state="run"] .wf-state-n { background: var(--wf-acc); color: #fff; }
.wf-state[data-state="done"] .wf-state-n { background: var(--wf-ok-soft); color: var(--wf-ok); }
.wf-motion:not([data-flow-index]) .wf-state:nth-of-type(2) { border-color: var(--wf-acc); background: var(--wf-acc-soft); }

.wf-timeline { padding: 12px 16px 16px; border-top: 1px solid var(--wf-line); background: var(--wf-bg); }

.wf-ruler {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px 132px;
  font-family: var(--wf-mono);
  font-size: 10.5px;
  line-height: 14px;
  color: var(--wf-ink-3);
}

.wf-tracks { position: relative; display: grid; gap: 6px; margin-left: 132px; }

.wf-track {
  position: relative;
  height: 26px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), var(--wf-line) calc(33.333% - 1px) 33.333%), #fff;
  box-shadow: 0 0 0 1px var(--wf-line) inset;
}

.wf-track-l {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--wf-ink-2);
  white-space: nowrap;
}

.wf-bar-k {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--a);
  width: calc(var(--b) - var(--a));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--wf-acc);
}

.wf-bar-k::before,
.wf-bar-k::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: #fff; border-radius: 1px; flex: none; }
.wf-bar-k i { order: 0; font-style: normal; font-family: var(--wf-mono); font-size: 10.5px; line-height: 14px; color: #fff; white-space: nowrap; }
.wf-bar-k::before { order: -1; }
.wf-bar-k::after { order: 1; }
.wf-bar-k.is-b { background: var(--wf-hover); }
.wf-bar-k.is-c { background: #8a93a6; }

.wf-playhead {
  position: absolute;
  top: -8px;
  bottom: -4px;
  left: 49%;
  width: 2px;
  margin-left: -1px;
  background: #e5484d;
  transition: left 1.2s cubic-bezier(.45, 0, .2, 1);
  pointer-events: none;
}

.wf-playhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: #e5484d; }

/* data-flow-progress writes an inline width; the playhead is a line, so the
   index places it instead and the width is ignored. */
.wf-playhead[style] { width: 2px !important; }
.wf-motion[data-flow-index="0"] .wf-playhead { left: 16%; }
.wf-motion[data-flow-index="1"] .wf-playhead { left: 50%; }
.wf-motion[data-flow-index="2"] .wf-playhead { left: 84%; }
.wf-motion[data-flow-index="3"] .wf-playhead { left: 99%; }

/* --------------------------------------------------------------------------
   Handoff: the editor (.wf-edit)
   Stage 0 click into the text, 1 longer text, layout holds, 2 publish.
   Still frame: the long text in place, toast shown.
   -------------------------------------------------------------------------- */

.wf-editing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4e0;
  color: #9a5b00;
  font-size: 12px;
  font-weight: 600;
}

.wf-editing svg.i { width: 12px; height: 12px; }

.wf-edit-body { position: relative; padding: 22px; background: var(--wf-paper); }

.wf-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wf-edit-grid .wf-card { height: 280px; }

.wf-typing {
  position: relative;
  display: block;
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #ffb547;
  background: rgba(255, 181, 71, .1);
  color: #fff !important;
}

.wf-caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: #ffb547;
}

@media (prefers-reduced-motion: no-preference) {
  .wf-caret { animation: wf-blink 1s steps(1) infinite; }
}

@keyframes wf-blink { 50% { opacity: 0; } }

.wf-more { transition: opacity .4s ease; }
.wf-edit[data-flow-index] .wf-more:not(.is-on) { display: none; }
.wf-edit[data-flow-index="1"] .wf-more { animation: wf-type 1.6s steps(24) both; }

@keyframes wf-type { from { opacity: .2; } }

.wf-edit[data-flow-index="2"] .wf-typing,
.wf-edit[data-flow-index="3"] .wf-typing { box-shadow: none; background: none; }
.wf-edit[data-flow-index="2"] .wf-caret,
.wf-edit[data-flow-index="3"] .wf-caret { display: none; }

.wf-pub { transition: transform .2s ease, box-shadow .2s ease; }
.wf-pub.is-now { transform: scale(.96); box-shadow: 0 0 0 4px rgba(47, 99, 255, .2); }

.wf-toast {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  background: #14161b;
  color: #fff;
  font-size: 12.5px;
  line-height: 16px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22, .61, .36, 1);
}

.wf-toast svg.i { width: 18px; height: 18px; color: #4ade80; }
.wf-toast > span { display: grid; }
.wf-toast b { font-size: 13px; }
.wf-toast > span { color: rgba(255, 255, 255, .72); }
.wf-toast b { color: #fff; }

.wf-edit[data-flow-index] .wf-toast:not(.is-on) { opacity: 0; transform: translateY(10px); }

.wf-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--wf-line);
  background: #fff;
}

.wf-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--wf-ink-3);
  transition: color .3s ease;
}

.wf-steps li + li { border-left: 1px solid var(--wf-line-2); }

.wf-steps li span {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eef0f4;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wf-ink-2);
  transition: background-color .3s ease, color .3s ease;
}

.wf-steps li[data-state="run"] { color: var(--wf-ink); font-weight: 500; }
.wf-steps li[data-state="run"] span { background: var(--wf-acc); color: #fff; }
.wf-steps li[data-state="done"] { color: var(--wf-ink-2); }
.wf-steps li[data-state="done"] span { background: var(--wf-ok-soft); color: var(--wf-ok); }
.wf-edit:not([data-flow-index]) .wf-steps li { color: var(--wf-ink); }

.wf-steps-bar {
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 100%;
  background: var(--wf-acc);
  transition: width .6s ease;
}

/* --------------------------------------------------------------------------
   My part: two notes sit on one row at this width
   -------------------------------------------------------------------------- */

.wf-page .cs-role-card .cs-role-t { text-wrap: balance; }

/* --------------------------------------------------------------------------
   Responsive. Below 992px the side panels step aside; below 768px every
   window turns into one column, so nothing has to scroll sideways.
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .wf-build-body { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "canvas style"; }
  .wf-nav { display: none; }
  .wf-cms-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .wf-items { display: none; }
  .wf-bps span:not(.is-on) { padding: 4px 7px; }
  .wf-bps span:not(.is-on) svg.i { display: none; }
}

@media screen and (max-width: 767px) {
  .wf-hero-frame { aspect-ratio: 4 / 3; }
  .wf-hero-frame .tag-wrap-work-card.absolute { inset: 12px 12px auto auto; }

  .wf-win { font-size: 12.5px; }
  .wf-bar { gap: 10px; min-height: 42px; padding: 0 12px; }
  .wf-dots { display: none; }
  .wf-bps,
  .wf-bar-end .wf-btn.is-ghost,
  .wf-bar-end .wf-btn svg.i { display: none; }

  .wf-build-body { display: block; min-height: 0; }
  .wf-canvas { padding: 14px; }
  .wf-site { padding: 20px 14px 14px; }
  .wf-site-head { font-size: 24px; }
  .wf-site-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-site-grid .wf-card { height: 196px; }
  .wf-site-grid .wf-card + .wf-card { display: none; }
  .wf-style { border-left: 0; border-top: 1px solid var(--wf-line); }

  .wf-cms-body { display: block; min-height: 0; }
  .wf-form { padding: 14px; }
  .wf-preview { border-left: 0; border-top: 1px solid var(--wf-line); }
  .wf-card.is-big { min-height: 250px; }

  .wf-seo-body { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .wf-serp-t { font-size: 16px; line-height: 21px; }
  .wf-checks li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 2px; padding: 8px 0; }
  .wf-checks code { grid-column: 2; justify-self: start; }

  .wf-motion-body { grid-template-columns: minmax(0, 1fr); }
  .wf-stage { padding: 30px 14px; }
  .wf-mcard { width: min(100%, 300px); height: 200px; }
  .wf-states { flex-direction: row; gap: 6px; padding: 0 0 12px; border-left: 0; border-top: 1px solid var(--wf-line); overflow: hidden; }
  .wf-states .wf-panel-h { display: none; }
  .wf-state { flex: 1; min-width: 0; margin: 12px 0 0; padding: 8px; gap: 7px; }
  .wf-state:first-of-type { margin-left: 12px; }
  .wf-state:last-of-type { margin-right: 12px; }
  .wf-state small { display: none; }
  .wf-timeline { padding: 12px; }
  .wf-ruler,
  .wf-tracks { margin-left: 0; }
  .wf-track { margin-top: 18px; }
  .wf-track-l { right: auto; left: 0; top: -9px; transform: translateY(-100%); font-size: 11.5px; }
  .wf-bar-k { padding: 0 6px; }
  .wf-bar-k i { font-size: 9.5px; }
  .wf-ruler { margin-bottom: 0; }

  .wf-edit-body { padding: 14px; }
  .wf-edit-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-edit-grid .wf-card { height: 236px; }
  .wf-edit-grid .wf-card + .wf-card { display: none; }
  .wf-toast { left: 14px; right: 14px; bottom: 14px; }
  .wf-steps li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; font-size: 12px; line-height: 16px; }
}
