 .bw-home-refresh {
  --ink:#111111;
  --muted:var(--text-muted);
  --board:var(--surface-alt);
  --accent:var(--accent-text);
  --thread-business:var(--text);
  --thread-website:#666;
  --thread-ai:var(--text-muted);
}
:root[data-theme="dark"] .bw-home-refresh { --thread-website:#a1a1a1; }
.bw-home-refresh :is(h1,h2,p) { margin:0; }
.bw-home-refresh a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.bw-home-refresh .weave-hero { width:min(100% - 2.5rem,76rem); margin-inline:auto; max-width:none; }
.bw-home-refresh .onboarding .text-link { gap:8px; justify-self:start; }
.bw-home-refresh .well-link .well-logo-dark, :root[data-theme="dark"] .bw-home-refresh .well-link .well-logo-light { display:none; }
:root[data-theme="dark"] .bw-home-refresh .well-link .well-logo-dark { display:block; }
.bw-home-refresh svg.weave-art { width:100%; height:clamp(174px,23vw,320px); stroke:none; }

@scope (.bw-home-refresh) {
.text-link:hover{color:var(--accent)}
.weave-hero{min-height:0;display:grid;gap:2.4rem;padding-block:clamp(2.8rem,7vw,6.8rem)}
.copy{align-self:center;min-width:0}
h1{font-size:clamp(40px,4.3vw,62px);line-height:1.08;font-weight:520;letter-spacing:-.03em;font-variation-settings:"wdth" 100;text-wrap:balance}
h1 span{color:var(--muted);display:block}
.copy p{color:var(--muted);font-size:clamp(1rem,1.5vw,1.125rem);max-width:45ch;margin-block:24px;text-wrap:pretty}
.cta{min-height:52px;display:inline-flex;align-items:center;gap:1.25rem;padding:.65rem 1rem;border-radius:6px;background:var(--orange);color:var(--ink);font-weight:650;text-decoration:none;transition:background-color .18s ease,scale .18s ease}
.cta:hover{background:color-mix(in srgb,var(--orange) 86%,white)}.cta:active{scale:.96}
.arrow{width:19px;height:19px}
.text-link{min-height:44px;display:inline-flex;align-items:center}
@media(min-width:860px){.weave-hero{grid-template-columns:1.05fr .95fr;gap:clamp(2.5rem,6vw,6rem)}}
@media(prefers-reduced-motion:reduce){.journey *,.cta{animation:none!important;transition:none!important}}
.journey{align-self:center;min-width:0;padding:clamp(1rem,2.6vw,2rem);background:var(--board);border:1px solid var(--line);border-radius:12px}
.journey h2{font-size:clamp(1.25rem,2.15vw,1.7rem);font-weight:620;line-height:1.15;letter-spacing:-.025em;text-wrap:balance}
.weave{position:relative;display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:12px;align-items:stretch;margin-block:1.35rem .75rem}
.strands{display:grid;grid-template-rows:repeat(4,1fr);list-style:none;padding:0;margin:0}
.strands li{display:flex;align-items:center;gap:.5rem;font-size:clamp(.75rem,1.4vw,.95rem);font-weight:580;color:var(--text);line-height:1.25}
.strands li::before{content:"";width:.43rem;height:.43rem;flex:none;background:var(--thread);border-radius:50%}
.business{--thread:var(--thread-business)}.marketing{--thread:var(--orange)}.website{--thread:var(--thread-website)}.software{--thread:var(--thread-ai)}
.weave-art{display:block;width:100%;height:clamp(174px,23vw,320px);overflow:visible}
.thread-base,.thread-draw,.thread-edge{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.thread-base{stroke:var(--thread);stroke-width:3;opacity:.32}
.thread-draw{stroke:var(--thread);stroke-width:3}
.thread-edge{stroke:var(--board);stroke-width:8}
.weave-tail{fill:var(--orange)}
.is-playing .thread-draw,.is-playing .thread-edge{stroke-dasharray:1;animation:draw 1.9s cubic-bezier(.3,.05,.3,1) var(--delay,0s) both}
.is-playing .weave-tail{animation:arrive .45s ease-out 2.35s both}
.is-paused .weave-art *,.is-paused .outcomes li{animation-play-state:paused!important}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes arrive{from{opacity:.25}to{opacity:1}}
.outcomes{list-style:none;margin:0;padding:.85rem 0;display:flex;gap:.25rem .9rem;flex-wrap:wrap;border-block:1px solid var(--line);color:var(--text);font-weight:580;font-size:clamp(.75rem,1.4vw,.91rem)}
.journey-foot{display:grid;justify-items:start;gap:8px;margin-top:16px;color:var(--muted);font-size:.875rem}
.well-link{position:relative;display:inline-flex;align-items:center;min-height:44px;width:min(100%, 248px);aspect-ratio:656/128}
.well-link img{display:block;width:100%;height:auto}
.signal{fill:var(--orange)}
@media(prefers-reduced-motion:reduce){.signal{opacity:0!important}}
.terminal-ring{fill:none;stroke:var(--orange);stroke-width:1.5;opacity:.55;transform-origin:391px 118px}
.is-playing .terminal-ring{animation:breathe 3.6s ease-out 3.85s infinite}
@keyframes breathe{0%,45%,100%{transform:scale(1);opacity:.55}12%{transform:scale(1.38);opacity:.76}32%{transform:scale(1.65);opacity:.2}}
.product-proof,.onboarding{width:min(100% - 2.5rem,76rem);margin-inline:auto;border-top:1px solid var(--line);padding-block:clamp(40px,6vw,80px)}
.product-intro{display:grid;gap:16px;align-items:end;margin-bottom:24px}
.product-intro h2,.onboarding h2{font-size:clamp(2rem,4vw,3.25rem);font-weight:520;line-height:1.08;letter-spacing:-.03em;text-wrap:balance}
.product-intro p,.product-copy p,.onboarding p{color:var(--muted);text-wrap:pretty;max-width:43ch}
.product-viewer{border:1px solid var(--line);border-radius:12px;background:var(--board)}
.product-tabs{display:flex;border-bottom:1px solid var(--line);padding-inline:clamp(16px,3vw,40px)}
.product-tabs[hidden]{display:none}
.product-tab{flex:1;min-height:52px;padding:8px 12px;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font:600 1rem Archivo,Arial,sans-serif;cursor:pointer;touch-action:manipulation}
.product-tab:hover{color:var(--text)}
.product-tab[aria-selected="true"]{color:var(--text);border-bottom-color:var(--orange)}
.product-tab:focus-visible{outline-offset:-5px}
.product-panel{display:grid;align-items:center;gap:24px;padding:clamp(16px,3.6vw,48px)}
.product-panel[hidden]{display:none}
.product-panel + .product-panel:not([hidden]){border-top:1px solid var(--line)}
.product-copy h3{font-size:clamp(1.45rem,2.75vw,2.55rem);font-weight:520;line-height:1.08;letter-spacing:-.025em;margin:8px 0 14px;text-wrap:balance}
.product-category{color:var(--muted);font-size:.875rem}
.product-steps{margin:20px 0 12px;padding:0;list-style:none;border-top:1px solid var(--line)}
.product-steps li{display:grid;grid-template-columns:8px 1fr;align-items:center;gap:10px;padding-block:8px;border-bottom:1px solid var(--line);font-size:.9rem}
.product-steps li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange)}
.product-copy .text-link{gap:8px}
.product-screen{display:grid;justify-items:center;margin:0;gap:8px;min-width:0}
.product-screen a{display:grid;justify-items:center;width:100%}
.product-screen img{display:block;width:min(100%,23rem);height:auto;border-radius:6px}
.product-screen figcaption{font-size:.8125rem;color:var(--muted);text-align:center}
.onboarding{display:grid;gap:12px}
@media(min-width:760px){.product-intro{grid-template-columns:1fr auto}.product-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}.product-tab{flex:0 1 180px}.onboarding{grid-template-columns:1fr 1fr;align-items:start}.onboarding h2{grid-row:span 2}}
}

.home-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
}

.footer-motion-toggle {
  min-block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  touch-action: manipulation;
}

.footer-motion-toggle:hover { color: var(--accent-text); }
.footer-motion-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.bw-home-refresh .well-rail-pulse {
  position: absolute;
  inset-inline-start: 53.5%;
  top: 80.5%;
  width: 45%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.bw-home-refresh .well-rail-pulse::after {
  content: "";
  display: block;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .bw-home-refresh .is-playing .well-rail-pulse::after {
    animation: well-rail-sweep 750ms ease-out 3.25s both;
  }
  .bw-home-refresh .is-paused .well-rail-pulse::after { animation-play-state: paused; }
}
@keyframes well-rail-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  20%, 75% { opacity: .85; }
  100% { transform: translateX(560%); opacity: 0; }
}

/* Case-study actions keep the orange accent inside the button. */
.home-results a.case-study-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font: 600 1rem/1.25 Archivo, Arial, sans-serif;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.home-results a.case-study-action:hover,
.home-results a.case-study-action:focus-visible {
  border-color: var(--accent-text);
  background: var(--surface-alt);
}
.home-results a.case-study-action:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.case-study-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--orange);
  color: #111;
}
.home-results .case-study-action-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.home-results .case-study-action:is(:hover, :focus-visible) svg { transform: translateX(4px); }
.home-results .case-study-action:active svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .home-results a.case-study-action,
  .home-results .case-study-action-icon svg { transition: none; }
  .home-results .case-study-action:is(:hover, :focus-visible, :active) svg { transform: none; }
}

@media (max-width: 759px) {
  .bw-home-refresh .weave-hero {
    padding-block: clamp(28px, 8vw, 38px);
    gap: clamp(24px, 7vw, 32px);
  }

  .bw-home-refresh .weave-hero h1 { font-size: clamp(2.125rem, 10vw, 2.5rem); }
  .bw-home-refresh .copy p { margin-block: 18px 20px; }
  .bw-home-refresh .weave { margin-block: 18px 10px; }
  .bw-home-refresh .product-proof { padding-block: 34px; }
  .bw-home-refresh .product-intro { gap: 12px; margin-bottom: 20px; }
  .bw-home-refresh .product-panel { gap: 16px; }
  .bw-home-refresh .product-steps { margin-block: 14px 6px; }
  .bw-home-refresh .product-steps li { padding-block: 7px; }
}
