/* How it works: studio tour. Builds on home.css (h-chrome, h-kicker, h-proof, h-modes, h-wave, keyframes). */
@property --w-p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* Hero */
.w-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  min-height: 640px;
  padding: 56px 0 40px;
}
.w-hero h1 {
  margin-top: 26px;
  font-size: clamp(48px, 5.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 650;
  animation: h-in 0.9s var(--ease) 0.08s both;
}
.w-hero-copy > [data-reveal]:nth-child(3) { --i: 1; }
.w-hero-copy > [data-reveal]:nth-child(4) { --i: 2; }
.w-hero-copy > [data-reveal]:nth-child(5) { --i: 3; }
.w-hero-stage {
  position: relative;
}
.w-win {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #18191af2;
  box-shadow: 0 20px 40px #0007;
}
.w-win-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}
.w-hp-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.w-hp-nav li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  animation: w-nav 15s infinite both;
  animation-delay: calc(var(--i) * 3s);
}
.w-hp-nav li:first-child {
  background: #d2f88b14;
  color: var(--text);
}
.w-hp-nav span {
  font-size: 11px;
  color: #6f716c;
  font-variant-numeric: tabular-nums;
}
.w-hp-panes {
  position: relative;
  height: 330px;
}
.w-hp-pane {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: #131414;
  opacity: 0;
  animation: w-pane 15s infinite both;
  animation-delay: calc(var(--i) * 3s);
}
.w-hp-pane:first-child {
  opacity: 1;
}
.w-hp-title {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d8e89;
}
.w-hp-file {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.w-hp-file .h-photo {
  width: 54px;
  height: 72px;
  border-radius: 8px;
}
.w-hp-file > span {
  flex: 1;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.w-hp-file small {
  color: var(--muted);
}
.w-hp-bar,
.w-up {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: 9px;
  background: #2a2b2d;
  overflow: hidden;
}
.w-hp-bar > i,
.w-up > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: h-fill 3s var(--ease) infinite;
}
.w-hp-tags,
.w-hp-ratios,
.w-tabs,
.w-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.w-hp-tags span,
.w-hp-ratios span,
.w-tabs span,
.w-styles span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}
.w-hp-ratios .on {
  border-color: #d2f88b66;
  background: #d2f88b0d;
  color: var(--text);
}
.w-hp-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.w-hp-row b {
  color: var(--text);
  font-weight: 550;
}
.w-hp-stages {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}
.w-hp-stages li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfd0c9;
  animation: w-tick 15s infinite both;
  animation-delay: calc(6.2s + var(--i) * 0.5s);
}
.w-hp-stages li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #172011;
  font-size: 10px;
  font-weight: 800;
}
.w-hp-clips {
  display: grid;
  gap: 10px;
}
.w-hp-clips div {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.w-hp-clips div:first-child {
  border-color: #d2f88b55;
}
.w-hp-clips i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
}
.w-hp-clips div:last-child i {
  background: none;
  border-color: #55575a;
}
.w-hp-clips b {
  font-variant-numeric: tabular-nums;
}
.w-hp-out {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
}
.w-hp-out span {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.w-hp-out b {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #101011cc;
  font-size: 10.5px;
  font-weight: 600;
}
.w-r-9-16 { height: 180px; aspect-ratio: 9 / 16; }
.w-r-1-1 { height: 120px; aspect-ratio: 1; }
.w-r-4-5 { height: 140px; aspect-ratio: 4 / 5; }
.w-hp-dl {
  justify-self: start;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--accent);
  color: #172011;
  font-size: 12.5px;
  font-weight: 650;
}
.w-hp-progress {
  display: block;
  height: 3px;
  margin: 12px 4px 2px;
  border-radius: 3px;
  background: #2a2b2d;
  overflow: hidden;
}
.w-hp-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: w-progress 15s linear infinite;
}

/* Step rail */
.w-tour {
  position: relative;
  timeline-scope: --w-s1, --w-s2, --w-s3, --w-s4, --w-s5, --w-s6;
  view-timeline-name: --w-tour;
}
.w-rail {
  position: sticky;
  top: 100px;
  z-index: 5;
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #141515f7;
  box-shadow: 0 12px 30px #0006;
  overflow: hidden;
}
.w-rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.w-rail a:hover {
  color: var(--text);
  background: #ffffff0a;
}
.w-rail a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.w-rail b {
  font-size: 11px;
  font-weight: 650;
  color: #6f716c;
}
.w-rail-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Steps */
.w-step {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
  padding-top: 130px;
}
.w-step-1 { view-timeline-name: --w-s1; }
.w-step-2 { view-timeline-name: --w-s2; }
.w-step-3 { view-timeline-name: --w-s3; }
.w-step-4 { view-timeline-name: --w-s4; }
.w-step-5 { view-timeline-name: --w-s5; }
.w-step-6 { view-timeline-name: --w-s6; }
.w-step-2 .w-copy,
.w-step-4 .w-copy,
.w-step-6 .w-copy {
  order: 2;
}
.w-mock {
  --i: 1;
  min-width: 0;
}
.w-copy {
  min-width: 0;
}
.w-copy h2 {
  margin-top: 18px;
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: -0.05em;
}
.w-copy > p:not(.eyebrow):not(.w-note) {
  margin-top: 20px;
  font-size: 16.5px;
}
.w-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.w-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: #cfd0c9;
}
.w-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.w-note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #151616;
  font-size: 13.5px;
  line-height: 1.6;
}
.w-note .h-plan {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: 1px;
}

/* Screen mockups */
.w-screen {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #18191a;
  box-shadow: 0 20px 40px #0006;
}
.w-screen-body {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: #131414;
}
.w-label {
  margin-bottom: -6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8e89;
}

/* 1. Source */
.w-tabs span,
.w-styles span {
  animation: w-tab 9s infinite both;
}
.w-tabs span:nth-child(2),
.w-styles span:nth-child(2) { animation-delay: 3s; }
.w-tabs span:nth-child(3),
.w-styles span:nth-child(3) { animation-delay: 6s; }
.w-tabs span:nth-child(2),
.w-styles span:first-child {
  border-color: #d2f88b66;
  background: #d2f88b14;
  color: var(--text);
}
.w-drop {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 16px;
  border: 1.5px dashed #4b4d50;
  border-radius: 14px;
  font-size: 14px;
  color: #cfd0c9;
  text-align: center;
}
.w-drop b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #d2f88b1f;
  color: var(--accent);
  font-size: 18px;
  animation: h-bounce 2.4s var(--ease) infinite;
}
.w-drop small {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.w-file {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.w-file .h-photo {
  width: 52px;
  height: 68px;
  border-radius: 8px;
}
.w-file > div {
  display: grid;
  font-size: 14px;
}
.w-file small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.w-up > i {
  animation-duration: 5s;
}
.w-remove {
  font-size: 12px;
  color: var(--muted);
}
.w-field {
  display: grid;
  gap: 6px;
}
.w-field > span {
  font-size: 12px;
  color: var(--muted);
}
.w-field > b {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}
.w-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--accent);
  animation: w-blink 1s steps(1) infinite;
}
.w-sample {
  font-size: 13px;
  color: var(--muted);
}
.w-sample b {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #d2f88b88;
  text-underline-offset: 3px;
}

/* 2. Settings */
.w-ratios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.w-ratios span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.w-ratios i {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #55575a;
  border-radius: 4px;
}
.w-ratios .on,
.w-ratios .w-flip {
  border-color: #d2f88b66;
  background: #d2f88b0d;
  color: var(--text);
}
.w-ratios .on i,
.w-ratios .w-flip i {
  border-color: var(--accent);
  background: var(--accent);
}
.w-flip {
  animation: w-flip 6s infinite both;
}
.w-flip i {
  animation: w-flip-box 6s infinite both;
}
.w-modes span {
  padding: 5px 11px;
  font-size: 12px;
}
.w-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.w-split > div {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.w-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.w-seg span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
}
.w-seg .on {
  background: #2a2b2d;
  color: var(--text);
}
.w-prompt {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  font-size: 13.5px;
  color: var(--text);
}
.w-typed > span {
  animation: w-word 9s infinite both;
  animation-delay: calc(var(--w) * 0.22s);
}
.w-estimate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.w-estimate b {
  color: var(--text);
}
.w-cta {
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: #172011;
  font-size: 13px;
  font-weight: 650;
  animation: w-press 9s var(--ease) infinite;
}

/* 3. Processing — mirrors ProjectDetail.tsx and the studio tokens. */
.w-processing-body {
  background: #0d0f10;
  color: #f3f4ee;
  gap: 20px;
  padding: 24px;
}
.w-project-back {
  color: #b0b7b5;
  font-size: 12px;
}
.w-processing-heading {
  text-align: center;
}
.w-processing-heading > p {
  color: #a1aaa7;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.w-processing-heading h3 {
  margin: 8px 0 12px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.w-processing-heading > span {
  color: #b0b7b5;
  font-size: 12px;
}
.w-processing-heading strong { color: #f3f4ee; font-weight: 600; }
.w-stages {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 16px 20px;
  list-style: none;
  border: 1px solid #34393a;
  border-radius: 18px;
  background: #171a1b;
}
.w-stages li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: #a1aaa7;
}
.w-stages .done { color: #b0b7b5; }
.w-stages .active { color: #f3f4ee; font-weight: 600; }
.w-stage-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  height: 22px;
  border: 1px solid #34393a;
  border-radius: 50%;
  background: #222627;
  font-size: 12px;
}
.w-stage-dot svg { width: 14px; height: 14px; }
.done .w-stage-dot { background: #56c596; border-color: #56c596; color: #0a1a12; }
.active .w-stage-dot { border-color: var(--accent); color: var(--accent); }
.active .w-stage-dot svg { animation: w-processing-spin 1.5s linear infinite; }
.w-stage-body { flex: 1; min-width: 0; }
.w-stage-row { display: flex; justify-content: space-between; gap: 12px; }
.w-stage-row small { color: #a1aaa7; font-size: 11px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w-stage-track { height: 5px; margin-top: 10px; border-radius: 99px; background: #34393a; overflow: hidden; }
.w-stage-track > span { display: block; height: 100%; width: 64%; border-radius: inherit; background: var(--accent); }
.w-background-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d2f88b33;
  border-radius: 14px;
  background: #d2f88b0a;
}
.w-background-notice > svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.w-background-notice > div { flex: 1; min-width: 0; }
.w-background-notice strong { display: block; font-size: 12px; font-weight: 600; }
.w-background-notice p { margin: 3px 0 0; color: #b0b7b5; font-size: 11px; line-height: 1.5; }
.w-dashboard-button { flex: none; padding: 8px 10px; border: 1px solid #34393a; border-radius: 99px; font-size: 10px; font-weight: 550; }
.w-project-delete { justify-self: center; color: #a1aaa7; font-size: 11px; }
@keyframes w-processing-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .w-processing-body { gap: 18px; }
  .w-stages { padding: 12px; }
  .w-stage-row { flex-wrap: wrap; gap: 3px 8px; }
  .w-background-notice { display: grid; grid-template-columns: 22px minmax(0, 1fr); }
  .w-dashboard-button { grid-column: 2; justify-self: start; }
}
.w-stage-notes {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}
.w-stage-notes li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 11px 0 11px 34px;
  border-bottom: 1px solid var(--line);
  counter-increment: stage;
}
.w-stage-notes li::before {
  content: '0' counter(stage);
  position: absolute;
  left: 0;
  top: 13px;
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
}
.w-stage-notes b,
.w-legend b {
  font-size: 15px;
  font-weight: 600;
}
.w-stage-notes span,
.w-legend span {
  font-size: 14px;
  color: var(--muted);
}

/* 4. Review */
.w-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid #d2f88b55;
  border-radius: 16px;
  background: #d2f88b08;
}
.w-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  align-self: start;
  border-radius: 12px;
  overflow: hidden;
}
.w-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #101011b3;
  font-size: 12px;
}
/* Pulse rings scale on the compositor instead of repainting a growing box-shadow. */
.w-play::after,
.w-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #d2f88b80;
  pointer-events: none;
  animation: w-ring 2.2s infinite;
}
.w-pin::after {
  animation-duration: 2.4s;
}
@keyframes w-ring {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
.w-card-main {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.w-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.w-type {
  padding: 2px 9px;
  border: 1px solid #c4b2fa55;
  border-radius: 999px;
  background: #c4b2fa14;
  color: var(--violet);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.w-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
}
.w-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  --w-p: var(--s);
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--w-p) * 1%), #2a2b2d 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px));
}
.w-mock.in .w-ring::before {
  animation: w-ring 1.6s var(--ease) 0.4s both;
}
.w-ring b {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.w-card-title {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.w-rewrite {
  border-bottom: 1.5px dashed #d2f88b99;
  animation: w-rewrite 7s infinite;
}
.w-quote {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.5;
}
.w-bars {
  position: relative;
  display: grid;
  gap: 7px;
}
.w-bars > div {
  display: grid;
  grid-template-columns: 46px 1fr 26px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #cfd0c9;
}
.w-bars i {
  display: block;
  height: 6px;
  border-radius: 9px;
  background: #2a2b2d;
  overflow: hidden;
}
.w-bars i i {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #94ae65, var(--accent));
  transition: width 1.4s var(--ease) calc(0.3s + var(--i) * 0.15s);
}
.w-mock.in .w-bars i i,
html:not(.h-js) .w-bars i i {
  width: var(--s);
}
.w-bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.w-why {
  font-size: 13px;
  line-height: 1.5;
}
.w-why b {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.w-pin,
.w-legend li::before {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #172011;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}
.w-pin {
  position: relative;
}
.w-pin-1 {
  position: absolute;
  left: 8px;
  top: 8px;
}
.w-pin-3 {
  position: absolute;
  right: -8px;
  top: -10px;
}
.w-pin-4 {
  position: absolute;
  left: -8px;
  top: -8px;
}
.w-trim {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.w-trim-track {
  position: relative;
  height: 46px;
  padding: 0 4px;
  border-radius: 8px;
  background: #121313;
}
.w-trim-sel {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 30%;
  width: 36%;
  border: 2px solid var(--accent);
  border-radius: 7px;
  background: #d2f88b14;
  animation: w-trim 7s ease-in-out infinite;
}
.w-trim-sel i {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 22px;
  margin-top: -11px;
  border-radius: 3px;
  background: var(--accent);
}
.w-trim-sel i:first-child { left: -4px; }
.w-trim-sel i:last-child { right: -4px; }
.w-trim-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.w-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
}
.w-check i {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  animation: w-checkbox 7s infinite;
}
.w-check i::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  color: #172011;
}
.w-more {
  display: grid;
  gap: 6px;
}
.w-more > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8e89;
}
.w-more div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  opacity: 0.6;
}
.w-more div i {
  width: 14px;
  height: 14px;
  border: 1.5px solid #55575a;
  border-radius: 4px;
}
.w-more b {
  font-weight: 500;
}
.w-more em {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.w-legend {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pin;
}
.w-legend li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 2px 14px;
  counter-increment: pin;
}
.w-legend li::before {
  content: counter(pin);
  grid-row: span 2;
  margin-top: 2px;
}

/* 5. Editing */
.w-ed {
  grid-template-columns: 170px 1fr;
  align-items: start;
  gap: 20px;
}
.w-ed-ratios {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.w-ed-ratios span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.w-ed-ratios .on {
  border-color: #d2f88b66;
  color: var(--accent);
}
.w-ed-phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 3px solid #2a2b2d;
  border-radius: 16px;
  overflow: hidden;
}
.w-ed-phone .h-photo {
  object-position: 50% 30%;
}
.h-karaoke.w-ed-cap {
  font-size: 14px;
}
.w-ed-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.w-ed-text {
  font-size: 17px;
  line-height: 1.65;
  color: #d9dad3;
}
.w-ed-text mark {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--accent);
  color: #172011;
}
.w-ed-text del {
  color: var(--muted);
  text-decoration-color: #f06a6a;
  animation: h-strike 6s infinite;
}
.w-fix {
  border-bottom: 1.5px dashed var(--violet);
}
.w-ed-track {
  position: relative;
  display: flex;
  gap: 4px;
  height: 44px;
  overflow-x: clip;
}
.w-keep {
  position: relative;
  flex: 1;
  border-radius: 8px;
  background: #2a2b2d;
}
.w-cut {
  flex: 1.4 1 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed #f06a6a;
  border-radius: 8px;
  background: #f06a6a14;
  color: #f06a6a;
  font-size: 11px;
  font-weight: 600;
  animation: h-collapse 6s var(--ease) infinite;
}
.w-mute {
  position: absolute;
  inset: 6px 18% 6px 38%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--violet);
  border-radius: 6px;
  background: #c4b2fa1f;
  color: var(--violet);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}
/* Full-width layer, line drawn at its left edge, moved by transform (see .h-playhead). */
.w-head {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: -10px;
  width: 100%;
  background: linear-gradient(90deg, #0000, #fff3 7px, var(--text) 9px 11px, #fff3 13px, #0000 20px) 0 0 / 20px 100% no-repeat;
  pointer-events: none;
  animation: h-playhead 6s linear infinite;
}
.w-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--muted);
}
.w-keys kbd {
  margin-right: 3px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #1d1e1f;
  font: inherit;
  font-size: 11px;
  color: var(--text);
}
.w-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}
.w-tools > * {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.w-tools b {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.w-tools span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.w-tools a {
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.w-tools a b::after {
  content: ' ↗';
  color: var(--accent);
}
.w-tools a:hover {
  border-color: #d2f88b66;
  transform: translateY(-2px);
}

/* 6. Export */
.w-exports {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.w-ex {
  --d: calc(var(--i) * 0.6s);
  display: grid;
  gap: 7px;
  min-width: 0;
}
.w-ex-9-16 { flex: 0.85; }
.w-ex-1-1 { flex: 1.25; }
.w-ex-4-5 { flex: 1.1; }
.w-ex-16-9 { flex: 2; }
.w-ex-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.w-ex-9-16 .w-ex-media { aspect-ratio: 9 / 16; }
.w-ex-1-1 .w-ex-media { aspect-ratio: 1; }
.w-ex-4-5 .w-ex-media { aspect-ratio: 4 / 5; }
.w-ex-16-9 .w-ex-media { aspect-ratio: 16 / 9; }
.w-ex-media .h-photo {
  position: absolute;
  inset: 0;
  object-position: 50% 30%;
}
.w-ex-media::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #f2bb5a;
  transform-origin: left;
  opacity: 0;
  animation: w-renderbar 8s var(--d) infinite both;
}
.w-ex-cap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 12%;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 6px #000c;
}
.w-ex-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.w-ex-meta b {
  color: var(--text);
}
.w-status {
  display: inline-grid;
  margin-left: auto;
}
.w-status i {
  grid-area: 1 / 1;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}
.w-status i:first-child {
  background: #f2bb5a24;
  color: #f2bb5a;
  opacity: 0;
  animation: w-rendering 8s var(--d) infinite both;
}
.w-status i:last-child {
  background: #56c59624;
  color: #56c596;
  animation: w-ready 8s var(--d) infinite both;
}
.w-dl {
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: w-dl 8s var(--d) infinite both;
}
.w-sched {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.w-sched > span:nth-child(2) {
  display: grid;
  min-width: 0;
  font-size: 13.5px;
}
.w-sched small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-sched-day {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 50px;
  border-radius: 10px;
  background: var(--raised);
  line-height: 1.1;
}
.w-sched-day small {
  font-size: 9.5px;
  letter-spacing: 0.1em;
}
.w-sched-day b {
  font-size: 18px;
}
.w-sched-chip {
  flex: none;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #56c59624;
  color: #56c596;
  font-size: 11px;
  font-weight: 650;
}

/* Costs */
.w-costs {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px 48px;
  margin-top: 140px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at 0% 0%, #d2f88b10, #0000 60%),
    var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.w-costs h2 {
  margin-top: 16px;
  font-size: clamp(32px, 3.6vw, 48px);
}
.w-costs dl {
  margin: 0;
}
.w-costs dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.w-costs dt {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.w-costs dd {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.w-costs-plans {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 14px;
}
.w-costs-plans .h-plan {
  align-self: center;
}
.w-costs-plans a {
  color: var(--accent);
  font-weight: 600;
}

/* Scroll-driven extras: the rail fills and marks the step in view (browsers without support keep a plain rail). */
@supports (animation-timeline: view()) {
  .w-rail-fill {
    animation: w-grow linear both;
    animation-timeline: --w-tour;
    animation-range: contain 0% contain 100%;
  }
  .w-rail a {
    animation: w-here linear;
    animation-range: cover 50vh cover calc(100% - 50vh);
  }
  .w-rail a.w-rail-1 { animation-timeline: --w-s1; }
  .w-rail a.w-rail-2 { animation-timeline: --w-s2; }
  .w-rail a.w-rail-3 { animation-timeline: --w-s3; }
  .w-rail a.w-rail-4 { animation-timeline: --w-s4; }
  .w-rail a.w-rail-5 { animation-timeline: --w-s5; }
  .w-rail a.w-rail-6 { animation-timeline: --w-s6; }
}

/* Keyframes */
@keyframes w-nav {
  0%, 1% { background: #0000; color: var(--muted); }
  3%, 19% { background: #d2f88b14; color: var(--text); }
  21%, 100% { background: #0000; color: var(--muted); }
}
@keyframes w-pane {
  0% { opacity: 0; transform: translateY(10px); }
  3%, 18% { opacity: 1; transform: none; }
  21%, 100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes w-tick {
  0% { opacity: 0.3; }
  3%, 18% { opacity: 1; }
  21%, 100% { opacity: 0.3; }
}
@keyframes w-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes w-grow {
  to { transform: scaleX(1); }
}
@keyframes w-here {
  from, to { color: var(--text); background: #d2f88b14; }
}
@keyframes w-tab {
  0%, 2% { border-color: var(--line); background: #0000; color: var(--muted); }
  5%, 30% { border-color: #d2f88b66; background: #d2f88b14; color: var(--text); }
  33%, 100% { border-color: var(--line); background: #0000; color: var(--muted); }
}
@keyframes w-blink {
  50% { opacity: 0; }
}
@keyframes w-flip {
  0%, 40% { border-color: var(--line); background: #0000; color: var(--muted); }
  45%, 95% { border-color: #d2f88b66; background: #d2f88b0d; color: var(--text); }
  100% { border-color: var(--line); background: #0000; color: var(--muted); }
}
@keyframes w-flip-box {
  0%, 40% { border-color: #55575a; background: #0000; }
  45%, 95% { border-color: var(--accent); background: var(--accent); }
  100% { border-color: #55575a; background: #0000; }
}
@keyframes w-word {
  0% { opacity: 0; }
  2%, 80% { opacity: 1; }
  86%, 100% { opacity: 0; }
}
@keyframes w-press {
  0%, 80% { transform: none; box-shadow: 0 0 0 0 #d2f88b00; }
  84% { transform: scale(0.95); box-shadow: 0 0 0 6px #d2f88b33; }
  90%, 100% { transform: none; box-shadow: 0 0 0 0 #d2f88b00; }
}
@keyframes w-ring {
  from { --w-p: 0; }
}
@keyframes w-rewrite {
  0%, 40% { background: #0000; }
  48%, 70% { background: #d2f88b1f; }
  78%, 100% { background: #0000; }
}
@keyframes w-trim {
  0%, 15% { left: 30%; width: 36%; }
  40%, 60% { left: 22%; width: 48%; }
  85%, 100% { left: 30%; width: 36%; }
}
@keyframes w-checkbox {
  0%, 55% { background: #0000; }
  60%, 100% { background: var(--accent); }
}
@keyframes w-renderbar {
  0% { opacity: 1; transform: scaleX(0); }
  35% { opacity: 1; transform: scaleX(1); }
  38%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes w-rendering {
  0%, 35% { opacity: 1; }
  38%, 100% { opacity: 0; }
}
@keyframes w-ready {
  0%, 35% { opacity: 0; }
  38%, 100% { opacity: 1; }
}
@keyframes w-dl {
  0%, 35% { opacity: 0.35; }
  38%, 100% { opacity: 1; }
}

@media (max-width: 1100px) {
  .w-hero,
  .w-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .w-hero {
    min-height: 0;
  }
  .w-hero-stage,
  .w-mock {
    max-width: 680px;
  }
  .w-step-2 .w-copy,
  .w-step-4 .w-copy,
  .w-step-6 .w-copy {
    order: 0;
  }
  .w-costs {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .w-hero {
    padding-top: 32px;
  }
  .w-hero h1 {
    font-size: 44px;
  }
  .w-win-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-hp-nav {
    display: flex;
    gap: 4px;
    padding: 0;
  }
  .w-hp-nav li {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0;
  }
  .w-hp-nav span {
    font-size: 11px;
    color: inherit;
  }
  .w-hp-panes {
    height: 290px;
  }
  .w-hp-pane {
    padding: 16px;
  }
  .w-rail {
    top: 8px;
    width: 100%;
    margin-top: 28px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .w-rail::-webkit-scrollbar {
    display: none;
  }
  .w-rail a {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .w-step {
    gap: 28px;
    padding-top: 88px;
  }
  .w-screen {
    padding: 8px;
    border-radius: 16px;
  }
  .w-screen-body {
    padding: 14px;
  }
  .w-ratios {
    gap: 6px;
  }
  .w-ratios span {
    gap: 6px;
    padding: 8px 6px;
    font-size: 12px;
  }
  .w-ratios i {
    width: 12px;
    height: 12px;
  }
  .w-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 10px;
  }
  .w-card-title {
    font-size: 16px;
  }
  .w-quote {
    display: none;
  }
  .w-bars > div {
    grid-template-columns: 40px 1fr 22px;
    gap: 8px;
  }
  .w-trim-meta > span {
    display: none;
  }
  .w-ed {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }
  .w-ed-text {
    font-size: 14px;
  }
  .h-karaoke.w-ed-cap {
    font-size: 10px;
  }
  .w-exports {
    flex-wrap: wrap;
  }
  .w-ex-9-16,
  .w-ex-1-1,
  .w-ex-4-5 {
    flex: 1 1 0;
  }
  .w-ex-16-9 {
    flex: 1 1 100%;
  }
  .w-ex-16-9 .w-ex-cap {
    font-size: 13px;
  }
  .w-costs {
    margin-top: 96px;
    padding: 26px 20px;
  }
  .w-costs dl > div {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }
  .w-costs dt {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .w-tools {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .w-bars i i {
    width: var(--s);
  }
}
